File indexing completed on 2025-08-06 08:12:20
0001
0002
0003
0004
0005
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
0024 #include <vector>
0025
0026 class ReadEvtXY {
0027 public :
0028 TTree *fChain;
0029 Int_t fCurrent;
0030
0031
0032
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
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