GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
CrossTalk.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 CrossTalk_h
9#define CrossTalk_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#include "TGriffinBgo.h"
23// Fixed size dimensions of array or collections stored in the TTree if any.
24
25class CrossTalk : public TGRSISelector {
26
27public:
31
32 explicit CrossTalk(TTree* /*tree*/ = 0) : TGRSISelector(), fGrif(0), fScep(0), fGriffinBgo(0) { SetOutputPrefix("Crosstalk"); }
33 virtual ~CrossTalk() = default;
34 virtual Int_t Version() const { return 2; }
35 void CreateHistograms();
36 void FillHistograms();
37 void InitializeBranches(TTree* tree);
38
40};
41
42#endif
43
44#ifdef CrossTalk_cxx
45void CrossTalk::InitializeBranches(TTree* tree)
46{
47 if(!tree) return;
48 if(tree->SetBranchAddress("TGriffin", &fGrif) == TTree::kMissingBranch) {
49 fGrif = new TGriffin;
50 }
51 if(tree->SetBranchAddress("TSceptar", &fScep) == TTree::kMissingBranch) {
52 fScep = new TSceptar;
53 }
54 if(tree->SetBranchAddress("TGriffinBgo", &fGriffinBgo) == TTree::kMissingBranch) {
56 }
57}
58
59#endif // #ifdef CrossTalk_cxx
ClassDef(CrossTalk, 2)
CrossTalk(TTree *=0)
Definition CrossTalk.h:32
void InitializeBranches(TTree *tree)
TGriffinBgo * fGriffinBgo
Definition CrossTalk.h:30
void FillHistograms()
Definition CrossTalk.C:68
virtual Int_t Version() const
Definition CrossTalk.h:34
virtual ~CrossTalk()=default
TGriffin * fGrif
Definition CrossTalk.h:28
void CreateHistograms()
Definition CrossTalk.C:30
TSceptar * fScep
Definition CrossTalk.h:29
void SetOutputPrefix(const char *prefix)