BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::EmcMcHit Class Reference

#include <EmcMcHit.h>

+ Inheritance diagram for Event::EmcMcHit:

Public Member Functions

virtual const CLID & clID () const
 
 EmcMcHit ()
 
 EmcMcHit (const Identifier &id, unsigned int trackIndex, double xPosition, double yPosition, double zPosition, double px, double py, double pz, double depositEnergy)
 
Identifier identify () const
 
unsigned int getTrackIndex () const
 
int getHitEmc () const
 
int getPDGCode () const
 
double getPDGCharge () const
 
double getTime () const
 
double getPositionX () const
 
double getPositionY () const
 
double getPositionZ () const
 
double getPx () const
 
double getPy () const
 
double getPz () const
 
double getDepositEnergy () const
 
void setIdentifier (Identifier &id)
 
void setHitEmc (int is)
 
void setPDGCode (int code)
 
void setPDGCharge (double charge)
 
void setTime (double time)
 
void setTrackIndex (unsigned int trackIndex)
 
void setPositionX (double positionX)
 
void setPositionY (double positionY)
 
void setPositionZ (double positionZ)
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setDepositEnergy (double depositEnergy)
 
std::map< Identifier, double >::const_iterator begin () const
 
std::map< Identifier, double >::const_iterator end () const
 
std::map< Identifier, double >::const_iterator find (Identifier &) const
 
unsigned int size () const
 
std::map< Identifier, double > getHitMap () const
 
void setHitMap (std::map< Identifier, double > &hitMap)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 15 of file EmcMcHit.h.

Constructor & Destructor Documentation

◆ EmcMcHit() [1/2]

Event::EmcMcHit::EmcMcHit ( )
inline

Definition at line 27 of file EmcMcHit.h.

27{};

◆ EmcMcHit() [2/2]

Event::EmcMcHit::EmcMcHit ( const Identifier id,
unsigned int  trackIndex,
double  xPosition,
double  yPosition,
double  zPosition,
double  px,
double  py,
double  pz,
double  depositEnergy 
)

Definition at line 3 of file EmcMcHit.cxx.

6 : m_id(id), m_trackIndex(trackIndex),
7 m_hitEmc(0),m_PDGCode(0),m_PDGCharge(0),m_time(0),
8 m_xPosition(xPosition), m_yPosition(yPosition),m_zPosition(zPosition),
9 m_px(px), m_py(py), m_pz(pz), m_depositEnergy(depositEnergy)
10{
11 m_hitMap.clear();
12}

Member Function Documentation

◆ begin()

std::map< Identifier, double >::const_iterator Event::EmcMcHit::begin ( ) const

Definition at line 79 of file EmcMcHit.cxx.

79 {
80 return m_hitMap.begin();
81}

◆ classID()

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

Definition at line 22 of file EmcMcHit.h.

23 {
24 return CLID_EmcMcHit;
25 }
const CLID & CLID_EmcMcHit
Definition: EventModel.cxx:220

Referenced by clID().

◆ clID()

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

Definition at line 17 of file EmcMcHit.h.

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

◆ end()

std::map< Identifier, double >::const_iterator Event::EmcMcHit::end ( ) const

Definition at line 83 of file EmcMcHit.cxx.

83 {
84 return m_hitMap.end();
85}

◆ find()

std::map< Identifier, double >::const_iterator Event::EmcMcHit::find ( Identifier id) const

Definition at line 87 of file EmcMcHit.cxx.

87 {
88 return m_hitMap.find(id);
89}

◆ getDepositEnergy()

double Event::EmcMcHit::getDepositEnergy ( ) const

Definition at line 75 of file EmcMcHit.cxx.

75 {
76 return m_depositEnergy;
77}

◆ getHitEmc()

int Event::EmcMcHit::getHitEmc ( ) const

Definition at line 25 of file EmcMcHit.cxx.

25 {
26 return m_hitEmc;
27}

◆ getHitMap()

std::map< Identifier, double > Event::EmcMcHit::getHitMap ( ) const

Definition at line 95 of file EmcMcHit.cxx.

95 {
96 return m_hitMap;
97}

◆ getPDGCharge()

double Event::EmcMcHit::getPDGCharge ( ) const

Definition at line 35 of file EmcMcHit.cxx.

35 {
36 return m_PDGCharge;
37}

◆ getPDGCode()

int Event::EmcMcHit::getPDGCode ( ) const

Definition at line 30 of file EmcMcHit.cxx.

30 {
31 return m_PDGCode;
32}

◆ getPositionX()

double Event::EmcMcHit::getPositionX ( ) const

Definition at line 45 of file EmcMcHit.cxx.

45 {
46 return m_xPosition;
47}

◆ getPositionY()

double Event::EmcMcHit::getPositionY ( ) const

Definition at line 50 of file EmcMcHit.cxx.

50 {
51 return m_yPosition;
52}

◆ getPositionZ()

double Event::EmcMcHit::getPositionZ ( ) const

Definition at line 55 of file EmcMcHit.cxx.

55 {
56 return m_zPosition;
57}

◆ getPx()

double Event::EmcMcHit::getPx ( ) const

Definition at line 60 of file EmcMcHit.cxx.

60 {
61 return m_px;
62}

◆ getPy()

double Event::EmcMcHit::getPy ( ) const

Definition at line 65 of file EmcMcHit.cxx.

65 {
66 return m_py;
67}

◆ getPz()

double Event::EmcMcHit::getPz ( ) const

Definition at line 70 of file EmcMcHit.cxx.

70 {
71 return m_pz;
72}

◆ getTime()

double Event::EmcMcHit::getTime ( ) const

Definition at line 40 of file EmcMcHit.cxx.

40 {
41 return m_time;
42}

◆ getTrackIndex()

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

Definition at line 20 of file EmcMcHit.cxx.

20 {
21 return m_trackIndex;
22}

◆ identify()

Identifier Event::EmcMcHit::identify ( ) const

Definition at line 15 of file EmcMcHit.cxx.

15 {
16 return m_id;
17}

◆ setDepositEnergy()

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

Definition at line 85 of file EmcMcHit.h.

85{m_depositEnergy = depositEnergy;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setHitEmc()

void Event::EmcMcHit::setHitEmc ( int  is)
inline

Definition at line 74 of file EmcMcHit.h.

74{ m_hitEmc=is; }

Referenced by BesMcTruthWriter::SaveEmcTruth(), and EmcMcHitCnv::TObjectToDataObject().

◆ setHitMap()

void Event::EmcMcHit::setHitMap ( std::map< Identifier, double > &  hitMap)
inline

Definition at line 94 of file EmcMcHit.h.

94{ m_hitMap=hitMap; }

Referenced by BesMcTruthWriter::SaveEmcTruth(), and EmcMcHitCnv::TObjectToDataObject().

◆ setIdentifier()

void Event::EmcMcHit::setIdentifier ( Identifier id)
inline

Definition at line 73 of file EmcMcHit.h.

73{m_id = id ;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPDGCharge()

void Event::EmcMcHit::setPDGCharge ( double  charge)
inline

Definition at line 76 of file EmcMcHit.h.

76{ m_PDGCharge = charge; }
float charge

Referenced by BesMcTruthWriter::SaveEmcTruth(), and EmcMcHitCnv::TObjectToDataObject().

◆ setPDGCode()

void Event::EmcMcHit::setPDGCode ( int  code)
inline

Definition at line 75 of file EmcMcHit.h.

75{ m_PDGCode=code; }

Referenced by BesMcTruthWriter::SaveEmcTruth(), and EmcMcHitCnv::TObjectToDataObject().

◆ setPositionX()

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

Definition at line 79 of file EmcMcHit.h.

79{m_xPosition = positionX;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPositionY()

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

Definition at line 80 of file EmcMcHit.h.

80{m_yPosition = positionY;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPositionZ()

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

Definition at line 81 of file EmcMcHit.h.

81{m_zPosition = positionZ;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPx()

void Event::EmcMcHit::setPx ( double  px)
inline

Definition at line 82 of file EmcMcHit.h.

82{m_px = px;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPy()

void Event::EmcMcHit::setPy ( double  py)
inline

Definition at line 83 of file EmcMcHit.h.

83{m_py = py;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setPz()

void Event::EmcMcHit::setPz ( double  pz)
inline

Definition at line 84 of file EmcMcHit.h.

84{m_pz = pz;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ setTime()

void Event::EmcMcHit::setTime ( double  time)
inline

Definition at line 77 of file EmcMcHit.h.

77{ m_time=time; }

Referenced by BesMcTruthWriter::SaveEmcTruth(), and EmcMcHitCnv::TObjectToDataObject().

◆ setTrackIndex()

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

Definition at line 78 of file EmcMcHit.h.

78{ m_trackIndex = trackIndex;}

Referenced by EmcMcHitCnv::TObjectToDataObject().

◆ size()

unsigned int Event::EmcMcHit::size ( ) const

Definition at line 91 of file EmcMcHit.cxx.

91 {
92 return m_hitMap.size();
93}

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