GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TimeWalkSelector.h
Go to the documentation of this file.
1//////////////////////////////////////////////////////////
2// This class has been automatically generated on
3// Tue Oct 25 13:18:27 2016 by ROOT version 5.34/24
4// from TTree FragmentTree/FragmentTree
5// found on file: fragment07844_000.root
6//////////////////////////////////////////////////////////
7
8#ifndef TimeWalkSelector_h
9#define TimeWalkSelector_h
10
11#include "TChain.h"
12#include "TFile.h"
13
14#include "TH1.h"
15#include "TH2.h"
16#include "THnSparse.h"
17
18// Header file for the classes stored in the TTree if any.
19#include "TGriffin.h"
20#include "TSceptar.h"
21#include "TGRSISelector.h"
22
23// Fixed size dimensions of array or collections stored in the TTree if any.
24
25class TimeWalkSelector : public TGRSISelector { // Must be same name as .C and .h
26
27public:
28 TGriffin* fGrif; // Pointers to spot that events will be
30
31 explicit TimeWalkSelector(TTree* /*tree*/ = nullptr) : TGRSISelector(), fGrif(nullptr), fScep(nullptr)
32 {
33 SetOutputPrefix("TimeWalk"); // Changes prefix of output file
34 }
35 // These functions are expected to exist
36 virtual ~TimeWalkSelector() = default;
37 virtual Int_t Version() const { return 2; }
38 void CreateHistograms();
39 void FillHistograms();
40 void InitializeBranches(TTree* tree);
41
42 ClassDef(TimeWalkSelector, 2); // Makes ROOT happier
43};
44
45#endif
46
47#ifdef TimeWalkSelector_cxx
49{
50 if(!tree) return;
51 if(tree->SetBranchAddress("TGriffin", &fGrif) == TTree::kMissingBranch) {
52 fGrif = new TGriffin;
53 }
54 if(tree->SetBranchAddress("TSceptar", &fScep) == TTree::kMissingBranch) {
55 fScep = new TSceptar;
56 }
57}
58
59#endif // #ifdef TimeWalkSelector_cxx
void SetOutputPrefix(const char *prefix)
virtual Int_t Version() const
void InitializeBranches(TTree *tree)
virtual ~TimeWalkSelector()=default
TimeWalkSelector(TTree *=nullptr)
ClassDef(TimeWalkSelector, 2)