////////////////////////////////////////////////////////// // This class has been automatically generated on // Tue Feb 7 06:26:06 2017 by ROOT version 6.06/08 // from TChain beam/ ////////////////////////////////////////////////////////// #ifndef hpolar_h #define hpolar_h #include #include #include #include #include #include #include #include #include // Headers needed by this particular selector class hpolar : 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 Ebeam = {fReader, "Ebeam"}; //TTreeReaderValue qT = {fReader, "qT"}; //TTreeReaderValue qTphi = {fReader, "qTphi"}; //TTreeReaderValue qL = {fReader, "qL"}; //TTreeReaderValue kstar = {fReader, "kstar"}; //TTreeReaderValue M2 = {fReader, "M2"}; //TTreeReaderValue phi = {fReader, "phi"}; //TTreeReaderArray u = {fReader, "u"}; TTreeReaderArray k = {fReader, "k"}; //TTreeReaderArray pR = {fReader, "pR"}; TTreeReaderValue polar_0_90 = {fReader, "polar_0_90"}; TTreeReaderValue polar_45_135 = {fReader, "polar_45_135"}; TTreeReaderValue diffXS = {fReader, "diffXS"}; TTreeReaderValue weight = {fReader, "weight"}; hpolar(TTree * /*tree*/ =0) { } virtual ~hpolar() { } 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(hpolar,0); protected: TH2D *hintens[9]; TH2D *hpolar0[9]; TH2D *hpolar45[9]; TH2D *h2polar0[9]; TH2D *h2polar45[9]; TH2D *h3polar0[9]; TH2D *h3polar45[9]; TH2D *h4polar0[9]; TH2D *h4polar45[9]; }; #endif #ifdef hpolar_cxx void hpolar::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 hpolar::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 hpolar_cxx