// // evio2root.h // #include #include #include #include TFile *ROOTfile; TProfile *ch0; TProfile *ch1; TProfile *ch2; TProfile *ch3; TProfile *ch4; TProfile *ch5; TProfile *ch6; TProfile *ch7; TProfile *ch8; TProfile *ch9; TProfile *ch10; TProfile *ch11; TProfile *ch12; TProfile *ch13; TProfile *ch14; TProfile *ch15; TH1F *pc0; TH1F *pc1; TH1F *pc2; TH1F *pc3; TH1F *pc4; TH1F *pc5; TH1F *pc6; TH1F *pc7; TH1F *pc8; TH1F *pc9; TH1F *pc10; TH1F *pc11; TH1F *pc12; TH1F *pc13; TH1F *pc14; TH1F *pc15; TH1F *ach1; TH1F *ach2; TH1F *time_diff; TTree *atree; int runNo; int eventNo; short int amax[16]; short int amin[16]; short int tmax[16]; short int tmin[16]; short int trace0[125]; short int trace1[125]; short int trace2[125]; short int trace3[125]; short int trace4[125]; short int trace12[125]; short int trace13[125]; short int trace14[125]; short int trace15[125]; int tcount; short int tchip[30]; short int tchan[30]; short int ttime[30]; TProfile *ch[16][50]; int verbose = 0; class Cut2d { public: Cut2d(Int_t c0, Int_t c1, Double_t x0, Double_t y0, Double_t amajor, Double_t aminor, Double_t theta, Int_t veto); Int_t Pass(short int *alist) const; private: Int_t fChan[2]; Double_t fOrigin[2]; Double_t fAxis[2]; Double_t fThetaR; Int_t fReject; };