HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HTofDigitizer Class Reference

#include <htofdigitizer.h>

Inheritance diagram for HTofDigitizer:
Collaboration diagram for HTofDigitizer:

Public Member Functions

 HTofDigitizer (const Text_t *name="HTofDigitizer", const Text_t *title="HTofDigitizer")
 
 ~HTofDigitizer (void)
 
Bool_t initParContainer ()
 
Bool_t init (void)
 
Bool_t finalize (void)
 
Int_t execute (void)
 
Int_t executeOld (void)
 
void setStoreFirstTrack (Int_t flag)
 
void setDebug (Bool_t flag)
 
void setOutputFile (TString outname="")
 
void setUseOld (Bool_t flag)
 
- Public Member Functions inherited from HReconstructor
 HReconstructor (void)
 
 ~HReconstructor (void)
 
 HReconstructor (const Text_t *name, const Text_t *title)
 
HTasknext (Int_t &errCode)
 
HTaskgetTask (const Char_t *name)
 
Bool_t connectTask (HTask *task, Int_t n=0)
 
TObjArray getTable ()
 
void getConnections ()
 
HTaskgetComposite ()
 
void setActive (Bool_t state)
 
Bool_t IsFolder (void) const
 
void Browse (TBrowser *b)
 
void isTimed (Bool_t flag=kTRUE)
 
void resetTimer (void)
 
void printTimer (void)
 
- Public Member Functions inherited from HTask
 HTask (void)
 
 HTask (const Text_t name[], const Text_t title[])
 
virtual ~HTask (void)
 
virtual Bool_t reinit (void)
 
virtual HTaskgetOwner ()
 
virtual void setOwner (HTask *atask)
 
virtual Bool_t setConnections ()
 
void setManual ()
 

Static Public Member Functions

static HTofDigitizergetTofDigtizer ()
 
static void setTimeResolution (Float_t res=0.240)
 

Private Member Functions

Int_t findFirstHitInTof (HGeantTof *pOld, HGeantTof **pNew, Int_t *count)
 
void fillNtuple (HGeantTof *pOld, HGeantTof *pNew, Int_t count)
 
void fillArray ()
 
void doFinalCheckOnArray ()
 
void fillOutput ()
 

Private Attributes

HLocation fLoc
 
HCategory * fGeantCat
 Location for new object. More...
 
HLinearCategory * fGeantKineCat
 Pointer to Geant data category. More...
 
HCategory * fRawCat
 Pointer to GeantKine data category. More...
 
HCategory * fRawCatTmp
 Pointer to raw data category. More...
 
HTofDigiParfDigiPar
 Pointer to tmp raw data category. More...
 
HTofWalkParfTofWalkPar
 Digitization parameters. More...
 
HTofCalParfTofCalPar
 walk correction parameters More...
 
HIterator * iterGeant
 cal parameters More...
 
HIterator * iterTofRaw
 Iterator over GeantCell category. More...
 
HIterator * iterTofRawTmp
 Iterator over HTofRawSim category. More...
 
Int_t storeFirstTrack
 hardwired resolotion of tof (240 ps) More...
 
Bool_t debug
 flag: More...
 
TNtuple * out
 change stored tracknumbers (when storeFirstTrack!=0) More...
 
TFile * outFile
 ntuple pointer More...
 
Bool_t useOld
 pointer to this More...
 

Static Private Attributes

static Float_t timeResZero = 0.240
 Iterator over tmp HTofRawSim category. More...
 
static HTofDigitizerpTofDigi =NULL
 output file pointer More...
 

Additional Inherited Members

- Protected Attributes inherited from HReconstructor
TList * fHistograms
 
Bool_t fActive
 
TObjArray fOutputs
 
TStopwatch fTimer
 
- Protected Attributes inherited from HTask
HTaskowner
 
Bool_t manual
 
Bool_t isInitialised
 
Bool_t isConnected
 
Bool_t fIsTimed
 

Detailed Description

Definition at line 21 of file htofdigitizer.h.

Constructor & Destructor Documentation

HTofDigitizer::HTofDigitizer ( const Text_t *  name = "HTofDigitizer",
const Text_t *  title = "HTofDigitizer" 
)
HTofDigitizer::~HTofDigitizer ( void  )

Definition at line 172 of file htofdigitizer.cc.

References iterGeant, iterTofRaw, and iterTofRawTmp.

Member Function Documentation

void HTofDigitizer::fillNtuple ( HGeantTof pOld,
HGeantTof pNew,
Int_t  count 
)
private
Bool_t HTofDigitizer::finalize ( void  )
virtual

Implements HTask.

Definition at line 925 of file htofdigitizer.cc.

References out, and outFile.

static HTofDigitizer* HTofDigitizer::getTofDigtizer ( )
inlinestatic

Definition at line 66 of file htofdigitizer.h.

Bool_t HTofDigitizer::initParContainer ( )

Definition at line 129 of file htofdigitizer.cc.

References HRuntimeDb::getContainer(), Hades::getRuntimeDb(), and gHades.

Referenced by init().

void HTofDigitizer::setDebug ( Bool_t  flag)
inline

Definition at line 68 of file htofdigitizer.h.

void HTofDigitizer::setOutputFile ( TString  outname = "")

Definition at line 1061 of file htofdigitizer.cc.

References out, outFile, and outname.

void HTofDigitizer::setStoreFirstTrack ( Int_t  flag)
inline

Definition at line 67 of file htofdigitizer.h.

static void HTofDigitizer::setTimeResolution ( Float_t  res = 0.240)
inlinestatic

Definition at line 71 of file htofdigitizer.h.

void HTofDigitizer::setUseOld ( Bool_t  flag)
inline

Definition at line 70 of file htofdigitizer.h.

Member Data Documentation

Bool_t HTofDigitizer::debug
private

flag:

Definition at line 44 of file htofdigitizer.h.

Referenced by findFirstHitInTof(), and HTofDigitizer().

HTofDigiPar* HTofDigitizer::fDigiPar
private

Pointer to tmp raw data category.

Definition at line 29 of file htofdigitizer.h.

Referenced by HTofDigitizer().

HCategory* HTofDigitizer::fGeantCat
private

Location for new object.

Definition at line 25 of file htofdigitizer.h.

Referenced by findFirstHitInTof(), HTofDigitizer(), and init().

HLinearCategory* HTofDigitizer::fGeantKineCat
private

Pointer to Geant data category.

Definition at line 26 of file htofdigitizer.h.

Referenced by doFinalCheckOnArray(), fillNtuple(), findFirstHitInTof(), HTofDigitizer(), and init().

HLocation HTofDigitizer::fLoc
private

Definition at line 24 of file htofdigitizer.h.

Referenced by doFinalCheckOnArray(), executeOld(), fillArray(), fillOutput(), and HTofDigitizer().

HCategory* HTofDigitizer::fRawCat
private

Pointer to GeantKine data category.

Definition at line 27 of file htofdigitizer.h.

Referenced by execute(), executeOld(), fillOutput(), HTofDigitizer(), and init().

HCategory* HTofDigitizer::fRawCatTmp
private

Pointer to raw data category.

Definition at line 28 of file htofdigitizer.h.

Referenced by execute(), fillArray(), HTofDigitizer(), and init().

HTofCalPar* HTofDigitizer::fTofCalPar
private

walk correction parameters

Definition at line 31 of file htofdigitizer.h.

HTofWalkPar* HTofDigitizer::fTofWalkPar
private

Digitization parameters.

Definition at line 30 of file htofdigitizer.h.

Referenced by doFinalCheckOnArray().

HIterator* HTofDigitizer::iterGeant
private

cal parameters

Definition at line 32 of file htofdigitizer.h.

Referenced by executeOld(), fillArray(), HTofDigitizer(), init(), and ~HTofDigitizer().

HIterator* HTofDigitizer::iterTofRaw
private

Iterator over GeantCell category.

Definition at line 33 of file htofdigitizer.h.

Referenced by execute(), executeOld(), HTofDigitizer(), init(), and ~HTofDigitizer().

HIterator* HTofDigitizer::iterTofRawTmp
private

Iterator over HTofRawSim category.

Definition at line 34 of file htofdigitizer.h.

Referenced by doFinalCheckOnArray(), fillOutput(), HTofDigitizer(), init(), and ~HTofDigitizer().

TNtuple* HTofDigitizer::out
private

change stored tracknumbers (when storeFirstTrack!=0)

Definition at line 45 of file htofdigitizer.h.

Referenced by fillArray(), fillNtuple(), finalize(), HTofDigitizer(), and setOutputFile().

TFile* HTofDigitizer::outFile
private

ntuple pointer

Definition at line 46 of file htofdigitizer.h.

Referenced by finalize(), HTofDigitizer(), and setOutputFile().

HTofDigitizer * HTofDigitizer::pTofDigi =NULL
staticprivate

output file pointer

Definition at line 47 of file htofdigitizer.h.

Referenced by HTofDigitizer().

Int_t HTofDigitizer::storeFirstTrack
private

hardwired resolotion of tof (240 ps)

Definition at line 37 of file htofdigitizer.h.

Referenced by findFirstHitInTof(), and HTofDigitizer().

Float_t HTofDigitizer::timeResZero = 0.240
staticprivate

Iterator over tmp HTofRawSim category.

Definition at line 35 of file htofdigitizer.h.

Referenced by doFinalCheckOnArray(), and executeOld().

Bool_t HTofDigitizer::useOld
private

pointer to this

Definition at line 48 of file htofdigitizer.h.

Referenced by execute(), and HTofDigitizer().


The documentation for this class was generated from the following files: