ATLAS Offline Software
|
Class describing a jet. More...
#include <Jet_v1.h>
Public Types | |
typedef JetAttribute::AttributeID | AttributeID |
typedef JetAttribute::AssoParticlesID | AssoParticlesID |
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 | |
Jet_v1 () | |
Default constructor. More... | |
Jet_v1 (const Jet_v1 &) | |
Constructor with the 4-momentum properties of the jet. More... | |
~Jet_v1 () | |
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... | |
Access signal state | |
access the various signal states of the jets For now provide the minimum by returning only FourMomentum. Access by the enum to the historical states | |
JetFourMom_t | jetP4 (JetScale s) const |
Access by the enum to the historical states. More... | |
JetFourMom_t | genvecP4 (JetScale s) const |
JetFourMom_t | jetP4 (const std::string &statename) const |
Generic access to states. More... | |
JetFourMom_t | genvecP4 (const std::string &statename) const |
void | setJetP4 (const JetFourMom_t &p4) |
void | setJetP4 (JetScale s, const JetFourMom_t &p4) |
Access by the enum to the historical states. More... | |
void | setJetP4 (const std::string &sname, const JetFourMom_t &p4) |
Access to auxiliary data | |
Functions to retrieve attributes added to jet objects. They concern any attributes (float, vector<float>, 4-momentum,...) except IParticles (for the later see associatedParticles() function below). Access is done by an enum identifier or by string. They internally translate calls using double or vector<double> (ex: getAttribute<double>() ) in calls using float.
| |
template<class T > | |
bool | getAttribute (AttributeID type, T &value) const |
Retrieve attribute moment by enum. More... | |
template<class T > | |
bool | getAttribute (const std::string &name, T &value) const |
Retrieve attribute by string. More... | |
template<class T > | |
T | getAttribute (const std::string &name) const |
short form : more convenient and compact. Throws an exception if the moment is missing. More... | |
template<class T > | |
T | getAttribute (AttributeID type) const |
template<class T > | |
void | setAttribute (const std::string &name, const T &v) |
template<class T > | |
void | setAttribute (AttributeID type, const T &value) |
Set number by enum. More... | |
Access object or list of associated objects | |
Special functions to store list of objects are provided. The reason is we want to internally store every object as link (ElementLink). The setter and getter functions thus perform the conversion automatically from the internal format from/to const Object* or vector<const Object*> | |
template<typename T > | |
std::vector< const T * > | getAssociatedObjects (const std::string &name) const |
get associated objects as a vector<object> this compact form throws an exception if the object is not existing If internal links are invalid (ex: because of thinning) they replaced by a null pointer More... | |
template<typename T > | |
std::vector< const T * > | getAssociatedObjects (AssoParticlesID type) const |
template<typename T > | |
bool | getAssociatedObjects (const std::string &name, std::vector< const T * > &vec) const |
get associated objects as a vector<object> returns false if the object is not existing If internal links are invalid (ex: because of thinning) they replaced by a null pointer AND the function returns false More... | |
template<typename T > | |
bool | getAssociatedObjects (AssoParticlesID type, std::vector< const T * > &vec) const |
template<typename T > | |
void | setAssociatedObjects (const std::string &name, const std::vector< const T * > &vec) |
set associated objects from a vector of arbitrary object. More... | |
template<typename T > | |
void | setAssociatedObjects (AssoParticlesID type, const std::vector< const T * > &vec) |
template<typename T > | |
const T * | getAssociatedObject (const std::string &name) const |
get a single associated object this compact form throws an exception if the object is not existing More... | |
template<typename T > | |
const T * | getAssociatedObject (AssoParticlesID type) const |
template<typename T > | |
bool | getAssociatedObject (const std::string &name, const T *&vec) const |
get a single associated object returns false if the object is not existing More... | |
template<typename T > | |
bool | getAssociatedObject (AssoParticlesID type, const T *&vec) const |
template<typename T > | |
void | setAssociatedObject (const std::string &name, const T *vec) |
set a single associated object T must inherit AuxElement (if T inherits IParticle, objects are stored as IParticle but can still be retrieved as their exact type) returns false if the association failed More... | |
template<typename T > | |
void | setAssociatedObject (AssoParticlesID type, const T *vec) |
Metadata like information | |
float | getSizeParameter () const |
JetAlgorithmType::ID | getAlgorithmType () const |
JetInput::Type | getInputType () const |
void | setSizeParameter (float p) |
void | setAlgorithmType (JetAlgorithmType::ID a) |
void | setInputType (JetInput::Type t) |
Access to internal fastjet object. Reserved to expert usage. | |
Access to the internal fastjet object. CAN RETURN NULL, see the description of m_pseudoJet | |
const fastjet::PseudoJet * | getPseudoJet () const |
template<class PSEUDOJET > | |
void | setPseudoJet (const PSEUDOJET *fj) |
Set the fast jet pointer. More... | |
void | reset () |
Function making sure that the object is ready for persistification. More... | |
Static Public Attributes | |
static constexpr bool | supportsThinning = true |
Mark that this type supports thinning operations. More... | |
Protected Member Functions | |
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... | |
Protected Attributes | |
FastJetLinkBase * | m_fastJetLink |
Pointer to the fastjet object this jet is build from. 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 |
xAOD::IParticle functions | |
typedef IParticle::FourMom_t | FourMom_t |
Definition of the 4-momentum type. More... | |
Jet_v1 & | operator= (const Jet_v1 &other) |
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... | |
virtual Type::ObjectType | type () const |
The type of the object as a simple enumeration. More... | |
Additionnal kinematics for jets. | |
typedef JetFourMom_t | GenVecFourMom_t |
define enum ot follow naming conventions More... | |
JetFourMom_t | jetP4 () const |
The full 4-momentum of the particle : internal jet type. More... | |
JetFourMom_t | genvecP4 () const |
The full 4-momentum of the particle : internal jet type (same). More... | |
float | px () const |
The x-component of the jet's momentum. More... | |
float | py () const |
The y-component of the jet's momentum. More... | |
float | pz () const |
The z-component of the jet's momentum. More... | |
Jet constituents access | |
Access to the jet constituents. Constiuents are stored internally as IParticle. getConstituents() returns a special object : JetConstituentVector. The default 4-vectors of the constituents (ex: clusters) possibly differ from the 4-vector used in the jet finding procedure (ex: when find jets with non calibrated "EM scale" clusters). The JetConstituentVector behaves almost exactly as a simple vector<const IParticle*> AND guarantees that the 4-vectors it contains correpond to the 4-vector used at jet finding time. See the JetConstituentVector.h header for more details A direct access method rawConstituent() is provided for experts usage only. jet finding. | |
void | addConstituent (const ElementLink< IParticleContainer > &link, float weight=1.0) |
Add a constituent directly in the ElementLink format. More... | |
void | addConstituent (const IParticle *p, float weight=1.0) |
Add an IParticle as as constituent. More... | |
JetConstitScale | getConstituentsSignalState () const |
The state at which constituents were when this jet was found. More... | |
void | setConstituentsSignalState (JetConstitScale t) |
Set the state at which constituents were when this jet was found. This function is called by jet builders. More... | |
JetConstituentVector | getConstituents () const |
Return a vector of consituents. The object behaves like vector<const IParticle*>. See JetConstituentVector.h header for more details. More... | |
size_t | numConstituents () const |
Number of constituents in this jets (this is valid even when reading a file where the constituents have been removed). More... | |
const IParticle * | rawConstituent (size_t i) const |
Direct access to constituents. WARNING expert use only. More... | |
const std::vector< ElementLink< IParticleContainer > > & | constituentLinks () const |
Direct access to constituents. WARNING expert use only. More... | |
void | setNumConstituents (size_t n) |
Class describing a jet.
Jet is a generic class used to represent any "types" of hadronic jet within the Atlas Software. The various "types" of jets include for example jets build from calorimeter cluster or from reconstructed tracks or from truth particle, etc... The Jet class provides 4 main features :
|
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.
|
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::Jet_v1::Jet_v1 | ( | ) |
Default constructor.
Definition at line 14 of file Jet_v1.cxx.
Constructor with the 4-momentum properties of the jet.
Copy constructor
Definition at line 23 of file Jet_v1.cxx.
xAOD::Jet_v1::~Jet_v1 | ( | ) |
Definition at line 39 of file Jet_v1.cxx.
void xAOD::Jet_v1::addConstituent | ( | const ElementLink< IParticleContainer > & | link, |
float | weight = 1.0 |
||
) |
Add an IParticle as as constituent.
Warning ! A link to the original container of this particle p will be used internally. Thus one can not persistify correctly constituents from a container in VIEW mode.
Definition at line 119 of file Jet_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.
|
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.
const std::vector< ElementLink< IParticleContainer > > & xAOD::Jet_v1::constituentLinks | ( | ) | const |
Direct access to constituents. WARNING expert use only.
Definition at line 162 of file Jet_v1.cxx.
|
inherited |
Return the container holding this element.
|
inherited |
Return the container holding this element.
|
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 63 of file Jet_v1.cxx.
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
Definition at line 49 of file Jet_v1.cxx.
JetFourMom_t xAOD::Jet_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : internal jet type (same).
Definition at line 81 of file Jet_v1.cxx.
JetFourMom_t xAOD::Jet_v1::genvecP4 | ( | const std::string & | statename | ) | const |
Definition at line 221 of file Jet_v1.cxx.
JetFourMom_t xAOD::Jet_v1::genvecP4 | ( | JetScale | s | ) | const |
Definition at line 193 of file Jet_v1.cxx.
JetAlgorithmType::ID xAOD::Jet_v1::getAlgorithmType | ( | ) | const |
Definition at line 249 of file Jet_v1.cxx.
const T* xAOD::Jet_v1::getAssociatedObject | ( | AssoParticlesID | type | ) | const |
bool xAOD::Jet_v1::getAssociatedObject | ( | AssoParticlesID | type, |
const T *& | vec | ||
) | const |
get a single associated object this compact form throws an exception if the object is not existing
bool xAOD::Jet_v1::getAssociatedObject | ( | const std::string & | name, |
const T *& | vec | ||
) | const |
get a single associated object returns false if the object is not existing
std::vector<const T*> xAOD::Jet_v1::getAssociatedObjects | ( | AssoParticlesID | type | ) | const |
bool xAOD::Jet_v1::getAssociatedObjects | ( | AssoParticlesID | type, |
std::vector< const T * > & | vec | ||
) | const |
std::vector<const T*> xAOD::Jet_v1::getAssociatedObjects | ( | const std::string & | name | ) | const |
get associated objects as a vector<object> this compact form throws an exception if the object is not existing If internal links are invalid (ex: because of thinning) they replaced by a null pointer
bool xAOD::Jet_v1::getAssociatedObjects | ( | const std::string & | name, |
std::vector< const T * > & | vec | ||
) | const |
get associated objects as a vector<object> returns false if the object is not existing If internal links are invalid (ex: because of thinning) they replaced by a null pointer AND the function returns false
T xAOD::Jet_v1::getAttribute | ( | AttributeID | type | ) | const |
bool xAOD::Jet_v1::getAttribute | ( | AttributeID | type, |
T & | value | ||
) | const |
Retrieve attribute moment by enum.
T xAOD::Jet_v1::getAttribute | ( | const std::string & | name | ) | const |
short form : more convenient and compact. Throws an exception if the moment is missing.
Retrieve attribute by string.
|
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.
JetConstituentVector xAOD::Jet_v1::getConstituents | ( | ) | const |
Return a vector of consituents. The object behaves like vector<const IParticle*>. See JetConstituentVector.h header for more details.
Definition at line 147 of file Jet_v1.cxx.
JetConstitScale xAOD::Jet_v1::getConstituentsSignalState | ( | ) | const |
The state at which constituents were when this jet was found.
Definition at line 136 of file Jet_v1.cxx.
|
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.
JetInput::Type xAOD::Jet_v1::getInputType | ( | ) | const |
Definition at line 253 of file Jet_v1.cxx.
const fastjet::PseudoJet * xAOD::Jet_v1::getPseudoJet | ( | ) | const |
Definition at line 236 of file Jet_v1.cxx.
float xAOD::Jet_v1::getSizeParameter | ( | ) | const |
Definition at line 245 of file Jet_v1.cxx.
|
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.
|
protectedinherited |
True if this element had private data before it was added to its current container.
|
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.
|
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.
JetFourMom_t xAOD::Jet_v1::jetP4 | ( | ) | const |
The full 4-momentum of the particle : internal jet type.
Definition at line 76 of file Jet_v1.cxx.
JetFourMom_t xAOD::Jet_v1::jetP4 | ( | const std::string & | statename | ) | const |
JetFourMom_t xAOD::Jet_v1::jetP4 | ( | JetScale | s | ) | const |
|
virtual |
The invariant mass of the particle.
Implements xAOD::IParticle.
Definition at line 59 of file Jet_v1.cxx.
|
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.
|
protectedinherited |
True if this element has no private data.
size_t xAOD::Jet_v1::numConstituents | ( | ) | const |
Number of constituents in this jets (this is valid even when reading a file where the constituents have been removed).
Definition at line 153 of file Jet_v1.cxx.
Definition at line 30 of file Jet_v1.cxx.
|
virtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 71 of file Jet_v1.cxx.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
Definition at line 54 of file Jet_v1.cxx.
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
Definition at line 44 of file Jet_v1.cxx.
float xAOD::Jet_v1::px | ( | ) | const |
The x-component of the jet's momentum.
Assuming that when one of px py pz is called the other will be too. So provoke the build of FourMom_t.
Definition at line 90 of file Jet_v1.cxx.
float xAOD::Jet_v1::py | ( | ) | const |
The y-component of the jet's momentum.
Definition at line 94 of file Jet_v1.cxx.
float xAOD::Jet_v1::pz | ( | ) | const |
The z-component of the jet's momentum.
Definition at line 99 of file Jet_v1.cxx.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 67 of file Jet_v1.cxx.
Direct access to constituents. WARNING expert use only.
Definition at line 158 of file Jet_v1.cxx.
|
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::Jet_v1::reset | ( | ) |
Function making sure that the object is ready for persistification.
workaround some I/O limitations
Definition at line 231 of file Jet_v1.cxx.
void xAOD::Jet_v1::setAlgorithmType | ( | JetAlgorithmType::ID | a | ) |
Definition at line 258 of file Jet_v1.cxx.
void xAOD::Jet_v1::setAssociatedObject | ( | AssoParticlesID | type, |
const T * | vec | ||
) |
void xAOD::Jet_v1::setAssociatedObjects | ( | AssoParticlesID | type, |
const std::vector< const T * > & | vec | ||
) |
void xAOD::Jet_v1::setAttribute | ( | AttributeID | type, |
const T & | value | ||
) |
Set number by enum.
void xAOD::Jet_v1::setConstituentsSignalState | ( | JetConstitScale | t | ) |
Set the state at which constituents were when this jet was found. This function is called by jet builders.
Definition at line 141 of file Jet_v1.cxx.
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
|
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::Jet_v1::setInputType | ( | JetInput::Type | t | ) |
Definition at line 259 of file Jet_v1.cxx.
void xAOD::Jet_v1::setJetP4 | ( | const JetFourMom_t & | p4 | ) |
Definition at line 171 of file Jet_v1.cxx.
void xAOD::Jet_v1::setJetP4 | ( | const std::string & | sname, |
const JetFourMom_t & | p4 | ||
) |
Definition at line 225 of file Jet_v1.cxx.
void xAOD::Jet_v1::setJetP4 | ( | JetScale | s, |
const JetFourMom_t & | p4 | ||
) |
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
|
protected |
void xAOD::Jet_v1::setPseudoJet | ( | const PSEUDOJET * | fj | ) |
Set the fast jet pointer.
Expert usage only. This function is templated in order to avoid a dependency of xAODJet on fastjet.
void xAOD::Jet_v1::setSizeParameter | ( | float | p | ) |
Definition at line 257 of file Jet_v1.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.
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.
|
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.
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 85 of file Jet_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.
|
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.
|
protected |
|
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.