|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef XAODMISSINGET_MISSINGETCOMPOSITION_H
8 #define XAODMISSINGET_MISSINGETCOMPOSITION_H
199 template<
int OBJTYPE>
203 if ( pMap == 0 || pMap->
empty() )
return false;
205 double sumet(pMET->
sumet());
208 for ( ; fComp != lComp; ++fComp )
216 for (
size_t iObj(0); iObj<
objs.size(); ++iObj )
218 if (
objs[iObj]->
type() == OBJTYPE )
220 pMET->
add(
objs.at(iObj)->p4().Px()*kinePars.at(iObj).wpx(),
221 objs.at(iObj)->p4().Py()*kinePars.at(iObj).wpy(),
222 objs.at(iObj)->pt()*kinePars.at(iObj).wet());
227 return pMET->
sumet() != sumet;
264 const std::vector<const IParticle*>& jetracks=std::vector<const IParticle*>());
304 std::map<const IParticle*,MissingETBase::Types::constvec_t> pOverride=std::map<const IParticle*,MissingETBase::Types::constvec_t>());
307 std::map<const IParticle*,MissingETBase::Types::constvec_t> pOverride);
static MissingETComponentMap::iterator begin(MissingETComponentMap *pMap)
Iterator access to beginning of composition map.
Const iterator class for DataVector/DataList.
Collection of functions managing the MET composition map and association map.
MET association descriptor contains object links and corresponding parameters.
float sumet() const
Returns.
static bool addMiscAssociation(MissingETAssociationMap *pMap)
Add an association to hold objects not associated to any jet.
static MissingETComponentMap::const_iterator find(const MissingETComponentMap *pMap, const MissingET *pmetObj)
Find non-modifiable contribution for a given MET object.
static bool objSelected(const MissingETAssociationHelper &helper, const IParticle *obj)
static MissingETComponentMap::iterator end(MissingETComponentMap *pMap)
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.
@ OnlyCluster
CaloCluster based only.
Class providing the definition of the 4-vector interface.
Vector sum of constituents for subtractive overlap removal.
static const Jet * getRefJet(const MissingETAssociationMap *pMap, const IParticle *pPart)
static MissingETComponentMap::const_iterator end(const MissingETComponentMap *pMap)
static const MissingETComponent * getComponent(const MissingETComponentMap *pMap, const IParticle *pPart)
Access non-modifiable contribution object.
static bool insert(MissingETComponentMap *pMap, const MissingET *pMET, const IParticle *pPart, MissingETBase::Types::weight_t weight=MissingETBase::Types::weight_t())
Insert contributing signal or physics object by pointer, with optional kinematic weight object.
static MissingETBase::Types::constvec_t getConstVec(const MissingETAssociationMap *pMap, const IParticle *pPart, MissingETBase::UsageHandler::Policy p)
static size_t findIndex(const MissingETComponentMap *pMap, const std::string &metName)
(Non-const) Iterator class for DataVector/DataList.
static size_t findIndex(const MissingETComponentMap *pMap, const MissingET *pmetObj)
static bool fillMissingET(const MissingETComponentMap *pMap, MissingET *pMET, MissingETBase::Types::bitmask_t=MissingETBase::Status::clearedStatus())
Fill a given MissingET object.
static MissingETComponentMap::const_iterator begin(const MissingETComponentMap *pMap)
Const iterator access to beginning of composition map.
Principal data object for Missing ET.
static const MissingET * getMissingET(const MissingETComponentMap *pMap, const IParticle *pPart)
static bool setJetConstSum(MissingETAssociationMap *metMap, const Jet *jet, const std::vector< const IParticle * > &altConsts, std::map< const IParticle *, MissingETBase::Types::constvec_t > pOverride)
static bool insertMisc(MissingETAssociationMap *pMap, const IParticle *pPart, const std::vector< const IParticle * > &constlist)
Insert contributing object into miscellaneous association.
Policy
Policies on usage checks.
void add(const IParticle *particle)
Add particle kinematics to MET.
static size_t findIndex(const MissingETComponentMap *pMap, MissingETBase::Types::bitmask_t src)
static bool add(MissingETComponentMap *pMap, const MissingET *pMET, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Adding a MissingET object to the map.
static const MissingETAssociation * getAssociation(const MissingETAssociationMap *pMap, const Jet *pJet)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Kinematic weight descriptor.
static MissingETBase::Types::weight_t getWeight(const MissingETComponentMap *pMap, const IParticle *pPart)
static MissingETBase::Types::bitmask_t getStatusWord(const MissingETComponentMap *pMap, const MissingET *pmetObj)
static Types::bitmask_t clearedStatus()
Cleared term tag accessor.
static bool selectIfNoOverlaps(MissingETAssociationHelper &helper, const IParticle *obj, MissingETBase::UsageHandler::Policy p)
std::vector< const xAOD::IParticle * > object_vector_t
Vector of object type.
bool empty() const noexcept
Returns true if the collection is empty.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
MET component descriptor contains object links and corresponding parameters.
static std::vector< const MissingETAssociation * > getAssociations(const MissingETAssociationMap *pMap, const IParticle *pPart)
Access non-modifiable contribution object.
std::vector< const IParticle * > objects() const
Access contributing objects.