NUSYS.h
Go to the documentation of this file.
1 #ifndef CAF_h
2 #define CAF_h
3 
4 #include "TFile.h"
5 #include "TTree.h"
7 
8 class CAF {
9 
10 public:
11  CAF( std::string filename, bool isGas = false );
12  ~CAF();
13  void fill();
14  void fillPOT();
15  void write();
16  void addRWbranch( int parId, std::string name, std::string wgt_var, std::vector<double> &vars );
17  void Print();
18  void setToBS();
19 
20  // Make ntuple variables public so they can be set from other file
21 
22  // configuration variables
23  int isFD, isFHC;
24  // event accounting
25  int run, subrun, event, ievt;
26 
27 
28 
29 
30  // reweights -- make sure big enough to hold all the variations for each knob, and all the knobs
31  // the names, and what they actually mean, are determined automatically from the fhicl input file
32  int nwgt[100];
33  double cvwgt[100];
34  double wgt[100][100];
35  bool iswgt[100];
36 
37  // store the GENIE record as a branch
39 
40  // meta
41  double pot;
43  int version;
44 
45  TFile * cafFile;
46  TTree * cafMVA;
47  TTree * cafPOT;
48  TTree * genie;
49 };
50 
51 #endif
52 
static QCString name
Definition: declinfo.cpp:673
void addRWbranch(int parId, std::string name, std::string wgt_var, std::vector< double > &vars)
int meta_subrun
Definition: NUSYS.h:42
std::string string
Definition: nybbler.cc:12
MINOS-style ntuple record. Each such ntuple record holds a generated EventRecord object. Ntuples of this type are intended for feeding GENIE events into other applications (for example the GEANT4 based MC generation framework of an experiment) if no direct interface exists.
bool iswgt[100]
Definition: NUSYS.h:35
CAF()
Definition: CAF.cpp:22
void fill()
genie::NtpMCEventRecord * mcrec
Definition: NUSYS.h:38
double cvwgt[100]
Definition: NUSYS.h:33
void fillPOT()
int subrun
Definition: NUSYS.h:25
int isFD
Definition: NUSYS.h:23
int ievt
Definition: NUSYS.h:25
int run
Definition: NUSYS.h:25
string filename
Definition: train.py:213
int isFHC
Definition: NUSYS.h:23
void write()
int meta_run
Definition: NUSYS.h:42
TFile * cafFile
The output TFile pointer */.
Definition: CAF.h:53
void Print()
int event
Definition: NUSYS.h:25
int version
Definition: NUSYS.h:43
Definition: CAF.h:12
int nwgt[100]
Definition: NUSYS.h:32
TTree * genie
Definition: NUSYS.h:48
~CAF()
Definition: CAF.cpp:34
TTree * cafMVA
The output TTree pointer */.
Definition: CAF.h:54
TTree * cafPOT
Definition: NUSYS.h:47
void setToBS()
double wgt[100][100]
Definition: NUSYS.h:34
double pot
Definition: NUSYS.h:41