Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
protoDUNE_dEdx_calib Class Reference

#include <protoDUNE_dEdx_calib.h>

Public Member Functions

 protoDUNE_dEdx_calib (TTree *tree=0)
 
virtual ~protoDUNE_dEdx_calib ()
 
virtual Int_t Cut (Long64_t entry)
 
virtual Int_t GetEntry (Long64_t entry)
 
virtual Long64_t LoadTree (Long64_t entry)
 
virtual void Init (TTree *tree)
 
virtual void Loop (int hitplane, double norm_factor, double calib_factor)
 
void LoopLite (std::vector< double > &norm_factors, std::vector< std::vector< double >> &calib_factors, TFile &outfile)
 
void LoopMIP (std::vector< double > &norm_factors, std::vector< std::vector< double >> &calib_factors, TFile &outfile)
 
virtual Bool_t Notify ()
 
virtual void Show (Long64_t entry=-1)
 
void GetEFMaps (TFile *ef)
 
void SetCaloMaps (const fhicl::ParameterSet &pset)
 

Public Attributes

TTree * fChain
 
Int_t fCurrent
 pointer to the analyzed TTree or TChain More...
 
Int_t event
 current Tree number in a TChain More...
 
Double_t evttime
 
Int_t run
 
Int_t subrun
 
Int_t year_month_date
 
Int_t hour_min_sec
 
Int_t cross_trks
 
Int_t stopping_trks
 
Int_t all_trks
 
Int_t unbroken_trks
 
Float_t trackthetaxz [30]
 
Float_t trackthetayz [30]
 
Float_t trkstartx [30]
 
Float_t trkstarty [30]
 
Float_t trkstartz [30]
 
Float_t trkendx [30]
 
Float_t trkendy [30]
 
Float_t trkendz [30]
 
Float_t trklen [30]
 
Float_t peakT_max [30]
 
Float_t peakT_min [30]
 
Int_t TrkID [30]
 
Float_t trkstartcosxyz [30][3]
 
Float_t trkendcosxyz [30][3]
 
Int_t ntrkhits [30][3]
 
Float_t trkdqdx [30][3][3000]
 
Float_t trkdedx [30][3][3000]
 
Float_t trkresrange [30][3][3000]
 
Float_t trkhitx [30][3][3000]
 
Float_t trkhity [30][3][3000]
 
Float_t trkhitz [30][3][3000]
 
Float_t trkpitch [30][3][3000]
 
Float_t dist_min [30]
 
Int_t adjacent_hits [30]
 
Int_t lastwire [30]
 
Float_t lastpeakt [30]
 
Int_t endtpc [30]
 
TBranch * b_event
 
TBranch * b_evttime
 
TBranch * b_run
 
TBranch * b_surbrun
 
TBranch * b_year_month_date
 
TBranch * b_hour_min_sec
 
TBranch * b_cross_trks
 
TBranch * b_stopping_trks
 
TBranch * b_all_trks
 
TBranch * b_unbroken_trks
 
TBranch * b_trackthetaxz
 
TBranch * b_trackthetayz
 
TBranch * b_trkstartx
 
TBranch * b_trkstarty
 
TBranch * b_trkstartz
 
TBranch * b_trkendx
 
TBranch * b_trkendy
 
TBranch * b_trkendz
 
TBranch * b_trklen
 
TBranch * b_peakT_max
 
TBranch * b_peakT_min
 
TBranch * b_TrkID
 
TBranch * b_trkstartcosxyz
 
TBranch * b_trkendcosxyz
 
TBranch * b_ntrkhits
 
TBranch * b_trkdqdx
 
TBranch * b_trkdedx
 
TBranch * b_trkresrange
 
TBranch * b_trkhitx
 
TBranch * b_trkhity
 
TBranch * b_trkhitz
 
TBranch * b_trkpitch
 
TBranch * b_dist_min
 
TBranch * b_adjacent_hits
 
TBranch * b_lastwire
 
TBranch * b_lastpeakt
 
TBranch * b_endtpc
 

Private Member Functions

float tot_Ef (float xval, float yval, float zval)
 

Private Attributes

TH3F * xneg
 
TH3F * yneg
 
TH3F * zneg
 
TH3F * xpos
 
TH3F * ypos
 
TH3F * zpos
 
TFile * fXFile
 
TFile * fYZFile
 
std::vector< TH3F * > pos_hists
 
std::vector< TH3F * > neg_hists
 

Detailed Description

Definition at line 19 of file protoDUNE_dEdx_calib.h.

Constructor & Destructor Documentation

protoDUNE_dEdx_calib::protoDUNE_dEdx_calib ( TTree *  tree = 0)
virtual protoDUNE_dEdx_calib::~protoDUNE_dEdx_calib ( )
virtual

Member Function Documentation

virtual Int_t protoDUNE_dEdx_calib::Cut ( Long64_t  entry)
virtual
void protoDUNE_dEdx_calib::GetEFMaps ( TFile *  ef)
virtual Int_t protoDUNE_dEdx_calib::GetEntry ( Long64_t  entry)
virtual
virtual void protoDUNE_dEdx_calib::Init ( TTree *  tree)
virtual
virtual Long64_t protoDUNE_dEdx_calib::LoadTree ( Long64_t  entry)
virtual
virtual void protoDUNE_dEdx_calib::Loop ( int  hitplane,
double  norm_factor,
double  calib_factor 
)
virtual
void protoDUNE_dEdx_calib::LoopLite ( std::vector< double > &  norm_factors,
std::vector< std::vector< double >> &  calib_factors,
TFile &  outfile 
)
void protoDUNE_dEdx_calib::LoopMIP ( std::vector< double > &  norm_factors,
std::vector< std::vector< double >> &  calib_factors,
TFile &  outfile 
)
virtual Bool_t protoDUNE_dEdx_calib::Notify ( )
virtual
void protoDUNE_dEdx_calib::SetCaloMaps ( const fhicl::ParameterSet pset)
inline

Definition at line 121 of file protoDUNE_dEdx_calib.h.

121  {
122  std::string x_filename = pset.get<std::string>("XCaloFile");
123  fXFile = new TFile(x_filename.c_str(), "OPEN");
124  std::string yz_filename = pset.get<std::string>("YZCaloFile");
125  fYZFile = new TFile(yz_filename.c_str(), "OPEN");
126  };
std::string string
Definition: nybbler.cc:12
T get(std::string const &key) const
Definition: ParameterSet.h:271
virtual void protoDUNE_dEdx_calib::Show ( Long64_t  entry = -1)
virtual
float protoDUNE_dEdx_calib::tot_Ef ( float  xval,
float  yval,
float  zval 
)
private

Member Data Documentation

Int_t protoDUNE_dEdx_calib::adjacent_hits[30]

Definition at line 60 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::all_trks

Definition at line 35 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_adjacent_hits

Definition at line 99 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_all_trks

Definition at line 74 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_cross_trks

Definition at line 72 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_dist_min

Definition at line 98 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_endtpc

Definition at line 102 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_event

Definition at line 66 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_evttime

Definition at line 67 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_hour_min_sec

Definition at line 71 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_lastpeakt

Definition at line 101 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_lastwire

Definition at line 100 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_ntrkhits

Definition at line 90 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_peakT_max

Definition at line 85 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_peakT_min

Definition at line 86 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_run

Definition at line 68 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_stopping_trks

Definition at line 73 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_surbrun

Definition at line 69 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trackthetaxz

Definition at line 76 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trackthetayz

Definition at line 77 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkdedx

Definition at line 92 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkdqdx

Definition at line 91 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkendcosxyz

Definition at line 89 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkendx

Definition at line 81 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkendy

Definition at line 82 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkendz

Definition at line 83 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkhitx

Definition at line 94 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkhity

Definition at line 95 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkhitz

Definition at line 96 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_TrkID

Definition at line 87 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trklen

Definition at line 84 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkpitch

Definition at line 97 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkresrange

Definition at line 93 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkstartcosxyz

Definition at line 88 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkstartx

Definition at line 78 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkstarty

Definition at line 79 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_trkstartz

Definition at line 80 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_unbroken_trks

Definition at line 75 of file protoDUNE_dEdx_calib.h.

TBranch* protoDUNE_dEdx_calib::b_year_month_date

Definition at line 70 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::cross_trks

Definition at line 33 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::dist_min[30]

Definition at line 59 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::endtpc[30]

Definition at line 63 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::event

current Tree number in a TChain

Definition at line 27 of file protoDUNE_dEdx_calib.h.

Double_t protoDUNE_dEdx_calib::evttime

Definition at line 28 of file protoDUNE_dEdx_calib.h.

TTree* protoDUNE_dEdx_calib::fChain

Definition at line 21 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::fCurrent

pointer to the analyzed TTree or TChain

Definition at line 22 of file protoDUNE_dEdx_calib.h.

TFile* protoDUNE_dEdx_calib::fXFile
private

Definition at line 136 of file protoDUNE_dEdx_calib.h.

TFile * protoDUNE_dEdx_calib::fYZFile
private

Definition at line 136 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::hour_min_sec

Definition at line 32 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::lastpeakt[30]

Definition at line 62 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::lastwire[30]

Definition at line 61 of file protoDUNE_dEdx_calib.h.

std::vector<TH3F*> protoDUNE_dEdx_calib::neg_hists
private

Definition at line 138 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::ntrkhits[30][3]

Definition at line 51 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::peakT_max[30]

Definition at line 46 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::peakT_min[30]

Definition at line 47 of file protoDUNE_dEdx_calib.h.

std::vector<TH3F*> protoDUNE_dEdx_calib::pos_hists
private

Definition at line 138 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::run

Definition at line 29 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::stopping_trks

Definition at line 34 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::subrun

Definition at line 30 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trackthetaxz[30]

Definition at line 37 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trackthetayz[30]

Definition at line 38 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkdedx[30][3][3000]

Definition at line 53 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkdqdx[30][3][3000]

Definition at line 52 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkendcosxyz[30][3]

Definition at line 50 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkendx[30]

Definition at line 42 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkendy[30]

Definition at line 43 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkendz[30]

Definition at line 44 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkhitx[30][3][3000]

Definition at line 55 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkhity[30][3][3000]

Definition at line 56 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkhitz[30][3][3000]

Definition at line 57 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::TrkID[30]

Definition at line 48 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trklen[30]

Definition at line 45 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkpitch[30][3][3000]

Definition at line 58 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkresrange[30][3][3000]

Definition at line 54 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkstartcosxyz[30][3]

Definition at line 49 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkstartx[30]

Definition at line 39 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkstarty[30]

Definition at line 40 of file protoDUNE_dEdx_calib.h.

Float_t protoDUNE_dEdx_calib::trkstartz[30]

Definition at line 41 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::unbroken_trks

Definition at line 36 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::xneg
private

Definition at line 126 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::xpos
private

Definition at line 133 of file protoDUNE_dEdx_calib.h.

Int_t protoDUNE_dEdx_calib::year_month_date

Definition at line 31 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::yneg
private

Definition at line 131 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::ypos
private

Definition at line 134 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::zneg
private

Definition at line 132 of file protoDUNE_dEdx_calib.h.

TH3F* protoDUNE_dEdx_calib::zpos
private

Definition at line 135 of file protoDUNE_dEdx_calib.h.


The documentation for this class was generated from the following file: