77 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
93 if(!
object){
return false;}
100 if(truth->
pt()<1
e-9)
return false;
129 if(truth->
isMuon())
return false;
162 if(!truth->
isMuon())
return false;
182 return StatusCode::SUCCESS;
186 const TruthEvent* hsevent = truthEvents->front();
193 vector<const IParticle*> signalList;
194 signalList.reserve(truthCont.size());
196 for(
const auto truthp : truthCont ) {
198 if( this->
accept(truthp) ) {
200 signalList.push_back(truthp);
207 vector<const IParticle*> dummyList;
208 for(
const auto *iPart : signalList) {
211 this->
addToMET(iPart,dummyList,metTerm,metMap,minusWeight);
213 this->
addToMET(iPart,dummyList,metTerm,metMap,unitWeight);
219 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
DataVector adapter that acts like it holds const pointers.
ATLAS-specific HepMC functions.
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_t index() const
Return the index of this element within its container.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Class providing the definition of the 4-vector interface.
void setSource(MissingETBase::Types::bitmask_t src)
Set the source of the MET object.
const TruthParticle * truthParticle(size_t index) const
Get a pointer to one of the truth particles.
size_t nTruthParticles() const
Get the number of truth particles.
int pdgId() const
PDG ID code.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
bool isGenStable() const
Check if this is generator stable particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
bool isMuon() const
Whether the particle is a muon (or antimuon)
bool isInteracting(const T &p)
Identify if the particle with given PDG ID would not interact with the detector, i....
uint64_t bitmask_t
Type for status word bit mask.
xAOD::MissingETComponent_v1::Weight weight_t
Type for kinematic weight.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
@ TruthParticle
The object is a truth particle.
TruthEventContainer_v1 TruthEventContainer
Declare the latest version of the truth event container.
MissingETComponentMap_v1 MissingETComponentMap
Version control by type definition.
MissingET_v1 MissingET
Version control by type defintion.
TruthEvent_v1 TruthEvent
Typedef to implementation.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
@ Int
Indicator for MET from interacting particles within the nominal acceptance of the detector.
@ TruthMuons
Indicator for muons from MC truth (muons from the interaction)
@ NonInt
Indicator for MET from non-interacting particles generated in the collision.
@ IntOut
Indicator for MET contributions from particles outside of the acceptance of the detector (typically ...
static MissingETComponentMap::const_iterator find(const MissingETComponentMap *pMap, const MissingET *pmetObj)
Find non-modifiable contribution for a given MET object.
Collection of functions managing the MET composition map and association map.