|
ATLAS Offline Software
|
Explain...
More...
#include <PerigeeParametersNtupleTool.h>
|
| PerigeeParametersNtupleTool (const std::string &, const std::string &, const IInterface *) |
|
| ~PerigeeParametersNtupleTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
virtual StatusCode | addNtupleItems (TTree *tree) |
| add branches to the tree Should be called once (per track collection and tree) dunring the initialisation phase by the calling algorithm (usually Trk::TrackValidationNtupleWriter) More...
|
|
virtual StatusCode | fillTrackData (const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode) |
| fill ntuple data of a given track without writing the record. More...
|
|
virtual StatusCode | fillTrackParticleData (const Trk::TrackParticleBase &) |
| fill ntuple data of a given TrackParticle without writing the record. More...
|
|
virtual StatusCode | fillTrackTruthData (const TrackParameters *&, const TrackTruth &, const int) |
| fill data about the truth match (score, parameter-pulls etc) More...
|
|
virtual void | resetVariables () |
| reset the variables after writing the record to disk ntuple More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Explain...
Definition at line 29 of file PerigeeParametersNtupleTool.h.
◆ StoreGateSvc_t
◆ PerigeeParametersNtupleTool()
Trk::PerigeeParametersNtupleTool::PerigeeParametersNtupleTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~PerigeeParametersNtupleTool()
Trk::PerigeeParametersNtupleTool::~PerigeeParametersNtupleTool |
( |
| ) |
|
|
default |
◆ addNtupleItems()
StatusCode Trk::PerigeeParametersNtupleTool::addNtupleItems |
( |
TTree * |
tree | ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillTrackData()
StatusCode Trk::PerigeeParametersNtupleTool::fillTrackData |
( |
const Trk::Track & |
track, |
|
|
const int |
iterationIndex, |
|
|
const unsigned int |
fitStatCode |
|
) |
| |
|
virtual |
fill ntuple data of a given track without writing the record.
fill track data into variables without actually writing the record
- if this method is called twice without writing the ntuple inbetween the first data will be lost!
Implements Trk::ITrackValidationNtupleTool.
Definition at line 166 of file PerigeeParametersNtupleTool.cxx.
173 const EventContext& ctx = Gaudi::Hive::currentContext();
178 msg(MSG::WARNING) <<
"Perigee parameters could not be written to ntuple" <<
endmsg;
180 if (perpars ==
nullptr) {
185 std::unique_ptr<const Trk::TrackParameters>
tmp =
m_extrapolator->extrapolateTrack(
191 msg(MSG::WARNING) <<
"Newly made perigee parameters could not be "
192 <<
"written to ntuple" <<
endmsg;
194 if (perpars !=
nullptr)
delete perpars;
196 msg(MSG::WARNING) <<
"No perigee parameters, but they are the main validation object!"
199 return StatusCode::SUCCESS;
◆ fillTrackParticleData()
fill ntuple data of a given TrackParticle without writing the record.
fill trackparticle data into variables without actually writing the record
- if this method is called twice without writing the ntuple inbetween the first data will be lost!
Implements Trk::ITrackValidationNtupleTool.
Definition at line 205 of file PerigeeParametersNtupleTool.cxx.
214 return StatusCode::SUCCESS;
◆ fillTrackPerigee()
StatusCode Trk::PerigeeParametersNtupleTool::fillTrackPerigee |
( |
const Trk::Perigee * |
perigee | ) |
|
|
private |
fill the perigee in ntuple
Definition at line 276 of file PerigeeParametersNtupleTool.cxx.
283 msg(MSG::WARNING) <<
"Something is wrong - track has no perigee at all!" <<
endmsg;
289 return StatusCode::FAILURE;
303 if (perigee->covariance()) {
319 return StatusCode::SUCCESS;
◆ fillTrackTruthData()
◆ finalize()
StatusCode Trk::PerigeeParametersNtupleTool::finalize |
( |
| ) |
|
◆ initialize()
StatusCode Trk::PerigeeParametersNtupleTool::initialize |
( |
| ) |
|
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & Trk::ITrackValidationNtupleTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ resetVariables()
void Trk::PerigeeParametersNtupleTool::resetVariables |
( |
| ) |
|
|
virtual |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_doTruth
bool Trk::PerigeeParametersNtupleTool::m_doTruth |
|
private |
◆ m_errord0
float Trk::PerigeeParametersNtupleTool::m_errord0 |
|
private |
◆ m_errorphi0
float Trk::PerigeeParametersNtupleTool::m_errorphi0 |
|
private |
◆ m_errorqoverp
float Trk::PerigeeParametersNtupleTool::m_errorqoverp |
|
private |
◆ m_errortheta0
float Trk::PerigeeParametersNtupleTool::m_errortheta0 |
|
private |
◆ m_errorz0
float Trk::PerigeeParametersNtupleTool::m_errorz0 |
|
private |
◆ m_evtStore
◆ m_extrapolator
◆ m_mc_d0
float Trk::PerigeeParametersNtupleTool::m_mc_d0 |
|
private |
◆ m_mc_diff_d0
float Trk::PerigeeParametersNtupleTool::m_mc_diff_d0 |
|
private |
◆ m_mc_diff_phi0
float Trk::PerigeeParametersNtupleTool::m_mc_diff_phi0 |
|
private |
◆ m_mc_diff_qOverP
float Trk::PerigeeParametersNtupleTool::m_mc_diff_qOverP |
|
private |
◆ m_mc_diff_theta
float Trk::PerigeeParametersNtupleTool::m_mc_diff_theta |
|
private |
◆ m_mc_diff_z0
float Trk::PerigeeParametersNtupleTool::m_mc_diff_z0 |
|
private |
◆ m_mc_energy
float Trk::PerigeeParametersNtupleTool::m_mc_energy |
|
private |
◆ m_mc_eta
float Trk::PerigeeParametersNtupleTool::m_mc_eta |
|
private |
◆ m_mc_particleID
int Trk::PerigeeParametersNtupleTool::m_mc_particleID |
|
private |
◆ m_mc_phi0
float Trk::PerigeeParametersNtupleTool::m_mc_phi0 |
|
private |
◆ m_mc_prob
float Trk::PerigeeParametersNtupleTool::m_mc_prob |
|
private |
◆ m_mc_pull_d0
float Trk::PerigeeParametersNtupleTool::m_mc_pull_d0 |
|
private |
◆ m_mc_pull_phi0
float Trk::PerigeeParametersNtupleTool::m_mc_pull_phi0 |
|
private |
◆ m_mc_pull_qOverP
float Trk::PerigeeParametersNtupleTool::m_mc_pull_qOverP |
|
private |
◆ m_mc_pull_theta
float Trk::PerigeeParametersNtupleTool::m_mc_pull_theta |
|
private |
◆ m_mc_pull_z0
float Trk::PerigeeParametersNtupleTool::m_mc_pull_z0 |
|
private |
◆ m_mc_qOverP
float Trk::PerigeeParametersNtupleTool::m_mc_qOverP |
|
private |
◆ m_mc_qOverPt
float Trk::PerigeeParametersNtupleTool::m_mc_qOverPt |
|
private |
◆ m_mc_theta
float Trk::PerigeeParametersNtupleTool::m_mc_theta |
|
private |
◆ m_mc_truthTreeIndex
int Trk::PerigeeParametersNtupleTool::m_mc_truthTreeIndex |
|
private |
◆ m_mc_uniqueID
int Trk::PerigeeParametersNtupleTool::m_mc_uniqueID |
|
private |
◆ m_mc_z0
float Trk::PerigeeParametersNtupleTool::m_mc_z0 |
|
private |
◆ m_Rec_d0
float Trk::PerigeeParametersNtupleTool::m_Rec_d0 |
|
private |
◆ m_Rec_eta
float Trk::PerigeeParametersNtupleTool::m_Rec_eta |
|
private |
◆ m_Rec_phi0
float Trk::PerigeeParametersNtupleTool::m_Rec_phi0 |
|
private |
◆ m_Rec_qOverP
float Trk::PerigeeParametersNtupleTool::m_Rec_qOverP |
|
private |
◆ m_Rec_theta
float Trk::PerigeeParametersNtupleTool::m_Rec_theta |
|
private |
◆ m_Rec_z0
float Trk::PerigeeParametersNtupleTool::m_Rec_z0 |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
HepMC::ConstGenParticlePtr cptr() const
Dereference.
a link optimized in size for a GenParticle in a McEventCollection
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const HepMcParticleLink & particleLink() const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const GenParticle * ConstGenParticlePtr
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
#define ATH_MSG_WARNING(x)
float probability() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>