KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRAEventSelector.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Thu Dec 15 16:01:29 2016
2 //Author: John Frankland,,,
3 
4 #include "KVINDRAEventSelector.h"
6 #include "KVClassFactory.h"
7 
9 
10 
11 
14  : KVEventSelector(arg1), fCurrentRun(nullptr)
15 {
16  SetBranchName("INDRAReconEvent");
17  SetEventsReadInterval(20000);
18  SetParticleConditionsParticleClassName("KVINDRAReconNuc");
19 }
20 
21 
22 
23 
26 
28 {
29  // Destructor
30 }
31 
32 
33 
36 
38 {
39  // When using PROOF, need to set tree pointer in KVDataAnalyser
41 #ifdef WITH_CPP11
42  if (tree && gDataAnalyser->GetProofMode() != KVDataAnalyser::EProofMode::None) {
43 #else
45 #endif
46  dynamic_cast<KVINDRAReconDataAnalyser*>(gDataAnalyser)->SetTree(tree);
47  }
48 }
49 
50 
51 
54 
55 void KVINDRAEventSelector::Make(const Char_t* kvsname)
56 {
57  // Automatic generation of KVINDRAEventSelector-derived class for KaliVeda analysis
58 
59 #ifdef USING_ROOT6
60  KVClassFactory cf(kvsname, "User analysis class", "", kTRUE, "ROOT6KVINDRAEventSelectorTemplate");
61 #else
62  KVClassFactory cf(kvsname, "User analysis class", "", kTRUE, "KVINDRAEventSelectorTemplate");
63 #endif
64  cf.AddImplIncludeFile("KVINDRAReconNuc.h");
65  cf.AddImplIncludeFile("KVBatchSystem.h");
66  cf.AddImplIncludeFile("KVINDRA.h");
67 
68  cf.GenerateCode();
69 }
70 
71 
KVDataAnalyser * gDataAnalyser
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
const Bool_t kTRUE
Factory class for generating skeleton files for new classes.
void GenerateCode()
Generate header and implementation file for currently-defined class.
void AddImplIncludeFile(const Char_t *filename)
EProofMode GetProofMode() const
General purpose analysis class for TTree containing KVEvent objects.
virtual void Init(TTree *tree)
Base class for analysis of reconstructed INDRA events.
void Init(TTree *tree)
When using PROOF, need to set tree pointer in KVDataAnalyser.
virtual ~KVINDRAEventSelector()
Destructor.
static void Make(const Char_t *kvsname="MyOwnINDRASelector")
Automatic generation of KVINDRAEventSelector-derived class for KaliVeda analysis.
Manage analysis of reconstructed INDRA data.