////////////////////////////////////////////////////////// // This class has been automatically generated on // Sat Apr 8 21:36:41 2017 by ROOT version 6.02/05 // from TTree SiPixelLorentzAngleTree_/SiPixel LorentzAngle tree // found on file: ../infiles/cosmics_mc/LATree_Cosmics17_Sim_1_1.root ////////////////////////////////////////////////////////// #ifndef SiPixelLorentzAngleTree__h #define SiPixelLorentzAngleTree__h #include #include #include // Header file for the classes stored in the TTree if any. class SiPixelLorentzAngleTree_ { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. const Int_t kMaxgamma = 1; // Declaration of leaf types Int_t run; ULong64_t event; Int_t lumiblock; Int_t bx; Int_t orbit; Int_t module; Int_t ladder; Int_t layer; Int_t isflipped; Float_t pt; Float_t eta; Float_t phi; Double_t chi2; Double_t ndof; Float_t trackhit_x; Float_t trackhit_y; Double_t trackhit_alpha; Double_t trackhit_beta; Double_t trackhit_gamma_; Float_t simhit_x; Float_t simhit_y; Double_t simhit_alpha; Double_t simhit_beta; Double_t simhit_gamma_; Int_t npix; Float_t rowpix[1000]; //[npix] Float_t colpix[1000]; //[npix] Float_t adc[1000]; //[npix] Float_t xpix[1000]; //[npix] Float_t ypix[1000]; //[npix] Float_t clust_x; Float_t clust_y; Float_t clust_charge; Int_t clust_size_x; Int_t clust_size_y; Int_t clust_maxPixelCol; Int_t clust_maxPixelRow; Int_t clust_minPixelCol; Int_t clust_minPixelRow; Float_t rechit_x; Float_t rechit_y; // List of branches TBranch *b_run; //! TBranch *b_event; //! TBranch *b_lumiblock; //! TBranch *b_bx; //! TBranch *b_orbit; //! TBranch *b_module; //! TBranch *b_ladder; //! TBranch *b_layer; //! TBranch *b_isflipped; //! TBranch *b_pt; //! TBranch *b_eta; //! TBranch *b_phi; //! TBranch *b_chi2; //! TBranch *b_ndof; //! TBranch *b_trackhit; //! TBranch *b_simhit; //! TBranch *b_npix; //! TBranch *b_rowpix; //! TBranch *b_colpix; //! TBranch *b_adc; //! TBranch *b_xpix; //! TBranch *b_ypix; //! TBranch *b_clust; //! TBranch *b_rechit; //! SiPixelLorentzAngleTree_(TTree *tree=0); virtual ~SiPixelLorentzAngleTree_(); 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(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; #endif #ifdef SiPixelLorentzAngleTree__cxx SiPixelLorentzAngleTree_::SiPixelLorentzAngleTree_(TTree *tree) : fChain(0) { // if parameter tree is not specified (or zero), connect the file // used to generate this class and read the Tree. if (tree == 0) { TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("../infiles/cosmics_mc/LATree_Cosmics17_Sim_1_1.root"); if (!f || !f->IsOpen()) { f = new TFile("../infiles/cosmics_mc/LATree_Cosmics17_Sim_1_1.root"); } f->GetObject("SiPixelLorentzAngleTree_",tree); } Init(tree); } SiPixelLorentzAngleTree_::~SiPixelLorentzAngleTree_() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t SiPixelLorentzAngleTree_::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t SiPixelLorentzAngleTree_::LoadTree(Long64_t entry) { // Set the environment to read one entry if (!fChain) return -5; Long64_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->GetTreeNumber() != fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void SiPixelLorentzAngleTree_::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the branch addresses and branch // pointers of the tree will be set. // It is normally not necessary to make changes to the generated // code, but the routine can be extended by the user if needed. // Init() will be called many times when running on PROOF // (once per file to be processed). // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("run", &run, &b_run); fChain->SetBranchAddress("event", &event, &b_event); fChain->SetBranchAddress("lumiblock", &lumiblock, &b_lumiblock); fChain->SetBranchAddress("bx", &bx, &b_bx); fChain->SetBranchAddress("orbit", &orbit, &b_orbit); fChain->SetBranchAddress("module", &module, &b_module); fChain->SetBranchAddress("ladder", &ladder, &b_ladder); fChain->SetBranchAddress("layer", &layer, &b_layer); fChain->SetBranchAddress("isflipped", &isflipped, &b_isflipped); fChain->SetBranchAddress("pt", &pt, &b_pt); fChain->SetBranchAddress("eta", &eta, &b_eta); fChain->SetBranchAddress("phi", &phi, &b_phi); fChain->SetBranchAddress("chi2", &chi2, &b_chi2); fChain->SetBranchAddress("ndof", &ndof, &b_ndof); fChain->SetBranchAddress("trackhit", &trackhit_x, &b_trackhit); fChain->SetBranchAddress("simhit", &simhit_x, &b_simhit); fChain->SetBranchAddress("npix", &npix, &b_npix); fChain->SetBranchAddress("rowpix", rowpix, &b_rowpix); fChain->SetBranchAddress("colpix", colpix, &b_colpix); fChain->SetBranchAddress("adc", adc, &b_adc); fChain->SetBranchAddress("xpix", xpix, &b_xpix); fChain->SetBranchAddress("ypix", ypix, &b_ypix); fChain->SetBranchAddress("clust", &clust_x, &b_clust); fChain->SetBranchAddress("rechit", &rechit_x, &b_rechit); Notify(); } Bool_t SiPixelLorentzAngleTree_::Notify() { // The Notify() function is called when a new file is opened. This // can be either for a new TTree in a TChain or when when a new TTree // is started when using PROOF. It is normally not necessary to make changes // to the generated code, but the routine can be extended by the // user if needed. The return value is currently not used. return kTRUE; } void SiPixelLorentzAngleTree_::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t SiPixelLorentzAngleTree_::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef SiPixelLorentzAngleTree__cxx