class HMdcCal2Sim: public HMdcCal2

_HADES_CLASS_DESCRIPTION


 HMdcCal2Sim

 Data object for a Mdc cell containing distances to the wires for simulated
 events
 This class inherits from the class HMdcCal1 used for real data.

 As additional data elements the track numbers of the two hits are stored
 and a status number.
 The track number of the hits can be accessed via the inline functions
     void setNTrack1(const Int_t nTrack1) of dist1
     void setNTrack2(const Int_t nTrack2) of dist2
     Int_t getNTrack1(void) const         of dist1
     Int_t getNTrack2(void) const         of dist2
 and the status via the inline functions
     void setStatus1(const Int_t flag)    of dist1
     Int_t getStatus1() const             of dist1
     void setStatus2(const Int_t flag)    of dist2
     Int_t getStatus2() const             of dist2
     void  setTrackList(Int_t* array) array of tracks[5]  can be coppied
           to TrackList
     void  getTrackList(Int_t* array) array of tracks[5]  can be filled
           from TrackList
     void  setStatusList(Int_t* array) array of status[5] can be coppied
           to StatusList
     void  getStatusList(Int_t* array) array of status[5] can be filled
           from StatusList
     Int_t getNTracks() returns number of tracks in track list,
           can be used for loops
           for(Int_t i=0;i<(HMdcCal1Sim*)cal->getNTracks();i++)
              { (HMdcCal1Sim*)cal->getTrackFromList(i);}
     Int_t* getStatusList(){return (Int_t*)listStatus;}
     Int_t* getTrackList() {return (Int_t*)listTrack;}
     Int_t getTrackFromList (Int_t element){return listTrack [element];}
     Int_t getStatusFromList(Int_t element){return listStatus[element];}

 According to the two different TDC modes the HMdcCal1Sim category is filled.

 MODE 1 (two times LEADING EDGE of the TDC signal)
           nHits ==  -2 for 2 valid hits
                 ==  -1 for 1 valid hit
                 ==   0 for a not filled hit (e.g. 1 hit was kicked out by efficiency)
         status1 ==   1 for a valid first hit
                 ==   2 for a valid first hit caused by noise
                 ==  -3 for a not valid hit
                 ==   0 for REAL data (embedding) or no hit
         status2 ==   1 for a valid second hit
                 ==   2 for a valid first hit caused by noise
                 ==  -3 for a not valid hit
                 ==   0 for REAL data (embedding) or no hit
         nTrack1 ==   track number of the first valid hit
                 ==  -99 if not filled
         nTrack2 ==   track number of the second valid hit
                 ==  -99 if not filled
         dist1   ==   distance from sense wire of irst valid hit
                 ==  -99 if not filled
         dist2   ==   distance from sense wire of the second valid hit
                 ==  -99 if not filled
     listTrack[5] :   contains the track number of the first 5 hits per cell
                      == -99 if no hit was filled
     listStatus[5]:   contains the status flags of the first 5 hits per cell
                      == -1 if hit was kicked out by cell efficiency cut
                      == -2 if hit was kicked out by layer efficiency cut
                      ==  1 if hit is valid
                      ==  2 if hit is noise
                      ==  3 if hit is REAL data (embedding)
                      ==  0 if no hit was filled
     both lists will be filled even if no vaild hit was found

 MODE 2 (LEADING AND TRAILING EDGE of the TDC signal)
           nHits ==  +2 for 2 valid hits
                 ==   0 for not filled hit (e.g. 1 hit was kicked out by efficiency)
         status1 ==   1 for a valid first hit
                 ==   2 for a valid first hit caused by noise
                 ==  -3 for a not valid hit
                 ==   0 for REAL data (embedding) or no hit
         status2 ==   1 for a valid first hit
                 ==   2 for a valid first hit caused by noise
                 ==  -3 for a not valid hit
                 ==   0 for REAL data (embedding) or no hit
         nTrack1 ==   track number of first valid hit
                 ==  -99 if not filled
         nTrack2 ==   track number of first valid hit
                 ==  -99 if not filled
         dist1   ==   distance from sense wire of the first valid hit
                 ==  -99 if not filled
         dist2   ==  -99 if not filled
     listTrack[5] :   contains the track number of the first 5 hits per cell
                      == -99 if no hit was filled
     listStatus[5]:   contains the status flags of the first 5 hits per cell
                      == -1 if hit was kicked out by cell efficiency cut
                      == -2 if hit was kicked out by layer efficiency cut
                      ==  1 if hit is valid
                      ==  2 if hit is noise
                      ==  3 if hit is REAL data (embedding)
                      ==  0 if no hit was filled
     both lists will be filled even if no vaild hit was found


Function Members (Methods)

public:
HMdcCal2Sim()
HMdcCal2Sim(const HMdcCal2Sim&)
virtual~HMdcCal2Sim()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
voidclear()
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
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 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
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidHMdcCal2::getAddress(Int_t& s, Int_t& m, Int_t& l, Int_t& c)
Int_tHMdcCal2::getCell() const
Float_tHMdcCal2::getDist1()
Float_tHMdcCal2::getDist2()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Float_tHMdcCal2::getErrDist1()
Float_tHMdcCal2::getErrDist2()
virtual const char*TObject::GetIconName() const
Int_tHMdcCal2::getLayer() const
Int_tHMdcCal2::getModule() const
virtual const char*TObject::GetName() const
Int_tHMdcCal2::getNHits() const
Int_tgetNTrack1() const
Int_tgetNTrack2() const
Int_tgetNTracks()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tHMdcCal2::getSector() const
Int_tgetStatus() const
Int_tgetStatus1() const
Int_tgetStatus2() const
Int_tgetStatusFromList(Int_t element)
Int_t*getStatusList()
voidgetStatusList(Int_t* array)
virtual const char*TObject::GetTitle() const
Int_tgetTrackFromList(Int_t element)
Int_t*getTrackList()
voidgetTrackList(Int_t* array)
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::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 voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
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)
HMdcCal2Sim&operator=(const HMdcCal2Sim&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidHMdcCal2::setAddress(const Int_t s, const Int_t m, const Int_t l, const Int_t c)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidHMdcCal2::setCell(const Int_t c)
voidHMdcCal2::setDist1(const Float_t d, const Float_t e)
voidHMdcCal2::setDist2(const Float_t d, const Float_t e)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidHMdcCal2::setLayer(const Int_t l)
voidHMdcCal2::setModule(const Int_t m)
voidHMdcCal2::setNHits(const Int_t n)
voidsetNTrack1(const Int_t n)
voidsetNTrack2(const Int_t n)
static voidTObject::SetObjectStat(Bool_t stat)
voidHMdcCal2::setSector(const Int_t s)
voidsetStatus1(const Int_t f)
voidsetStatus2(const Int_t f)
voidsetStatusList(Int_t* array)
voidsetTrackList(Int_t* array)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
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()

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:
Int_tHMdcCal2::cellcell number in wire plane
Float_tHMdcCal2::dist1distance to the wire of first hit [mm]
Float_tHMdcCal2::dist2distance to the wire of second hit [mm]
Float_tHMdcCal2::errDist1error of distance for first hit [mm]
Float_tHMdcCal2::errDist2error of distance for second hit [mm]
Int_tHMdcCal2::layerlayer number [0-5]
Int_tlistStatus[5]list of status for 5 tracks
Int_tlistTrack[5]list of 5 tracknumbers (GEANT) for tracks
Int_tHMdcCal2::modulemodule number [0-3]
Int_tHMdcCal2::nHitsnumber of hits in this cell
Int_tnTrack1number of Track for first hit
Int_tnTrack2number of Track for second hit
Int_tHMdcCal2::sectorsector number [0-5]
Int_tstatus1status of the cell (positive if ok, negative if it should not be used)
Int_tstatus2status of the cell (positive if ok, negative if it should not be used)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void clear()
 clears the object
HMdcCal2Sim(const HMdcCal2Sim& )
{clear();}
~HMdcCal2Sim(void)
{}
void setNTrack1(const Int_t n)
{nTrack1=n;}
void setNTrack2(const Int_t n)
{nTrack2=n;}
void setStatus1(const Int_t f)
{ status1=f; }
void setStatus2(const Int_t f)
{ status2=f; }
void setTrackList(Int_t* array)
void getTrackList(Int_t* array)
void setStatusList(Int_t* array)
void getStatusList(Int_t* array)
Int_t getNTracks()
Int_t* getStatusList()
{return (Int_t*)listStatus;}
Int_t* getTrackList()
{return (Int_t*)listTrack;}
Int_t getTrackFromList(Int_t element)
{return listTrack [element];}
Int_t getStatusFromList(Int_t element)
{return listStatus[element];}
Int_t getNTrack1(void)
{return nTrack1;}
Int_t getNTrack2(void)
{return nTrack2;}
Int_t getStatus1() const
{return status1;}
Int_t getStatus2() const
{return status2;}
Int_t getStatus() const
{return status1;}

Last change: Sat May 22 12:59:56 2010
Last generated: 2010-05-22 12:59

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.