GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
AlphanumericSelector.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 AlphanumericSelector_h
9#define AlphanumericSelector_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 "TGRSISelector.h"
20#include "TGriffin.h"
21
22// Fixed size dimensions of array or collections stored in the TTree if any.
23
24class AlphanumericSelector : public TGRSISelector { // Must be same name as .C and .h
25
26public:
27 TGriffin* fGrif; // Pointers to spot that events will be
28
29 explicit AlphanumericSelector(TTree* /*tree*/ = nullptr) : TGRSISelector(), fGrif(nullptr)
30 {
31 SetOutputPrefix("Alphanumeric"); // Changes prefix of output file
32 }
33 // These functions are expected to exist
34 virtual ~AlphanumericSelector() = default;
35 virtual Int_t Version() const { return 2; }
36 void CreateHistograms();
37 void FillHistograms();
38 void InitializeBranches(TTree* tree);
39
40 ClassDef(AlphanumericSelector, 2); // Makes ROOT happier
41};
42
43#endif
44
45#ifdef AlphanumericSelector_cxx
47{
48 if(!tree) return;
49 if(tree->SetBranchAddress("TGriffin", &fGrif) == TTree::kMissingBranch) {
50 fGrif = new TGriffin;
51 }
52}
53
54#endif // #ifdef AlphanumericSelector_cxx
virtual Int_t Version() const
AlphanumericSelector(TTree *=nullptr)
virtual ~AlphanumericSelector()=default
ClassDef(AlphanumericSelector, 2)
void InitializeBranches(TTree *tree)
void SetOutputPrefix(const char *prefix)