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 GetCharge() TLorentzVector* GetMomentum() McPart* GetParnt() TLorentzVector* GetPosition() Int_t GetStatus() Int_t GetType() virtual TClass* IsA() void SetCharge(Float_t q) void SetMomentum(TLorentzVector* momentum) void SetPosition(TLorentzVector* position) void SetUpParticle(Int_t type, Float_t charge, Int_t status, McPart* parntptr, TLorentzVector* tmom, TLorentzVector* tpos) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

private:
Int_t m_type particle type number Int_t m_status status code McPart* m_parnt Pointer to McPart object which is parent of particle TLorentzVector* m_InitMom Initial momentum (x,y,z,tot) TLorentzVector* m_TermPos Termination position (x,y,z,time) Float_t m_charge Particle charge

Class Description

 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()
 Default destructor

McPart(Int_t ID)
 Create an McPart object with article ID

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

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

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

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



Inline Functions


                  Int_t GetType()
                  Int_t GetStatus()
                Float_t GetCharge()
                McPart* GetParnt()
        TLorentzVector* GetMomentum()
        TLorentzVector* GetPosition()
                   void SetCharge(Float_t q)
                TClass* Class()
                TClass* IsA()
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                 McPart McPart(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.