ATLAS Offline Software
|
#include <V0MainDecorator.h>
Public Member Functions | |
V0MainDecorator (const std::string &t, const std::string &n, const IInterface *p) | |
~V0MainDecorator () | |
StatusCode | initialize () |
StatusCode | decorateV0 (xAOD::VertexContainer *container, const EventContext &ctx) const |
StatusCode | decorateks (xAOD::VertexContainer *container, const EventContext &ctx) const |
StatusCode | decoratela (xAOD::VertexContainer *container, const EventContext &ctx) const |
StatusCode | decoratelb (xAOD::VertexContainer *container, const EventContext &ctx) const |
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 |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
Add StoreName to extra input/output deps as needed. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
StatusCode | initKey (const std::string &, SG::WriteDecorHandleKey< xAOD::VertexContainer > &decokey) const |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
IntegerProperty | m_masses {this, "masses", 1} |
= 1 if using PDG values, = 2 if user set (1) More... | |
DoubleProperty | m_masspi {this, "masspi", 139.57} |
pion mass (139.57 MeV) More... | |
DoubleProperty | m_massp {this, "massp", 938.272} |
proton mass (938.272 MeV) More... | |
DoubleProperty | m_masse {this, "masse", 0.510999} |
electron mass (0.510999 MeV) More... | |
DoubleProperty | m_massK0S {this, "massK0s", 497.672} |
Kshort mass (497.672 MeV) More... | |
DoubleProperty | m_massLambda {this, "massLambda", 1115.68} |
Lambda mass (1115.68 MeV) More... | |
ToolHandle< Trk::V0Tools > | m_V0Tools {this, "V0Tools", "Trk::V0Tools", "V0 tools to calculate things like Lxy"} |
Gaudi::Property< std::string > | m_v0Key { this, "V0ContainerName", "V0Candidates", "V0 container name (same calling alg)" } |
Gaudi::Property< std::string > | m_ksKey { this, "KshortContainerName", "KshortCandidates", "Ks container" } |
Gaudi::Property< std::string > | m_laKey |
Gaudi::Property< std::string > | m_lbKey |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorKsMass { this, "KsMass_v0", ".Kshort_mass", "Ks mass for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorKsMassErr { this, "KsMassErr_v0", ".Kshort_massError", "Ks mass error for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorLaMass { this, "LaMass_v0", ".Lambda_mass", "Lambda mass for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorLaMassErr { this, "LaMassErr_v0", ".Lambda_massError", "Lambda mass error for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorLbMass { this, "LbMass_v0", ".Lambdabar_mass", "Lambdabar mass for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorLbMassErr { this, "LbMassErr_v0", ".Lambdabar_massError", "Lambdabar mass error for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPt_v0 { this, "Pt_v0", ".pT", "Transverse momentum for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPtErr_v0 { this, "PtErr_v0", ".pTError", "Transverse momentum error for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxy_v0 { this, "Rxy_v0", ".Rxy", "Rxy for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxyErr_v0 { this, "RxyErr_v0", ".RxyError", "Rxy error for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPx_v0 { this, "Px_v0", ".px", "Px for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPy_v0 { this, "Py_v0", ".py", "Py for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPz_v0 { this, "Pz_v0", ".pz", "Pz for v0" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMass_ks { this, "Mass_ks", ".mass", "mass for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMassErr_ks { this, "MassErr_ks", ".massError", "mass error for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPt_ks { this, "Pt_ks", ".pT", "Transverse momentum for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPtErr_ks { this, "PtErr_ks", ".pTError", "Transverse momentum error for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxy_ks { this, "Rxy_ks", ".Rxy", "Rxy for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxyErr_ks { this, "RxyErr_ks", ".RxyError", "Rxy error for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPx_ks { this, "Px_ks", ".px", "Px for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPy_ks { this, "Py_ks", ".py", "Py for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPz_ks { this, "Pz_ks", ".pz", "Pz for Ks" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMass_la { this, "Mass_la", ".mass", "mass for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMassErr_la { this, "MassErr_la", ".massError", "mass error for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPt_la { this, "Pt_la", ".pT", "Transverse momentum for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPtErr_la { this, "PtErr_la", ".pTError", "Transverse momentum error for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxy_la { this, "Rxy_la", ".Rxy", "Rxy for la" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxyErr_la { this, "RxyErr_la", ".RxyError", "Rxy error for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPx_la { this, "Px_la", ".px", "Px for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPy_la { this, "Py_la", ".py", "Py for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPz_la { this, "Pz_la", ".pz", "Pz for Lambda" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMass_lb { this, "Mass_lb", ".mass", "mass for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorMassErr_lb { this, "MassErr_lb", ".massError", "mass error for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPt_lb { this, "Pt_lb", ".pT", "Transverse momentum for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPtErr_lb { this, "PtErr_lb", ".pTError", "Transverse momentum error for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxy_lb { this, "Rxy_lb", ".Rxy", "Rxy for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorRxyErr_lb { this, "RxyErr_lb", ".RxyError", "Rxy error for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPx_lb { this, "Px_lb", ".px", "Px for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPy_lb { this, "Py_lb", ".py", "Py for Lambdabar" } |
SG::WriteDecorHandleKey< xAOD::VertexContainer > | m_decorPz_lb { this, "Pz_lb", ".pz", "Pz for Lambdabar" } |
ServiceHandle< IPartPropSvc > | m_partPropSvc {this, "PartPropSvc", "PartPropSvc"} |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Definition at line 17 of file V0MainDecorator.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
InDet::V0MainDecorator::V0MainDecorator | ( | const std::string & | t, |
const std::string & | n, | ||
const IInterface * | p | ||
) |
Definition at line 12 of file V0MainDecorator.cxx.
|
default |
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
StatusCode InDet::V0MainDecorator::decorateks | ( | xAOD::VertexContainer * | container, |
const EventContext & | ctx | ||
) | const |
Definition at line 142 of file V0MainDecorator.cxx.
StatusCode InDet::V0MainDecorator::decoratela | ( | xAOD::VertexContainer * | container, |
const EventContext & | ctx | ||
) | const |
Definition at line 178 of file V0MainDecorator.cxx.
StatusCode InDet::V0MainDecorator::decoratelb | ( | xAOD::VertexContainer * | container, |
const EventContext & | ctx | ||
) | const |
Definition at line 213 of file V0MainDecorator.cxx.
StatusCode InDet::V0MainDecorator::decorateV0 | ( | xAOD::VertexContainer * | container, |
const EventContext & | ctx | ||
) | const |
Definition at line 94 of file V0MainDecorator.cxx.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
|
protectedinherited |
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
StatusCode InDet::V0MainDecorator::initialize | ( | ) |
Definition at line 26 of file V0MainDecorator.cxx.
|
private |
Definition at line 18 of file V0MainDecorator.cxx.
|
overridevirtualinherited |
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.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 47 of file V0MainDecorator.h.
|
private |
Definition at line 49 of file V0MainDecorator.h.
|
private |
Definition at line 51 of file V0MainDecorator.h.
|
private |
Definition at line 53 of file V0MainDecorator.h.
|
private |
Definition at line 55 of file V0MainDecorator.h.
|
private |
Definition at line 57 of file V0MainDecorator.h.
|
private |
Definition at line 75 of file V0MainDecorator.h.
|
private |
Definition at line 95 of file V0MainDecorator.h.
|
private |
Definition at line 115 of file V0MainDecorator.h.
|
private |
Definition at line 77 of file V0MainDecorator.h.
|
private |
Definition at line 97 of file V0MainDecorator.h.
|
private |
Definition at line 117 of file V0MainDecorator.h.
|
private |
Definition at line 79 of file V0MainDecorator.h.
|
private |
Definition at line 99 of file V0MainDecorator.h.
|
private |
Definition at line 119 of file V0MainDecorator.h.
|
private |
Definition at line 59 of file V0MainDecorator.h.
|
private |
Definition at line 81 of file V0MainDecorator.h.
|
private |
Definition at line 101 of file V0MainDecorator.h.
|
private |
Definition at line 121 of file V0MainDecorator.h.
|
private |
Definition at line 61 of file V0MainDecorator.h.
|
private |
Definition at line 87 of file V0MainDecorator.h.
|
private |
Definition at line 107 of file V0MainDecorator.h.
|
private |
Definition at line 127 of file V0MainDecorator.h.
|
private |
Definition at line 67 of file V0MainDecorator.h.
|
private |
Definition at line 89 of file V0MainDecorator.h.
|
private |
Definition at line 109 of file V0MainDecorator.h.
|
private |
Definition at line 129 of file V0MainDecorator.h.
|
private |
Definition at line 69 of file V0MainDecorator.h.
|
private |
Definition at line 91 of file V0MainDecorator.h.
|
private |
Definition at line 111 of file V0MainDecorator.h.
|
private |
Definition at line 131 of file V0MainDecorator.h.
|
private |
Definition at line 71 of file V0MainDecorator.h.
|
private |
Definition at line 83 of file V0MainDecorator.h.
|
private |
Definition at line 103 of file V0MainDecorator.h.
|
private |
Definition at line 123 of file V0MainDecorator.h.
|
private |
Definition at line 63 of file V0MainDecorator.h.
|
private |
Definition at line 85 of file V0MainDecorator.h.
|
private |
Definition at line 105 of file V0MainDecorator.h.
|
private |
Definition at line 125 of file V0MainDecorator.h.
|
private |
Definition at line 65 of file V0MainDecorator.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 40 of file V0MainDecorator.h.
|
private |
Definition at line 41 of file V0MainDecorator.h.
|
private |
Definition at line 43 of file V0MainDecorator.h.
|
private |
electron mass (0.510999 MeV)
Definition at line 32 of file V0MainDecorator.h.
|
private |
= 1 if using PDG values, = 2 if user set (1)
Definition at line 29 of file V0MainDecorator.h.
|
private |
Kshort mass (497.672 MeV)
Definition at line 33 of file V0MainDecorator.h.
|
private |
Lambda mass (1115.68 MeV)
Definition at line 34 of file V0MainDecorator.h.
|
private |
proton mass (938.272 MeV)
Definition at line 31 of file V0MainDecorator.h.
|
private |
pion mass (139.57 MeV)
Definition at line 30 of file V0MainDecorator.h.
|
private |
Definition at line 134 of file V0MainDecorator.h.
|
private |
Definition at line 38 of file V0MainDecorator.h.
|
private |
Definition at line 35 of file V0MainDecorator.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.