LIDTrainingDedx.h
Go to the documentation of this file.
1 #ifndef LIDTrainingDedx_h
2 #define LIDTrainingDedx_h
3 
4 #include <iostream>
5 
6 class TH1D;
7 class TChain;
8 
9 namespace slidt{
10 
11  static const int kNumXYRegion = 4;
12  static const int kNumEnergyBin = 11;
13  static const int kNumLongitudinalPlane = 200;
14  static const int kNumTransversePlane = 20;
15  static const double kEnergyBins[] = {0.00, 0.25, 0.75, 1.25, 1.75, 2.25, 2.75, 3.25, 3.75, 4.25, 4.75, 5.25};
16 
17 
18  void FillHists( const char* infnames,
19  const char* treename,
20  const char* outDir,
21  const int inPdg,
22  const float inDangLower,
23  const float inDangUpper,
24  const int* inNuPdg = NULL,
25  const int* inNuMode = NULL,
26  const int* inNuCC = NULL,
27  const double* eTrueFrac = NULL);
28 
29 
30  TChain *fChain;
31 
34 
41  double showerStart[3];
42  double showerStop[3];
43  double showerPlaneDedx[200];
44  double showerTransCellDedx[20];
45  double showerEnergy;
46  double showerTrueP4[4];
47  double showerDir[3];
48  double showerIsFid;
49 
50  bool fActivated = false;
51  bool fInitialized = false;
52  void ActivateBranches();
53  void SaveHists( const int inPdg,
54  const std::string outDir,
55  const int* inNuMode=NULL );
56  void InitializeHists();
57  void Reset();
58  // };
59 
60 }// end of namespace
61 
62 #endif
double showerPlaneDedx[200]
TH1D * htransdedx[kNumXYRegion][kNumEnergyBin][kNumTransversePlane]
void InitializeHists()
static const double kEnergyBins[]
void SaveHists(const int inPdg, const std::string outDir, const int *inNuMode)
int showerTruePdg
int showerTrueNuCCNC
static const int kNumTransversePlane
double showerTrueDang
double showerDir[3]
std::string outDir
void FillHists(const char *inFnames, const char *inTreename, const char *outDir, const int inPdg, const float inDangLower, const float inDangUpper, const int *inNuPdg, const int *inNuMode, const int *inNuCC, const double *eTrueFrac)
TH1D * hlongdedx[kNumXYRegion][kNumEnergyBin][kNumLongitudinalPlane]
bool fInitialized
int showerTrueNuPdg
void Reset()
static const int kNumEnergyBin
TChain * fChain
int showerNPlane
double showerEnergy
void ActivateBranches()
int showerTrueNuMode
bool fActivated
double showerTrueP4[4]
double showerStop[3]
double showerStart[3]
double showerIsFid
double showerTransCellDedx[20]
static const int kNumLongitudinalPlane
static const int kNumXYRegion
enum BeamMode string