|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODMISSINGET_VERSIONS_MISSINGETCOMPONENT_V1_H
8 #define XAODMISSINGET_VERSIONS_MISSINGETCOMPONENT_V1_H
104 const std::vector<double>&
wpx()
const;
106 double wpx(
size_t pIdx)
const;
108 bool setWpx(
const std::vector<double>& wcv);
112 const std::vector<double>&
wpy()
const;
114 double wpy(
size_t pIdx)
const;
116 bool setWpy(
const std::vector<double>& wpyVector);
120 const std::vector<double>&
wet()
const;
122 double wet(
size_t pIdx)
const;
124 bool setWet(
const std::vector<double>& wcv);
160 std::vector<const IParticle*>
objects()
const;
161 std::vector<const IParticle*>
objects(std::vector<Weight>& kinePars)
const;
162 std::vector<const IParticle*>
objects(
const std::vector<double>*& wpxPtr,
163 const std::vector<double>*& wpyPtr,
164 const std::vector<double>*& wetPtr)
const;
254 template<
class POBJ,
class LINK>
void f_setObject(
const POBJ* pObj,LINK& elemLink);
bool removeContrib(const IParticle *pPart)
Remove a contribution referenced by an object pointer.
void setWpx(double wpx)
Set .
bool setMET(const MissingET *pmetObj, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Set MET object by object pointer reference.
bool setWeight(const IParticle *pPart, const Weight &wght=Weight())
Set the kinematic weight of an object contribution referenced by pointer.
bool setWpy(const std::vector< double > &wpyVector)
Set the vector of weight components
bool operator==(const MissingETComponent_v1 &contrib) const
virtual ~MissingETComponent_v1()
Assignment operator.
Weight weight(const IParticle *pPart) const
Get kinematic weight for a given object.
Base class for elements of a container that can have aux data.
bool resetContrib(const IParticle *pPart)
Reset the contribution parameters of an object referenced by a pointer.
bool clearStatusWord()
Clear statusword.
bool setWpx(const std::vector< double > &wcv)
Set the vector of weight components
double & wet()
Returns reference to modifiable data word storing .
double & wpy()
Returns reference to modifiable data word storing .
bool resetContrib()
Reset all contribution parameters.
bool mergeStatusWord(MissingETBase::Types::bitmask_t sw)
Merge patterns into the MET term status.
double wet() const
Returns .
Weight()
Default constructor.
General namespace for MET EDM software.
Weight & operator/=(const Weight &wght)
Divide two weights.
const std::vector< double > & wpx() const
Get the vector of weight components
const std::vector< double > & wet() const
Get the vector of weight components
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::vector< weight_t > weight_vector_t
Vector type for kinematic weight containers.
uint64_t bitmask_t
Type for status word bit mask.
Class providing the definition of the 4-vector interface.
MissingETBase::Types::weight_t operator/(const MissingETBase::Types::weight_t &w0, const MissingETBase::Types::weight_t &w1)
Divide kinematic weights.
std::tuple< WrapType< TYPES >... > Types
A simple tuple of multiple types.
MissingETBase::Types::weight_t operator+(const MissingETBase::Types::weight_t &w0, const MissingETBase::Types::weight_t &w1)
Add kinematic weights.
Weight & operator+=(const Weight &wght)
Add another weight.
bool operator!=(const Weight &wght) const
Inequality operator.
bool setStatusWord(MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Set the statusword of a MET term.
MissingETComponent_v1 & operator=(const MissingETComponent_v1 &compDescr)
xAOD::MissingETComponent_v1::Weight weight_t
Type for kinematic weight.
void setWpy(double wpy)
Set .
double wpy(const IParticle *pPart) const
Get the weight component for a given object referenced by pointer.
size_t size() const
[Deprecated] Update all internally used ElementLink instances
std::vector< double > & f_wpx()
void createPrivateStore()
Function initialising the object to work in standalone mode.
bool f_setLink(LINK &elemLink)
std::vector< double > & f_wpy()
bool setMetLink(const MissingETBase::Types::metlink_t &metLnk)
Set the link to the MET object.
Weight(double wpx, double wpy, double wet)
Constructor with parameters.
std::vector< objlink_t > objlink_vector_t
Vector of object links type.
MissingETComponent_v1(bool createStore=false)
Default constructor.
const MissingETContainer_v1 * metObjectContainer() const
Access MET object container holding MET object.
void setWet(double wet)
Set .
bool setWet(const std::vector< double > &wcv)
Set the vector of weight components
size_t metObjectIndex() const
Access index of MET object in its container.
Principal data object for Missing ET.
bool setWeight(size_t pIdx, const Weight &wght=Weight())
Set the kinematic weight of an object contribution referenced by index.
bool removeContrib(size_t pIdx)
Remove a contribution referenced by an index.
MissingETBase::Types::weight_t operator-(const MissingETBase::Types::weight_t &w0, const MissingETBase::Types::weight_t &w1)
Subtract kinematic weights.
bool addObject(const IParticle *pPart, const Weight &wght=Weight())
Add object (particle) from pointer reference with optional kinematic weight.
MissingETBase::Types::bitmask_t & f_statusWord()
double wpy() const
Returns .
Weight & operator-=(const Weight &wght)
Subtract another weight.
ElementLink implementation for ROOT usage.
const MissingETBase::Types::objlink_vector_t & objectLinks() const
Get the vector of links to the contributing physics or signal objects.
Container for xAOD::MissingET_v1 objects.
bool setWeight(const IParticle *pPart, double wpx, double wpy, double wet)
Set the kinematic weight components of an object contribution referenced by pointer.
MissingETBase::Types::objlink_vector_t & f_objectLinks()
Non-const link reference.
bool setObjectLinks(const MissingETBase::Types::objlink_vector_t &objLnks)
Set the vector of links to the contributing physics or signal objects.
MissingETBase::Types::metlink_t & f_metLink()
Non-const link reference
double wpx(const IParticle *pPart) const
Get the weight component for a given object referenced by pointer.
MissingETBase::Types::bitmask_t statusWord() const
Get the statusword.
size_t findIndex(const IParticle *pPart) const
Find index of given object in contributing object store.
double wpx() const
Returns .
std::vector< const IParticle * > objects(std::vector< Weight > &kinePars) const
Access contributing objects and retrieve kinematic weights.
bool removeContrib()
Remove all contributions.
std::vector< double > & f_wet()
const MissingET * metObject() const
Access MET object.
const std::vector< double > & wpy() const
Get the vector of weight components
bool operator!=(const MissingETComponent_v1 &contrib) const
Equality.
bool operator==(const Weight &wght) const
Equality comparator.
double wet(const IParticle *pPart) const
Get the weight component for a given object referenced by pointer.
~Weight()
Data class destructor.
Kinematic weight descriptor.
void copyData(const MissingETComponent_v1 &compDescr, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
bool setWpy(const IParticle *pPart, double wpy)
Set kinematic weight component for a given contributing object referenced by pointer.
Weight & operator*=(const Weight &wght)
Multiply two weights.
bool setWet(const IParticle *pPart, double wet)
Set kinematic weight for a given contributing object referenced by pointer.
void f_setObject(const POBJ *pObj, LINK &elemLink)
Generalized link manager.
const MissingETBase::Types::metlink_t & metLink() const
Get the link to the MET object.
bool f_removeContrib(size_t pIdx)
Copy the contribution data from a source.
static Types::bitmask_t clearedStatus()
Cleared term tag accessor.
MissingETBase::Types::weight_t operator*(const MissingETBase::Types::weight_t &w0, const MissingETBase::Types::weight_t &w1)
Multiply kinematic weights.
double & wpx()
Returns reference to modifiable dataword storing .
bool setWpx(const IParticle *pPart, double wpx)
Set kinematic weight component for a given contributing object referenced by pointer.
Base class for elements of a container that can have aux data.
MET component descriptor contains object links and corresponding parameters.
bool empty() const
Empty list of contributing objects indicator.
std::vector< const IParticle * > objects() const
Access contributing objects.