HYDRA_development_version
|
#include <htofdigitizer.h>
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) |
![]() | |
HReconstructor (void) | |
~HReconstructor (void) | |
HReconstructor (const Text_t *name, const Text_t *title) | |
HTask * | next (Int_t &errCode) |
HTask * | getTask (const Char_t *name) |
Bool_t | connectTask (HTask *task, Int_t n=0) |
TObjArray | getTable () |
void | getConnections () |
HTask * | getComposite () |
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) |
![]() | |
HTask (void) | |
HTask (const Text_t name[], const Text_t title[]) | |
virtual | ~HTask (void) |
virtual Bool_t | reinit (void) |
virtual HTask * | getOwner () |
virtual void | setOwner (HTask *atask) |
virtual Bool_t | setConnections () |
void | setManual () |
Static Public Member Functions | |
static HTofDigitizer * | getTofDigtizer () |
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... | |
HTofDigiPar * | fDigiPar |
Pointer to tmp raw data category. More... | |
HTofWalkPar * | fTofWalkPar |
Digitization parameters. More... | |
HTofCalPar * | fTofCalPar |
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 HTofDigitizer * | pTofDigi =NULL |
output file pointer More... | |
Additional Inherited Members | |
![]() | |
TList * | fHistograms |
Bool_t | fActive |
TObjArray | fOutputs |
TStopwatch | fTimer |
![]() | |
HTask * | owner |
Bool_t | manual |
Bool_t | isInitialised |
Bool_t | isConnected |
Bool_t | fIsTimed |
Definition at line 21 of file htofdigitizer.h.
HTofDigitizer::HTofDigitizer | ( | const Text_t * | name = "HTofDigitizer" , |
const Text_t * | title = "HTofDigitizer" |
||
) |
Definition at line 151 of file htofdigitizer.cc.
References debug, fDigiPar, fGeantCat, fGeantKineCat, fLoc, fRawCat, fRawCatTmp, iterGeant, iterTofRaw, iterTofRawTmp, out, outFile, pTofDigi, storeFirstTrack, and useOld.
HTofDigitizer::~HTofDigitizer | ( | void | ) |
Definition at line 172 of file htofdigitizer.cc.
References iterGeant, iterTofRaw, and iterTofRawTmp.
|
private |
Definition at line 709 of file htofdigitizer.cc.
References fGeantKineCat, fLoc, fTofWalkPar, HTofDigiParCell::getAttenLen(), HTofRaw::getCell(), HTofWalkPar::getDxSigmaDigi(), HTofDigiParCell::getGroupVel(), HTofDigiParCell::getHalfLen(), HGeantKine::getID(), HTofDigiParCell::getLeftADCThreshold(), HTofDigiParCell::getLeftCFDThreshold(), HTofRaw::getLeftCharge(), HTofDigiParCell::getLeftTDCSlope(), HTofRaw::getLeftTime(), HTofRaw::getModule(), HTofRawSim::getNTrack1(), HTofRawSim::getNTrack2(), HGeantKine::getParentTrack(), HTofDigiParCell::getRightADCThreshold(), HTofDigiParCell::getRightCFDThreshold(), HTofRaw::getRightCharge(), HTofDigiParCell::getRightTDCSlope(), HTofRaw::getRightTime(), HTofRaw::getSector(), HGeantKine::getTotalMomentum(), iterTofRawTmp, HPhysicsConstants::mass(), raw, HTofWalkPar::scaleGeantToData(), HTofRaw::setLeftCharge(), HTofRaw::setLeftTime(), HTofRaw::setRightCharge(), HTofRaw::setRightTime(), and timeResZero.
Referenced by execute().
|
virtual |
Implements HReconstructor.
Definition at line 438 of file htofdigitizer.cc.
References doFinalCheckOnArray(), executeOld(), fillArray(), fillOutput(), fRawCat, fRawCatTmp, Hades::getEmbeddingMode(), Hades::getEmbeddingRealTrackId(), gHades, iterTofRaw, raw, HTofRawSim::setLeftNTrack(), HTofRaw::setNHit(), HTofRawSim::setRightNTrack(), and useOld.
Int_t HTofDigitizer::executeOld | ( | void | ) |
Definition at line 221 of file htofdigitizer.cc.
References fLoc, fRawCat, HTofDigiParCell::getAngleRef(), HTofDigiParCell::getAttenLen(), HTofRaw::getCell(), HGeantTof::getCell(), HTofDigiParCell::getGroupVel(), HTofDigiParCell::getHalfLen(), HGeantTof::getHit(), HTofDigiParCell::getLeftADCThreshold(), HTofDigiParCell::getLeftCFDThreshold(), HTofRaw::getLeftCharge(), HTofDigiParCell::getLeftTDCSlope(), HTofRaw::getLeftTime(), HTofRaw::getModule(), HGeantTof::getModule(), HTofRaw::getNHit(), HTofRawSim::getNTrack1(), HTofRawSim::getNTrack2(), HTofDigiParCell::getRightADCThreshold(), HTofDigiParCell::getRightCFDThreshold(), HTofRaw::getRightCharge(), HTofDigiParCell::getRightTDCSlope(), HTofRaw::getRightTime(), HTofRaw::getSector(), HGeantTof::getSector(), HGeantTof::getTrack(), HTofRaw::incNHit(), iterGeant, iterTofRaw, MAXCHRGCH, raw, HTofRaw::setCell(), HTofRaw::setLeftCharge(), HTofRaw::setLeftTime(), HTofRaw::setModule(), HTofRaw::setNHit(), HTofRawSim::setNTrack1(), HTofRawSim::setNTrack2(), HTofRaw::setRightCharge(), HTofRaw::setRightTime(), HTofRaw::setSector(), and timeResZero.
Referenced by execute().
|
private |
Definition at line 501 of file htofdigitizer.cc.
References fillNtuple(), findFirstHitInTof(), fLoc, fRawCatTmp, HTofDigiParCell::getAngleRef(), HTofDigiParCell::getAttenLen(), HGeantTof::getCell(), HTofDigiParCell::getGroupVel(), HTofDigiParCell::getHalfLen(), HGeantTof::getHit(), HTofRaw::getLeftCharge(), HTofRawSim::getLeftNTrack(), HTofDigiParCell::getLeftTDCSlope(), HTofRaw::getLeftTime(), HGeantTof::getModule(), HTofRaw::getNHit(), HTofRaw::getRightCharge(), HTofRawSim::getRightNTrack(), HTofDigiParCell::getRightTDCSlope(), HTofRaw::getRightTime(), HGeantTof::getSector(), HGeantTof::getTrack(), HTofRaw::incNHit(), iterGeant, MAXCHRGCH, out, raw, HTofRaw::setCell(), HTofRaw::setLeftCharge(), HTofRawSim::setLeftNTrack(), HTofRaw::setLeftTime(), HTofRaw::setModule(), HTofRaw::setNHit(), HTofRaw::setRightCharge(), HTofRawSim::setRightNTrack(), HTofRaw::setRightTime(), and HTofRaw::setSector().
Referenced by execute().
Definition at line 1107 of file htofdigitizer.cc.
References fGeantKineCat, HGeantTof::getCell(), HGeantTof::getHit(), HGeantTof::getModule(), HGeantKine::getParentTrack(), HGeantTof::getSector(), HGeantTof::getTrack(), HGeantKine::getTrack(), and out.
Referenced by fillArray().
|
private |
Definition at line 830 of file htofdigitizer.cc.
References fLoc, fRawCat, HTofRaw::getCell(), Hades::getEmbeddingMode(), HTofRaw::getLeftCharge(), HTofRawSim::getLeftNTrack(), HTofRaw::getLeftTime(), HTofRaw::getModule(), HTofRaw::getRightCharge(), HTofRawSim::getRightNTrack(), HTofRaw::getRightTime(), HTofRaw::getSector(), gHades, HTofRaw::incNHit(), iterTofRawTmp, raw, HTofRaw::setLeftCharge(), HTofRawSim::setLeftNTrack(), HTofRaw::setLeftTime(), HTofRaw::setRightCharge(), HTofRawSim::setRightNTrack(), and HTofRaw::setRightTime().
Referenced by execute().
|
virtual |
|
private |
Definition at line 938 of file htofdigitizer.cc.
References c1(), debug, fGeantCat, fGeantKineCat, HGeantTof::getCell(), HGeantKine::getFirstTofHit(), HGeantTof::getModule(), HGeantKine::getParent(), HGeantKine::getParentTrack(), HGeantKine::getPrimary(), HGeantTof::getSector(), HGeantTof::getTrack(), HGeantKine::getTrack(), m1, and storeFirstTrack.
Referenced by fillArray().
|
inlinestatic |
Definition at line 66 of file htofdigitizer.h.
|
virtual |
Implements HTask.
Definition at line 179 of file htofdigitizer.cc.
References HEvent::addCategory(), HDetector::buildCategory(), HTofDetector::buildMatrixCategory(), catGeantKine, catTofGeantRaw, catTofRaw, catTofRawTmp, fGeantCat, fGeantKineCat, fRawCat, fRawCatTmp, HEvent::getCategory(), Hades::getCurrentEvent(), HSpectrometer::getDetector(), Hades::getSetup(), gHades, initParContainer(), iterGeant, iterTofRaw, and iterTofRawTmp.
Bool_t HTofDigitizer::initParContainer | ( | ) |
Definition at line 129 of file htofdigitizer.cc.
References HRuntimeDb::getContainer(), Hades::getRuntimeDb(), and gHades.
Referenced by init().
|
inline |
Definition at line 68 of file htofdigitizer.h.
void HTofDigitizer::setOutputFile | ( | TString | outname = "" | ) |
Definition at line 1061 of file htofdigitizer.cc.
|
inline |
Definition at line 67 of file htofdigitizer.h.
|
inlinestatic |
Definition at line 71 of file htofdigitizer.h.
|
inline |
Definition at line 70 of file htofdigitizer.h.
|
private |
flag:
Definition at line 44 of file htofdigitizer.h.
Referenced by findFirstHitInTof(), and HTofDigitizer().
|
private |
Pointer to tmp raw data category.
Definition at line 29 of file htofdigitizer.h.
Referenced by HTofDigitizer().
|
private |
Location for new object.
Definition at line 25 of file htofdigitizer.h.
Referenced by findFirstHitInTof(), HTofDigitizer(), and init().
|
private |
Pointer to Geant data category.
Definition at line 26 of file htofdigitizer.h.
Referenced by doFinalCheckOnArray(), fillNtuple(), findFirstHitInTof(), HTofDigitizer(), and init().
|
private |
Definition at line 24 of file htofdigitizer.h.
Referenced by doFinalCheckOnArray(), executeOld(), fillArray(), fillOutput(), and HTofDigitizer().
|
private |
Pointer to GeantKine data category.
Definition at line 27 of file htofdigitizer.h.
Referenced by execute(), executeOld(), fillOutput(), HTofDigitizer(), and init().
|
private |
Pointer to raw data category.
Definition at line 28 of file htofdigitizer.h.
Referenced by execute(), fillArray(), HTofDigitizer(), and init().
|
private |
walk correction parameters
Definition at line 31 of file htofdigitizer.h.
|
private |
Digitization parameters.
Definition at line 30 of file htofdigitizer.h.
Referenced by doFinalCheckOnArray().
|
private |
cal parameters
Definition at line 32 of file htofdigitizer.h.
Referenced by executeOld(), fillArray(), HTofDigitizer(), init(), and ~HTofDigitizer().
|
private |
Iterator over GeantCell category.
Definition at line 33 of file htofdigitizer.h.
Referenced by execute(), executeOld(), HTofDigitizer(), init(), and ~HTofDigitizer().
|
private |
Iterator over HTofRawSim category.
Definition at line 34 of file htofdigitizer.h.
Referenced by doFinalCheckOnArray(), fillOutput(), HTofDigitizer(), init(), and ~HTofDigitizer().
|
private |
change stored tracknumbers (when storeFirstTrack!=0)
Definition at line 45 of file htofdigitizer.h.
Referenced by fillArray(), fillNtuple(), finalize(), HTofDigitizer(), and setOutputFile().
|
private |
ntuple pointer
Definition at line 46 of file htofdigitizer.h.
Referenced by finalize(), HTofDigitizer(), and setOutputFile().
|
staticprivate |
|
private |
hardwired resolotion of tof (240 ps)
Definition at line 37 of file htofdigitizer.h.
Referenced by findFirstHitInTof(), and HTofDigitizer().
|
staticprivate |
Iterator over tmp HTofRawSim category.
Definition at line 35 of file htofdigitizer.h.
Referenced by doFinalCheckOnArray(), and executeOld().
|
private |
pointer to this
Definition at line 48 of file htofdigitizer.h.
Referenced by execute(), and HTofDigitizer().