#include "hmdcgareffmaker.h"

HMdcGarEffMaker


class description - source file - inheritance tree (.pdf)

class HMdcGarEffMaker : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
HMdcGarEffMaker

    protected:
void createHists(Int_t, Int_t, Int_t) void deleteHists(Int_t) void fillCutHist(Int_t, Int_t) void fillEffHist(Int_t, Int_t) void fillMaxHists(Int_t) void fillTrendHists(Int_t) void fitTrendHists(Int_t, Int_t) TH1F* getHist(TFile*, TString) void initVariables() void readInput() void resetParams() void writeAscii() void writeHists(Int_t) public:
HMdcGarEffMaker(const char* name, const char* title) HMdcGarEffMaker(const HMdcGarEffMaker&) ~HMdcGarEffMaker() static TClass* Class() Float_t getMinSignal(Int_t i) Int_t getNSamples() Int_t getNSteps() Int_t getVersion() virtual TClass* IsA() const void make() HMdcGarEffMaker& operator=(const HMdcGarEffMaker&) void printStatus() void setFileNameAsciiOut(TString) void setFileNameRootIn(TString) void setFileNameRootOut(TString) void setMinSignal(Float_t i, Float_t j, Float_t k, Float_t l) void setNSamples(Int_t i) void setNSteps(Int_t i) void setVersion(Int_t vers) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
FILE* outputAscii ! file pointer to output TString fNameAsciiOut ! file name ascii out TFile* inputRoot ! root file pointer TString fNameRootIn ! file name root un file pointer TFile* outputRoot ! root file pointer TString fNameRootOut ! file name root un file pointer Float_t minSignal[4] ! minimum charge per mdc type static Int_t colors[10] ! colors of hists Int_t nSamples ! number of sample points per angle Int_t nSteps ! number of threshold steps TH1D* heff_time1 ! [mdc][angle]collected charge as function of distance to wire TH1D* heff_max ! [mdc] maximum collected charge as function of angle TH1D* heff_max_distance ! [mdc] distance of maximum charge as function of angle TH1D* heff_cut[10] ! [step][mdc] maximum distance for a given threshold charge as function of angle TH1D* heff_cut_trend ! [mdc][angle] distance as function of threshold charge per angle Double_t fitpars[4][18][2] ! fitparameters for hists Int_t version ! old/new format

Class Description

 HMdcGarEffMaker
 Class to produce parameters for HMdcCellEff
 The input file is produced by HMdcGarSignalReader and contains the
 the needed Hists to perform the calculations. The final parameter file
 is written to the ascii output and a root output containing the created
 and fitted hists is written too.


HMdcGarEffMaker(const char* name,const char* title) : TNamed(name,title)
 constructor for HMdcGarEffMaker

~HMdcGarEffMaker()
 destructor of HMdcGarEffMaker

void setFileNameAsciiOut(TString myfile)
 Sets root output of HMdcGarEffMaker

void setFileNameRootOut(TString myfile)
 Sets root output of HMdcGarEffMaker

void setFileNameRootIn(TString myfile)
 Sets root input of HMdcGarEffMaker

void initVariables()
 inits all variables

void printStatus(void)
 prints the parameters to the screen

void writeAscii()
 Writes the produced parameters for HMdcCellEff to an
 ascii output file

void createHists(Int_t mdc,Int_t angle,Int_t type)
 Creates th needed hists
 type==0 -> per mdc
 type==1 -> per angle

void writeHists(Int_t type)
 writes the created hists to an output Root file
 type==0 -> per mdc
 type==1 -> per angle

void deleteHists(Int_t type)
 Delete the created hists
 type==0 -> per mdc
 type==1 -> per angle

void make()
 function to be called from macro.
 opens input and output file, loops over input

void readInput()
 reads from root file containing signals produced by HMdcGarSignalReader

TH1F* getHist(TFile* input,TString namehist)
 Gets hist from file

void fillEffHist(Int_t mdc,Int_t angle)
 Fills the efficiency hists from the hist read from input file

void fillCutHist(Int_t mdc,Int_t angle)
 Fills the cut hists from efficiency hists

void fillMaxHists(Int_t angle)
 Fills the max hists

void fillTrendHists(Int_t angle)
 Fill the trend hists from the cut hists

void fitTrendHists(Int_t mdc,Int_t angle)
 Fit trend hists to get the parameters for HMdcCellEff



Inline Functions


                    void resetParams()
                    void setMinSignal(Float_t i, Float_t j, Float_t k, Float_t l)
                 Float_t getMinSignal(Int_t i)
                    void setVersion(Int_t vers)
                   Int_t getVersion()
                    void setNSamples(Int_t i)
                   Int_t getNSamples()
                    void setNSteps(Int_t i)
                   Int_t getNSteps()
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
         HMdcGarEffMaker HMdcGarEffMaker(const HMdcGarEffMaker&)
        HMdcGarEffMaker& operator=(const HMdcGarEffMaker&)


Last update: Fri Jan 26 12:08:53 2007


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.