////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Apr 4 17:37:43 2016 by ROOT version 6.07/05 // from TTree cond_data/Example N-Tuple // found on file: ../data/conductivity_experiment.root ////////////////////////////////////////////////////////// #ifndef ../data/MySelector_h #define ../data/MySelector_h #include #include #include #include #include #include #include // Headers needed by this particular selector class ../data/MySelector : public TSelector { public : TTreeReader fReader; //!the tree reader TTree *fChain = 0; //!pointer to the analyzed TTree or TChain // Readers to access the data TTreeReader muonReader("data", CondenseFile); TTreeReaderValue ntrack(muonReader, "ntrack"); TTreeReaderArray zen(muonReader,"zen"); TTreeReaderArray azi(muonReader, "azi"); TTreeReaderArray length(muonReader, "length"); TTreeReaderArray dcosx(muonReader, "dcosx"); TTreeReaderArray dcosy(muonReader, "dcosy"); TTreeReaderArray dcosz(muonReader, "dcosz"); TTreeReaderArray Enddcosx(muonReader, "Enddcosx"); TTreeReaderArray Enddcosy(muonReader, "Enddcosy"); TTreeReaderArray Enddcosz(muonReader, "Enddcosz"); TTreeReaderValue ra(muonReader, "ra"); TTreeReaderValue decl(muonReader, "decl"); TTreeReaderValue lst(muonReader, "lst"); TTreeReaderValue jd(muonReader, "jd"); TTreeReader muonReader2("data", CondenseFile); TTreeReaderValue ntrack2(muonReader2, "ntrack"); TTreeReaderValue lst2(muonReader2, "lst"); TTreeReaderValue jd2(muonReader2, "jd"); ../data/MySelector(TTree * /*tree*/ =0) { } virtual ~../data/MySelector() { } 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(../data/MySelector,0); }; #endif #ifdef ../data/MySelector_cxx void ../data/MySelector::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 ../data/MySelector::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 ../data/MySelector_cxx