KaliVeda
Toolkit for HIC analysis
KVReconEventSelector.cpp
1 //Created by KVClassFactory on Thu Jul 19 15:38:10 2018
2 //Author: eindra
3 
4 #include "KVReconEventSelector.h"
5 
6 #include <KVClassFactory.h>
7 #include <KVReconDataAnalyser.h>
8 
10 
11 
12 
13 
17 {
18  // When using PROOF, need to set tree pointer in KVDataAnalyser
20  if (tree && gDataAnalyser->GetProofMode() != KVDataAnalyser::EProofMode::None) {
21  gDataAnalyser->SetAnalysedTree(tree);
22  }
23 }
24 
25 
26 
36 
37 void KVReconEventSelector::Make(const Char_t* kvsname)
38 {
39  // Generate a new recon data analysis selector class
40  //
41  // This will be based on a template file which may change as a function of the current
42  // dataset, if a variable
43  //~~~~
44  //[dataset].ReconEventSelector.Template
45  //~~~~
46  // is defined with the name of the template
47 
48  KVClassFactory cf(kvsname, "Analysis of reconstructed events", "",
49  kTRUE,
50  gDataSet->GetDataSetEnv("ReconEventSelector.Template", "ROOT6ReconDataSelectorTemplate"));
51 
52  cf.AddImplIncludeFile("KVReconstructedNucleus.h");
53  cf.AddImplIncludeFile("KVBatchSystem.h");
54 
55  cf.GenerateCode();
56 }
57 
58 
59 
char Char_t
constexpr 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)
virtual void SetAnalysedTree(TTree *)
EProofMode GetProofMode() const
const Char_t * GetDataSetEnv(const Char_t *type, const Char_t *defval="") const
Definition: KVDataSet.cpp:767
virtual void Init(TTree *tree)
Base class for user analysis of reconstructed data.
static void Make(const Char_t *kvsname)
ClassImp(TPyArg)