ATLAS Offline Software
|
Class to retrieve associated truth from a track, implementing a cached response. More...
Classes | |
class | CachedGetAssocTruth |
class | ResolutionHelper |
class | TrackTruthLookup |
Class for providing fast lookup of linked tracks and truth particles. More... | |
Typedefs | |
template<class ContainerType , class VariableType > | |
using | WriteKeyAccessorPair = std::pair< SG::WriteDecorHandleKey< ContainerType >, SG::AuxElement::ConstAccessor< VariableType > > |
template<class ContainerType , class VariableType > | |
using | WriteAccessorRefPair = std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, SG::AuxElement::ConstAccessor< VariableType > & > |
template<class ContainerType , class VariableType > | |
using | OptionalDecoration = std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > |
Enumerations | |
enum | DuplicateBehaviour { DO_NOTHING, REJECT_QUIETLY, REJECT_WITH_WARNING, REJECT_WARN_IF_UNEQUAL } |
Behaviour in case of trying to add a decoration which previously exists. More... | |
Functions | |
constexpr float | operator""_GeV (long double energy) |
Convert to GeV from the default MeV. More... | |
constexpr float | operator""_GeV (unsigned long long energy) |
template<class T > | |
bool | inRange (const T &value, const T &minVal, const T &maxVal) |
general utility function to check value is in range More... | |
template<class T > | |
bool | inRange (const T &value, const T &absoluteMax) |
template<class T > | |
unsigned int | binIndex (const T &val, const std::vector< T > &partitions) |
general utility function to return bin index given a value and the upper endpoints of each bin More... | |
template<class T > | |
float | safelyGetEta (const T &pTrk, const float safePtThreshold=0.1) |
Safely get eta. More... | |
template<class T > | |
float | safelyGetEta (const T *pTrk, const float safePtThreshold=0.1) |
std::vector< double > | logLinearBinning (const unsigned int nBins, const double absXmin, const double absXmax, const bool symmetriseAroundZero) |
bool | roughlyEqual (const int i, const int j) |
bool | roughlyEqual (const unsigned int i, const unsigned int j) |
bool | roughlyEqual (const float i, const float j) |
template<class T_Parent , class T_Cont , class T > | |
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) |
template<class T_Cont , class T > | |
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) |
template<class T_Cont , class T > | |
std::vector< SG::WriteDecorHandle< T_Cont, T > > | createDecorators (const std::vector< SG::WriteDecorHandleKey< T_Cont > > &keys, const EventContext &ctx) |
template<class T_Parent , class T_Cont > | |
void | createDecoratorKeys (T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::WriteDecorHandleKey< T_Cont > > &decor_out) |
template<class T_Parent , class T_Cont > | |
void | addReadDecoratorHandleKeys (T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::ReadDecorHandleKey< T_Cont > > &decor_out) |
template<class T_Cont , class T_Cont_Elm , class T > | |
void | decorateOrWarnIfUnequal (const T_Cont_Elm &particle, WriteAccessorRefPair< T_Cont, T > &decorator, const T &value) |
template<class T_Cont , class T_Cont_Elm , class T > | |
void | decorateOrRejectQuietly (const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value) |
template<class T_Cont , class T_Cont_Elm , class T > | |
void | decorate (const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value) |
const xAOD::TruthParticle * | getTruthPointer (const xAOD::TrackParticle &track) |
Class to retrieve associated truth from a track, implementing a cached response.
using IDPVM::OptionalDecoration = typedef std::pair<SG::WriteDecorHandle<ContainerType, VariableType>, bool > |
Definition at line 48 of file safeDecorator.h.
using IDPVM::WriteAccessorRefPair = typedef std::pair<SG::WriteDecorHandle<ContainerType, VariableType>, SG::AuxElement::ConstAccessor<VariableType>& > |
Definition at line 45 of file safeDecorator.h.
using IDPVM::WriteKeyAccessorPair = typedef std::pair<SG::WriteDecorHandleKey<ContainerType>, SG::AuxElement::ConstAccessor<VariableType> > |
Definition at line 42 of file safeDecorator.h.
Behaviour in case of trying to add a decoration which previously exists.
Enumerator | |
---|---|
DO_NOTHING | |
REJECT_QUIETLY | |
REJECT_WITH_WARNING | |
REJECT_WARN_IF_UNEQUAL |
Definition at line 38 of file safeDecorator.h.
void IDPVM::addReadDecoratorHandleKeys | ( | T_Parent & | parent, |
const SG::ReadHandleKey< T_Cont > & | container_key, | ||
const std::string & | prefix, | ||
const std::vector< std::string > & | decor_names, | ||
std::vector< SG::ReadDecorHandleKey< T_Cont > > & | decor_out | ||
) |
Definition at line 145 of file safeDecorator.h.
unsigned int IDPVM::binIndex | ( | const T & | val, |
const std::vector< T > & | partitions | ||
) |
general utility function to return bin index given a value and the upper endpoints of each bin
Definition at line 43 of file InDetPhysValMonitoringUtilities.h.
void IDPVM::createDecoratorKeys | ( | T_Parent & | parent, |
const SG::ReadHandleKey< T_Cont > & | container_key, | ||
const std::string & | prefix, | ||
const std::vector< std::string > & | decor_names, | ||
std::vector< SG::WriteDecorHandleKey< T_Cont > > & | decor_out | ||
) |
Definition at line 125 of file safeDecorator.h.
void IDPVM::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 | ||
) |
Definition at line 52 of file safeDecorator.h.
std::vector<SG::WriteDecorHandle<T_Cont,T> > IDPVM::createDecorators | ( | const std::vector< SG::WriteDecorHandleKey< T_Cont > > & | keys, |
const EventContext & | ctx | ||
) |
Definition at line 107 of file safeDecorator.h.
std::vector<OptionalDecoration<T_Cont,T> > IDPVM::createDecoratorsIfNeeded | ( | const T_Cont & | container, |
const std::vector< WriteKeyAccessorPair< T_Cont, T > > & | keys, | ||
const EventContext & | ctx, | ||
bool | verbose = false |
||
) |
Definition at line 70 of file safeDecorator.h.
void IDPVM::decorate | ( | const T_Cont_Elm & | particle, |
OptionalDecoration< T_Cont, T > & | decorator, | ||
const T & | value | ||
) |
Definition at line 184 of file safeDecorator.h.
void IDPVM::decorateOrRejectQuietly | ( | const T_Cont_Elm & | particle, |
OptionalDecoration< T_Cont, T > & | decorator, | ||
const T & | value | ||
) |
Definition at line 175 of file safeDecorator.h.
void IDPVM::decorateOrWarnIfUnequal | ( | const T_Cont_Elm & | particle, |
WriteAccessorRefPair< T_Cont, T > & | decorator, | ||
const T & | value | ||
) |
Definition at line 161 of file safeDecorator.h.
const xAOD::TruthParticle* IDPVM::getTruthPointer | ( | const xAOD::TrackParticle & | track | ) |
Definition at line 12 of file TrackTruthLookup.cxx.
Definition at line 36 of file InDetPhysValMonitoringUtilities.h.
|
inline |
general utility function to check value is in range
Definition at line 30 of file InDetPhysValMonitoringUtilities.h.
std::vector< double > IDPVM::logLinearBinning | ( | const unsigned int | nBins, |
const double | absXmin, | ||
const double | absXmax, | ||
const bool | symmetriseAroundZero | ||
) |
Definition at line 16 of file logLinearBinning.cxx.
|
constexpr |
Convert to GeV from the default MeV.
Definition at line 18 of file InDetPhysValMonitoringUtilities.h.
|
constexpr |
Definition at line 23 of file InDetPhysValMonitoringUtilities.h.
Definition at line 27 of file safeDecorator.cxx.
Definition at line 17 of file safeDecorator.cxx.
Definition at line 22 of file safeDecorator.cxx.
|
inline |
Safely get eta.
Definition at line 56 of file InDetPhysValMonitoringUtilities.h.
|
inline |
Definition at line 62 of file InDetPhysValMonitoringUtilities.h.