Class describing a pile-up truth event in the MC record.
More...
#include <TruthPileupEvent_v1.h>
|
| | TruthPileupEvent_v1 () |
| | Default constructor.
|
| virtual Type::ObjectType | type () const |
| | The type of the object as a simple enumeration.
|
| void | toPersistent () |
| | Function making sure that the object is ready for persistification.
|
Class describing a pile-up truth event in the MC record.
- Author
- Andy Buckley Andy..nosp@m.Buck.nosp@m.ley@c.nosp@m.ern..nosp@m.ch
-
Jovan Mitrevski Jovan.nosp@m..Mit.nosp@m.revsk.nosp@m.i@ce.nosp@m.rn.ch
- Revision
- 622193
- Date
- 2014-10-16 18:08:34 +0200 (Thu, 16 Oct 2014)
Definition at line 23 of file TruthPileupEvent_v1.h.
◆ TruthParticleLink_t
◆ TruthParticleLinks_t
◆ TruthVertexLink_t
◆ TruthVertexLinks_t
◆ TruthPileupEvent_v1()
| xAOD::TruthPileupEvent_v1::TruthPileupEvent_v1 |
( |
| ) |
|
◆ addTruthParticleLink()
Add one truth particle.
Definition at line 68 of file TruthEventBase_v1.cxx.
68 {
69
70 truthParticleLinksAcc( *this ).push_back( link );
71 return;
72 }
◆ addTruthVertexLink()
Add one truth vertex.
Definition at line 129 of file TruthEventBase_v1.cxx.
129 {
130
131 truthVertexLinksAcc( *this ).push_back( link );
132 return;
133 }
◆ clearTruthParticleLinks()
| void xAOD::TruthEventBase_v1::clearTruthParticleLinks |
( |
| ) |
|
|
inherited |
Remove all truth particles.
Definition at line 74 of file TruthEventBase_v1.cxx.
74 {
75
76 truthParticleLinksAcc( *this ).clear();
77 return;
78 }
◆ clearTruthVertexLinks()
| void xAOD::TruthEventBase_v1::clearTruthVertexLinks |
( |
| ) |
|
|
inherited |
Remove all truth vertices.
Definition at line 135 of file TruthEventBase_v1.cxx.
135 {
136
137 truthVertexLinksAcc( *this ).clear();
138 return;
139 }
◆ nTruthParticles()
| size_t xAOD::TruthEventBase_v1::nTruthParticles |
( |
| ) |
const |
|
inherited |
Get the number of truth particles.
◆ nTruthVertices()
| size_t xAOD::TruthEventBase_v1::nTruthVertices |
( |
| ) |
const |
|
inherited |
Get the number of truth vertices.
◆ setTruthParticleLinks()
Set all the truth particles.
◆ setTruthVertexLinks()
Set all the truth vertices.
◆ toPersistent()
| void xAOD::TruthEventBase_v1::toPersistent |
( |
| ) |
|
|
inherited |
Function making sure that the object is ready for persistification.
Definition at line 143 of file TruthEventBase_v1.cxx.
143 {
144
145
146 if( truthParticleLinksAcc.isAvailableWritable( *this ) ) {
147 TruthParticleLinks_t::iterator itr =
148 truthParticleLinksAcc( *this ).begin();
149 TruthParticleLinks_t::iterator
end =
150 truthParticleLinksAcc( *this ).end();
151 for( ; itr !=
end; ++itr ) {
152 itr->toPersistent();
153 }
154 }
155
156
157 if( truthVertexLinksAcc.isAvailableWritable( *this ) ) {
158 TruthVertexLinks_t::iterator itr =
159 truthVertexLinksAcc( *this ).begin();
160 TruthVertexLinks_t::iterator
end =
161 truthVertexLinksAcc( *this ).end();
162 for( ; itr !=
end; ++itr ) {
163 itr->toPersistent();
164 }
165 }
166
167 return;
168 }
◆ truthParticle()
Get a pointer to one of the truth particles.
Definition at line 50 of file TruthEventBase_v1.cxx.
50 {
51
52
53 if( ! truthParticleLinksAcc.isAvailable( *this ) ) {
54 return nullptr;
55 }
56
57
59 if( ! links[ index ].
isValid() ) {
60 return nullptr;
61 }
62
63
65 }
bool isValid() const
Test to see if the link can be dereferenced.
std::vector< TruthParticleLink_t > TruthParticleLinks_t
Type of the truth particle links vector.
◆ truthParticleLink()
Get the link to one of the truth particles.
Definition at line 45 of file TruthEventBase_v1.cxx.
45 {
46
47 return truthParticleLinksAcc( *this ).at( index );
48 }
◆ truthParticleLinks()
Get all the truth particles.
◆ truthVertex()
Get a pointer to one of the truth vertices.
Definition at line 112 of file TruthEventBase_v1.cxx.
112 {
113
114
115 if( ! truthVertexLinksAcc.isAvailable( *this ) ) {
116 return nullptr;
117 }
118
119
121 if( ! links[ index ].
isValid() ) {
122 return nullptr;
123 }
124
125
127 }
std::vector< TruthVertexLink_t > TruthVertexLinks_t
Type of the truth particle links vector.
◆ truthVertexLink()
Get the link to one of the truth vertices.
Definition at line 107 of file TruthEventBase_v1.cxx.
107 {
108
109 return truthVertexLinksAcc( *this ).at(index);
110 }
◆ truthVertexLinks()
Get all the truth vertices.
◆ type()
| Type::ObjectType xAOD::TruthPileupEvent_v1::type |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: