Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:12:20

0001 //////////////////////////////////////////////////////////
0002 // This class has been automatically generated on
0003 // Thu Mar 28 06:22:37 2024 by ROOT version 6.26/06
0004 // from TTree tree/tree evt VTX xy
0005 // found on file: evt_XY_tree.root
0006 //////////////////////////////////////////////////////////
0007 
0008 #ifndef ReadEvtXY_h
0009 #define ReadEvtXY_h
0010 
0011 #include <iostream>
0012 #include <fstream>
0013 using namespace std;
0014 
0015 #include <TROOT.h>
0016 #include <TChain.h>
0017 #include <TFile.h>
0018 
0019 #include <TH2.h>
0020 #include <TStyle.h>
0021 #include <TCanvas.h>
0022 
0023 // Header file for the classes stored in the TTree if any.
0024 #include <vector>
0025 
0026 class ReadEvtXY {
0027 public :
0028    TTree          *fChain;   //!pointer to the analyzed TTree or TChain
0029    Int_t           fCurrent; //!current Tree number in a TChain
0030 
0031 
0032    // Declaration of leaf types
0033    Int_t           eID;
0034    Int_t           NClus;
0035    Long64_t        bco_full;
0036    Double_t        true_vtx_x;
0037    Double_t        true_vtx_y;
0038    Double_t        true_vtx_z;
0039    vector<double>  *reco_vtx_x;
0040    vector<double>  *reco_vtx_y;
0041    Double_t        reco_vtx_z;
0042    Double_t        reco_vtx_z_width;
0043    vector<double>  *reco_vtx_x_stddev;
0044    vector<double>  *reco_vtx_y_stddev;
0045    vector<double>  *binwidth_x;
0046    vector<double>  *binwidth_y;
0047 
0048    // List of branches
0049    TBranch        *b_eID;   //!
0050    TBranch        *b_NClus;   //!
0051    TBranch        *b_bco_full;   //!
0052    TBranch        *b_true_vtx_x;   //!
0053    TBranch        *b_true_vtx_y;   //!
0054    TBranch        *b_true_vtx_z;   //!
0055    TBranch        *b_reco_vtx_x;   //!
0056    TBranch        *b_reco_vtx_y;   //!
0057    TBranch        *b_reco_vtx_z;   //!
0058    TBranch        *b_reco_vtx_z_width;   //!
0059    TBranch        *b_reco_vtx_x_stddev;   //!
0060    TBranch        *b_reco_vtx_y_stddev;   //!
0061    TBranch        *b_binwidth_x;   //!
0062    TBranch        *b_binwidth_y;   //!
0063 
0064    ReadEvtXY(TTree *tree=0);
0065    virtual ~ReadEvtXY();
0066    virtual Int_t    Cut(Long64_t entry);
0067    virtual Int_t    GetEntry(Long64_t entry);
0068    virtual Long64_t LoadTree(Long64_t entry);
0069    virtual void     Init(TTree *tree);
0070    virtual void     Loop();
0071    virtual Bool_t   Notify();
0072    virtual void     Show(Long64_t entry = -1);
0073 };
0074 
0075 #endif
0076 
0077