ATLAS Offline Software
|
Class describing a Muon. More...
#include <Muon_v1.h>
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 | |
Muon_v1 () | |
inject the enums More... | |
Muon_v1 (const Muon_v1 &rhs) | |
Copy constructor. More... | |
virtual | ~Muon_v1 () |
Destructor. More... | |
Muon_v1 & | operator= (const Muon_v1 &rhs) |
Assignment operator. More... | |
bool | isolationCaloCorrection (float &value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection type, const Iso::IsolationCorrectionParameter param) const |
Accessor for Isolation Calo correction. More... | |
float | isolationCaloCorrection (const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection type, const Iso::IsolationCorrectionParameter param) const |
Accessor to Isolation Calo corrections , this just returns the correction without internaly checking if it exists. More... | |
bool | setIsolationCaloCorrection (float value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection type, const Iso::IsolationCorrectionParameter param) |
set method for Isolation Calo Corrections. More... | |
bool | isolationTrackCorrection (float &value, const Iso::IsolationFlavour flavour, const Iso::IsolationTrackCorrection type) const |
Accessor for Isolation Track correction. More... | |
float | isolationTrackCorrection (const Iso::IsolationFlavour flavour, const Iso::IsolationTrackCorrection type) const |
Accessor to Isolation Track corrections , this just returns the correction without internaly checking if it exists. More... | |
bool | setIsolationTrackCorrection (float value, const Iso::IsolationFlavour flavour, const Iso::IsolationTrackCorrection type) |
Set method for Isolation Track Corrections. More... | |
bool | isolationCorrectionBitset (std::bitset< 32 > &value, const Iso::IsolationFlavour flavour) const |
Accessor for Isolation corection Bitset. More... | |
std::bitset< 32 > | isolationCorrectionBitset (const Iso::IsolationFlavour flavour) const |
Accessor to Isolation corection Bitset , this just returns the bitset without internaly checking if it exists. More... | |
bool | setIsolationCorrectionBitset (uint32_t value, const Iso::IsolationFlavour flavour) |
Set method for Isolation corection Bitset. 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... | |
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... | |
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 for getting and setting user properties | |
template<class T > | |
XAOD_AUXDATA_DEPRECATED T & | auxdata (const std::string &name, const std::string &clsname="") |
Fetch an aux data variable, as a non-const reference. More... | |
template<class T > | |
XAOD_AUXDATA_DEPRECATED const T & | auxdata (const std::string &name, const std::string &clsname="") const |
Fetch an aux data variable, as a const reference. More... | |
template<class T > | |
XAOD_AUXDATA_DEPRECATED bool | isAvailable (const std::string &name, const std::string &clsname="") const |
Check if a user property is available for reading or not. More... | |
template<class T > | |
XAOD_AUXDATA_DEPRECATED bool | isAvailableWritable (const std::string &name, const std::string &clsname="") const |
Check if a user property is available for writing or not. More... | |
IParticle functions | |
typedef IParticle::FourMom_t | FourMom_t |
Definition of the 4-momentum type. More... | |
typedef ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > | GenVecFourMom_t |
Base 4 Momentum type for Muon. 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... | |
void | setP4 (double pt, double eta, double phi) |
Set method for IParticle values. 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. More... | |
virtual Type::ObjectType | type () const |
The type of the object as a simple enumeration. More... | |
Charge | |
float | charge () const |
void | setCharge (float charge) |
Set the charge (must be the same as primaryTrackParticle() ) More... | |
Author | |
Methods to query the author(s) of this Muon
Returns the primary author of this Muon. | |
Author | author () const |
bool | isAuthor (const Author author) const |
Returns 'true' if 'author' is the an author of this muon. More... | |
void | setAuthor (Author auth) |
set author More... | |
uint16_t | allAuthors () const |
Get all the authors of this Muon. More... | |
void | setAllAuthors (uint16_t authors) |
void | addAllAuthor (const Author author) |
add author to all authors More... | |
Summary information | |
Return summary information about the muon, such as its MuonType, and the TrackSumary values of the primary TrackParticle.
| |
MuonType | muonType () const |
void | setMuonType (MuonType type) |
bool | summaryValue (uint8_t &value, const SummaryType information) const |
Accessor for TrackSummary values (in most cases, retrieved from the 'primary' TrackParticle - though it could be stored on the Muon, depending on the job configuration) If 'information' is stored in the primary TrackParticle/Muon and is of the correct templated type T, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'. More... | |
void | setSummaryValue (uint8_t value, const SummaryType information) |
Set method for storing TrackSummary SummaryType information on the Muon (see Aux to see which is already defined as static) More... | |
bool | summaryValue (float &value, const SummaryType information) const |
summaryValue(uint8_t& value, const SummaryType information) const; More... | |
bool | summaryValue (uint8_t &value, const MuonSummaryType information) const |
Accessor for MuonSummaryType. More... | |
void | setSummaryValue (uint8_t value, const MuonSummaryType information) |
Set method for MuonSummaryType. More... | |
float | floatSummaryValue (const SummaryType information) const |
Same as bool summaryValue(float& value, const SummaryType &information) const , but without check (will throw exception if value isn't there) Primarily for use in Python. More... | |
uint8_t | uint8SummaryValue (const SummaryType information) const |
Same as bool summaryValue(uint8_t& value, const SummaryType &information) const, but without check (will throw exception if value isn't there) Primarily for use in Python. More... | |
float | uint8MuonSummaryValue (const MuonSummaryType information) const |
Same as bool summaryValue(uint8_t& value, const MuonSummaryType &information) const, but without check (will throw exception if value isn't there) Primarily for use in Python. More... | |
bool | parameter (float &value, const ParamDef parameter) const |
Get a parameter for this Muon - momentumBalanceSignificance for example. More... | |
void | setParameter (float value, const ParamDef parameter) |
Set method for parameter values. More... | |
float | floatParameter (const ParamDef parameter) const |
Same as bool parameter(float& value, const ParamDef ¶meter) const, but without check (will throw exception if value isn't there). More... | |
bool | parameter (int &value, const ParamDef parameter) const |
Get an integer parameter for this Muon - msInnerMatchDOF for example. More... | |
void | setParameter (int value, const ParamDef parameter) |
Set method for parameter values. More... | |
int | intParameter (const ParamDef parameter) const |
Same as bool parameter(float& value, const ParamDef ¶meter) const, but without check (will throw exception if value isn't there). More... | |
Quality | quality () const |
The Muon Quality information is defined on the MCP twiki: https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSelectionTool#Quality_definition. More... | |
void | setQuality (Quality) |
bool | passesIDCuts () const |
Returns true if this Muon passes the MCP ID hit cuts (see the MCP twiki for definitions: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/MuonPerformance) More... | |
void | setPassesIDCuts (bool) |
Set whether passes the MCP ID hit cuts. More... | |
Isolation information. | |
bool | isolation (float &value, const Iso::IsolationType information) const |
Accessor for Isolation values. More... | |
float | isolation (const Iso::IsolationType information) const |
Accessor to Isolation values , this just returns the value without internaly checking if it exists. More... | |
void | setIsolation (float value, const Iso::IsolationType information) |
Set method for Isolation values. More... | |
Links | |
With the following methods you can retrieve links to the objects used to identify this muon - depending on how the muon was built the link may or may not be valid (i.e. a muon built from a standalone MS track won't have an ID TrackParticle associated to it).
Returns an ElementLink to the primary TrackParticle corresponding to the MuonType of this muon. This is determined in the following order:
| |
const ElementLink< TrackParticleContainer > & | primaryTrackParticleLink () const |
const TrackParticle * | primaryTrackParticle () const |
Returns a pointer (which should not usually be NULL, but might be if the muon has been stripped of information) to the primary TrackParticle corresponding to the MuonType of this muon. More... | |
const ElementLink< TrackParticleContainer > & | inDetTrackParticleLink () const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon. More... | |
const ElementLink< TrackParticleContainer > & | muonSpectrometerTrackParticleLink () const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon. More... | |
const ElementLink< TrackParticleContainer > & | combinedTrackParticleLink () const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon. More... | |
const ElementLink< TrackParticleContainer > & | extrapolatedMuonSpectrometerTrackParticleLink () const |
Returns an ElementLink to the Extrapolated Muon Spectrometer TrackParticle used in identification of this muon. More... | |
const ElementLink< TrackParticleContainer > & | msOnlyExtrapolatedMuonSpectrometerTrackParticleLink () const |
Returns an ElementLink to the MS-only Extrapolated Muon Spectrometer TrackParticle used in identification of this muon. More... | |
const ElementLink< TrackParticleContainer > & | trackParticleLink (TrackParticleType type) const |
Returns an ElementLink to the TrackParticle used in identification of this muon. More... | |
void | setTrackParticleLink (TrackParticleType type, const ElementLink< TrackParticleContainer > &link) |
Set method for TrackParticle links. More... | |
const TrackParticle * | trackParticle (TrackParticleType type) const |
Returns a pointer (which can be NULL) to the TrackParticle used in identification of this muon. More... | |
const ElementLink< CaloClusterContainer > & | clusterLink () const |
Returns an ElementLinkto the cluster associated to this muon. More... | |
void | setClusterLink (const ElementLink< CaloClusterContainer > &link) |
Set method for cluster links. More... | |
const CaloCluster * | cluster () const |
Retrieve the associated cluster with a bare pointer. More... | |
EnergyLossType | energyLossType (void) const |
Energy determined from parametrization or not (measured). More... | |
void | setEnergyLossType (EnergyLossType type) |
Set method for the type. More... | |
const std::vector< ElementLink< MuonSegmentContainer > > & | muonSegmentLinks () const |
Returns a vector of ElementLinks to the MuonSegments used to create this Muon. More... | |
void | setMuonSegmentLinks (const std::vector< ElementLink< MuonSegmentContainer > > &segments) |
Set the vector of ElementLinks to the MuonSegments used to create this Muon. More... | |
size_t | nMuonSegments () const |
Number of MuonSegments linked to by this Muon. More... | |
const MuonSegment * | muonSegment (size_t i) const |
Returns a pointer to the specified MuonSegment. More... | |
const ElementLink< MuonSegmentContainer > & | muonSegmentLink (size_t i) const |
Returns a link to the specified MuonSegment. More... | |
|
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.
typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > xAOD::Muon_v1::GenVecFourMom_t |
|
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::Muon_v1::Muon_v1 | ( | ) |
Copy constructor.
Definition at line 30 of file Muon_v1.cxx.
|
virtual |
void xAOD::Muon_v1::addAllAuthor | ( | const Author | author | ) |
add author to all authors
Definition at line 106 of file Muon_v1.cxx.
uint16_t xAOD::Muon_v1::allAuthors | ( | ) | const |
Get all the authors of this Muon.
For example during overlap checking, the same Muon may have been reconstructed by many different algorithms. This method returns a 16bit number, where each bit represents a muon algorithm, defined as follows (the lowest bit is indicates that something has gone wrong): unknown | MuidCo | STACO | MuTag | MuTagIMO | MuidSA | MuGirl | MuGirlLowBeta | CaloTag | CaloLikelihood | CaloScore | ExtrapolateMuonToIP | MuonCombinedRefit | ExtrapolateMuonToIP | Commissioning
Author xAOD::Muon_v1::author | ( | ) | const |
|
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::Muon_v1::charge | ( | ) | const |
|
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 CaloCluster * xAOD::Muon_v1::cluster | ( | ) | const |
const ElementLink<CaloClusterContainer>& xAOD::Muon_v1::clusterLink | ( | ) | const |
Returns an ElementLinkto the cluster associated to this muon.
const ElementLink< TrackParticleContainer >& xAOD::Muon_v1::combinedTrackParticleLink | ( | ) | const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon.
|
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 57 of file Muon_v1.cxx.
EnergyLossType xAOD::Muon_v1::energyLossType | ( | void | ) | const |
|
virtual |
The pseudorapidity ( \(\eta\)) of the particle.
Implements xAOD::IParticle.
const ElementLink< TrackParticleContainer >& xAOD::Muon_v1::extrapolatedMuonSpectrometerTrackParticleLink | ( | ) | const |
Returns an ElementLink to the Extrapolated Muon Spectrometer TrackParticle used in identification of this muon.
Same as bool parameter(float& value, const ParamDef ¶meter) const, but without check (will throw exception if value isn't there).
Primarily for use in Python.
Definition at line 191 of file Muon_v1.cxx.
float xAOD::Muon_v1::floatSummaryValue | ( | const SummaryType | information | ) | const |
Same as bool summaryValue(float& value, const SummaryType &information) const , but without check (will throw exception if value isn't there) Primarily for use in Python.
Definition at line 149 of file Muon_v1.cxx.
Muon_v1::GenVecFourMom_t xAOD::Muon_v1::genvecP4 | ( | ) | const |
The full 4-momentum of the particle : GenVector.
Definition at line 86 of file Muon_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.
|
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.
|
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.
const ElementLink< TrackParticleContainer >& xAOD::Muon_v1::inDetTrackParticleLink | ( | ) | const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon.
|
inherited |
Return the index of this element within its container.
|
inherited |
Return the index of this element within its container.
Inherited from IAuxElement.
Same as bool parameter(float& value, const ParamDef ¶meter) const, but without check (will throw exception if value isn't there).
Primarily for use in Python.
Definition at line 214 of file Muon_v1.cxx.
Returns 'true' if 'author' is the an author of this muon.
Definition at line 111 of file Muon_v1.cxx.
|
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.
float xAOD::Muon_v1::isolation | ( | const Iso::IsolationType | information | ) | const |
Accessor to Isolation values , this just returns the value without internaly checking if it exists.
Will lead to an exception if the information is not available
Definition at line 272 of file Muon_v1.cxx.
bool xAOD::Muon_v1::isolation | ( | float & | value, |
const Iso::IsolationType | information | ||
) | const |
Accessor for Isolation values.
If 'information' is stored in this xAOD::Muon and is of the correct type, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'.
Definition at line 261 of file Muon_v1.cxx.
float xAOD::Muon_v1::isolationCaloCorrection | ( | const Iso::IsolationFlavour | flavour, |
const Iso::IsolationCaloCorrection | type, | ||
const Iso::IsolationCorrectionParameter | param | ||
) | const |
Accessor to Isolation Calo corrections , this just returns the correction without internaly checking if it exists.
Will lead to an exception if the information is not available
Definition at line 295 of file Muon_v1.cxx.
bool xAOD::Muon_v1::isolationCaloCorrection | ( | float & | value, |
const Iso::IsolationFlavour | flavour, | ||
const Iso::IsolationCaloCorrection | type, | ||
const Iso::IsolationCorrectionParameter | param | ||
) | const |
Accessor for Isolation Calo correction.
If 'information' is stored in this xAOD::Muon and is of the correct type, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'.
Definition at line 285 of file Muon_v1.cxx.
std::bitset< 32 > xAOD::Muon_v1::isolationCorrectionBitset | ( | const Iso::IsolationFlavour | flavour | ) | const |
Accessor to Isolation corection Bitset , this just returns the bitset without internaly checking if it exists.
Will lead to an exception if the information is not available
Definition at line 341 of file Muon_v1.cxx.
bool xAOD::Muon_v1::isolationCorrectionBitset | ( | std::bitset< 32 > & | value, |
const Iso::IsolationFlavour | flavour | ||
) | const |
Accessor for Isolation corection Bitset.
Definition at line 333 of file Muon_v1.cxx.
float xAOD::Muon_v1::isolationTrackCorrection | ( | const Iso::IsolationFlavour | flavour, |
const Iso::IsolationTrackCorrection | type | ||
) | const |
Accessor to Isolation Track corrections , this just returns the correction without internaly checking if it exists.
Will lead to an exception if the information is not available
Definition at line 319 of file Muon_v1.cxx.
bool xAOD::Muon_v1::isolationTrackCorrection | ( | float & | value, |
const Iso::IsolationFlavour | flavour, | ||
const Iso::IsolationTrackCorrection | type | ||
) | const |
|
virtual |
The invariant mass of the particle..
Implements xAOD::IParticle.
Definition at line 62 of file Muon_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.
const ElementLink< TrackParticleContainer >& xAOD::Muon_v1::msOnlyExtrapolatedMuonSpectrometerTrackParticleLink | ( | ) | const |
Returns an ElementLink to the MS-only Extrapolated Muon Spectrometer TrackParticle used in identification of this muon.
const MuonSegment * xAOD::Muon_v1::muonSegment | ( | size_t | i | ) | const |
Returns a pointer to the specified MuonSegment.
i | Index of the MuonSegment requested. If i is not in range (0<i<nMuonSegments()) an exception will be thrown. |
Definition at line 581 of file Muon_v1.cxx.
const ElementLink< MuonSegmentContainer > & xAOD::Muon_v1::muonSegmentLink | ( | size_t | i | ) | const |
Returns a link to the specified MuonSegment.
i | Index of the MuonSegment requested. If i is not in range (0<i<nMuonSegments()) an exception will be thrown. |
Definition at line 571 of file Muon_v1.cxx.
const std::vector< ElementLink< MuonSegmentContainer > >& xAOD::Muon_v1::muonSegmentLinks | ( | ) | const |
const ElementLink< TrackParticleContainer >& xAOD::Muon_v1::muonSpectrometerTrackParticleLink | ( | ) | const |
Returns an ElementLink to the InnerDetector TrackParticle used in identification of this muon.
MuonType xAOD::Muon_v1::muonType | ( | ) | const |
size_t xAOD::Muon_v1::nMuonSegments | ( | ) | const |
Number of MuonSegments linked to by this Muon.
Definition at line 563 of file Muon_v1.cxx.
|
protectedinherited |
True if this element has no private data.
|
virtual |
The full 4-momentum of the particle.
Implements xAOD::IParticle.
Definition at line 79 of file Muon_v1.cxx.
Get an integer parameter for this Muon - msInnerMatchDOF for example.
bool xAOD::Muon_v1::passesIDCuts | ( | ) | const |
Returns true if this Muon passes the MCP ID hit cuts (see the MCP twiki for definitions: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/MuonPerformance)
Definition at line 241 of file Muon_v1.cxx.
|
virtual |
The azimuthal angle ( \(\phi\)) of the particle.
Implements xAOD::IParticle.
const xAOD::TrackParticle * xAOD::Muon_v1::primaryTrackParticle | ( | ) | const |
Returns a pointer (which should not usually be NULL, but might be if the muon has been stripped of information) to the primary TrackParticle corresponding to the MuonType of this muon.
This is determined in the following order:
Definition at line 400 of file Muon_v1.cxx.
const ElementLink< TrackParticleContainer > & xAOD::Muon_v1::primaryTrackParticleLink | ( | ) | const |
Definition at line 360 of file Muon_v1.cxx.
|
virtual |
The transverse momentum ( \(p_T\)) of the particle.
Implements xAOD::IParticle.
xAOD::Muon_v1::Quality xAOD::Muon_v1::quality | ( | ) | const |
The Muon Quality information is defined on the MCP twiki: https://twiki.cern.ch/twiki/bin/view/Atlas/MuonSelectionTool#Quality_definition.
Definition at line 227 of file Muon_v1.cxx.
|
virtual |
The true rapidity (y) of the particle.
Implements xAOD::IParticle.
Definition at line 75 of file Muon_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::Muon_v1::setAllAuthors | ( | uint16_t | authors | ) |
void xAOD::Muon_v1::setAuthor | ( | Author | auth | ) |
set author
void xAOD::Muon_v1::setCharge | ( | float | charge | ) |
Set the charge (must be the same as primaryTrackParticle() )
void xAOD::Muon_v1::setClusterLink | ( | const ElementLink< CaloClusterContainer > & | link | ) |
Set method for cluster links.
|
inherited |
Synonym for setStore
with IConstAuxStore
.
store | The new store. |
void xAOD::Muon_v1::setEnergyLossType | ( | EnergyLossType | type | ) |
Set method for the type.
|
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::Muon_v1::setIsolation | ( | float | value, |
const Iso::IsolationType | information | ||
) |
bool xAOD::Muon_v1::setIsolationCaloCorrection | ( | float | value, |
const Iso::IsolationFlavour | flavour, | ||
const Iso::IsolationCaloCorrection | type, | ||
const Iso::IsolationCorrectionParameter | param | ||
) |
set method for Isolation Calo Corrections.
Definition at line 303 of file Muon_v1.cxx.
bool xAOD::Muon_v1::setIsolationCorrectionBitset | ( | uint32_t | value, |
const Iso::IsolationFlavour | flavour | ||
) |
Set method for Isolation corection Bitset.
Definition at line 347 of file Muon_v1.cxx.
bool xAOD::Muon_v1::setIsolationTrackCorrection | ( | float | value, |
const Iso::IsolationFlavour | flavour, | ||
const Iso::IsolationTrackCorrection | type | ||
) |
void xAOD::Muon_v1::setMuonSegmentLinks | ( | const std::vector< ElementLink< MuonSegmentContainer > > & | segments | ) |
Set the vector of ElementLinks to the MuonSegments used to create this Muon.
void xAOD::Muon_v1::setMuonType | ( | MuonType | type | ) |
|
inherited |
Synonym for setStore
with IAuxStore
.
store | The new store. |
|
privateinherited |
Record that this element does not have private data.
Set method for parameter values.
Set method for parameter values.
void xAOD::Muon_v1::setPassesIDCuts | ( | bool | value | ) |
void xAOD::Muon_v1::setQuality | ( | Quality | ) |
Definition at line 233 of file Muon_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.
void xAOD::Muon_v1::setSummaryValue | ( | uint8_t | value, |
const MuonSummaryType | information | ||
) |
void xAOD::Muon_v1::setSummaryValue | ( | uint8_t | value, |
const SummaryType | information | ||
) |
Set method for storing TrackSummary SummaryType information on the Muon (see Aux to see which is already defined as static)
FIXME!
Definition at line 135 of file Muon_v1.cxx.
void xAOD::Muon_v1::setTrackParticleLink | ( | TrackParticleType | type, |
const ElementLink< TrackParticleContainer > & | link | ||
) |
Set method for TrackParticle links.
Definition at line 505 of file Muon_v1.cxx.
bool xAOD::Muon_v1::summaryValue | ( | float & | value, |
const SummaryType | information | ||
) | const |
bool xAOD::Muon_v1::summaryValue | ( | uint8_t & | value, |
const MuonSummaryType | information | ||
) | const |
bool xAOD::Muon_v1::summaryValue | ( | uint8_t & | value, |
const SummaryType | information | ||
) | const |
Accessor for TrackSummary values (in most cases, retrieved from the 'primary' TrackParticle - though it could be stored on the Muon, depending on the job configuration) If 'information' is stored in the primary TrackParticle/Muon and is of the correct templated type T, then the function fills 'value' and returns 'true', otherwise it returns 'false', and does not touch 'value'.
See below for an example of how this is intended to be used.
[in] | information | The information being requested. This is not guaranteed to be stored in all Muons (or primary TrackParticle). |
[out] | value | Only filled if this Muon (or its primary TrackParticle) contains 'information', and the types match. |
Definition at line 119 of file Muon_v1.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.
const xAOD::TrackParticle * xAOD::Muon_v1::trackParticle | ( | TrackParticleType | type | ) | const |
Returns a pointer (which can be NULL) to the TrackParticle used in identification of this muon.
Definition at line 486 of file Muon_v1.cxx.
const ElementLink< TrackParticleContainer > & xAOD::Muon_v1::trackParticleLink | ( | TrackParticleType | type | ) | const |
Returns an ElementLink to the TrackParticle used in identification of this muon.
Definition at line 459 of file Muon_v1.cxx.
|
virtual |
The type of the object as a simple enumeration.
Implements xAOD::IParticle.
Definition at line 96 of file Muon_v1.cxx.
float xAOD::Muon_v1::uint8MuonSummaryValue | ( | const MuonSummaryType | information | ) | const |
Same as bool summaryValue(uint8_t& value, const MuonSummaryType &information) const, but without check (will throw exception if value isn't there) Primarily for use in Python.
Definition at line 169 of file Muon_v1.cxx.
uint8_t xAOD::Muon_v1::uint8SummaryValue | ( | const SummaryType | information | ) | const |
Same as bool summaryValue(uint8_t& value, const SummaryType &information) const, but without check (will throw exception if value isn't there) Primarily for use in Python.
Definition at line 154 of file Muon_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.
|
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.