class HTofinoDigitizer: public HReconstructor

_HADES_CLASS_DESCRIPTION


  HTofinofDigitizer digitizes HGeant data, puts output values into
  cal data category
  The input data are read from the HGeantTof category. After calculating
  TOF and Charge of the hit etc the output is stored in the HTofinoCalSim
  category.

   ----------------------                                 -----------
  |   HTofinoCalibrater  |                               | HGeantTof |
  |   (embedding mode)   | \                              -----------
  |                      |  \                                 ||
   ----------------------    \                                || input to digitizer
                              \                               \
                           ---------------    read real     ------------------
                          | HTofinoCalSim | ------------>  | HTofinoDigitizer |
                           ---------------  <-----------   |                  |
                                            write output    ------------------


  In the case of TRACK EMBEDDING of simulated tracks into
  experimental data the real data are written by the HTofinoCalibrater into
  HTofinoCalSim category. The real hits are taken into
  account by the digitizer (adding of charges, sorting by first hit in
  photo multiplier). The embedding mode is recognized
  automatically by analyzing the
  gHades->getEmbeddingMode() flag.
            Mode ==0 means no embedding
                 ==1 realistic embedding (first real or sim hit makes the game)
                 ==2 keep GEANT tracks   (as 1, but GEANT track numbers will always
                     win against real data. besides the tracknumber the output will
                     be the same as in 1)

  The output object HTofinoCalSim contains additional to the tof and
  charge a list of up to 5 tracks hitting the tofino cell. The track numbers
  are stored by increasing tof. In parallel the tof from GEANT is stored in a
  list. In case of embedding the first and second track recieved via getTrack()
  contains real or geant data depending wheater or not there has been a
  embedded track and sim or real was first. In case of no embedded track in the cell
  the list contains only the geant hits.

  tofinocal->getNHit()      number of hits in the cell (val 1-5)
  tofinocal->getTrack(0)    contains real data / geant data (real if real was faster)
  tofinocal->getTrack(1)    contains real data / geant data (sim  if real was faster)
  tofinocal->getTrack(2)    contains geant data
      .
      .
      .
  tofinocal->getTrack(4)    contains geant data

 For the suppression of secondaries produced in the TOF itself there are
 several configuration possibilities:
 They can be switched via setStoreFirstTrack(Int_t flag):
     flag ==  0 realistic (secondaries included)
              1 primary particle is stored
              2 (default) the first track number entering the tof in SAME SECTOR is stored
              3 as 2 but SAME SECTOR && CELL

 To make the influence of the above selections easily visible
 in the output HTofCalSim a debug mode can be switched with
 void   setDebug(Bool_t flag). In this case the track numbers
 affected by the criteria 1-3 will have negative track numbers
 (multiples of -200). The multiplication factor gives the number
 of steps from the start point to the stored track (chain of
 secondaries). In case 1 it is always -200 if a particle has not
 been a primary one.

Function Members (Methods)

public:
HTofinoDigitizer()
HTofinoDigitizer(const Text_t* name, const Text_t* title)
virtual~HTofinoDigitizer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidHReconstructor::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual Bool_tHReconstructor::connectTask(HTask* task, Int_t n = 0)
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
voiddoFinalCheckOnArray()
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual Int_texecute()
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
voidfillArray()
virtual voidTNamed::FillBuffer(char*& buffer)
voidfillOutput()
virtual Bool_tfinalize()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual HTask*HReconstructor::getComposite()
virtual voidHReconstructor::getConnections()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual HTask*HTask::getOwner()
TObjArrayHReconstructor::getTable()
virtual HTask*HReconstructor::getTask(const Char_t* name)
virtual const char*TNamed::GetTitle() const
static HTofinoDigitizer*getTofinoDigtizer()
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Bool_tinit()
Bool_tinitParContainer()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tHReconstructor::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual voidHReconstructor::isTimed(Bool_t flag = kTRUE)
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual HTask*HReconstructor::next(Int_t& errCode)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
HTask&HTask::operator=(const HTask&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidHReconstructor::printTimer()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual Bool_tHTask::reinit()
voidTObject::ResetBit(UInt_t f)
virtual voidHReconstructor::resetTimer()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidHReconstructor::setActive(Bool_t state)MENU
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual Bool_tHTask::setConnections()
voidsetDebug(Bool_t flag)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidHTask::setManual()
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidHTask::setOwner(HTask* atask)
voidsetStoreFirstTrack(Int_t flag)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
Int_tfindFirstHitInTofino(HGeantTof* pOld, HGeantTof** pNew, Int_t* count)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tHReconstructor::fActiveActive flag
TList*HReconstructor::fHistogramsList of histograms generated by this reconstructor.
Bool_tHTask::fIsTimedtimer flag
TStringTNamed::fNameobject identifier
TObjArrayHReconstructor::fOutputs
TStopwatchHReconstructor::fTimerTask timer
TStringTNamed::fTitleobject title
Bool_tHTask::isConnected
Bool_tHTask::isInitialised
Bool_tHTask::manual
HTask*HTask::owner
private:
TObjArray*array! temporary array for HTofinoCalSim objects
Int_tctTracks[6][4]! temporary array
Bool_tdebug! change stored tracknumbers (when storeFirstTrack!=0)
HCategory*fCalCat! Pointer to Cal data category
HCategory*fGeantCat! Pointer to HGeant data category
HLinearCategory*fGeantKineCat! Pointer to GeantKine data category
HLocationfLoc! Location for new object
HLocationffLoc! Location for new object
Float_tgeaTofTracks[6][4][10]! temporary array
HIterator*iterCal! Iterator over HTofinoCalSim category
HIterator*iterGeant! Iterator over HGeantTof category
Int_tnumTracks[6][4][10]! temporary array
static HTofinoDigitizer*pTofinoDigi! pointer to this
HTofinoDigitPar*pTofinoDigitPar! Digit parameters
Int_tstoreFirstTrack! flag:
Float_ttdcTofTracks[6][4][10]! temporary array

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HTofinoDigitizer(const Text_t* name, const Text_t* title)
HTofinoDigitizer(void)
~HTofinoDigitizer(void)
Bool_t init(void)
Bool_t initParContainer()
Int_t execute(void)
Bool_t finalize(void)
void fillArray()
 fill temporary array from geant.
 all sim data will be collected and in the end
 will be a check on the total charge etc. in doFinalCheckOnArray()
 before it is written to the output category (and in
 embedding mode merged with the real data) in fillOutput()
void doFinalCheckOnArray()
 now do the final check on collected data and
 convert times from channel to nanosecond to write
 to output category (and merge with real data in fillOutput() )
 fill list of tracks/geaTof other than the fastest hit
void fillOutput()
 write to output category (and merge with real data)
 fill list of tracks/geaTof other than the fastest hit
Int_t findFirstHitInTofino(HGeantTof* pOld, HGeantTof** pNew, Int_t* count)
 find the first track ID entering the TOFINO
 Used to suppress the secondaries created in the
 TOF itself.
        0 (default) = realistic (secondaries included)
        1 primary particle is stored
        2 the first track number entering the tof in SAME SECTOR is stored
        3 as 2 but SAME SECTOR && ROD
HTofinoDigitizer* getTofinoDigtizer()
{return pTofinoDigi;}
void setStoreFirstTrack(Int_t flag)
{storeFirstTrack=flag;}
void setDebug(Bool_t flag)
{debug=flag;}

Last change: Sat May 22 13:16:41 2010
Last generated: 2010-05-22 13:16

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.