|
ATLAS Offline Software
|
Go to the documentation of this file.
71 ATH_MSG_FATAL(
"Both InputMETContainer and InputMETKey must be provided.");
72 return StatusCode::FAILURE;
85 float eta_min = 0., eta_max = 0.;
97 lowerName.erase(lowerName.find_last_not_of(
'0') + 1, std::string::npos);
98 higherName.erase(higherName.find_last_not_of(
'0') + 1, std::string::npos);
99 if(lowerName[lowerName.size()-1] ==
'.') lowerName.append(
"0");
100 if(higherName[higherName.size()-1] ==
'.') higherName.append(
"0");
101 std::replace(lowerName.begin(),lowerName.end(),
'.',
'p');
102 std::replace(higherName.begin(),higherName.end(),
'.',
'p');
108 std::pair<float, float> currentPair(eta_min,eta_max);
112 return StatusCode::SUCCESS;
119 return StatusCode::SUCCESS;
132 if (!base_met_container.
isValid()) {
134 return StatusCode::SUCCESS;
142 return StatusCode::SUCCESS;
149 ATH_MSG_DEBUG(
"METRegionsTool expecting a MissingETContainer given an inconsistent type.");
150 return StatusCode::SUCCESS;
157 if( iterBaseCont == base_met_container->
end() ) {
159 return StatusCode::SUCCESS;
162 if( iterBaseConstit == base_met_map->
end() ) {
164 return StatusCode::SUCCESS;
173 currentMetTerm = metTerm_central;
176 currentMetTerm =
new MissingET(0.,0.,0.);
177 ATH_MSG_DEBUG(
"Adding MET Term " << currentMetTerm->
name() <<
" to MET container" );
188 if(!(*iterBaseConstit)->empty()) {
189 vector<const IParticle*> objectList = (*iterBaseConstit)->objects();
190 vector<const IParticle*> dummyList;
192 for(
const auto *iObj : objectList) {
194 for(
auto &
it : mapRangeToMET) {
195 if( fabs(iObj->eta()) >
it.first.first && fabs(iObj->eta()) <
it.first.second ) {
196 it.second->add(iObj->pt()*
cos(iObj->phi())*objWeight.
wpx(),
197 iObj->pt()*
sin(iObj->phi())*objWeight.
wpy(),
198 iObj->pt()*objWeight.
wet());
205 return StatusCode::SUCCESS;
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Const iterator class for DataVector/DataList.
const_pointer_type cptr()
Dereference the pointer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
static MissingETComponentMap::const_iterator find(const MissingETComponentMap *pMap, const MissingET *pmetObj)
Find non-modifiable contribution for a given MET object.
double wet() const
Returns .
MissingET_v1 MissingET
Version control by type defintion.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current MissingETComposition
MissingETContainer_v1 MissingETContainer
#define ATH_MSG_VERBOSE(x)
Class providing the definition of the 4-vector interface.
void setName(const std::string &name)
Set the name of the MET 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.
const_iterator find(const std::string &name) const
Find non-modifiable MET object by name.
::StatusCode StatusCode
StatusCode definition for legacy code.
Principal data object for Missing ET.
double wpy() const
Returns .
const std::string & name() const
Identifier getters.
const T * back() const
Access the last element in the collection as an rvalue.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old MissingET
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Container for xAOD::MissingET_v1 objects.
std::string to_string(const DetectorType &type)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
static bool add(MissingETComponentMap *pMap, const MissingET *pMET, MissingETBase::Types::bitmask_t sw=MissingETBase::Status::clearedStatus())
Adding a MissingET object to the map.
double wpx() const
Returns .
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define ATH_MSG_WARNING(x)
MissingETComponentMap_v1 MissingETComponentMap
Version control by type definition.
Kinematic weight descriptor.
const SG::AuxVectorData * container() const
Return the container holding this element.
MissingETComponent_v1 MissingETComponent
Version control by type definition.