////////////////////////////////////////////////////////// // This class has been automatically generated on // Sun Dec 1 15:13:11 2019 by ROOT version 6.18/04 // from TTree OpHitBkgTree/Select Op Detector Hit info for backgrounds. // found on file: /home/js1/PDune_ReproV28/pdune_reco_repro_opPatch_SMu_np04_raw_run005770_0007_dl10_reco_22474296_0_20190828T173847-95817dab-9bfe-4c7a-b62f-c826698b3468.root ////////////////////////////////////////////////////////// #ifndef BKGSelection_h #define BKGSelection_h #include #include #include #include #include #include #include // Headers needed by this particular selector #include class BKGSelection : public TSelector { public : TTreeReader fReader; //!the tree reader TTree *fChain = 0; //!pointer to the analyzed TTree or TChain // Readers to access the data (delete the ones you do not need). //TTreeReaderValue deltat0 = {fReader, "SelectOpHitBkgInfo.deltat0"}; TTreeReaderValue deltat = {fReader, "SelectOpHitBkgInfo.deltat"}; //TTreeReaderValue t0 = {fReader, "SelectOpHitBkgInfo.t0"}; //TTreeReaderValue te = {fReader, "SelectOpHitBkgInfo.te"}; //TTreeReaderValue tabs = {fReader, "SelectOpHitBkgInfo.tabs"}; //TTreeReaderValue PEs = {fReader, "SelectOpHitBkgInfo.PEs"}; TTreeReaderValue event = {fReader, "SelectOpHitBkgInfo.event"}; TTreeReaderValue run = {fReader, "SelectOpHitBkgInfo.run"}; TTreeReaderValue subRun = {fReader, "SelectOpHitBkgInfo.subRun"}; /* TTreeReaderValue event = {fReader, "SelectOpHitBkgInfo.event"}; */ /* TTreeReaderValue run = {fReader, "SelectOpHitBkgInfo.run"}; */ /* TTreeReaderValue subRun = {fReader, "SelectOpHitBkgInfo.subRun"}; */ /* TTreeReaderValue event = {fReader, "SelectOpHitBkgInfo.event"}; */ /* TTreeReaderValue run = {fReader, "SelectOpHitBkgInfo.run"}; */ /* TTreeReaderValue subRun = {fReader, "SelectOpHitBkgInfo.subRun"}; */ //TTreeReaderValue chan = {fReader, "SelectOpHitBkgInfo.chan"}; //TTreeReaderValue bar = {fReader, "SelectOpHitBkgInfo.bar"}; TH1D* h_dts = 0; TH1I* h_nevt =0; typedef ULong64_t run_type; typedef ULong64_t subrun_type; typedef ULong64_t event_type; std::set> events; BKGSelection(TTree * /*tree*/ =0) { } virtual ~BKGSelection() { } 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(BKGSelection,0); }; #endif #ifdef BKGSelection_cxx void BKGSelection::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the reader is initialized. // 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). fReader.SetTree(tree); } Bool_t BKGSelection::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 BKGSelection_cxx