KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVReconEventSelector.cpp
Go to the documentation of this file.
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 #ifdef WITH_CPP11
21  if (tree && gDataAnalyser->GetProofMode() != KVDataAnalyser::EProofMode::None) {
22 #else
24 #endif
25  dynamic_cast<KVDataSetAnalyser*>(gDataAnalyser)->SetTree(tree);
26  }
27 }
28 
29 
30 
40 
41 void KVReconEventSelector::Make(const Char_t* kvsname)
42 {
43  // Generate a new recon data analysis selector class
44  //
45  // This will be based on a template file which may change as a function of the current
46  // dataset, if a variable
47  //~~~~
48  //[dataset].ReconEventSelector.Template
49  //~~~~
50  // is defined with the name of the template
51 
52  KVClassFactory cf(kvsname, "Analysis of reconstructed events", "",
53  kTRUE,
54  gDataSet->GetDataSetEnv("ReconEventSelector.Template", "ROOT6ReconDataSelectorTemplate"));
55 
56  cf.AddImplIncludeFile("KVReconstructedNucleus.h");
57  cf.AddImplIncludeFile("KVBatchSystem.h");
58 
59  cf.GenerateCode();
60 }
61 
62 
63 
KVDataAnalyser * gDataAnalyser
KVDataSet * gDataSet
Definition: KVDataSet.cpp:30
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
Pilots user analysis of experimental data.
const Char_t * GetDataSetEnv(const Char_t *type, const Char_t *defval="") const
Definition: KVDataSet.cpp:757
virtual void Init(TTree *tree)
Base class for user analysis of reconstructed data.
static void Make(const Char_t *kvsname)