////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon May 2 12:40:48 2011 by ROOT version 5.26/00e // from TTree rctree/Rocking Curves for sample pristine scan 041 // found on file: pristine_041_rocking_curves.root ////////////////////////////////////////////////////////// #ifndef rcfitter_h #define rcfitter_h #include #include #include #include #include #include #include class rcfitter : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types TH1D *rchist; // List of branches TBranch *b_rchist; //! rcfitter(TTree * /*tree*/ =0); virtual ~rcfitter(); 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(); // user methods added by RTJ void PlotRC(Long64_t entry); TFitResultPtr FitRC(Long64_t entry); void PlotRC(TH1D *rc); TFitResultPtr FitRC(TH1D *rc); ClassDef(rcfitter,0); private : Int_t fWidth; Int_t fHeight; Int_t fSlaveId; TH2D *fHbase; TH2D *fHamp; TH2D *fHmean; TH2D *fHmu; TH2D *fHsigma; TH2D *fHrms; TH2D *fHmax; TH2D *fHpeak; TH2D *fHlocal; TH1D *fHload; TFile *fFile; TProofOutputFile *fProofFile; }; #ifdef rcfitter_cxx void rcfitter::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 object pointer rchist = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("rchist", &rchist, &b_rchist); } Bool_t rcfitter::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 rcfitter_cxx #endif // #ifdef rcfitter_h