CGEM BOSS 6.6.5.g
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, unsigned int currentTrackIndex, 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
 
unsigned int getCurrentTrackIndex () 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
 
string getCreatorProcess () const
 
int getDigiIdx () const
 
void setIdentifier (unsigned int id)
 
void setTrackIndex (unsigned int trackIndex)
 
void setCurrentTrackIndex (double currentTrackIndex)
 
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 (string creatorProcess)
 
void setDigiIdx (int id)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 16 of file MdcMcHit.h.

Constructor & Destructor Documentation

◆ MdcMcHit() [1/3]

Event::MdcMcHit::MdcMcHit ( )
inline

Definition at line 28 of file MdcMcHit.h.

28{};

◆ 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,
unsigned int  currentTrackIndex,
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_currentTrackIndex(currentTrackIndex),
16 m_currentTrackPID(currentTrackPID),m_xPosition(xPosition),
17 m_yPosition(yPosition),m_zPosition(zPosition),m_xMomentum(xMomentum),
18 m_yMomentum(yMomentum),m_zMomentum(zMomentum),
19 m_driftDistance(driftDistance), m_depositEnergy(depositEnergy),
20 m_posFlag(posFlag),m_flightLength(flightLength)
21{ }

Member Function Documentation

◆ classID()

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

Definition at line 23 of file MdcMcHit.h.

24 {
25 return CLID_MdcMcHit;
26 }
const CLID & CLID_MdcMcHit
Definition: EventModel.cxx:235

Referenced by clID().

◆ clID()

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

Definition at line 18 of file MdcMcHit.h.

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

◆ getCreatorProcess()

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

Definition at line 83 of file MdcMcHit.h.

83{return m_creatorProcess;}

◆ getCurrentTrackIndex()

unsigned int Event::MdcMcHit::getCurrentTrackIndex ( ) const
inline

Definition at line 45 of file MdcMcHit.h.

45{return m_currentTrackIndex;}

◆ getCurrentTrackPID()

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

Definition at line 48 of file MdcMcHit.h.

48{return m_currentTrackPID;}

◆ getDepositEnergy()

double Event::MdcMcHit::getDepositEnergy ( ) const

Definition at line 54 of file MdcMcHit.cxx.

54 {
55 return m_depositEnergy;
56}

Referenced by HoughHit::HoughHit().

◆ getDigiIdx()

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

Definition at line 85 of file MdcMcHit.h.

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

◆ getDriftDistance()

double Event::MdcMcHit::getDriftDistance ( ) const

Definition at line 49 of file MdcMcHit.cxx.

49 {
50 return m_driftDistance;
51}

Referenced by HoughHit::HoughHit(), and HoughHit::print().

◆ getFlightLength()

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

Definition at line 81 of file MdcMcHit.h.

81{return m_flightLength;}

◆ getIsSecondary()

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

Definition at line 51 of file MdcMcHit.h.

51{return m_isSecondary;};

◆ getMomentumX()

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

Definition at line 63 of file MdcMcHit.h.

63{return m_xMomentum;}

◆ getMomentumY()

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

Definition at line 66 of file MdcMcHit.h.

66{return m_yMomentum;}

◆ getMomentumZ()

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

Definition at line 69 of file MdcMcHit.h.

69{return m_zMomentum;}

◆ getPositionFlag()

int Event::MdcMcHit::getPositionFlag ( ) const

Definition at line 59 of file MdcMcHit.cxx.

59 {
60 return m_posFlag;
61}

Referenced by HoughHit::HoughHit(), and HoughHit::print().

◆ getPositionX()

double Event::MdcMcHit::getPositionX ( ) const

Definition at line 34 of file MdcMcHit.cxx.

34 {
35 return m_xPosition;
36}

Referenced by HoughHit::HoughHit().

◆ getPositionY()

double Event::MdcMcHit::getPositionY ( ) const

Definition at line 39 of file MdcMcHit.cxx.

39 {
40 return m_yPosition;
41}

Referenced by HoughHit::HoughHit().

◆ getPositionZ()

double Event::MdcMcHit::getPositionZ ( ) const

Definition at line 44 of file MdcMcHit.cxx.

44 {
45 return m_zPosition;
46}

Referenced by HoughHit::HoughHit().

◆ getTrackIndex()

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

Definition at line 29 of file MdcMcHit.cxx.

29 {
30 return m_trackIndex;
31}

Referenced by HoughHit::HoughHit().

◆ identify()

Identifier Event::MdcMcHit::identify ( ) const

Definition at line 24 of file MdcMcHit.cxx.

24 {
25 return m_id;
26}

Referenced by HoughFinder::getMcHitCol(), and HoughHit::HoughHit().

◆ setCreatorProcess()

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

Definition at line 106 of file MdcMcHit.h.

106{m_creatorProcess = creatorProcess;};

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setCurrentTrackIndex()

void Event::MdcMcHit::setCurrentTrackIndex ( double  currentTrackIndex)
inline

Definition at line 90 of file MdcMcHit.h.

90 {
91 m_currentTrackIndex = currentTrackIndex;}

◆ setCurrentTrackPID()

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

Definition at line 92 of file MdcMcHit.h.

92 {
93 m_currentTrackPID = currentTrackPID;}

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setDepositEnergy()

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

Definition at line 103 of file MdcMcHit.h.

103{m_depositEnergy = depositEnergy;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setDigiIdx()

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

Definition at line 107 of file MdcMcHit.h.

107{m_digi_id=id;};

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setDriftDistance()

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

Definition at line 102 of file MdcMcHit.h.

102{m_driftDistance = driftDistance;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setFlightLength()

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

Definition at line 105 of file MdcMcHit.h.

105{m_flightLength = flightLength;}

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setIdentifier()

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

Definition at line 88 of file MdcMcHit.h.

88{m_id = id ;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setIsSecondary()

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

Definition at line 94 of file MdcMcHit.h.

94{m_isSecondary= isSec ;};

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumX()

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

Definition at line 99 of file MdcMcHit.h.

99{m_xMomentum = momentumX;}

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumY()

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

Definition at line 100 of file MdcMcHit.h.

100{m_yMomentum = momentumY;}

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setMomentumZ()

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

Definition at line 101 of file MdcMcHit.h.

101{m_zMomentum = momentumZ;}

Referenced by BesMcTruthWriter::SaveMdcTruth(), and MdcMcHitCnv::TObjectToDataObject().

◆ setPositionFlag()

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

Definition at line 104 of file MdcMcHit.h.

104{ m_posFlag = posFlag; }

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionX()

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

Definition at line 95 of file MdcMcHit.h.

95{m_xPosition = positionX;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionY()

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

Definition at line 96 of file MdcMcHit.h.

96{m_yPosition = positionY;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setPositionZ()

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

Definition at line 97 of file MdcMcHit.h.

97{m_zPosition = positionZ;}

Referenced by MdcMcHitCnv::TObjectToDataObject().

◆ setTrackIndex()

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

Definition at line 89 of file MdcMcHit.h.

89{m_trackIndex = trackIndex;}

Referenced by MdcMcHitCnv::TObjectToDataObject().


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