McPart


class description - source file - inheritance tree

class McPart : public TObject


    public:
McPart McPart() McPart McPart(Int_t ID) McPart McPart(McPart* part) McPart McPart(McPart&) virtual void ~McPart() TClass* Class() Float_t* GetCalMom() Float_t* GetCalPos() Float_t GetCharge() Float_t* GetMomentum() McPart* GetParnt() Float_t* GetPosition() Int_t GetStatus() Int_t GetType() virtual TClass* IsA() void SetMomentum(Float_t* momentum) void SetParticleAtCal(Float_t* momentum, Float_t* position) void SetPosition(Float_t* position) void SetUpParticle(Int_t type, Float_t charge, Int_t status, McPart* parntptr, Float_t* tmom, Float_t* tpos) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
Int_t m_type STDHEP particle type number Int_t m_status STDHEP status code McPart* m_parnt Pointer to McPart object which is parent of particle Float_t m_InitMom[4] Initial momentum (x,y,z,tot) Float_t m_InitPos[4] Initial position (x,y,z,time) Float_t m_CalMom[4] Particle momentum at calorimeter Float_t m_CalPos[4] Particle position at calorimeter Float_t m_charge Particle charge

Class Description

                                                                       
 McPart                                                                
                                                                       
 The class McPart is the class containing the Monte Carlo particle     
 information such as the particle ID, a pointer to the parent McPart   
 object if it exists,the charge and the position and momentum initially
 and at the calorimeter. All particles recorded in the detector get an 
 McPart object assigned to them.                                       
                                                                       


McPart()
 Default constructor

McPart(Int_t ID)
 Create an McPart object with STDHEP particle ID

McPart(McPart* part)
 Copy constructor, still has to be finished

void SetUpParticle(Int_t type,Float_t charge,Int_t status, McPart* parntptr, Float_t* tmom,Float_t* tpos)
 Set all the attributes of the particle

void SetMomentum(Float_t *momentum)
 Store the initial momentum of the particle

void SetPosition(Float_t *position)
 Store the initial position of the particle

void SetParticleAtCal(Float_t* momentum,Float_t* position)
 Store the position and momentum pf the particle at the calorimeter



Inline Functions


              Int_t GetType()
              Int_t GetStatus()
            Float_t GetCharge()
            McPart* GetParnt()
           Float_t* GetMomentum()
           Float_t* GetPosition()
           Float_t* GetCalMom()
           Float_t* GetCalPos()
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
             McPart McPart(McPart&)
               void ~McPart()


ROOT page - Class index - 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.