ATLAS Offline Software
|
Description of a composite particle, i.e. More...
#include <CompositeParticle_v1.h>
Classes | |
struct | MT |
Define the enumeration of calculation methods for the transverse mass. More... | |
Public Types | |
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 > |
Public Member Functions | |
CompositeParticle_v1 () | |
Default constructor. More... | |
void | toPersistent () |
Function preparing the object to be persistified. More... | |
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... | |
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) |
Create a new private store for this object and copy aux data. More... | |
template<class U1 > | |
void | makePrivateStore (const U1 *other) |
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... | |
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... | |
Functions implementing additional 4-momentum properties | |
double | px () const |
Get the px momentum component of the particle. More... | |
double | py () const |
Get the py momentum component of the particle. More... | |
double | pz () const |
Get the pz momentum component of the particle. More... | |
double | et () const |
The transverse energy ( \(e_T\)) of the particle. More... | |
void | setP4 (const FourMom_t &vec) |
Set the 4-vec. More... | |
void | setPxPyPzE (double px, double py, double pz, double e) |
Set the 4-vec. More... | |
void | setPx (double px) |
Set the x-component of the momentum. More... | |
void | setPy (double py) |
Set the y-component of the momentum. More... | |
void | setPz (double pz) |
Set the z-component of the momentum. More... | |
void | setE (double e) |
Set the energy. More... | |
Functions implementing other particly-type properties | |
bool | hasCharge () const |
Check if this composite particle has its charge set. More... | |
float | charge () const |
Return the electric charge. More... | |
void | setCharge (float charge) |
Set the electric charge. More... | |
bool | hasPdgId () const |
Check if this composite particle has its charge set. More... | |
int | pdgId () const |
Return the PDG identifier. More... | |
void | setPdgId (int pdgID) |
Set the PDG identifier. More... | |
Functions returning variables that are calculated from 4-momentum | |
information from constituents. The 4-momentum is calculated as the sum of 4-momenta of all the constituent particles whos indices are given in the vector. If one of the indices is -1, then missingET will also be used with pz=0 and E=sqrt(mpx*mpx + mpy*mpy). | |
FourMom_t | p4 (const std::vector< int > &partIndices) const |
The total 4-momentum. More... | |
FourMom_t | p4 (int partIndexA, int partIndexB) const |
Get the four-momentum with two indices. More... | |
FourMom_t | p4 (int partIndexA, int partIndexB, int partIndexC) const |
Get the four-momentum with three indices. More... | |
FourMom_t | p4 (int partIndexA, int partIndexB, int partIndexC, int partIndexD) const |
Get the four-momentum with four indices. More... | |
double | pt (const std::vector< int > &partIndices) const |
The transverse momentum ( \(p_T\)) More... | |
double | eta (const std::vector< int > &partIndices) const |
The pseudorapidity ( \(\eta\)) More... | |
double | phi (const std::vector< int > &partIndices) const |
The azimuthal angle ( \(\phi\)) More... | |
double | m (const std::vector< int > &partIndices) const |
The invariant mass. More... | |
double | p (const std::vector< int > &partIndices) const |
The total 3-momentum. More... | |
double | e (const std::vector< int > &partIndices) const |
The total energy. More... | |
double | rapidity (const std::vector< int > &partIndices) const |
The true rapidity (y) More... | |
double | px (const std::vector< int > &partIndices) const |
Get the px momentum component. More... | |
double | py (const std::vector< int > &partIndices) const |
Get the py momentum component. More... | |
double | pz (const std::vector< int > &partIndices) const |
Get the pz momentum component. More... | |
double | et (const std::vector< int > &partIndices) const |
The transverse energy ( \(e_T\)) Note that this differs from ( \(p_T\)) for massive particles. More... | |
double | mt (const std::vector< int > &partIndices, MT::Method method=MT::DEFAULT) const |
Get the transverse mass. More... | |
double | mt (int partIndexA, int partIndexB=-2, MT::Method method=MT::DEFAULT) const |
Get the transverse mass with only one constituent particle. More... | |
Functions implementing handling of constituents | |
void | addPart (const xAOD::IParticle *part, bool updateFourMom=true) |
Add a particle as an additional constituent. More... | |
void | addPart (const xAOD::IParticleLink &partLink, bool updateFourMom=true) |
Add a particle as an additional constituent. More... | |
void | addParts (const xAOD::IParticleLinkContainer &partLinkCont, bool updateFourMom=true) |
Add many constituents at the same time Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true. More... | |
void | removePart (const xAOD::IParticle *part, bool updateFourMom=true) |
Remove a particle as a constituent from this CompostiteParticle. More... | |
void | removePart (const xAOD::IParticleLink &partLink, bool updateFourMom=true) |
Remove a particle as a constituent from this CompostiteParticle. More... | |
const xAOD::MissingET * | missingET () const |
Get the MissingET object that is associated with this CompositeParticle. More... | |
void | setMissingET (const xAOD::MissingET *met, bool updateFourMom=true) |
Set the MissingET for this CompositeParticle. More... | |
void | removeMissingET (bool updateFourMom=true) |
Remove the existing MissingET object from this CompositeParticle. More... | |
bool | contains (const xAOD::MissingET *met) const |
Check if a given xAOD::MissingET object is part of this CompositeParticle. More... | |
bool | contains (const xAOD::IParticle *part) const |
Check if a given xAOD::IParticle is a constituent. More... | |
bool | contains (const xAOD::IParticleLink &partLink) const |
Check if a given xAOD::IParticle is a constituent. More... | |
std::size_t | nParts () const |
Number of constituent particles. More... | |
std::size_t | nCompParts () const |
Number of constituent CompositeParticles. More... | |
std::size_t | nPhotons () const |
Number of constituent photons. More... | |
std::size_t | nTruthPhotons () const |
Number of constituent truth photons. More... | |
std::size_t | nElectrons () const |
Number of constituent electrons. More... | |
std::size_t | nTruthElectrons () const |
Number of constituent truth electrons. More... | |
std::size_t | nMuons () const |
Number of constituent muons. More... | |
std::size_t | nTruthMuons () const |
Number of constituent truth muons. More... | |
std::size_t | nTaus () const |
Number of constituent taus. More... | |
std::size_t | nTruthTaus () const |
Number of constituent truth taus. More... | |
std::size_t | nLeptons () const |
Number of constituent leptons (electrons, muons, and taus). More... | |
std::size_t | nTruthLeptons () const |
Number of constituent truth leptons (truth electrons, truth muons, and truth taus). More... | |
std::size_t | nJets () const |
Number of constituent jets. More... | |
std::size_t | nTruthParts () const |
Number of constituent xAOD::TruthParticles. More... | |
const xAOD::IParticle * | part (std::size_t index=0) const |
Get the constituent IParticle number i. More... | |
const xAOD::IParticleLink & | partLink (std::size_t index=0) const |
Get the constituent IParticle number i as an ElementLink. More... | |
const xAOD::IParticleLinkContainer & | partLinks () const |
Get all constituents in one go. More... | |
template<typename CONTTYPE > | |
ConstDataVector< CONTTYPE > * | parts () const |
Method to return a DataVector<T>, e.g., a MuonContainer, for all the constituent particles, e.g., of type xAOD::Muon, that this CompositeParticle has. More... | |
xAOD::CompositeParticle_v1 * | compPart (const std::vector< int > &partIndices, const std::vector< int > &otherPartIndices=std::vector< int >{}, bool updateFourMom=true) const |
Get a CompositeParticle that is build on the fly from the constituent particles associated to the indices given (missingET is at index=-1). More... | |
xAOD::CompositeParticle_v1 * | compPart (int partIndexA, int partIndexB, int partIndexC=-2, bool updateFourMom=true) const |
Get a CompositeParticle that is build on the fly from the constituent particles associated to the indices given (missingET is at index=-1). More... | |
const xAOD::CompositeParticle_v1 * | compPart (std::size_t index=0) const |
Get the constituent number i as a CompositeParticle. More... | |
const xAOD::Photon * | photon (std::size_t index=0) const |
Get the constituent number i as a Photon. More... | |
const xAOD::Electron * | electron (std::size_t index=0) const |
Get the constituent number i as an Electron. More... | |
const xAOD::Muon * | muon (std::size_t index=0) const |
Get the constituent number i as an Muon. More... | |
const xAOD::TauJet * | tau (std::size_t index=0) const |
Get the constituent number i as a tau. More... | |
const xAOD::Jet * | jet (std::size_t index=0) const |
Get the constituent number i as a Jet. More... | |
const xAOD::TruthParticle * | truthPart (std::size_t index=0) const |
Get the constituent number i as a TruthParticle. More... | |
Functions implementing handling of other constituents. These | |
The constituent iterators are missing for the moment other particles are stored separetely from the main constituent particles. They will NOT be used to determine the four-momentum of this CompositeParticle. And they will NOT be used for determining the weight (and other properties) of this CompositeParticle. The main idea is that these other particles can be used for keeping track of, e.g., a third lepton to veto on, or sub-threshold jets. | |
void | addOtherPart (const xAOD::IParticle *part) |
Add a particle as an additional other constituent. More... | |
void | addOtherPart (const xAOD::IParticleLink &partLink) |
Add a particle as an additional other constituent. More... | |
void | addOtherParts (const xAOD::IParticleLinkContainer &partLinkCont) |
Add many other constituents at the same time. More... | |
void | removeOtherPart (const xAOD::IParticle *part) |
Remove a particle as an other constituent from this CompostiteParticle. More... | |
void | removeOtherPart (const xAOD::IParticleLink &partLink) |
Remove a particle as an other constituent from this CompostiteParticle. More... | |
bool | containsOther (const xAOD::IParticle *part) const |
Check if a given xAOD::IParticle is an other constituent. More... | |
bool | containsOther (const xAOD::IParticleLink &partLink) const |
Check if a given xAOD::IParticle is an other constituent. More... | |
std::size_t | nOtherParts () const |
Number of other constituent particles. More... | |
std::size_t | nOtherCompParts () const |
Number of other constituent CompositeParticles. More... | |
std::size_t | nOtherPhotons () const |
Number of other constituent photons. More... | |
std::size_t | nOtherTruthPhotons () const |
Number of other constituent truth photons. More... | |
std::size_t | nOtherElectrons () const |
Number of other constituent electrons. More... | |
std::size_t | nOtherTruthElectrons () const |
Number of other constituent truth electrons. More... | |
std::size_t | nOtherMuons () const |
Number of other constituent muons. More... | |
std::size_t | nOtherTruthMuons () const |
Number of other constituent truth muons. More... | |
std::size_t | nOtherTaus () const |
Number of other constituent taus. More... | |
std::size_t | nOtherTruthTaus () const |
Number of other constituent truth taus. More... | |
std::size_t | nOtherLeptons () const |
Number of other constituent leptons (electrons, muons, and taus). More... | |
std::size_t | nOtherTruthLeptons () const |
Number of other constituent truth leptons (truth electrons, truth muons, and truth taus). More... | |
std::size_t | nOtherJets () const |
Number of other constituent jets. More... | |
std::size_t | nOtherTruthParts () const |
Number of other constituent xAOD::TruthParticles. More... | |
const xAOD::IParticle * | otherPart (std::size_t index=0) const |
Get the other constituent IParticle number i. More... | |
const xAOD::IParticleLink & | otherPartLink (std::size_t index=0) const |
Get the other constituent IParticle number i as an ElementLink. More... | |
const xAOD::IParticleLinkContainer & | otherPartLinks () const |
Get all other constituents in one go. More... | |
const xAOD::CompositeParticle_v1 * | otherCompPart (std::size_t index=0) const |
Get the other constituent number i as a CompositeParticle. More... | |
const xAOD::Photon * | otherPhoton (std::size_t index=0) const |
Get the other constituent number i as a Photon. More... | |
const xAOD::Electron * | otherElectron (std::size_t index=0) const |
Get the other constituent number i as an Electron. More... | |
const xAOD::Muon * | otherMuon (std::size_t index=0) const |
Get the other constituent number i as an Muon. More... | |
const xAOD::TauJet * | otherTau (std::size_t index=0) const |
Get the other constituent number i as a tau. More... | |
const xAOD::Jet * | otherJet (std::size_t index=0) const |
Get the other constituent number i as a Jet. More... | |
const xAOD::TruthParticle * | otherTruthPart (std::size_t index=0) const |
Get the other constituent number i as a TruthParticle. More... | |
Functions implementing read-only access to auxdata (for python). | |
The constituent iterators are missing for the moment This specialization is needed since ROOT 6.02 doesn't yet support C++11 in the TFormula stuff with JIT compilation, see: https://sft.its.cern.ch/jira/browse/ROOT-5083 | |
bool | getBool (const std::string &varName) const |
Access to get a variable of type bool (actually, it is stored using type char) More... | |
int | getInt (const std::string &varName) const |
Access to get a variable of type int. More... | |
unsigned int | getUInt (const std::string &varName) const |
Access to get a variable of type unsigned int. More... | |
float | getFloat (const std::string &varName) const |
Access to get a variable of type float. More... | |
double | getDouble (const std::string &varName) const |
Access to get a variable of type double. More... | |
Static Public Attributes | |
static constexpr bool | supportsThinning = true |
Mark that this type supports thinning operations. More... | |
Protected Member Functions | |
void | setPartLinks (const xAOD::IParticleLinkContainer &constitLinks) |
Set all constituents in one go. More... | |
void | setOtherPartLinks (const xAOD::IParticleLinkContainer &otherPartLinks) |
Set all other constituents in one go. More... | |
bool | noPrivateData () const |
True if this element has no private data. More... | |
bool | havePrivateData () const |
True if this element currently has private data. More... | |
bool | hadPrivateData () const |
True if this element had private data before it was added to its current container. More... | |
Private Types | |
enum | PrivateStoreState : uint8_t { PrivateStoreState::NO_PRIVATE = 0, PrivateStoreState::HAVE_PRIVATE = 1, PrivateStoreState::HAD_PRIVATE = 2 } |
The current private data state. More... | |
Private Member Functions | |
void | releasePrivateStoreForDtor () |
Out-of-line portion of destructor. More... | |
void | setIndex (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
bool | setIndexPrivate (size_t index, SG::AuxVectorData *container) |
Set the index/container for this element. More... | |
void | makePrivateStore1 (const void *) |
Create a new private store for this object and copy aux data. More... | |
void | makePrivateStore1 (const AuxElement *other) |
Create a new private store for this object and copy aux data. More... | |
AuxElementStandaloneData * | setStore1 (const SG::IConstAuxStore *store) |
Set the store associated with this object. More... | |
void | clearAux () |
Clear all aux data associated with this element. More... | |
void | copyAux (const ConstAuxElement &other) |
Copy aux data from another object. More... | |
void | setNoPrivateData () |
Record that this element does not have private data. More... | |
void | setHavePrivateData () |
Record that this element currently has private data. More... | |
void | setHadPrivateData () |
Record that this element used to have private data. More... | |
Private Attributes | |
const SG::AuxVectorData * | m_container |
The container of which this object is an element. More... | |
size_t | m_index |
The index of this element within its container. More... | |
PrivateStoreState | m_privateStoreState |
Functions implementing the xAOD::IParticle interface | |
typedef IParticle::FourMom_t | FourMom_t |
Definition of the 4-momentum type. More... | |
typedef ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > | GenVecFourMom_t |
Base 4 Momentum type (GenVector) 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. More... | |
GenVecFourMom_t | genvecP4 () const |
The full 4-momentum of the particle : GenVector form Note: can be slower than just p4 for this class; added for consistency. More... | |
virtual Type::ObjectType | type () const |
The type of the object as a simple enumeration. More... | |
Functions returning variables that are calculated from | |
information from constituents (not only using their 4-momenta). | |
float | weight (const std::vector< std::string > &varNames, const std::vector< int > &partIndices={}) const |
Get the weight for this xAOD::CompositeParticle by providing a vector of variable names that will be looked for. More... | |
float | weight (const std::string &varNameA) const |
Get the weight for this xAOD::CompositeParticle . More... | |
float | weight (const std::string &varNameA, const std::string &varNameB) const |
float | weight (const std::string &varNameA, const std::string &varNameB, const std::string &varNameC) const |
float | weight (const std::string &varNameA, const std::string &varNameB, const std::string &varNameC, const std::string &varNameD) const |
float | weight (const std::string &varNameA, const std::string &varNameB, const std::string &varNameC, const std::string &varNameD, const std::string &varNameE) const |
float | weightHelper (const xAOD::IParticle *part, const xAOD::IParticle::ConstAccessor< float > &varAcc) const |
This is a private helper method to calculate the weight. More... | |
Description of a composite particle, i.e.
a particle that is composed out of several other particles/objects, e.g., a Z boson that consists out of two muons.
Definition at line 45 of file CompositeParticle_v1.h.
|
inherited |
Definition at line 548 of file AuxElement.h.
|
inherited |
Definition at line 545 of file AuxElement.h.
|
inherited |
Definition at line 551 of file AuxElement.h.
Definition of the 4-momentum type.
Definition at line 68 of file CompositeParticle_v1.h.
typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > xAOD::CompositeParticle_v1::GenVecFourMom_t |
Base 4 Momentum type (GenVector)
Definition at line 74 of file CompositeParticle_v1.h.
|
inherited |
Definition at line 542 of file AuxElement.h.
|
strongprivateinherited |
The current private data state.
Enumerator | |
---|---|
NO_PRIVATE | |
HAVE_PRIVATE | |
HAD_PRIVATE |
Definition at line 131 of file IAuxElement.h.
xAOD::CompositeParticle_v1::CompositeParticle_v1 | ( | ) |
void xAOD::CompositeParticle_v1::addOtherPart | ( | const xAOD::IParticle * | part | ) |
Add a particle as an additional other constituent.
void xAOD::CompositeParticle_v1::addOtherPart | ( | const xAOD::IParticleLink & | partLink | ) |
Add a particle as an additional other constituent.
Definition at line 901 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::addOtherParts | ( | const xAOD::IParticleLinkContainer & | partLinkCont | ) |
Add many other constituents at the same time.
Definition at line 916 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::addPart | ( | const xAOD::IParticle * | part, |
bool | updateFourMom = true |
||
) |
Add a particle as an additional constituent.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true.
void xAOD::CompositeParticle_v1::addPart | ( | const xAOD::IParticleLink & | partLink, |
bool | updateFourMom = true |
||
) |
Add a particle as an additional constituent.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true.
Definition at line 499 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::addParts | ( | const xAOD::IParticleLinkContainer & | partLinkCont, |
bool | updateFourMom = true |
||
) |
Add many constituents at the same time Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true.
Definition at line 521 of file CompositeParticle_v1.cxx.
|
inherited |
Fetch an aux data variable, as a non-const reference.
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.
|
inherited |
Fetch an aux data variable, as a const reference.
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.
|
inlineinherited |
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.
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inlineinherited |
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.
name | Name of the aux variable |
clsname | The name of the associated class. May be blank |
Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Fetch an aux data variable, as a const reference.
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.
|
inherited |
Fetch an aux data variable, as a const reference.
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.
|
inherited |
Fetch an aux decoration, as a non-const reference.
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.
|
inherited |
Fetch an aux decoration, as a non-const reference.
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.
float xAOD::CompositeParticle_v1::charge | ( | ) | const |
Return the electric charge.
Definition at line 182 of file CompositeParticle_v1.cxx.
|
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 535 of file AuxElement.cxx.
|
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 319 of file AuxElement.cxx.
|
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 385 of file AuxElement.cxx.
xAOD::CompositeParticle_v1* xAOD::CompositeParticle_v1::compPart | ( | const std::vector< int > & | partIndices, |
const std::vector< int > & | otherPartIndices = std::vector< int >{} , |
||
bool | updateFourMom = true |
||
) | const |
Get a CompositeParticle that is build on the fly from the constituent particles associated to the indices given (missingET is at index=-1).
If the second list of idices is given, also the "other" particles will be used in building this CompositeParticle.
|
inline |
Get a CompositeParticle that is build on the fly from the constituent particles associated to the indices given (missingET is at index=-1).
This specialization to the above method is needed since ROOT 6.02 doesn't yet support C++11 in the TFormula stuff with JIT compilation, see: https://sft.its.cern.ch/jira/browse/ROOT-5083
Definition at line 418 of file CompositeParticle_v1.h.
|
inline |
Get the constituent number i as a CompositeParticle.
If the cast to CompositeParticle fails for a constituent, a null pointer is returned.
Definition at line 642 of file CompositeParticle_v1.h.
|
inherited |
Return the container holding this element.
|
inherited |
Return the container holding this element.
bool xAOD::CompositeParticle_v1::contains | ( | const xAOD::IParticle * | part | ) | const |
Check if a given xAOD::IParticle is a constituent.
Definition at line 687 of file CompositeParticle_v1.cxx.
bool xAOD::CompositeParticle_v1::contains | ( | const xAOD::IParticleLink & | partLink | ) | const |
Check if a given xAOD::IParticle is a constituent.
Definition at line 706 of file CompositeParticle_v1.cxx.
bool xAOD::CompositeParticle_v1::contains | ( | const xAOD::MissingET * | met | ) | const |
Check if a given xAOD::MissingET object is part of this CompositeParticle.
Definition at line 660 of file CompositeParticle_v1.cxx.
bool xAOD::CompositeParticle_v1::containsOther | ( | const xAOD::IParticle * | part | ) | const |
Check if a given xAOD::IParticle is an other constituent.
Definition at line 975 of file CompositeParticle_v1.cxx.
bool xAOD::CompositeParticle_v1::containsOther | ( | const xAOD::IParticleLink & | partLink | ) | const |
Check if a given xAOD::IParticle is an other constituent.
Definition at line 994 of file CompositeParticle_v1.cxx.
|
privateinherited |
Copy aux data from another object.
other | The object from which to copy. |
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 561 of file AuxElement.cxx.
|
virtual |
The total energy of the particle.
Implements xAOD::IParticle.
Definition at line 107 of file CompositeParticle_v1.cxx.
The total energy.
|
inline |
Get the constituent number i as an Electron.
If the cast to Electron fails for a constituent, a null pointer is returned.
Definition at line 662 of file CompositeParticle_v1.h.
double xAOD::CompositeParticle_v1::et | ( | ) | const |
The transverse energy ( \(e_T\)) of the particle.
Note that this differs from ( \(p_T\)) for massive particles.
Definition at line 127 of file CompositeParticle_v1.cxx.
The transverse energy ( \(e_T\)) Note that this differs from ( \(p_T\)) for massive particles.
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 48 of file CompositeParticle_v1.cxx.
The pseudorapidity ( \(\eta\))
CompositeParticle_v1::GenVecFourMom_t xAOD::CompositeParticle_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : GenVector form Note: can be slower than just p4 for this class; added for consistency.
Definition at line 83 of file CompositeParticle_v1.cxx.
|
inherited |
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 335 of file AuxElement.cxx.
Access to get a variable of type bool (actually, it is stored using type char)
Definition at line 589 of file CompositeParticle_v1.h.
|
inherited |
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 284 of file AuxElement.cxx.
Access to get a variable of type double.
Definition at line 609 of file CompositeParticle_v1.h.
Access to get a variable of type float.
Definition at line 604 of file CompositeParticle_v1.h.
Access to get a variable of type int.
Definition at line 594 of file CompositeParticle_v1.h.
|
inherited |
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 299 of file AuxElement.cxx.
Access to get a variable of type unsigned int.
Definition at line 599 of file CompositeParticle_v1.h.
|
protectedinherited |
True if this element had private data before it was added to its current container.
Check if this composite particle has its charge set.
Definition at line 177 of file CompositeParticle_v1.cxx.
|
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 368 of file AuxElement.cxx.
bool xAOD::CompositeParticle_v1::hasPdgId | ( | ) | const |
Check if this composite particle has its charge set.
Definition at line 217 of file CompositeParticle_v1.cxx.
|
inherited |
Return true if this object has an associated store.
This will be true for either a private or standalone store.
Definition at line 355 of file AuxElement.cxx.
|
protectedinherited |
True if this element currently has private data.
|
inherited |
Return the index of this element within its container.
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
|
inlineinherited |
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.
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Check if an aux variable is available for writing.
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.
|
inlineinherited |
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.
name | Name of the auxiliary variable |
clsname | The name of the associated class. May be blank |
Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.
|
inherited |
Check if an aux variable is available for writing as a decoration.
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.
Get the constituent number i as a Jet.
If the cast to Jet fails for a constituent, a null pointer is returned.
Definition at line 692 of file CompositeParticle_v1.h.
|
virtual |
The invariant mass of the particle.
Implements xAOD::IParticle.
Definition at line 56 of file CompositeParticle_v1.cxx.
The invariant mass.
|
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 172 of file AuxElement.cxx.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
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.
|
inherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
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.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
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 521 of file AuxElement.cxx.
|
privateinherited |
Create a new private store for this object and copy aux data.
other | The object from which aux data should be copied. |
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.
const xAOD::MissingET * xAOD::CompositeParticle_v1::missingET | ( | ) | const |
Get the MissingET object that is associated with this CompositeParticle.
If no (valid) MissingET object is associated with this CompositeParticle, a null pointer will be returned
Definition at line 593 of file CompositeParticle_v1.cxx.
double xAOD::CompositeParticle_v1::mt | ( | const std::vector< int > & | partIndices, |
MT::Method | method = MT::DEFAULT |
||
) | const |
Get the transverse mass.
Specify which calculation method to use as an optional additional argument.
|
inline |
Get the transverse mass with only one constituent particle.
Specify which calculation method to use as an optional additional argument. This specialization to the above method is needed since ROOT 6.02 doesn't yet support C++11 in the TFormula stuff with JIT compilation, see: https://sft.its.cern.ch/jira/browse/ROOT-5083
Definition at line 205 of file CompositeParticle_v1.h.
|
inline |
Get the constituent number i as an Muon.
If the cast to Muon fails for a constituent, a null pointer is returned.
Definition at line 672 of file CompositeParticle_v1.h.
std::size_t xAOD::CompositeParticle_v1::nCompParts | ( | ) | const |
Number of constituent CompositeParticles.
std::size_t xAOD::CompositeParticle_v1::nElectrons | ( | ) | const |
Number of constituent electrons.
std::size_t xAOD::CompositeParticle_v1::nJets | ( | ) | const |
Number of constituent jets.
std::size_t xAOD::CompositeParticle_v1::nLeptons | ( | ) | const |
Number of constituent leptons (electrons, muons, and taus).
Definition at line 750 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nMuons | ( | ) | const |
Number of constituent muons.
|
protectedinherited |
True if this element has no private data.
std::size_t xAOD::CompositeParticle_v1::nOtherCompParts | ( | ) | const |
Number of other constituent CompositeParticles.
std::size_t xAOD::CompositeParticle_v1::nOtherElectrons | ( | ) | const |
Number of other constituent electrons.
std::size_t xAOD::CompositeParticle_v1::nOtherJets | ( | ) | const |
Number of other constituent jets.
std::size_t xAOD::CompositeParticle_v1::nOtherLeptons | ( | ) | const |
Number of other constituent leptons (electrons, muons, and taus).
Definition at line 1038 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nOtherMuons | ( | ) | const |
Number of other constituent muons.
std::size_t xAOD::CompositeParticle_v1::nOtherParts | ( | ) | const |
Number of other constituent particles.
Definition at line 1010 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nOtherPhotons | ( | ) | const |
Number of other constituent photons.
std::size_t xAOD::CompositeParticle_v1::nOtherTaus | ( | ) | const |
Number of other constituent taus.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthElectrons | ( | ) | const |
Number of other constituent truth electrons.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthLeptons | ( | ) | const |
Number of other constituent truth leptons (truth electrons, truth muons, and truth taus).
Definition at line 1065 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthMuons | ( | ) | const |
Number of other constituent truth muons.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthParts | ( | ) | const |
Number of other constituent xAOD::TruthParticles.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthPhotons | ( | ) | const |
Number of other constituent truth photons.
std::size_t xAOD::CompositeParticle_v1::nOtherTruthTaus | ( | ) | const |
Number of other constituent truth taus.
std::size_t xAOD::CompositeParticle_v1::nParts | ( | ) | const |
Number of constituent particles.
Note that MissingET is NOT counted as a constituent in this context
Definition at line 722 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nPhotons | ( | ) | const |
Number of constituent photons.
std::size_t xAOD::CompositeParticle_v1::nTaus | ( | ) | const |
Number of constituent taus.
std::size_t xAOD::CompositeParticle_v1::nTruthElectrons | ( | ) | const |
Number of constituent truth electrons.
std::size_t xAOD::CompositeParticle_v1::nTruthLeptons | ( | ) | const |
Number of constituent truth leptons (truth electrons, truth muons, and truth taus).
Definition at line 777 of file CompositeParticle_v1.cxx.
std::size_t xAOD::CompositeParticle_v1::nTruthMuons | ( | ) | const |
Number of constituent truth muons.
std::size_t xAOD::CompositeParticle_v1::nTruthParts | ( | ) | const |
Number of constituent xAOD::TruthParticles.
std::size_t xAOD::CompositeParticle_v1::nTruthPhotons | ( | ) | const |
Number of constituent truth photons.
std::size_t xAOD::CompositeParticle_v1::nTruthTaus | ( | ) | const |
Number of constituent truth taus.
|
inline |
Get the other constituent number i as a CompositeParticle.
If the cast to CompositeParticle fails for a constituent, a null pointer is returned.
Definition at line 713 of file CompositeParticle_v1.h.
|
inline |
Get the other constituent number i as an Electron.
If the cast to Electron fails for a constituent, a null pointer is returned.
Definition at line 733 of file CompositeParticle_v1.h.
Get the other constituent number i as a Jet.
If the cast to Jet fails for a constituent, a null pointer is returned.
Definition at line 763 of file CompositeParticle_v1.h.
|
inline |
Get the other constituent number i as an Muon.
If the cast to Muon fails for a constituent, a null pointer is returned.
Definition at line 743 of file CompositeParticle_v1.h.
const xAOD::IParticle * xAOD::CompositeParticle_v1::otherPart | ( | std::size_t | index = 0 | ) | const |
Get the other constituent IParticle number i.
Definition at line 1071 of file CompositeParticle_v1.cxx.
const xAOD::IParticleLink & xAOD::CompositeParticle_v1::otherPartLink | ( | std::size_t | index = 0 | ) | const |
Get the other constituent IParticle number i as an ElementLink.
Definition at line 1084 of file CompositeParticle_v1.cxx.
const xAOD::IParticleLinkContainer& xAOD::CompositeParticle_v1::otherPartLinks | ( | ) | const |
Get all other constituents in one go.
|
inline |
Get the other constituent number i as a Photon.
If the cast to Photon fails for a constituent, a null pointer is returned.
Definition at line 723 of file CompositeParticle_v1.h.
|
inline |
Get the other constituent number i as a tau.
If the cast to tau fails for a constituent, a null pointer is returned.
Definition at line 753 of file CompositeParticle_v1.h.
|
inline |
Get the other constituent number i as a TruthParticle.
If the cast to TruthParticle fails for a constituent, a null pointer is returned.
Definition at line 773 of file CompositeParticle_v1.h.
The total 3-momentum.
|
virtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 64 of file CompositeParticle_v1.cxx.
The total 4-momentum.
Get the four-momentum with two indices.
This specialization to the above method is needed since ROOT 6.02 doesn't yet support C++11 in the TFormula stuff with JIT compilation, see: https://sft.its.cern.ch/jira/browse/ROOT-5083
Definition at line 149 of file CompositeParticle_v1.h.
|
inline |
Get the four-momentum with three indices.
Definition at line 153 of file CompositeParticle_v1.h.
|
inline |
const xAOD::IParticle * xAOD::CompositeParticle_v1::part | ( | std::size_t | index = 0 | ) | const |
Get the constituent IParticle number i.
Definition at line 782 of file CompositeParticle_v1.cxx.
const xAOD::IParticleLink & xAOD::CompositeParticle_v1::partLink | ( | std::size_t | index = 0 | ) | const |
Get the constituent IParticle number i as an ElementLink.
Definition at line 795 of file CompositeParticle_v1.cxx.
const xAOD::IParticleLinkContainer& xAOD::CompositeParticle_v1::partLinks | ( | ) | const |
Get all constituents in one go.
ConstDataVector<CONTTYPE>* xAOD::CompositeParticle_v1::parts | ( | ) | const |
Method to return a DataVector<T>, e.g., a MuonContainer, for all the constituent particles, e.g., of type xAOD::Muon, that this CompositeParticle has.
This DataVector be a simple SG::VIEW_ELEMENTS container, i.e., it does NOT own the elements, e.g., muons, but has simple pointers to them. However, the user is still required to take care of its memory management by either recording it to StoreGate (and thus transfering ownership), or by deleting this view-container when done with it.
int xAOD::CompositeParticle_v1::pdgId | ( | ) | const |
Return the PDG identifier.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
Definition at line 52 of file CompositeParticle_v1.cxx.
The azimuthal angle ( \(\phi\))
|
inline |
Get the constituent number i as a Photon.
If the cast to Photon fails for a constituent, a null pointer is returned.
Definition at line 652 of file CompositeParticle_v1.h.
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 44 of file CompositeParticle_v1.cxx.
The transverse momentum ( \(p_T\))
double xAOD::CompositeParticle_v1::px | ( | ) | const |
Get the px momentum component of the particle.
Definition at line 112 of file CompositeParticle_v1.cxx.
Get the px momentum component.
double xAOD::CompositeParticle_v1::py | ( | ) | const |
Get the py momentum component of the particle.
Definition at line 117 of file CompositeParticle_v1.cxx.
Get the py momentum component.
double xAOD::CompositeParticle_v1::pz | ( | ) | const |
Get the pz momentum component of the particle.
Definition at line 122 of file CompositeParticle_v1.cxx.
Get the pz momentum component.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 60 of file CompositeParticle_v1.cxx.
The true rapidity (y)
|
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 190 of file AuxElement.cxx.
|
privateinherited |
Out-of-line portion of destructor.
Delete a private store if we have one.
Definition at line 398 of file AuxElement.cxx.
void xAOD::CompositeParticle_v1::removeMissingET | ( | bool | updateFourMom = true | ) |
Remove the existing MissingET object from this CompositeParticle.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true.
Definition at line 636 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::removeOtherPart | ( | const xAOD::IParticle * | part | ) |
Remove a particle as an other constituent from this CompostiteParticle.
Definition at line 930 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::removeOtherPart | ( | const xAOD::IParticleLink & | partLink | ) |
Remove a particle as an other constituent from this CompostiteParticle.
Definition at line 948 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::removePart | ( | const xAOD::IParticle * | part, |
bool | updateFourMom = true |
||
) |
Remove a particle as a constituent from this CompostiteParticle.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true. If the given IParticle is not already a constituent of this CompositeParticle, nothing happens
Definition at line 536 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::removePart | ( | const xAOD::IParticleLink & | partLink, |
bool | updateFourMom = true |
||
) |
Remove a particle as a constituent from this CompostiteParticle.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true. If the given IParticle is not already a constituent of this CompositeParticle, nothing happens
Definition at line 555 of file CompositeParticle_v1.cxx.
void xAOD::CompositeParticle_v1::setCharge | ( | float | charge | ) |
Set the electric charge.
Definition at line 211 of file CompositeParticle_v1.cxx.
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
void xAOD::CompositeParticle_v1::setE | ( | double | e | ) |
Set the energy.
|
privateinherited |
Record that this element used to have private data.
|
privateinherited |
Record that this element currently has private data.
|
privateinherited |
Set the index/container for this element.
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.
|
privateinherited |
Set the index/container for this element.
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 462 of file AuxElement.cxx.
void xAOD::CompositeParticle_v1::setMissingET | ( | const xAOD::MissingET * | met, |
bool | updateFourMom = true |
||
) |
Set the MissingET for this CompositeParticle.
Note that the 4-momentum of this CompositeParticle will be updated accordingly, if updateFourMom=true.
Definition at line 608 of file CompositeParticle_v1.cxx.
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
|
protected |
Set all other constituents in one go.
|
protected |
Set all constituents in one go.
Warning: This is meant for usage internal to this class only because no addition of the constituent properties will be done!
void xAOD::CompositeParticle_v1::setPdgId | ( | int | pdgID | ) |
Set the PDG identifier.
void xAOD::CompositeParticle_v1::setPx | ( | double | px | ) |
Set the x-component of the momentum.
void xAOD::CompositeParticle_v1::setPy | ( | double | py | ) |
Set the y-component of the momentum.
void xAOD::CompositeParticle_v1::setPz | ( | double | pz | ) |
Set the z-component of the momentum.
|
inherited |
Set the store associated with this object.
store | The new store. |
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.
store | Link to the new store. |
Definition at line 249 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
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 221 of file AuxElement.cxx.
|
inherited |
Set the store associated with this object.
store | The new store. |
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 237 of file AuxElement.cxx.
|
privateinherited |
Set the store associated with this object.
store | The new store. |
Helper for setStore
. Creates the AuxElementStandaloneData
object if needed and returns it.
store | The new store. |
Helper for setStore
. Creates the @x AuxElementStandaloneData object if needed and returns it.
Definition at line 418 of file AuxElement.cxx.
|
inline |
Get the constituent number i as a tau.
If the cast to tau fails for a constituent, a null pointer is returned.
Definition at line 682 of file CompositeParticle_v1.h.
void xAOD::CompositeParticle_v1::toPersistent | ( | ) |
Function preparing the object to be persistified.
|
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.
|
inline |
Get the constituent number i as a TruthParticle.
If the cast to TruthParticle fails for a constituent, a null pointer is returned.
Definition at line 702 of file CompositeParticle_v1.h.
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 102 of file CompositeParticle_v1.cxx.
|
inherited |
Test to see if this object is currently using a private store.
Definition at line 260 of file AuxElement.cxx.
|
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 270 of file AuxElement.cxx.
Get the weight for this xAOD::CompositeParticle
.
This specialization to the above method is needed since ROOT 6.02 doesn't yet support C++11 in the TFormula stuff with JIT compilation, see: https://sft.its.cern.ch/jira/browse/ROOT-5083
Definition at line 239 of file CompositeParticle_v1.h.
|
inline |
Definition at line 242 of file CompositeParticle_v1.h.
|
inline |
Definition at line 246 of file CompositeParticle_v1.h.
|
inline |
Definition at line 251 of file CompositeParticle_v1.h.
|
inline |
Definition at line 257 of file CompositeParticle_v1.h.
float xAOD::CompositeParticle_v1::weight | ( | const std::vector< std::string > & | varNames, |
const std::vector< int > & | partIndices = {} |
||
) | const |
Get the weight for this xAOD::CompositeParticle
by providing a vector of variable names that will be looked for.
These variables, if found, are assumed to be of type float and to hold a multiplicative weight variable. If a given variable name is not found for this xAOD::CompositeParticle
, then, the whole constituent tree will be searched for iteratively. The same variable name can be found and used for several constituents. But if a xAOD::CompositeParticle
has that variable, the iterative search will not look into the constituents of that xAOD::CompositeParticle
. The second, optional, argument is a list of indices such that one can restrict the variable name search to only the given constituent particles.
|
private |
This is a private helper method to calculate the weight.
|
privateinherited |
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 324 of file AuxElement.h.
|
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.
|
privateinherited |
Definition at line 137 of file IAuxElement.h.
|
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 920 of file AuxElement.h.