////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Aug 10 16:11:24 2016 by ROOT version 5.34/34 // from TTree tof_eff/tof_eff // found on file: localdir/hd_root_011659.root ////////////////////////////////////////////////////////// #ifndef analtof1_h #define analtof1_h #include #include #include #include #include #include #include #include #include // Header file for the classes stored in the TTree if any. #include // Fixed size dimensions of array or collections stored in the TTree if any. class analtof1 : public TSelector { public : Int_t Hit_Count[2][45][2]; Float_t TRK_Count; TString RunNumber; int MCdata; TFile *OF; TH1F *zvertex; TH1F *ntofpoints; TH2F *pvsdx[45]; TH2F *pvsdy[45]; TH2F *pvsTOFdx ; TH2F *pvsTOFdy ; TH2F *proj_vs_nearest_H[20]; TH2F *proj_vs_nearest_V[20]; TH2F *proj_vs_nearest_H4goodV[20]; TH2F *proj_vs_nearest_V4goodH[20]; TH2F *xy_p_vs_dx[84][84]; TH2F *xy_p_vs_dy[84][84]; TH2F *xy; TH2F *xyQ_H_vs_V[84][84]; TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types Int_t PID_PDG; Float_t TrackVertexZ; TVector3 *TrackP3; UInt_t TrackCDCRings; UInt_t TrackFDCPlanes; UChar_t NumTOFPoints; Float_t ProjectedTOFX; Float_t ProjectedTOFY; UChar_t ProjectedTOFBar_Horizontal; UChar_t ProjectedTOFBar_Vertical; UChar_t NearestTOFHit_Horizontal; UChar_t NearestTOFHit_Vertical; Float_t NearestTOFPointDeltaX; Float_t NearestTOFPointDeltaY; UShort_t NearestTOFPointStatus; Bool_t IsMatchedToTrack; Float_t TOFPointDeltaT; Float_t TOFPointTimeFOM; Float_t TOFPointdEdX; // List of branches TBranch *b_PID_PDG; //! TBranch *b_TrackVertexZ; //! TBranch *b_TrackP3; //! TBranch *b_TrackCDCRings; //! TBranch *b_TrackFDCPlanes; //! TBranch *b_NumTOFPoints; //! TBranch *b_ProjectedTOFX; //! TBranch *b_ProjectedTOFY; //! TBranch *b_ProjectedTOFBar_Horizontal; //! TBranch *b_ProjectedTOFBar_Vertical; //! TBranch *b_NearestTOFHit_Horizontal; //! TBranch *b_NearestTOFHit_Vertical; //! TBranch *b_NearestTOFPointDeltaX; //! TBranch *b_NearestTOFPointDeltaY; //! TBranch *b_NearestTOFPointStatus; //! TBranch *b_IsMatchedToTrack; //! TBranch *b_TOFPointDeltaT; //! TBranch *b_TOFPointTimeFOM; //! TBranch *b_TOFPointdEdX; //! analtof1(TTree * /*tree*/ =0) : fChain(0) { } virtual ~analtof1() { } virtual Int_t Version() const { return 2; } virtual void Begin(TTree *tree); virtual void SlaveBegin(TTree *tree); virtual void Init(TTree *tree); virtual Bool_t Notify(); virtual Bool_t Process(Long64_t entry); virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; } virtual void SetOption(const char *option) { fOption = option; } virtual void SetObject(TObject *obj) { fObject = obj; } virtual void SetInputList(TList *input) { fInput = input; } virtual TList *GetOutputList() const { return fOutput; } virtual void SlaveTerminate(); virtual void Terminate(); ClassDef(analtof1,0); }; #endif #ifdef analtof1_cxx void analtof1::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 object pointer TrackP3 = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("PID_PDG", &PID_PDG, &b_PID_PDG); fChain->SetBranchAddress("TrackVertexZ", &TrackVertexZ, &b_TrackVertexZ); fChain->SetBranchAddress("TrackP3", &TrackP3, &b_TrackP3); fChain->SetBranchAddress("TrackCDCRings", &TrackCDCRings, &b_TrackCDCRings); fChain->SetBranchAddress("TrackFDCPlanes", &TrackFDCPlanes, &b_TrackFDCPlanes); fChain->SetBranchAddress("NumTOFPoints", &NumTOFPoints, &b_NumTOFPoints); fChain->SetBranchAddress("ProjectedTOFX", &ProjectedTOFX, &b_ProjectedTOFX); fChain->SetBranchAddress("ProjectedTOFY", &ProjectedTOFY, &b_ProjectedTOFY); fChain->SetBranchAddress("ProjectedTOFBar_Horizontal", &ProjectedTOFBar_Horizontal, &b_ProjectedTOFBar_Horizontal); fChain->SetBranchAddress("ProjectedTOFBar_Vertical", &ProjectedTOFBar_Vertical, &b_ProjectedTOFBar_Vertical); fChain->SetBranchAddress("NearestTOFHit_Horizontal", &NearestTOFHit_Horizontal, &b_NearestTOFHit_Horizontal); fChain->SetBranchAddress("NearestTOFHit_Vertical", &NearestTOFHit_Vertical, &b_NearestTOFHit_Vertical); fChain->SetBranchAddress("NearestTOFPointDeltaX", &NearestTOFPointDeltaX, &b_NearestTOFPointDeltaX); fChain->SetBranchAddress("NearestTOFPointDeltaY", &NearestTOFPointDeltaY, &b_NearestTOFPointDeltaY); fChain->SetBranchAddress("NearestTOFPointStatus", &NearestTOFPointStatus, &b_NearestTOFPointStatus); fChain->SetBranchAddress("IsMatchedToTrack", &IsMatchedToTrack, &b_IsMatchedToTrack); fChain->SetBranchAddress("TOFPointDeltaT", &TOFPointDeltaT, &b_TOFPointDeltaT); fChain->SetBranchAddress("TOFPointTimeFOM", &TOFPointTimeFOM, &b_TOFPointTimeFOM); fChain->SetBranchAddress("TOFPointdEdX", &TOFPointdEdX, &b_TOFPointdEdX); } Bool_t analtof1::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; } #endif // #ifdef analtof1_cxx