BOSS 7.0.2
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)
 
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 ()
 
static const CLID & classID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ EmcMcHit() [1/4]

Event::EmcMcHit::EmcMcHit ( )
inline

Definition at line 27 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

27{};

◆ EmcMcHit() [2/4]

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}

◆ EmcMcHit() [3/4]

Event::EmcMcHit::EmcMcHit ( )
inline

Definition at line 27 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

27{};

◆ EmcMcHit() [4/4]

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

Member Function Documentation

◆ begin() [1/2]

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}

◆ begin() [2/2]

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

◆ classID() [1/2]

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

Definition at line 22 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

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

Referenced by clID().

◆ classID() [2/2]

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

Definition at line 22 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

23 {
24 return CLID_EmcMcHit;
25 }

◆ clID() [1/2]

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

Definition at line 17 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

18 {
19 return EmcMcHit::classID();
20 }

◆ clID() [2/2]

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

Definition at line 17 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

18 {
19 return EmcMcHit::classID();
20 }

◆ end() [1/2]

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}

◆ end() [2/2]

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

◆ find() [1/2]

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}

◆ find() [2/2]

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

◆ getDepositEnergy() [1/2]

double Event::EmcMcHit::getDepositEnergy ( ) const

Definition at line 75 of file EmcMcHit.cxx.

75 {
76 return m_depositEnergy;
77}

◆ getDepositEnergy() [2/2]

double Event::EmcMcHit::getDepositEnergy ( ) const

◆ getHitEmc() [1/2]

int Event::EmcMcHit::getHitEmc ( ) const

Definition at line 25 of file EmcMcHit.cxx.

25 {
26 return m_hitEmc;
27}

◆ getHitEmc() [2/2]

int Event::EmcMcHit::getHitEmc ( ) const

◆ getHitMap() [1/2]

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

Definition at line 95 of file EmcMcHit.cxx.

95 {
96 return m_hitMap;
97}

◆ getHitMap() [2/2]

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

◆ getPDGCharge() [1/2]

double Event::EmcMcHit::getPDGCharge ( ) const

Definition at line 35 of file EmcMcHit.cxx.

35 {
36 return m_PDGCharge;
37}

◆ getPDGCharge() [2/2]

double Event::EmcMcHit::getPDGCharge ( ) const

◆ getPDGCode() [1/2]

int Event::EmcMcHit::getPDGCode ( ) const

Definition at line 30 of file EmcMcHit.cxx.

30 {
31 return m_PDGCode;
32}

◆ getPDGCode() [2/2]

int Event::EmcMcHit::getPDGCode ( ) const

◆ getPositionX() [1/2]

double Event::EmcMcHit::getPositionX ( ) const

Definition at line 45 of file EmcMcHit.cxx.

45 {
46 return m_xPosition;
47}

◆ getPositionX() [2/2]

double Event::EmcMcHit::getPositionX ( ) const

◆ getPositionY() [1/2]

double Event::EmcMcHit::getPositionY ( ) const

Definition at line 50 of file EmcMcHit.cxx.

50 {
51 return m_yPosition;
52}

◆ getPositionY() [2/2]

double Event::EmcMcHit::getPositionY ( ) const

◆ getPositionZ() [1/2]

double Event::EmcMcHit::getPositionZ ( ) const

Definition at line 55 of file EmcMcHit.cxx.

55 {
56 return m_zPosition;
57}

◆ getPositionZ() [2/2]

double Event::EmcMcHit::getPositionZ ( ) const

◆ getPx() [1/2]

double Event::EmcMcHit::getPx ( ) const

Definition at line 60 of file EmcMcHit.cxx.

60 {
61 return m_px;
62}

◆ getPx() [2/2]

double Event::EmcMcHit::getPx ( ) const

◆ getPy() [1/2]

double Event::EmcMcHit::getPy ( ) const

Definition at line 65 of file EmcMcHit.cxx.

65 {
66 return m_py;
67}

◆ getPy() [2/2]

double Event::EmcMcHit::getPy ( ) const

◆ getPz() [1/2]

double Event::EmcMcHit::getPz ( ) const

Definition at line 70 of file EmcMcHit.cxx.

70 {
71 return m_pz;
72}

◆ getPz() [2/2]

double Event::EmcMcHit::getPz ( ) const

◆ getTime() [1/2]

double Event::EmcMcHit::getTime ( ) const

Definition at line 40 of file EmcMcHit.cxx.

40 {
41 return m_time;
42}

◆ getTime() [2/2]

double Event::EmcMcHit::getTime ( ) const

◆ getTrackIndex() [1/2]

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

Definition at line 20 of file EmcMcHit.cxx.

20 {
21 return m_trackIndex;
22}

◆ getTrackIndex() [2/2]

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

◆ identify() [1/2]

Identifier Event::EmcMcHit::identify ( ) const

Definition at line 15 of file EmcMcHit.cxx.

15 {
16 return m_id;
17}

◆ identify() [2/2]

Identifier Event::EmcMcHit::identify ( ) const

◆ setDepositEnergy() [1/2]

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

Definition at line 85 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

85{m_depositEnergy = depositEnergy;}

◆ setDepositEnergy() [2/2]

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

Definition at line 85 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

85{m_depositEnergy = depositEnergy;}

◆ setHitEmc() [1/2]

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

Definition at line 74 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

74{ m_hitEmc=is; }

Referenced by BesMcTruthWriter::SaveEmcTruth().

◆ setHitEmc() [2/2]

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

Definition at line 74 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

74{ m_hitEmc=is; }

◆ setHitMap() [1/2]

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

Definition at line 94 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

94{ m_hitMap=hitMap; }

Referenced by BesMcTruthWriter::SaveEmcTruth().

◆ setHitMap() [2/2]

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

Definition at line 94 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

94{ m_hitMap=hitMap; }

◆ setIdentifier() [1/2]

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

Definition at line 73 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

73{m_id = id ;}

◆ setIdentifier() [2/2]

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

Definition at line 73 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

73{m_id = id ;}

◆ setPDGCharge() [1/2]

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

Definition at line 76 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

76{ m_PDGCharge = charge; }

Referenced by BesMcTruthWriter::SaveEmcTruth().

◆ setPDGCharge() [2/2]

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

Definition at line 76 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

76{ m_PDGCharge = charge; }

◆ setPDGCode() [1/2]

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

Definition at line 75 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

75{ m_PDGCode=code; }

Referenced by BesMcTruthWriter::SaveEmcTruth().

◆ setPDGCode() [2/2]

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

Definition at line 75 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

75{ m_PDGCode=code; }

◆ setPositionX() [1/2]

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

Definition at line 79 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

79{m_xPosition = positionX;}

◆ setPositionX() [2/2]

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

Definition at line 79 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

79{m_xPosition = positionX;}

◆ setPositionY() [1/2]

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

Definition at line 80 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

80{m_yPosition = positionY;}

◆ setPositionY() [2/2]

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

Definition at line 80 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

80{m_yPosition = positionY;}

◆ setPositionZ() [1/2]

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

Definition at line 81 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

81{m_zPosition = positionZ;}

◆ setPositionZ() [2/2]

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

Definition at line 81 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

81{m_zPosition = positionZ;}

◆ setPx() [1/2]

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

Definition at line 82 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

82{m_px = px;}

◆ setPx() [2/2]

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

Definition at line 82 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

82{m_px = px;}

◆ setPy() [1/2]

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

Definition at line 83 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

83{m_py = py;}

◆ setPy() [2/2]

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

Definition at line 83 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

83{m_py = py;}

◆ setPz() [1/2]

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

Definition at line 84 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

84{m_pz = pz;}

◆ setPz() [2/2]

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

Definition at line 84 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

84{m_pz = pz;}

◆ setTime() [1/2]

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

Definition at line 77 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

77{ m_time=time; }
Double_t time

Referenced by BesMcTruthWriter::SaveEmcTruth().

◆ setTime() [2/2]

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

Definition at line 77 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

77{ m_time=time; }

◆ setTrackIndex() [1/2]

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

Definition at line 78 of file Event/McTruth/McTruth-00-02-19/McTruth/EmcMcHit.h.

78{ m_trackIndex = trackIndex;}

◆ setTrackIndex() [2/2]

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

Definition at line 78 of file InstallArea/include/McTruth/McTruth/EmcMcHit.h.

78{ m_trackIndex = trackIndex;}

◆ size() [1/2]

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

Definition at line 91 of file EmcMcHit.cxx.

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

◆ size() [2/2]

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

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