BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/McTruth/include/McTruth/MucMcHit.h
Go to the documentation of this file.
1#ifndef MucMcHit_H
2#define MucMcHit_H
3#include "EventModel/EventModel.h"
4#include "GaudiKernel/ContainedObject.h"
5#include "GaudiKernel/ObjectVector.h"
6#include "Identifier/Identifier.h"
7#include <algorithm>
8
9using namespace EventModel;
10extern const CLID& CLID_MucMcHit;
11
12namespace Event { // NameSpace
13
14 class MucMcHit : virtual public ContainedObject {
15 public:
16 virtual const CLID& clID() const { return MucMcHit::classID(); }
17
18 static const CLID& classID() { return CLID_MucMcHit; }
19 // Constructor
21 MucMcHit( const Identifier& id, unsigned int trackIndex, double xPosition,
22 double yPosition, double zPosition, double px, double py, double pz );
23
24 // Get associated id
25 Identifier identify() const;
26
27 // Get the associated track id
28 unsigned int getTrackIndex() const;
29
30 // Get the position x
31 double getPositionX() const;
32
33 // Get the position y
34 double getPositionY() const;
35
36 // Get the position z
37 double getPositionZ() const;
38
39 // Get momentum Px
40 double getPx() const;
41
42 // Get momentum Py
43 double getPy() const;
44
45 // Get momentum Pz
46 double getPz() const;
47
48 // Set
49 void setIdentifier( unsigned id ) { m_id = id; }
50 void setTrackIndex( unsigned int trackIndex ) { m_trackIndex = trackIndex; }
51 void setPositionX( double positionX ) { m_xPosition = positionX; }
52 void setPositionY( double positionY ) { m_yPosition = positionY; }
53 void setPositionZ( double positionZ ) { m_zPosition = positionZ; }
54 void setPx( double px ) { m_px = px; }
55 void setPy( double py ) { m_py = py; }
56 void setPz( double pz ) { m_pz = pz; }
57
58 private:
59 MucMcHit( const MucMcHit& );
60
61 MucMcHit& operator=( const MucMcHit& );
62
63 // const Identifier m_id; //2005/12/29 wensp modified
64
65 Identifier m_id;
66
67 unsigned int m_trackIndex;
68
69 double m_xPosition;
70
71 double m_yPosition;
72
73 double m_zPosition;
74
75 double m_px;
76
77 double m_py;
78
79 double m_pz;
80 };
81
82 typedef ObjectVector<MucMcHit> MucMcHitCol;
83
84} // NameSpace Event
85#endif
const CLID & CLID_MucMcHit
NTuple::Item< double > m_pz
double getPz() const
Definition MucMcHit.cxx:37
double getPy() const
Definition MucMcHit.cxx:34
unsigned int getTrackIndex() const
Definition MucMcHit.cxx:19
double getPositionX() const
Definition MucMcHit.cxx:22
double getPositionY() const
Definition MucMcHit.cxx:25
Identifier identify() const
Definition MucMcHit.cxx:16
virtual const CLID & clID() const
double getPx() const
Definition MucMcHit.cxx:31
double getPositionZ() const
Definition MucMcHit.cxx:28
void setTrackIndex(unsigned int trackIndex)
ObjectVector< MucMcHit > MucMcHitCol