Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <PanTauSeed.h>
|
enum | TechnicalQuality {
t_NoValidInputTau,
t_NoConstituentsAtAll,
t_NoSelectedConstituents,
t_BadPtValue,
t_GoodSeed,
t_nTechnicalQualities
} |
|
enum | DecayModeExtended {
t_ExtMode100 = 1,
t_ExtMode10X = 2,
t_ExtMode110 = 3,
t_ExtMode11X = 4,
t_ExtMode1XX = 5,
t_ExtMode300 = 6,
t_ExtMode30X = 7,
t_ExtMode3XX = 8,
t_ExtModeOther = 9,
t_ExtModeNotSet = 10,
t_ExtModeError = 11,
t_ExtMode11shots = 12
} |
|
using | TypelessConstAccessor = ConstAuxElement::TypelessConstAccessor |
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
using | ConstAccessor = SG::ConstAccessor< T, ALLOC > |
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
using | Accessor = SG::Accessor< T, ALLOC > |
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
using | Decorator = SG::Decorator< T, ALLOC > |
|
|
| PanTauSeed () |
|
| ~PanTauSeed () |
|
| PanTauSeed (const PanTauSeed &seed) |
|
PanTauSeed & | operator= (const PanTauSeed &seed) |
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::reference_type | auxdata (const std::string &name) |
| Fetch an aux data variable, as a non-const reference. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdata (const std::string &name) const |
| Fetch an aux data variable, as a const reference. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") |
| Check if an aux variable is available for writing. More...
|
|
void | assign (const AuxElement &other, bool warnUnlocked=false) |
| Assignment. More...
|
|
const SG::AuxVectorData * | container () const |
| Return the container holding this element. More...
|
|
SG::AuxVectorData * | container () |
| Return the container holding this element. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name) const |
| Fetch an aux data variable, as a const reference. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Accessor< T, ALLOC >::const_reference_type | auxdataConst (const std::string &name, const std::string &clsname) const |
| Fetch an aux data variable, as a const reference. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritableAsDecoration (const std::string &name, const std::string &clsname="") const |
| Check if an aux variable is available for writing as a decoration. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name) const |
| Fetch an aux decoration, as a non-const reference. More...
|
|
template<class T , class ALLOC = AuxAllocator_t<T>> |
XAOD_AUXDATA_DEPRECATED Decorator< T, ALLOC >::reference_type | auxdecor (const std::string &name, const std::string &clsname) const |
| Fetch an aux decoration, as a non-const reference. More...
|
|
void | makePrivateStore () |
| Create a new (empty) private store for this object. More...
|
|
template<class U1 > |
void | makePrivateStore (const U1 &other, bool warnUnlocked=false) |
| Create a new private store for this object and copy aux data. More...
|
|
template<class U1 > |
void | makePrivateStore (const U1 *other, bool warnUnlocked=false) |
| Create a new private store for this object and copy aux data. More...
|
|
void | releasePrivateStore () |
| Release and free any private store associated with this object. More...
|
|
void | setStore (const SG::IConstAuxStore *store) |
| Set the store associated with this object. More...
|
|
void | setStore (SG::IAuxStore *store) |
| Set the store associated with this object. More...
|
|
void | setStore (const DataLink< SG::IConstAuxStore > &store) |
| Set the store associated with this object. More...
|
|
void | setConstStore (const SG::IConstAuxStore *store) |
| Synonym for setStore with IConstAuxStore . More...
|
|
void | setNonConstStore (SG::IAuxStore *store) |
| Synonym for setStore with IAuxStore . More...
|
|
bool | usingPrivateStore () const |
| Test to see if this object is currently using a private store. More...
|
|
bool | usingStandaloneStore () const |
| Test to see if this object is currently using a standalone store. More...
|
|
const SG::IConstAuxStore * | getConstStore () const |
| Return the current store, as a const interface. More...
|
|
SG::IAuxStore * | getStore () const |
| Return the current store, as a non-const interface. More...
|
|
void | clearCache () |
| Clear the cached aux data pointers. More...
|
|
const SG::auxid_set_t & | getAuxIDs () const |
| Return a set of identifiers for existing data items for this object. More...
|
|
const SG::auxid_set_t & | getDecorIDs () const |
| Return a set of identifiers for decorations for this object. More...
|
|
bool | hasStore () const |
| Return true if this object has an associated store. More...
|
|
bool | hasNonConstStore () const |
| Return true if this object has an associated non-const store. More...
|
|
bool | clearDecorations () const |
| Clear all decorations. More...
|
|
bool | trackIndices () const |
| Return true if index tracking is enabled for this object. More...
|
|
size_t | index () const |
| Return the index of this element within its container. More...
|
|
size_t | index () const |
| Return the index of this element within its container. More...
|
|
|
These are already virtual due to IParticle
|
typedef IParticle::FourMom_t | FourMom_t |
| Definition of the 4-momentum type. More...
|
|
FourMom_t | m_p4 |
| 4-momentum object More...
|
|
bool | m_IsValidSeed |
|
std::vector< int > | m_TechnicalQuality |
|
std::string | m_NameInputAlgorithm |
|
xAOD::TauJet * | m_TauJet |
|
std::vector< std::vector< PanTau::TauConstituent * > > | m_Constituents |
|
TLorentzVector | m_ProtoMomentum_Wide |
|
TLorentzVector | m_ProtoMomentum_Core |
|
TLorentzVector | m_FinalMomentum |
|
std::vector< TLorentzVector > | m_TypeHLVs |
|
std::vector< PanTau::TauConstituent * > | m_ConstituentsList_Core |
|
std::vector< PanTau::TauConstituent * > | m_ConstituentsList_Wide |
|
std::vector< PanTau::TauConstituent * > | m_ConstituentsList_AllSelected |
|
std::vector< PanTau::TauConstituent * > | m_ConstituentsList_All |
|
int | m_DecayMode_BySubAlg |
|
int | m_DecayMode_ByPanTau |
|
bool | m_decayModeHack_CellBasedShots |
|
PanTau::TauFeature * | m_Features |
| flag to indicate whether the decay mode by cellbased was
More...
|
|
virtual double | pt () const |
| The transverse momentum ( \(p_T\)) of the particle. More...
|
|
virtual double | eta () const |
| The pseudorapidity ( \(\eta\)) of the particle. More...
|
|
virtual double | phi () const |
| The azimuthal angle ( \(\phi\)) of the particle. More...
|
|
virtual double | m () const |
| The invariant mass of the particle. More...
|
|
virtual double | e () const |
| The total energy of the particle. More...
|
|
virtual double | rapidity () const |
| The true rapidity (y) of the particle. More...
|
|
virtual FourMom_t | p4 () const |
| The full 4-momentum of the particle as a TLoretzVector. More...
|
|
virtual xAOD::Type::ObjectType | type () const |
| The type of the object as a simple enumeration, remains pure virtual in e/gamma. More...
|
|
void | setP4 (float pt, float eta, float phi, float m) |
| set the 4-vec More...
|
|
void | setPt (float pt) |
| set the Pt More...
|
|
void | setEta (float eta) |
| set the eta More...
|
|
void | setPhi (float phi) |
| set the phi More...
|
|
void | setM (float m) |
| set the Mass More...
|
|
| PanTauSeed (const std::string &nameInputAlgorithm, xAOD::TauJet *tauJet, const std::vector< PanTau::TauConstituent * > &tauConstituents, const std::vector< PanTau::TauConstituent * > &tauConstituentsWithUnselected, const std::vector< int > &pantauSeed_TechnicalQuality) |
| Main constructor to be used. More...
|
|
| PanTauSeed (const std::string &nameInputAlgorithm, xAOD::TauJet *tauJet, const std::vector< int > &pantauSeed_TechnicalQuality) |
| Constructor for invalid seeds. More...
|
|
const std::string & | getNameInputAlgorithm () const |
|
const xAOD::TauJet * | getTauJet () const |
|
xAOD::TauJet * | getTauJet () |
|
const PanTau::TauFeature * | getFeatures () const |
|
PanTau::TauFeature * | getFeatures () |
|
TLorentzVector | getProtoMomentumCore () const |
|
TLorentzVector | getProtoMomentumWide () const |
|
bool | getIsValidSeed () const |
|
const std::vector< int > & | getTechnicalQuality () const |
|
bool | isOfTechnicalQuality (int pantauSeed_TechnicalQuality) const |
|
const std::vector< std::vector< PanTau::TauConstituent * > > & | getConstituents () const |
|
const std::vector< PanTau::TauConstituent * > & | getConstituentsAsList_Core () const |
|
const std::vector< PanTau::TauConstituent * > & | getConstituentsAsList_Wide () const |
|
const std::vector< PanTau::TauConstituent * > & | getConstituentsAsList_All () const |
|
std::vector< PanTau::TauConstituent * > | getConstituentsOfType (int tauConstituent_Type, bool &foundit) |
|
int | getNumberOfConstituentsOfType (int tauConstituent_Type) |
|
TLorentzVector | getSubsystemHLV (int tauConstituent_Type, bool &foundit) |
|
TLorentzVector | getFinalMomentum () const |
|
int | getDecayModeBySubAlg () const |
|
int | getDecayModeByPanTau () const |
|
void | setFinalMomentum (TLorentzVector finalMom) |
|
void | setDecayModeByPanTau (int decayModePanTau) |
|
void | setModeHackedByCellBased (bool f) |
|
bool | getModeHackedByCellBased () |
|
Definition at line 24 of file PanTauSeed.h.
◆ Accessor
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ ConstAccessor
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ Decorator
template<class T , class ALLOC = AuxAllocator_t<T>>
◆ FourMom_t
Definition of the 4-momentum type.
Definition at line 90 of file PanTauSeed.h.
◆ TypelessConstAccessor
◆ DecayModeExtended
Enumerator |
---|
t_ExtMode100 | |
t_ExtMode10X | |
t_ExtMode110 | |
t_ExtMode11X | |
t_ExtMode1XX | |
t_ExtMode300 | |
t_ExtMode30X | |
t_ExtMode3XX | |
t_ExtModeOther | |
t_ExtModeNotSet | |
t_ExtModeError | |
t_ExtMode11shots | |
Definition at line 43 of file PanTauSeed.h.
◆ PrivateStoreState
The current private data state.
Enumerator |
---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE | |
Definition at line 131 of file IAuxElement.h.
◆ TechnicalQuality
Enumerator |
---|
t_NoValidInputTau | |
t_NoConstituentsAtAll | |
t_NoSelectedConstituents | |
t_BadPtValue | |
t_GoodSeed | |
t_nTechnicalQualities | |
Definition at line 33 of file PanTauSeed.h.
◆ PanTauSeed() [1/4]
PanTau::PanTauSeed::PanTauSeed |
( |
| ) |
|
◆ ~PanTauSeed()
PanTau::PanTauSeed::~PanTauSeed |
( |
| ) |
|
Definition at line 33 of file PanTauSeed.cxx.
40 if(curConst !=
nullptr)
delete curConst;
50 std::vector<PanTau::TauConstituent*> curConsts =
m_Constituents[iType];
◆ PanTauSeed() [2/4]
◆ PanTauSeed() [3/4]
Main constructor to be used.
Definition at line 194 of file PanTauSeed.cxx.
217 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
236 TLorentzVector hlv_SumConstituents_Wide = TLorentzVector(0,0,0,0);
237 TLorentzVector hlv_SumConstituents_Core = TLorentzVector(0,0,0,0);
242 for(
unsigned int iConst=0; iConst<tauConstituents.size(); iConst++) {
246 for(
unsigned int curType=0; curType<curTypes.size(); curType++) {
247 if(curTypes.at(curType) == 0)
continue;
263 hlv_SumConstituents_Wide += curConst->
p4();
◆ PanTauSeed() [4/4]
PanTau::PanTauSeed::PanTauSeed |
( |
const std::string & |
nameInputAlgorithm, |
|
|
xAOD::TauJet * |
tauJet, |
|
|
const std::vector< int > & |
pantauSeed_TechnicalQuality |
|
) |
| |
◆ assign()
void SG::AuxElement::assign |
( |
const AuxElement & |
other, |
|
|
bool |
warnUnlocked = false |
|
) |
| |
|
inherited |
Assignment.
- Parameters
-
other | The object from which we're assigning. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
We don't copy container/index, as assignment doesn't change where this object is. However, if we have aux data, then we copy aux data if we're copying from an object that also has it; otherwise, if we're copying from an object with no aux data, then we clear ours.
◆ auxdata() [1/4]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux data variable, as a non-const reference.
- Parameters
-
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
◆ auxdata() [2/4]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
or ConstAccessor
classes.
◆ auxdata() [3/4]
Fetch an aux data variable, as a non-const reference.
This function provides an easy way for users to decorate objects with auxiliary data.
Take note that this function is slow. Should not be used inside time-critical code.
- Parameters
-
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
- Returns
- A modifiable reference to the decoration
Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
◆ auxdata() [4/4]
Fetch an aux data variable, as a const reference.
This function provides an easy way for users to retrieve auxiliary decorations from an object.
Take note that this function is slow. Should not be used inside time-critical code.
- Parameters
-
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
- Returns
- A constant reference to the decoration
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
◆ auxdataConst() [1/2]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
◆ auxdataConst() [2/2]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux data variable, as a const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the ConstAccessor
class.
◆ auxdecor() [1/2]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux decoration, as a non-const reference.
- Parameters
-
name | Name of the aux variable. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
◆ auxdecor() [2/2]
template<class T , class ALLOC = AuxAllocator_t<T>>
Fetch an aux decoration, as a non-const reference.
- Parameters
-
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
If the container is locked, this will allow fetching only variables that do not yet exist (in which case they will be marked as decorations) or variables already marked as decorations.
◆ clearAux()
void SG::AuxElement::clearAux |
( |
| ) |
|
|
privateinherited |
Clear all aux data associated with this element.
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
Definition at line 580 of file AuxElement.cxx.
◆ clearCache()
void SG::AuxElement::clearCache |
( |
| ) |
|
|
inherited |
Clear the cached aux data pointers.
You should call this any time something changes in the aux store that could invalidate the vector pointers.
Definition at line 339 of file AuxElement.cxx.
◆ clearDecorations()
bool SG::AuxElement::clearDecorations |
( |
| ) |
const |
|
inherited |
Clear all decorations.
Erase all decorations from an associated store, restoring the state to when lock
was called.
Returns true if there were any decorations that were cleared, false if the store did not contain any decorations.
Definition at line 428 of file AuxElement.cxx.
◆ container() [1/2]
Return the container holding this element.
◆ container() [2/2]
Return the container holding this element.
◆ copyAux()
Copy aux data from another object.
- Parameters
-
other | The object from which to copy. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
If this object has no associated store, this does nothing. If the associated aux data is const, this throws ExcConstAuxData
.
All aux data items from other
are copied to this object. Any aux data items associated with this object that are not present in other
are cleared. (If other
has no aux data, then all aux data items for this object are cleared.)
Definition at line 607 of file AuxElement.cxx.
622 size_t oindex =
other.index();
624 #ifndef XAOD_STANDALONE
632 #ifndef XAOD_STANDALONE
633 if (other_decors.
test (auxid)) {
635 other_ids.reset (auxid);
638 if (warnUnlocked &&
r.getName(auxid) !=
"mcEventWeights") {
639 std::ostringstream
ss;
640 ss <<
"skipped unlocked decoration " <<
r.getName(auxid)
641 <<
" (" << auxid <<
")";
647 if (!
r.isLinked (auxid)) {
648 r.copy (auxid, cont,
index(), *ocont, oindex, 1);
653 if (!other_ids.test (auxid)) {
654 r.clear (auxid, cont,
index(), 1);
◆ e()
double PanTau::PanTauSeed::e |
( |
| ) |
const |
|
virtual |
◆ eta()
double PanTau::PanTauSeed::eta |
( |
| ) |
const |
|
virtual |
◆ getAuxIDs()
Return a set of identifiers for existing data items for this object.
If this object has a private or standalone store, then information from that will be returned. Otherwise, if this element is part of a container, then information for the container will be returned. Otherwise, return an empty set.
Definition at line 355 of file AuxElement.cxx.
357 #ifdef ATHCONTAINERS_R21_COMPAT
◆ getConstituents()
◆ getConstituentsAsList_All()
◆ getConstituentsAsList_Core()
◆ getConstituentsAsList_Wide()
◆ getConstituentsOfType()
std::vector< PanTau::TauConstituent * > PanTau::PanTauSeed::getConstituentsOfType |
( |
int |
tauConstituent_Type, |
|
|
bool & |
foundit |
|
) |
| |
Definition at line 358 of file PanTauSeed.cxx.
361 return std::vector<TauConstituent*>(0);
◆ getConstStore()
Return the current store, as a const interface.
This will be non-zero if either a const or non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 304 of file AuxElement.cxx.
◆ getDecayMode()
int PanTau::PanTauSeed::getDecayMode |
( |
int |
nCharged, |
|
|
int |
nNeutral |
|
) |
| |
|
static |
◆ getDecayModeByPanTau()
int PanTau::PanTauSeed::getDecayModeByPanTau |
( |
| ) |
const |
|
inline |
◆ getDecayModeBySubAlg()
int PanTau::PanTauSeed::getDecayModeBySubAlg |
( |
| ) |
const |
|
inline |
◆ getDecayModeName()
std::string PanTau::PanTauSeed::getDecayModeName |
( |
int |
decayMode | ) |
|
|
static |
◆ getDecorIDs()
Return a set of identifiers for decorations for this object.
If this object has a private or standalone store, then information
from that will be returned. Otherwise, if this element
is part of a container, then information for the container
will be returned. Otherwise, return an empty set.
Definition at line 378 of file AuxElement.cxx.
380 #ifdef ATHCONTAINERS_R21_COMPAT
◆ getFeatures() [1/2]
◆ getFeatures() [2/2]
◆ getFinalMomentum()
TLorentzVector PanTau::PanTauSeed::getFinalMomentum |
( |
| ) |
const |
|
inline |
◆ getIsValidSeed()
bool PanTau::PanTauSeed::getIsValidSeed |
( |
| ) |
const |
|
inline |
◆ getModeHackedByCellBased()
bool PanTau::PanTauSeed::getModeHackedByCellBased |
( |
| ) |
|
|
inline |
◆ getNameInputAlgorithm()
const std::string & PanTau::PanTauSeed::getNameInputAlgorithm |
( |
| ) |
const |
|
inline |
◆ getNumberOfConstituentsOfType()
int PanTau::PanTauSeed::getNumberOfConstituentsOfType |
( |
int |
tauConstituent_Type | ) |
|
◆ getProtoMomentumCore()
TLorentzVector PanTau::PanTauSeed::getProtoMomentumCore |
( |
| ) |
const |
|
inline |
◆ getProtoMomentumWide()
TLorentzVector PanTau::PanTauSeed::getProtoMomentumWide |
( |
| ) |
const |
|
inline |
◆ getStore()
Return the current store, as a non-const interface.
This will be non-zero if a non-const store is associated with this object. This will fetch either a private or standalone store.
Definition at line 319 of file AuxElement.cxx.
322 #ifdef ATHCONTAINERS_R21_COMPAT
◆ getSubsystemHLV()
TLorentzVector PanTau::PanTauSeed::getSubsystemHLV |
( |
int |
tauConstituent_Type, |
|
|
bool & |
foundit |
|
) |
| |
◆ getTauJet() [1/2]
◆ getTauJet() [2/2]
◆ getTechnicalQuality()
const std::vector< int > & PanTau::PanTauSeed::getTechnicalQuality |
( |
| ) |
const |
|
inline |
◆ hadPrivateData()
bool SG::IAuxElement::hadPrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element had private data before it was added to its current container.
◆ hasNonConstStore()
bool SG::AuxElement::hasNonConstStore |
( |
| ) |
const |
|
inherited |
Return true if this object has an associated non-const store.
This will be true for either a private or standalone store.
Definition at line 411 of file AuxElement.cxx.
◆ hasStore()
bool SG::AuxElement::hasStore |
( |
| ) |
const |
|
inherited |
Return true if this object has an associated store.
This will be true for either a private or standalone store.
Definition at line 398 of file AuxElement.cxx.
◆ havePrivateData()
bool SG::IAuxElement::havePrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element currently has private data.
◆ index() [1/2]
size_t SG::IAuxElement::index |
( |
| ) |
const |
|
inherited |
Return the index of this element within its container.
◆ index() [2/2]
size_t SG::IAuxElement::index |
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
◆ isAvailable()
Check if a user property is available for reading or not.
This function should be used to check if a user property which may or may not exist, is set on the object.
- Parameters
-
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
- Returns
- Whether the decoration exists or not
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
◆ isAvailableWritable() [1/2]
template<class T , class ALLOC = AuxAllocator_t<T>>
Check if an aux variable is available for writing.
- Parameters
-
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
◆ isAvailableWritable() [2/2]
Check if a user property is available for writing or not.
This function can be used to check whether it will be possible to set a user property on the object.
- Parameters
-
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
- Returns
- Whether the decoration is possible to set
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
◆ isAvailableWritableAsDecoration()
template<class T , class ALLOC = AuxAllocator_t<T>>
Check if an aux variable is available for writing as a decoration.
- Parameters
-
name | Name of the aux variable. |
clsname | The name of the associated class. May be blank. |
This method has to translate from the aux data name to the internal representation each time it is called. Using this method inside of loops is discouraged; instead use the Accessor
class.
◆ isOfTechnicalQuality()
bool PanTau::PanTauSeed::isOfTechnicalQuality |
( |
int |
pantauSeed_TechnicalQuality | ) |
const |
◆ m()
double PanTau::PanTauSeed::m |
( |
| ) |
const |
|
virtual |
◆ makePrivateStore() [1/3]
void SG::AuxElement::makePrivateStore |
( |
| ) |
|
|
inherited |
Create a new (empty) private store for this object.
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
Definition at line 192 of file AuxElement.cxx.
◆ makePrivateStore() [2/3]
template<class U1 >
void SG::AuxElement::makePrivateStore |
( |
const U1 & |
other, |
|
|
bool |
warnUnlocked = false |
|
) |
| |
|
inherited |
Create a new private store for this object and copy aux data.
- Parameters
-
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
◆ makePrivateStore() [3/3]
template<class U1 >
void SG::AuxElement::makePrivateStore |
( |
const U1 * |
other, |
|
|
bool |
warnUnlocked = false |
|
) |
| |
|
inherited |
Create a new private store for this object and copy aux data.
- Parameters
-
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
If other
is an object that has aux data, then those data will be copied; otherwise, nothing will be done.
◆ makePrivateStore1() [1/2]
void SG::AuxElement::makePrivateStore1 |
( |
const AuxElement * |
other, |
|
|
bool |
warnUnlocked |
|
) |
| |
|
privateinherited |
Create a new private store for this object and copy aux data.
- Parameters
-
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does have aux data.
Definition at line 565 of file AuxElement.cxx.
◆ makePrivateStore1() [2/2]
void SG::AuxElement::makePrivateStore1 |
( |
const void * |
other, |
|
|
bool |
warnUnlocked |
|
) |
| |
|
privateinherited |
Create a new private store for this object and copy aux data.
- Parameters
-
other | The object from which aux data should be copied. |
warnUnlocked | If true, then warn when we skip unlocked decorations. |
ExcBadPrivateStore
will be thrown if this object is already associated with a store.
This overload handles the case where other
does not have aux data.
◆ noPrivateData()
bool SG::IAuxElement::noPrivateData |
( |
| ) |
const |
|
protectedinherited |
True if this element has no private data.
◆ operator=()
◆ p4()
◆ phi()
double PanTau::PanTauSeed::phi |
( |
| ) |
const |
|
virtual |
◆ pt()
double PanTau::PanTauSeed::pt |
( |
| ) |
const |
|
virtual |
◆ rapidity()
double PanTau::PanTauSeed::rapidity |
( |
| ) |
const |
|
virtual |
◆ releasePrivateStore()
void SG::AuxElement::releasePrivateStore |
( |
| ) |
|
|
inherited |
Release and free any private store associated with this object.
ExcBadPrivateStore
will be thrown if this object does not have a private store.
Definition at line 210 of file AuxElement.cxx.
221 typeid(*
m_container) !=
typeid(AuxElementPrivateData))
◆ releasePrivateStoreForDtor()
void SG::AuxElement::releasePrivateStoreForDtor |
( |
| ) |
|
|
privateinherited |
Out-of-line portion of destructor.
Delete a private store if we have one.
Definition at line 441 of file AuxElement.cxx.
443 #ifdef ATHCONTAINERS_R21_COMPAT
◆ setConstStore()
Synonym for setStore
with IConstAuxStore
.
- Parameters
-
◆ setDecayModeByPanTau()
void PanTau::PanTauSeed::setDecayModeByPanTau |
( |
int |
decayModePanTau | ) |
|
|
inline |
◆ setEta()
void PanTau::PanTauSeed::setEta |
( |
float |
eta | ) |
|
◆ setFinalMomentum()
void PanTau::PanTauSeed::setFinalMomentum |
( |
TLorentzVector |
finalMom | ) |
|
|
inline |
◆ setHadPrivateData()
void SG::IAuxElement::setHadPrivateData |
( |
| ) |
|
|
privateinherited |
Record that this element used to have private data.
◆ setHavePrivateData()
void SG::IAuxElement::setHavePrivateData |
( |
| ) |
|
|
privateinherited |
Record that this element currently has private data.
◆ setIndex()
Set the index/container for this element.
- Parameters
-
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
Usually this simply sets the index and container members of this object. However, in the case where this object has an associated private store, then we need to deal with releasing the store if the object is being added to a container, or making a new store if the object is being removed from a container.
◆ setIndexPrivate()
Set the index/container for this element.
- Parameters
-
index | The index of this object within the container. |
container | The container holding this object. May be null if this object is being removed from a container. |
This is called from setIndex
when we have a private store to deal with.
Definition at line 505 of file AuxElement.cxx.
507 #ifdef ATHCONTAINERS_R21_COMPAT
525 typeid(*
m_container) ==
typeid(AuxElementPrivateData))
543 "from a container.");
◆ setM()
void PanTau::PanTauSeed::setM |
( |
float |
m | ) |
|
◆ setModeHackedByCellBased()
void PanTau::PanTauSeed::setModeHackedByCellBased |
( |
bool |
f | ) |
|
|
inline |
◆ setNonConstStore()
Synonym for setStore
with IAuxStore
.
- Parameters
-
◆ setNoPrivateData()
void SG::IAuxElement::setNoPrivateData |
( |
| ) |
|
|
privateinherited |
Record that this element does not have private data.
◆ setP4()
void PanTau::PanTauSeed::setP4 |
( |
float |
pt, |
|
|
float |
eta, |
|
|
float |
phi, |
|
|
float |
m |
|
) |
| |
◆ setPhi()
void PanTau::PanTauSeed::setPhi |
( |
float |
phi | ) |
|
◆ setPt()
void PanTau::PanTauSeed::setPt |
( |
float |
pt | ) |
|
◆ setStore() [1/3]
Set the store associated with this object.
- Parameters
-
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
- Parameters
-
store | Link to the new store. |
Definition at line 269 of file AuxElement.cxx.
◆ setStore() [2/3]
Set the store associated with this object.
- Parameters
-
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 241 of file AuxElement.cxx.
◆ setStore() [3/3]
Set the store associated with this object.
- Parameters
-
If store is nonzero, this adds a standalone store to the object. The object must not be in a container and must not have a private store. If store is zero, this removes a standalone store.
Definition at line 257 of file AuxElement.cxx.
◆ setStore1()
Set the store associated with this object.
- Parameters
-
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
- Parameters
-
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 461 of file AuxElement.cxx.
467 AuxElementStandaloneData*
data =
new AuxElementStandaloneData;
474 return static_cast<AuxElementStandaloneData*
> (
container());
477 throw ExcBadPrivateStore (
"Attempt to attach a standalone store to an "
478 "object in a container or with a private store.");
489 throw ExcBadPrivateStore (
"Attempt to remove a standalone store from an "
490 "object in a container or with a private store.");
◆ trackIndices()
bool SG::AuxElement::trackIndices |
( |
| ) |
const |
|
inherited |
Return true if index tracking is enabled for this object.
Always returns true. Included here to be consistent with AuxVectorBase when standalone objects may be used as template parameters.
◆ type()
◆ usingPrivateStore()
bool SG::AuxElement::usingPrivateStore |
( |
| ) |
const |
|
inherited |
Test to see if this object is currently using a private store.
Definition at line 280 of file AuxElement.cxx.
283 typeid(*m_container) ==
typeid(AuxElementPrivateData);
◆ usingStandaloneStore()
bool SG::AuxElement::usingStandaloneStore |
( |
| ) |
const |
|
inherited |
Test to see if this object is currently using a standalone store.
Test to see if this object is currently using a private store.
Definition at line 290 of file AuxElement.cxx.
293 typeid(*m_container) ==
typeid(AuxElementStandaloneData);
◆ m_Constituents
◆ m_ConstituentsList_All
◆ m_ConstituentsList_AllSelected
◆ m_ConstituentsList_Core
◆ m_ConstituentsList_Wide
◆ m_container
The container of which this object is an element.
Should be null if this object is not within a container, except that it may also point at a private store.
Definition at line 335 of file AuxElement.h.
◆ m_DecayMode_ByPanTau
int PanTau::PanTauSeed::m_DecayMode_ByPanTau |
|
protected |
◆ m_DecayMode_BySubAlg
int PanTau::PanTauSeed::m_DecayMode_BySubAlg |
|
protected |
◆ m_decayModeHack_CellBasedShots
bool PanTau::PanTauSeed::m_decayModeHack_CellBasedShots |
|
protected |
◆ m_Features
flag to indicate whether the decay mode by cellbased was
1p1n and hits in EM1 > 2 (because then 1p1n -> 1pX
is set)
Definition at line 215 of file PanTauSeed.h.
◆ m_FinalMomentum
TLorentzVector PanTau::PanTauSeed::m_FinalMomentum |
|
protected |
◆ m_index
size_t SG::IAuxElement::m_index |
|
privateinherited |
The index of this element within its container.
Should be 0 if this object is not within a container.
Definition at line 128 of file IAuxElement.h.
◆ m_IsValidSeed
bool PanTau::PanTauSeed::m_IsValidSeed |
|
protected |
◆ m_NameInputAlgorithm
std::string PanTau::PanTauSeed::m_NameInputAlgorithm |
|
protected |
◆ m_p4
◆ m_privateStoreState
◆ m_ProtoMomentum_Core
TLorentzVector PanTau::PanTauSeed::m_ProtoMomentum_Core |
|
protected |
◆ m_ProtoMomentum_Wide
TLorentzVector PanTau::PanTauSeed::m_ProtoMomentum_Wide |
|
protected |
◆ m_TauJet
◆ m_TechnicalQuality
std::vector<int> PanTau::PanTauSeed::m_TechnicalQuality |
|
protected |
◆ m_TypeHLVs
std::vector< TLorentzVector > PanTau::PanTauSeed::m_TypeHLVs |
|
protected |
◆ supportsThinning
constexpr bool SG::AuxElement::supportsThinning = true |
|
staticconstexprinherited |
Mark that this type supports thinning operations.
See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.
Definition at line 959 of file AuxElement.h.
The documentation for this class was generated from the following files:
const SG::IConstAuxStore * getConstStore() const
Return the current store, as a const interface.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
const std::vector< int > & getTypeFlags() const
char data[hepevt_bytes_allocation_ATLAS]
bool m_decayModeHack_CellBasedShots
std::vector< std::vector< PanTau::TauConstituent * > > m_Constituents
std::vector< PanTau::TauConstituent * > m_ConstituentsList_AllSelected
double phiIntermediateAxis() const
static AuxTypeRegistry & instance()
Return the singleton registry instance.
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
AccessorTemplate & operator=(AccessorTemplate &&that)
const SG::auxid_set_t & getWritableAuxIDs() const
Return a set of identifiers for writable data items in this store.
double etaIntermediateAxis() const
std::vector< PanTau::TauConstituent * > getConstituentsOfType(int tauConstituent_Type, bool &foundit)
virtual double phi() const
The azimuthal angle ( ) of the particle.
const SG::AuxVectorData * m_container
The container of which this object is an element.
bool hasNonConstStore() const
Return true if this object has an associated non-const store.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLorentzVector.
bool usingStandaloneStore() const
Test to see if this object is currently using a standalone store.
bool setIndexPrivate(size_t index, const SG::AuxVectorData *container)
Set the index/container for this element.
Exception — Non-const operation performed on const aux data.
void setNoPrivateData()
Record that this element does not have private data.
virtual FourMom_t p4() const
The full 4-momentum of the particle as a TLoretzVector.
PanTau::TauFeature * m_Features
flag to indicate whether the decay mode by cellbased was
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items in store associated with this object.
FourMom_t m_p4
4-momentum object
Handle mappings between names and auxid_t.
size_t index() const
Return the index of this element within its container.
void setHadPrivateData()
Record that this element used to have private data.
size_t auxid_t
Identifier for a particular aux data item.
std::string m_NameInputAlgorithm
void copyAux(const ConstAuxElement &other, bool warnUnlocked=false)
Copy aux data from another object.
void clearAux()
Clear all aux data associated with this element.
AuxElement()
Default constructor.
std::vector< TLorentzVector > m_TypeHLVs
bool havePrivateData() const
True if this element currently has private data.
#define ATHCONTAINERS_WARNING(ctx, msg)
SG::IAuxStore * getStore()
Return the current store, as a non-const interface.
const SG::auxid_set_t & getDecorIDs() const
Return a set of identifiers for decorations for this object.
Internal data container for private store.
std::vector< PanTau::TauConstituent * > m_ConstituentsList_Wide
bool hasStore() const
Return true if this object has an associated store.
std::vector< PanTau::TauConstituent * > m_ConstituentsList_All
TLorentzVector m_ProtoMomentum_Wide
void setHavePrivateData()
Record that this element currently has private data.
void clearCache()
Clear the cached aux data pointers.
bool isOfType(TauConstituent::Type aType) const
void makePrivateStore()
Create a new (empty) private store for this object.
virtual double pt() const
The transverse momentum ( ) of the particle.
bool hasStore() const
Return true if this object has an associated store.
std::vector< int > m_TechnicalQuality
void setIndex(size_t index)
Set the index of this element within its container.
static int getDecayMode(int nCharged, int nNeutral)
double mIntermediateAxis() const
bool clearDecorations() const
Clear all decorations.
Exception — Bad use of private store.
bool isAvailableWritable(ELT &e) const
Test to see if this variable exists in the store and is writable.
bool isOfTechnicalQuality(int pantauSeed_TechnicalQuality) const
TLorentzVector m_ProtoMomentum_Core
std::vector< PanTau::TauConstituent * > m_ConstituentsList_Core
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
@ t_NoSelectedConstituents
@ Tau
The object is a tau (jet)
A set of aux data identifiers.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
virtual double m() const
The invariant mass of the particle.
Manage lookup of vectors of auxiliary data.
#define ATLAS_THREAD_SAFE
void releasePrivateStoreForDtor()
Out-of-line portion of destructor.
const SG::AuxVectorData * container() const
Return the container holding this element.
double ptIntermediateAxis() const
bool hadPrivateData() const
True if this element had private data before it was added to its current container.
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
AuxElementStandaloneData * setStore1(const SG::IConstAuxStore *store)
Set the store associated with this object.
TLorentzVector m_FinalMomentum
bool test(bit_t bit) const
Test to see if a bit is set.