BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::MdcMcHit Class Reference

#include <MdcMcHit.h>

+ Inheritance diagram for Event::MdcMcHit:

Public Member Functions

virtual const CLID & clID () const
 
 MdcMcHit ()
 
 MdcMcHit (const Identifier &id, unsigned int trackIndex, double xPosition, double yPosition, double zPosition, double driftDistance, double depositEnergy, int posFlag=-1)
 
 MdcMcHit (const Identifier &id, unsigned int trackIndex, int currentTrackPID, double xPosition, double yPosition, double zPosition, double xMomentum, double yMomentum, double zMomentum, double driftDistance, double depositEnergy, double flightLength, int posFlag=-1)
 
Identifier identify () const
 
unsigned int getTrackIndex () const
 
int getCurrentTrackPID () const
 
int getIsSecondary () const
 
double getPositionX () const
 
double getPositionY () const
 
double getPositionZ () const
 
double getMomentumX () const
 
double getMomentumY () const
 
double getMomentumZ () const
 
double getDriftDistance () const
 
double getDepositEnergy () const
 
int getPositionFlag () const
 
double getFlightLength () const
 
std::string getCreatorProcess () const
 
int getDigiIdx () const
 
void setIdentifier (unsigned int id)
 
void setTrackIndex (unsigned int trackIndex)
 
void setCurrentTrackPID (int currentTrackPID)
 
void setIsSecondary (int isSec)
 
void setPositionX (double positionX)
 
void setPositionY (double positionY)
 
void setPositionZ (double positionZ)
 
void setMomentumX (double momentumX)
 
void setMomentumY (double momentumY)
 
void setMomentumZ (double momentumZ)
 
void setDriftDistance (double driftDistance)
 
void setDepositEnergy (double depositEnergy)
 
void setPositionFlag (int posFlag)
 
void setFlightLength (double flightLength)
 
void setCreatorProcess (std::string creatorProcess)
 
void setDigiIdx (int id)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 15 of file MdcMcHit.h.

Constructor & Destructor Documentation

◆ MdcMcHit() [1/3]

Event::MdcMcHit::MdcMcHit ( )
inline

Definition at line 27 of file MdcMcHit.h.

27{};

◆ MdcMcHit() [2/3]

Event::MdcMcHit::MdcMcHit ( const Identifier & id,
unsigned int trackIndex,
double xPosition,
double yPosition,
double zPosition,
double driftDistance,
double depositEnergy,
int posFlag = -1 )

Definition at line 3 of file MdcMcHit.cxx.

5 : m_id(id), m_trackIndex(trackIndex),
6 m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
7 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy), m_posFlag(posFlag)
8{ }

◆ MdcMcHit() [3/3]

Event::MdcMcHit::MdcMcHit ( const Identifier & id,
unsigned int trackIndex,
int currentTrackPID,
double xPosition,
double yPosition,
double zPosition,
double xMomentum,
double yMomentum,
double zMomentum,
double driftDistance,
double depositEnergy,
double flightLength,
int posFlag = -1 )

Definition at line 10 of file MdcMcHit.cxx.

14 :
15 m_id(id), m_trackIndex(trackIndex),m_currentTrackPID(currentTrackPID),
16 m_xPosition(xPosition),m_yPosition(yPosition),m_zPosition(zPosition),
17 m_xMomentum(xMomentum),m_yMomentum(yMomentum),m_zMomentum(zMomentum),
18 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy),
19 m_posFlag(posFlag),m_flightLength(flightLength)
20{ }

Member Function Documentation

◆ classID()

static const CLID & Event::MdcMcHit::classID ( )
inlinestatic

Definition at line 22 of file MdcMcHit.h.

23 {
24 return CLID_MdcMcHit;
25 }
const CLID & CLID_MdcMcHit

Referenced by clID().

◆ clID()

virtual const CLID & Event::MdcMcHit::clID ( ) const
inlinevirtual

Definition at line 17 of file MdcMcHit.h.

18 {
19 return MdcMcHit::classID();
20 }
static const CLID & classID()
Definition MdcMcHit.h:22

◆ getCreatorProcess()

std::string Event::MdcMcHit::getCreatorProcess ( ) const
inline

Definition at line 79 of file MdcMcHit.h.

79{return m_creatorProcess;}

Referenced by MdcUtilitySvc::getMdcDigiOnMcParticle().

◆ getCurrentTrackPID()

int Event::MdcMcHit::getCurrentTrackPID ( ) const
inline

Definition at line 44 of file MdcMcHit.h.

44{return m_currentTrackPID;}

◆ getDepositEnergy()

double Event::MdcMcHit::getDepositEnergy ( ) const

Definition at line 53 of file MdcMcHit.cxx.

53 {
54 return m_depositEnergy;
55}

◆ getDigiIdx()

int Event::MdcMcHit::getDigiIdx ( ) const
inline

Definition at line 81 of file MdcMcHit.h.

81{return m_digi_id;}// positve: contribute to both time and charge, negative: only charge

◆ getDriftDistance()

double Event::MdcMcHit::getDriftDistance ( ) const

Definition at line 48 of file MdcMcHit.cxx.

48 {
49 return m_driftDistance;
50}

Referenced by HoughHit::setTruthInfo().

◆ getFlightLength()

double Event::MdcMcHit::getFlightLength ( ) const
inline

Definition at line 77 of file MdcMcHit.h.

77{return m_flightLength;}

◆ getIsSecondary()

int Event::MdcMcHit::getIsSecondary ( ) const
inline

Definition at line 47 of file MdcMcHit.h.

47{return m_isSecondary;};

◆ getMomentumX()

double Event::MdcMcHit::getMomentumX ( ) const
inline

Definition at line 59 of file MdcMcHit.h.

59{return m_xMomentum;}

◆ getMomentumY()

double Event::MdcMcHit::getMomentumY ( ) const
inline

Definition at line 62 of file MdcMcHit.h.

62{return m_yMomentum;}

◆ getMomentumZ()

double Event::MdcMcHit::getMomentumZ ( ) const
inline

Definition at line 65 of file MdcMcHit.h.

65{return m_zMomentum;}

◆ getPositionFlag()

int Event::MdcMcHit::getPositionFlag ( ) const

Definition at line 58 of file MdcMcHit.cxx.

58 {
59 return m_posFlag;
60}

Referenced by HoughHit::setTruthInfo().

◆ getPositionX()

double Event::MdcMcHit::getPositionX ( ) const

Definition at line 33 of file MdcMcHit.cxx.

33 {
34 return m_xPosition;
35}

Referenced by HoughHit::setTruthInfo().

◆ getPositionY()

double Event::MdcMcHit::getPositionY ( ) const

Definition at line 38 of file MdcMcHit.cxx.

38 {
39 return m_yPosition;
40}

Referenced by HoughHit::setTruthInfo().

◆ getPositionZ()

double Event::MdcMcHit::getPositionZ ( ) const

Definition at line 43 of file MdcMcHit.cxx.

43 {
44 return m_zPosition;
45}

Referenced by HoughHit::setTruthInfo().

◆ getTrackIndex()

unsigned int Event::MdcMcHit::getTrackIndex ( ) const

Definition at line 28 of file MdcMcHit.cxx.

28 {
29 return m_trackIndex;
30}

Referenced by MdcUtilitySvc::getMdcDigiOnMcParticle(), and HoughHit::setTruthInfo().

◆ identify()

Identifier Event::MdcMcHit::identify ( ) const

Definition at line 23 of file MdcMcHit.cxx.

23 {
24 return m_id;
25}

◆ setCreatorProcess()

void Event::MdcMcHit::setCreatorProcess ( std::string creatorProcess)
inline

Definition at line 99 of file MdcMcHit.h.

99{m_creatorProcess = creatorProcess;};

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setCurrentTrackPID()

void Event::MdcMcHit::setCurrentTrackPID ( int currentTrackPID)
inline

Definition at line 86 of file MdcMcHit.h.

86 {
87 m_currentTrackPID = currentTrackPID;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setDepositEnergy()

void Event::MdcMcHit::setDepositEnergy ( double depositEnergy)
inline

Definition at line 96 of file MdcMcHit.h.

96{m_depositEnergy = depositEnergy;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setDigiIdx()

void Event::MdcMcHit::setDigiIdx ( int id)
inline

Definition at line 100 of file MdcMcHit.h.

100{m_digi_id=id;};

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setDriftDistance()

void Event::MdcMcHit::setDriftDistance ( double driftDistance)
inline

Definition at line 95 of file MdcMcHit.h.

95{m_driftDistance = driftDistance;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setFlightLength()

void Event::MdcMcHit::setFlightLength ( double flightLength)
inline

Definition at line 98 of file MdcMcHit.h.

98{m_flightLength = flightLength;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setIdentifier()

void Event::MdcMcHit::setIdentifier ( unsigned int id)
inline

Definition at line 84 of file MdcMcHit.h.

84{m_id = id ;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setIsSecondary()

void Event::MdcMcHit::setIsSecondary ( int isSec)
inline

Definition at line 88 of file MdcMcHit.h.

88{m_isSecondary = isSec;};

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumX()

void Event::MdcMcHit::setMomentumX ( double momentumX)
inline

Definition at line 92 of file MdcMcHit.h.

92{m_xMomentum = momentumX;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumY()

void Event::MdcMcHit::setMomentumY ( double momentumY)
inline

Definition at line 93 of file MdcMcHit.h.

93{m_yMomentum = momentumY;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumZ()

void Event::MdcMcHit::setMomentumZ ( double momentumZ)
inline

Definition at line 94 of file MdcMcHit.h.

94{m_zMomentum = momentumZ;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionFlag()

void Event::MdcMcHit::setPositionFlag ( int posFlag)
inline

Definition at line 97 of file MdcMcHit.h.

97{ m_posFlag = posFlag; }

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionX()

void Event::MdcMcHit::setPositionX ( double positionX)
inline

Definition at line 89 of file MdcMcHit.h.

89{m_xPosition = positionX;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionY()

void Event::MdcMcHit::setPositionY ( double positionY)
inline

Definition at line 90 of file MdcMcHit.h.

90{m_yPosition = positionY;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionZ()

void Event::MdcMcHit::setPositionZ ( double positionZ)
inline

Definition at line 91 of file MdcMcHit.h.

91{m_zPosition = positionZ;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setTrackIndex()

void Event::MdcMcHit::setTrackIndex ( unsigned int trackIndex)
inline

Definition at line 85 of file MdcMcHit.h.

85{m_trackIndex = trackIndex;}

Referenced by MdcMcHitCnv::TObjectToDataObject().


The documentation for this class was generated from the following files: