12#ifndef PixelNtupleTracks_h
13#define PixelNtupleTracks_h
282 virtual void Show(Long64_t entry = -1);
301 double tan_angle_corr = tan_angle - (*PixTLorPhi)[ihit];
302 return 180. * atan(tan_angle_corr) /
M_PI;
306 return 180. * (*PixTrkAngle)[ihit] /
M_PI;
310 return 180.*20.0 /
M_PI;
339#ifdef PixelNtupleTracks_cxx
343 mychain =
new TChain(collection.c_str());
344 if(
input.find(
".root") != std::string::npos ){
345 if(mychain->AddFile(
input.c_str()) == 0){
346 std::cout <<
"Failing to add " <<
input <<
347 " to the chain..." << std::endl;
351 std::ifstream myfile(
input.c_str());
352 if (myfile.is_open()){
354 getline(myfile,input);
355 if(myfile.eof())
break;
356 mychain->AddFile(
input.c_str());
360 std::cout <<
"Failing to open " <<
input <<
"..." << std::endl;
377 return fChain->GetEntry(entry);
384 Long64_t centry =
fChain->LoadTree(entry);
385 if (centry < 0)
return centry;
386 if (!
fChain->InheritsFrom(TChain::Class()))
return centry;
706 for (Long64_t jentry=0; jentry<
nentries;jentry++) {
708 if (ientry < 0)
break;
double GetMicronErrPhi(int ihit)
std::vector< int > * PixDeltaCol
double GetOmegaEta(int ihit)
std::vector< float > * PixCharge
Int_t fCurrent
pointer to the analyzed TTree or TChain
std::vector< float > * PixPullPhi
std::vector< int > * PixPhiModule
double GetMicronErrEta(int ihit)
TBranch * b_number_Pixel_measurements
std::vector< float > * PixOmegaEta
double GetMicronDigResPhi(int ihit)
std::vector< float > * PixTrkPt
double GetMicronResEta(int ihit)
std::vector< float > * PixPullEta
std::vector< float > * PixTLorPhi
std::vector< int > * PixDeltaRow
double GetOmegaPhi(int ihit)
std::vector< float > * PixBiasVolt
Float_t RecTheta
current Tree number in a TChain
Double_t GetPullPhi(int ihit)
float GetCharge(int ihit)
virtual void Show(Long64_t entry=-1)
double GetTrkEta(int ihit)
std::vector< float > * PixResEta
double GetLorAlpha(int ihit)
int GetPhiModule(int ihit)
std::vector< float > * PixTrkEta
virtual Long64_t LoadTree(Long64_t entry)
double GetGeVpT(int ihit)
TBranch * b_Reconstructed_theta
std::vector< float > * PixErrPhi
double GetAlphaMeas(int ihit)
double GetMicronDigResEta(int ihit)
int GetEtaModule(int ihit)
PixelNtupleTracks(std::string input, std::string collection)
TBranch * b_number_SCT_measurements
double GetDeltaRow(int ihit)
Double_t GetPullEta(int ihit)
std::vector< float > * PixErrEta
std::vector< float > * PixDigResPhi
TBranch * b_Reconstructed_Q_over_p
TBranch * b_number_TRT_measurements
double GetRealAlpha(int ihit)
std::vector< int > * PixEtaModule
virtual ~PixelNtupleTracks()
double GetBiasVolt(int ihit)
double GetMicronResPhi(int ihit)
std::vector< int > * PixDetType
std::vector< float > * PixTrkAngle
std::vector< float > * PixResPhi
std::vector< float > * PixOmegaPhi
double GetDeltaCol(int ihit)
virtual Int_t GetEntry(Long64_t entry)
std::vector< float > * PixDigResEta