////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Oct 3 07:49:45 2011 by ROOT version 5.26/00e // from TTree FadcStuff/Fadc stuff // found on file: ROC_TEST_196.root ////////////////////////////////////////////////////////// #ifndef FadcStuff_h #define FadcStuff_h #include #include #include #include #include #include #include "EllipticalCut.h" class FadcStuff : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types Int_t runNo; Int_t eventNo; #if USE_EXTENDED_FADCSTUFF_TREE Short_t amax[16]; Short_t amin[16]; Short_t tmax[16]; Short_t tmin[16]; #else Int_t amax[16]; Int_t amin[16]; Int_t tmax[16]; Int_t tmin[16]; #endif Short_t trace0[125]; Short_t trace1[125]; Short_t trace2[125]; Short_t trace3[125]; Short_t trace4[125]; Short_t trace12[125]; Short_t trace13[125]; Short_t trace14[125]; Short_t trace15[125]; Int_t tcount; Short_t tchip[30]; Short_t tchan[30]; Short_t ttime[30]; // List of branches TBranch *b_runNo; //! TBranch *b_eventNo; //! TBranch *b_amax; //! TBranch *b_amin; //! TBranch *b_tmax; //! TBranch *b_tmin; //! TBranch *b_trace0; //! TBranch *b_trace1; //! TBranch *b_trace2; //! TBranch *b_trace3; //! TBranch *b_trace4; //! TBranch *b_trace12; //! TBranch *b_trace13; //! TBranch *b_trace14; //! TBranch *b_trace15; //! TBranch *b_tcount; //! TBranch *b_tchip; //! TBranch *b_tchan; //! TBranch *b_ttime; //! FadcStuff(TTree * /*tree*/ =0); virtual ~FadcStuff(); 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(); class Cut2d : public EllipticalCut { public: Cut2d(); 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 chan[2]; Int_t reject; ClassDef(Cut2d,0); }; ClassDef(FadcStuff,0); private : TH1F *fHist; TH2F *fHist2; double mean[16],stdev[16]; int xchan,ychan; TH1F *fH1runs; TH1F *fH1events; TH1F *fTrace0; TH1F *fTrace1; TH1F *fTrace2; TH1F *fTrace3; TH1F *fTrace4; TH1F *fTrace12; TH1F *fTrace13; TH1F *fTrace14; TH1F *fTrace15; TH1F *fRFclock; TH1F *fThist; TH1F *fTrist; TH1F *fTrig; TH1F *fTfilt; }; #endif #ifdef FadcStuff_cxx void FadcStuff::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; fChain->SetMakeClass(1); #if USE_EXTENDED_FADCSTUFF_TREE fChain->SetBranchAddress("runNo", &runNo, &b_runNo); fChain->SetBranchAddress("eventNo", &eventNo, &b_eventNo); #endif fChain->SetBranchAddress("amax", amax, &b_amax); fChain->SetBranchAddress("amin", amin, &b_amin); fChain->SetBranchAddress("tmax", tmax, &b_tmax); fChain->SetBranchAddress("tmin", tmin, &b_tmin); #if USE_EXTENDED_FADCSTUFF_TREE fChain->SetBranchAddress("trace0", trace0, &b_trace0); fChain->SetBranchAddress("trace1", trace1, &b_trace1); fChain->SetBranchAddress("trace2", trace2, &b_trace2); fChain->SetBranchAddress("trace3", trace3, &b_trace3); fChain->SetBranchAddress("trace4", trace4, &b_trace4); fChain->SetBranchAddress("trace12", trace12, &b_trace12); fChain->SetBranchAddress("trace13", trace13, &b_trace13); fChain->SetBranchAddress("trace14", trace14, &b_trace14); fChain->SetBranchAddress("trace15", trace15, &b_trace15); fChain->SetBranchAddress("tcount", &tcount, &b_tcount); fChain->SetBranchAddress("tchip", tchip, &b_tchip); fChain->SetBranchAddress("tchan", tchan, &b_tchan); fChain->SetBranchAddress("ttime", ttime, &b_ttime); #endif } Bool_t FadcStuff::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 FadcStuff_cxx