KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRAEventSelector.cpp
1//Created by KVClassFactory on Thu Dec 15 16:01:29 2016
2//Author: John Frankland,,,
3
4#include "KVINDRAEventSelector.h"
5#include "KVINDRAReconDataAnalyser.h"
6#include "KVClassFactory.h"
7
9
10
11
12
14 : KVEventSelector(arg1), fCurrentRun(nullptr)
15{
16 SetBranchName("INDRAReconEvent");
17 SetEventsReadInterval(20000);
18}
19
20
21
22
25
30
31
32
35
37{
38 // When using PROOF, need to set tree pointer in KVDataAnalyser
40#ifdef WITH_CPP11
41 if (tree && gDataAnalyser->GetProofMode() != KVDataAnalyser::EProofMode::None) {
42#else
43 if (tree && gDataAnalyser->GetProofMode() != KVDataAnalyser::None) {
44#endif
45 dynamic_cast<KVINDRAReconDataAnalyser*>(gDataAnalyser)->SetTree(tree);
46 }
47}
48
49
50
53
55{
56 // Automatic generation of KVINDRAEventSelector-derived class for KaliVeda analysis
57
58#ifdef USING_ROOT6
59 KVClassFactory cf(kvsname, "User analysis class", "", kTRUE, "ROOT6KVINDRAEventSelectorTemplate");
60#else
61 KVClassFactory cf(kvsname, "User analysis class", "", kTRUE, "KVINDRAEventSelectorTemplate");
62#endif
63 cf.AddImplIncludeFile("KVINDRAReconNuc.h");
64 cf.AddImplIncludeFile("KVBatchSystem.h");
65 cf.AddImplIncludeFile("KVINDRA.h");
66
67 cf.GenerateCode();
68}
69
70
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)
EProofMode GetProofMode() const
General purpose analysis base class for TTree containing KVEvent objects.
void AddHisto(TH1 *histo)
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.
ClassImp(TPyArg)