|
ATLAS Offline Software
|
#include <InDetPhysValTruthDecoratorAlg.h>
|
| InDetPhysValTruthDecoratorAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~InDetPhysValTruthDecoratorAlg () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | finalize () |
|
virtual StatusCode | execute (const EventContext &ctx) const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, 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 | 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 |
|
|
enum | { kPixel,
kSCT,
kNClusterTypes
} |
|
enum | EDecorations {
kDecorD0,
kDecorZ0,
kDecorPhi,
kDecorTheta,
kDecorZ0st,
kDecorQOverP,
kDecorProdR,
kDecorProdZ,
kDecorNSilHits,
kNDecorators
} |
|
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
|
|
bool | decorateTruth (const xAOD::TruthParticle &particle, std::vector< std::pair< SG::WriteDecorHandle< xAOD::TruthParticleContainer, float >, bool > > &float_decor, const Amg::Vector3D &beamPos, const std::vector< std::array< uint16_t, kNClusterTypes > > &counts) 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...
|
|
|
PublicToolHandle< Trk::IExtrapolator > | m_extrapolator {this,"Extrapolator","Trk::Extrapolator/AtlasExtrapolator",""} |
|
SG::ReadDecorHandleKeyArray< xAOD::EventInfo > | m_beamSpotDecoKey |
|
PublicToolHandle< IAthSelectionTool > | m_truthSelectionTool {this,"TruthSelectionTool","",""} |
|
std::mutex | m_mutex |
|
CutFlow m_cutFlow | ATLAS_THREAD_SAFE |
|
std::atomic< std::size_t > | m_nMissingTruthParticles = 0u |
|
std::atomic< bool > | m_errorEmitted {false} |
|
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthParticleName {this, "TruthParticleContainerName", "TruthParticles", ""} |
| TruthParticle container's name needed to create decorators. More...
|
|
Gaudi::Property< std::string > | m_prefix {this, "Prefix", "", "Decoration prefix to avoid clashes."} |
|
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > | m_truthPixelClusterName {this, "PixelClusterContainerName", "PixelClusters", ""} |
| TruthPixelClusterContainer and TruthSCTClusterContainer needed for truth silicon hit cut. More...
|
|
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > | m_truthSCTClusterName {this, "SCTClusterContainerName", "SCT_Clusters", ""} |
|
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > | m_truthParticleIndexDecor {this, "TruthParticleIndexDecoration", "origTruthIndex", "decoration name for the original truth particle index."} |
|
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >, SG::AuxElement::ConstAccessor< float > > > | m_decor |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
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 |
|
◆ StoreGateSvc_t
◆ anonymous enum
◆ EDecorations
Enumerator |
---|
kDecorD0 | |
kDecorZ0 | |
kDecorPhi | |
kDecorTheta | |
kDecorZ0st | |
kDecorQOverP | |
kDecorProdR | |
kDecorProdZ | |
kDecorNSilHits | |
kNDecorators | |
Definition at line 86 of file InDetPhysValTruthDecoratorAlg.h.
◆ InDetPhysValTruthDecoratorAlg()
InDetPhysValTruthDecoratorAlg::InDetPhysValTruthDecoratorAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~InDetPhysValTruthDecoratorAlg()
InDetPhysValTruthDecoratorAlg::~InDetPhysValTruthDecoratorAlg |
( |
| ) |
|
|
virtual |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ 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);
◆ 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.
◆ 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.
◆ 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]
◆ decorateTruth()
Definition at line 197 of file InDetPhysValTruthDecoratorAlg.cxx.
205 const EventContext& ctx = Gaudi::Hive::currentContext();
225 ATH_MSG_WARNING(
"A non existent production vertex was requested in calculating the track parameters d0 etc");
231 ATH_MSG_DEBUG(
"A production vertex pointer was retrieved, but it is NULL");
234 const auto xPos = ptruthVertex->x();
235 const auto yPos = ptruthVertex->y();
236 const auto z_truth = ptruthVertex->z();
238 const float prodR_truth = std::sqrt(xPos * xPos + yPos * yPos);
244 std::unique_ptr<const Trk::TrackParameters> tP (
m_extrapolator->extrapolate(ctx,
248 float d0_truth = tP->parameters()[
Trk::d0];
249 float theta_truth = tP->parameters()[
Trk::theta];
250 float z0_truth = tP->parameters()[
Trk::z0];
251 float phi_truth = tP->parameters()[
Trk::phi];
252 float qOverP_truth = tP->parameters()[
Trk::qOverP];
253 float z0st_truth = z0_truth *
std::sin(theta_truth);
268 ATH_MSG_DEBUG(
"The TrackParameters pointer for this TruthParticle is NULL");
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode InDetPhysValTruthDecoratorAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
virtual |
truthbarcode-cluster maps to be pre-stored at event level
Definition at line 84 of file InDetPhysValTruthDecoratorAlg.cxx.
86 if ((not ptruth.isValid())) {
87 return StatusCode::FAILURE;
89 std::size_t ptruth_size=ptruth->size();
91 std::vector<unsigned int> truthIndexMap;
94 unsigned int max_size=0;
97 max_size =
std::max( max_size, decor_index(*truth_particle) );
101 return StatusCode::FAILURE;
105 unsigned int new_index=0;
107 truthIndexMap.at( decor_index(*truth_particle) ) = new_index;
112 truthIndexMap.reserve(ptruth_size);
113 for (
unsigned int i=0;
i<ptruth_size; ++
i) {
114 truthIndexMap.push_back(
i);
118 std::vector< IDPVM::OptionalDecoration<xAOD::TruthParticleContainer,float> >
122 std::vector< std::array<uint16_t, kNClusterTypes> > tp_clustercount;
123 tp_clustercount.resize(ptruth_size,std::array<uint16_t,kNClusterTypes>{});
124 unsigned int missing_truth_particle=0
u;
129 if (sctClusters.isValid() && pixelClusters.isValid()) {
130 for (
const auto *
const sct : *sctClusters) {
133 if (truthIndexAcc.isAvailable(*sctCluster)) {
134 const std::vector<unsigned int> &truth_indices = truthIndexAcc(*sctCluster);
135 for (
auto index : truth_indices) {
138 ++tp_clustercount.at(truthIndexMap[
index])[
kSCT];
141 ++missing_truth_particle;
148 for (
const auto *
const pix : *pixelClusters) {
151 if (truthIndexAcc.isAvailable(*pixCluster)) {
152 const std::vector<unsigned int> &truth_indices = truthIndexAcc(*pixCluster);
153 for (
auto index : truth_indices) {
156 ++tp_clustercount.at(truthIndexMap[
index])[
kPixel];
159 ++missing_truth_particle;
168 if (not float_decor.empty()) {
178 tmp_cut_flow.update(
passed.missingCuts() );
180 decorateTruth(*truth_particle, float_decor, beamPos, tp_clustercount);
182 std::lock_guard<std::mutex> lock(
m_mutex);
183 m_cutFlow.merge(std::move(tmp_cut_flow));
187 decorateTruth(*truth_particle, float_decor, beamPos, tp_clustercount);
191 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode InDetPhysValTruthDecoratorAlg::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode InDetPhysValTruthDecoratorAlg::initialize |
( |
| ) |
|
|
virtual |
◆ 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.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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()
◆ ATLAS_THREAD_SAFE
CutFlow m_cutFlow InDetPhysValTruthDecoratorAlg::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_beamSpotDecoKey
Initial value:{this, "BeamSpotDecoKeys",
{"EventInfo.beamPosX", "EventInfo.beamPosY", "EventInfo.beamPosZ"},
"Beamspot position decoration keys"}
Definition at line 54 of file InDetPhysValTruthDecoratorAlg.h.
◆ m_decor
◆ m_detStore
◆ m_errorEmitted
std::atomic<bool> InDetPhysValTruthDecoratorAlg::m_errorEmitted {false} |
|
mutableprivate |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_extrapolator
◆ m_mutex
std::mutex InDetPhysValTruthDecoratorAlg::m_mutex |
|
mutableprivate |
◆ m_nMissingTruthParticles
std::atomic<std::size_t> InDetPhysValTruthDecoratorAlg::m_nMissingTruthParticles = 0u |
|
mutableprivate |
◆ m_prefix
Gaudi::Property<std::string> InDetPhysValTruthDecoratorAlg::m_prefix {this, "Prefix", "", "Decoration prefix to avoid clashes."} |
|
private |
◆ m_truthParticleIndexDecor
◆ m_truthParticleName
◆ m_truthPixelClusterName
◆ m_truthSCTClusterName
◆ m_truthSelectionTool
PublicToolHandle<IAthSelectionTool> InDetPhysValTruthDecoratorAlg::m_truthSelectionTool {this,"TruthSelectionTool","",""} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
PublicToolHandle< IAthSelectionTool > m_truthSelectionTool
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
SG::ReadDecorHandleKeyArray< xAOD::EventInfo > m_beamSpotDecoKey
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool decorateTruth(const xAOD::TruthParticle &particle, std::vector< std::pair< SG::WriteDecorHandle< xAOD::TruthParticleContainer, float >, bool > > &float_decor, const Amg::Vector3D &beamPos, const std::vector< std::array< uint16_t, kNClusterTypes > > &counts) const
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
void createDecoratorKeysAndAccessor(T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< WriteKeyAccessorPair< T_Cont, T > > &decor_out)
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
std::atomic< std::size_t > m_nMissingTruthParticles
Helper class to provide constant type-safe access to aux data.
std::atomic< bool > m_errorEmitted
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
@ u
Enums for curvilinear frames.
virtual void setOwner(IDataHandleHolder *o)=0
Class describing a TrackMeasurementValidation.
AthReentrantAlgorithm()
Default constructor:
Handle class for reading a decoration on an object.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
::StatusCode StatusCode
StatusCode definition for legacy code.
void decorateOrRejectQuietly(const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
Class describing a truth particle in the MC record.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< OptionalDecoration< T_Cont, T > > createDecoratorsIfNeeded(const T_Cont &container, const std::vector< WriteKeyAccessorPair< T_Cont, T > > &keys, const EventContext &ctx, bool verbose=false)
Class describing a truth vertex in the MC record.
virtual StatusCode sysInitialize() override
Override sysInitialize.
double charge(const T &p)
Eigen::Matrix< double, 3, 1 > Vector3D
Gaudi::Property< std::string > m_prefix
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthPixelClusterName
TruthPixelClusterContainer and TruthSCTClusterContainer needed for truth silicon hit cut.
#define ATH_MSG_WARNING(x)
PublicToolHandle< Trk::IExtrapolator > m_extrapolator
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthParticleIndexDecor
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthSCTClusterName
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float nSiHits(const U &p)