#include "hmdchitsim.h"

HMdcHitSim


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

class HMdcHitSim : public HMdcHit

Inheritance Chart:
TObject
<-
HMdcCellGroup
<-
HMdcCellGroup6
<-
HMdcHit
<-
HMdcHitSim
<-
HMdcHitIdeal

    public:
HMdcHitSim() HMdcHitSim(const HMdcHitSim&) ~HMdcHitSim() Int_t calcNTracks() static TClass* Class() void clear() UChar_t getNTimes(Int_t n) const Int_t getNTracks() const Int_t getNumNoiseWires() const Int_t getStatus() const Int_t getTrack(Int_t n) const virtual TClass* IsA() const HMdcHitSim& operator=(const HMdcHitSim&) void print() void setNTracks(Int_t nTr, const Int_t* listTr, const UChar_t* nTm) void setNumNoiseWires(Int_t n) void setStatus(Int_t f) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t nTracks number of tracks in the list of tracks Int_t listTracks[5] list of tracks UChar_t nTimes[5] num. of drift times from each track Int_t status status of hit (e.g. 1 if ok)

Class Description

  HMdcHitSim

 This class is derived from HMdcHit for simulated events.
 Additional data elements are following:
   nTracks - the number of tracks in the list of tracks numbers
   listTracks[5] - the list of tracks numbers
   nTimes[5] - num. of drift times from each track in this hit
     (not cells because one cell can have 2 drift times from 2 tracks)
   Number of noise wires is kept in nTimes[4] and
   if nTimes[4]>0 listTracks[4]=-99
 This information can be accessed via the functions:
    Int_t getNTracks(void)
    Int_t getTrack(const Int_t n)      0 <= n < getNTracks()
    UChar_t getNTimes(const Int_t n)
    Int_t   getNumNoiseWires(void)

 The list of tracks is sorted. listTracks[0] is a track which have
 most number of drift times and etc.

 The list of tracks is calculated after filling of HMdcHit container
 via function  Int_t calcNTracks(void) which return nTracks.



void clear()
 reset data members to default values

void setNumNoiseWires(Int_t n)
 setting number of noise wires

void setNTracks(Int_t nTr,const Int_t* listTr,const UChar_t* nTm)
 copies nTr track numbers from array listTr to
 internal list of tracks array.

Int_t calcNTracks(void)
 calculate number of tracks which
 contribute to the hit and fills the
 list of tracks array. Needs the
 event structure and Cal1Sim category
 to deliver results.

void print(void)
 prints the information about wires (number of wires,
 track numbers and how often a track has been contributing
 to the the hit) in Hit to the screen.



Inline Functions


               void ~HMdcHitSim()
         HMdcHitSim HMdcHitSim()
               void setStatus(Int_t f)
              Int_t getStatus() const
              Int_t getNTracks() const
              Int_t getTrack(Int_t n) const
            UChar_t getNTimes(Int_t n) const
              Int_t getNumNoiseWires() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
         HMdcHitSim HMdcHitSim(const HMdcHitSim&)
        HMdcHitSim& operator=(const HMdcHitSim&)


Last update: 31.05.2001 by Vladimir Pechenov


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.