 |
ATLAS Offline Software
|
#include <METTauAssociator.h>
|
| METTauAssociator (const std::string &name) |
|
| ~METTauAssociator ()=default |
|
virtual StatusCode | initialize () override |
| Dummy implementation of the initialisation function. More...
|
|
virtual StatusCode | execute (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const override |
|
virtual void | print () const |
| Print the state of the tool. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
StatusCode | executeTool (xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const final |
|
StatusCode | extractTopoClusters (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &tclist, const met::METAssociator::ConstitHolder &constits) const final |
|
StatusCode | extractPFO (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &pfolist, const met::METAssociator::ConstitHolder &constits, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &momenta) const final |
|
StatusCode | extractFE (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &momenta) const final |
|
StatusCode | extractFEsFromLinks (const xAOD::TauJet *tau, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits) const |
|
StatusCode | extractFEs (const xAOD::TauJet *tau, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits) const |
|
StatusCode | extractTracks (const xAOD::IParticle *obj, std::vector< const xAOD::IParticle * > &constlist, const met::METAssociator::ConstitHolder &constits) const final |
|
StatusCode | retrieveConstituents (met::METAssociator::ConstitHolder &constits) const |
|
bool | acceptTrack (const xAOD::TrackParticle *trk, const xAOD::Vertex *pv) const |
|
bool | isGoodEoverP (const xAOD::TrackParticle *trk) const |
|
virtual StatusCode | fillAssocMap (xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const |
|
StatusCode | GetUEcorr (const met::METAssociator::ConstitHolder &constits, std::vector< TLorentzVector > &v_clus, TLorentzVector &clus, TLorentzVector &HR, const float Drcone, const float MinDistCone, float &UEcorr) const |
|
virtual StatusCode | extractFEHR (const xAOD::IParticle *, std::vector< const xAOD::IParticle * >, std::vector< const xAOD::IParticle * > &, const met::METAssociator::ConstitHolder &, std::map< const xAOD::IParticle *, MissingETBase::Types::constvec_t > &, float &) const |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
|
ToolHandle< InDet::IInDetTrackSelectionTool > | m_trkseltool |
|
ToolHandle< xAOD::ITrackIsolationTool > | m_trkIsolationTool |
|
ToolHandle< xAOD::ICaloTopoClusterIsolationTool > | m_caloIsolationTool |
|
std::string | m_neutralFELinksKey |
|
std::string | m_chargedFELinksKey |
|
std::string | m_neutralPFOLinksKey |
|
std::string | m_chargedPFOLinksKey |
|
bool | m_usePFOLinks |
|
bool | m_useFELinks |
|
SG::ReadHandleKey< xAOD::VertexContainer > | m_pvcollKey {this,"PrimVxColl","PrimaryVertices","Primary Vertex Collection"} |
|
SG::ReadHandleKey< xAOD::IParticleContainer > | m_clcollKey {this,"ClusColl","CaloCalTopoClusters","Topo cluster Collection"} |
|
SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trkcollKey {this,"TrkColl","InDetTrackParticles","Track particle Collection"} |
|
SG::ReadHandleKey< xAOD::PFOContainer > | m_pfcollKey {this,"PFlowColl","","PFO Collection"} |
|
SG::ReadHandleKey< xAOD::FlowElementContainer > | m_fecollKey {this,"FlowElementCollection","","FlowElement Collection (overrides PFO if not empty)"} |
|
SG::ReadHandleKey< xAOD::IParticleContainer > | m_hybridContKey {this,"HybridKey","","Hybrid Collection"} |
|
Gaudi::Property< bool > | m_recoil {this, "HRecoil", false, ""} |
|
bool | m_pflow |
|
bool | m_useTracks |
|
bool | m_useRapidity |
|
bool | m_useIsolationTools = false |
|
bool | m_useModifiedClus |
|
bool | m_weight_charged_pfo = false |
|
bool | m_cleanChargedPFO |
|
bool | m_skipconst |
|
std::string | m_forcoll |
|
double | m_foreta |
|
double | m_cenTrackPtThr |
|
double | m_forTrackPtThr |
|
|
| METTauAssociator () |
| Default constructor: More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 25 of file METTauAssociator.h.
◆ StoreGateSvc_t
◆ METTauAssociator() [1/2]
met::METTauAssociator::METTauAssociator |
( |
const std::string & |
name | ) |
|
◆ ~METTauAssociator()
met::METTauAssociator::~METTauAssociator |
( |
| ) |
|
|
default |
◆ METTauAssociator() [2/2]
met::METTauAssociator::METTauAssociator |
( |
| ) |
|
|
private |
◆ acceptTrack()
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
Implements IMETAssocToolBase.
Definition at line 150 of file METAssociator.cxx.
154 ATH_MSG_WARNING(
"Invalid pointer to MissingETContainer supplied! Abort.");
155 return StatusCode::FAILURE;
159 ATH_MSG_WARNING(
"Invalid pointer to MissingETAssociationMap supplied! Abort.");
160 return StatusCode::FAILURE;
163 ATH_MSG_WARNING(
"Attempting to build PFlow MET without a track collection.");
164 return StatusCode::FAILURE;
◆ executeTool()
Implements met::METAssociator.
Definition at line 73 of file METTauAssociator.cxx.
78 if (!tauCont.isValid()) {
80 return StatusCode::FAILURE;
86 return StatusCode::FAILURE;
88 return StatusCode::SUCCESS;
◆ extractFE()
◆ extractFEHR()
|
inlineprotectedvirtualinherited |
◆ extractFEs()
Definition at line 249 of file METTauAssociator.cxx.
255 ATH_MSG_ERROR(
"Tau seed jet link is invalid. Cannot extract FlowElements.");
256 return StatusCode::FAILURE;
271 if(ttrk->trackLinks().empty() || !ttrk->trackLinks().at(0).isValid()){
272 ATH_MSG_DEBUG(
"Skipping absent tau track, probably thinned");
277 ATH_MSG_VERBOSE(
"Found cPFO with dR " << seedjet->p4().DeltaR(ttrk->p4()));
286 felist.push_back(pfo);
289 return StatusCode::SUCCESS;
◆ extractFEsFromLinks()
Definition at line 199 of file METTauAssociator.cxx.
206 std::vector<FELink_t> nFELinks;
207 std::vector<FELink_t> cFELinks;
211 nFELinks=neutralFEReadDecorHandle(*tau);
212 cFELinks=chargedFEReadDecorHandle(*tau);
215 for (
const FELink_t& feLink : cFELinks) {
216 if (!feLink.isValid())
continue;
218 for (
const auto *
const fe : *constits.
feCont){
219 if (fe->index() == fe_init->
index() && fe->isCharged()){
222 ATH_MSG_DEBUG(
"Accept cFE with pt " << fe->pt() <<
", e " << fe->e() <<
", eta " << fe->eta() <<
", phi " << fe->phi() );
223 felist.push_back(fe);
230 for (
const FELink_t& feLink : nFELinks) {
231 if (!feLink.isValid())
continue;
233 for (
const auto *
const fe : *constits.
feCont){
234 if (fe->index() == fe_init->
index() && !fe->isCharged()){
235 if( ( !fe->isCharged()&& fe->e() > FLT_MIN ) ){
236 ATH_MSG_DEBUG(
"Accept nFE with pt " << fe->pt() <<
", e " << fe->e() <<
", eta " << fe->eta() <<
", phi " << fe->phi() <<
" in sum.");
237 felist.push_back(fe);
244 return StatusCode::SUCCESS;
◆ extractPFO()
Implements met::METAssociator.
Definition at line 144 of file METTauAssociator.cxx.
152 for(
const auto *
const pfo : *constits.
pfoCont) {
154 if (!pfo->isCharged()) {
156 ATH_MSG_VERBOSE(
"Found nPFO with dR " << seedjet->p4().DeltaR(pfo->p4EM()));
163 if(ttrk->trackLinks().empty() || !ttrk->trackLinks().at(0).isValid()){
164 ATH_MSG_DEBUG(
"Skipping absent tau track, probably thinned");
169 ATH_MSG_VERBOSE(
"Found cPFO with dR " << seedjet->p4().DeltaR(ttrk->p4()));
178 pfolist.push_back(pfo);
181 return StatusCode::SUCCESS;
◆ extractTopoClusters()
Implements met::METAssociator.
Definition at line 94 of file METTauAssociator.cxx.
106 TLorentzVector clusterP4 = cluster->
p4();
111 clusterP4 = vertexedCluster.p4();
114 if (clusterP4.DeltaR(tauAxis) > 0.2)
continue;
119 return StatusCode::SUCCESS;
◆ extractTracks()
Implements met::METAssociator.
Definition at line 123 of file METTauAssociator.cxx.
129 if(tauTrk->trackLinks().empty() || !tauTrk->trackLinks().at(0).isValid()){
130 ATH_MSG_DEBUG(
"Skipping absent tau track, probably thinned");
135 ATH_MSG_VERBOSE(
"Accept tau track " << trk <<
" px, py = " << trk->
p4().Px() <<
", " << trk->
p4().Py());
136 constlist.push_back(trk);
140 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillAssocMap()
|
protectedvirtualinherited |
Reimplemented in met::METTruthAssociator.
Definition at line 304 of file METAssociator.cxx.
307 ConstitHolder constits;
311 return StatusCode::FAILURE;
314 std::vector<const IParticle*> constlist;
315 constlist.reserve(20);
316 std::vector<const IParticle*> hardObjs_tmp;
317 for(
const auto *
const obj : *hardObjs) {
318 hardObjs_tmp.push_back(
obj);
322 for(
const auto&
obj : hardObjs_tmp) {
329 ATH_MSG_ERROR(
"Attempting to build FlowElement MET without a track collection.");
330 return StatusCode::FAILURE;
332 std::map<const IParticle*, MissingETBase::Types::constvec_t> momentumOverride;
334 float UEcorr_Pt = 0.;
337 dec_UEcorr(*
obj) = UEcorr_Pt;
347 ATH_MSG_DEBUG(
"Attempting to build PFlow without a track collection.");
348 return StatusCode::FAILURE;
350 std::map<const IParticle*,MissingETBase::Types::constvec_t> momentumOverride;
356 std::vector<const IParticle*> tclist;
360 for(
const auto&
cl : tclist) {
362 constlist.push_back((*constits.tcCont)[
cl->index()]);
371 return StatusCode::SUCCESS;
◆ getKey()
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the SG::sgkey_t
key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getName
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The hashed key of the object in the store. If not found, an invalid (zero) key.
Definition at line 119 of file AsgTool.cxx.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ getName()
const std::string & asg::AsgTool::getName |
( |
const void * |
ptr | ) |
const |
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc
and xAOD::TEvent
both provide ways for getting the std::string
name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
- See also
- asg::AsgTool::getKey
- Parameters
-
ptr | The bare pointer to the object that the event store should know about |
- Returns
- The string name of the object in the store. If not found, an empty string.
Definition at line 106 of file AsgTool.cxx.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ getProperty()
template<class T >
const T* asg::AsgTool::getProperty |
( |
const std::string & |
name | ) |
const |
|
inherited |
Get one of the tool's properties.
◆ GetUEcorr()
StatusCode met::METAssociator::GetUEcorr |
( |
const met::METAssociator::ConstitHolder & |
constits, |
|
|
std::vector< TLorentzVector > & |
v_clus, |
|
|
TLorentzVector & |
clus, |
|
|
TLorentzVector & |
HR, |
|
|
const float |
Drcone, |
|
|
const float |
MinDistCone, |
|
|
float & |
UEcorr |
|
) |
| const |
|
protectedinherited |
Definition at line 446 of file METAssociator.cxx.
455 unsigned int seed = 0;
457 if( !v_clus.empty() ){
462 bool isNextToPart(
true);
463 bool isNextToHR(
true);
466 int numOfRndTrials = 0;
467 const int maxNumOfRndTrials = 100;
469 while(isNextToPart || isNextToHR ){
470 isNextToPart =
false;
475 if(dR > MinDistCone){
479 for(
const auto& clus_j : v_clus) {
481 if(dR < MinDistCone){
488 if(numOfRndTrials == maxNumOfRndTrials){
490 return StatusCode::SUCCESS;
498 TLorentzVector tv_UEcorr;
499 std::pair <double, double> eta_rndphi = std::make_pair(clus.Eta(), phiRnd);
505 for(
const auto fe_itr : *constits.
feCont){
506 if(fe_itr->pt() < 0 || fe_itr->e() < 0){
512 if(fe_itr->isCharged() && !PVMatchedAcc(*fe_itr)){
516 double dR =
P4Helpers::deltaR( fe_itr->eta(), fe_itr->phi(), eta_rndphi.first, eta_rndphi.second );
519 TLorentzVector tv_fe = fe_itr->p4();
520 tv_fe.RotateZ(dphi_angle);
525 UEcorr = tv_UEcorr.Pt();
527 return StatusCode::SUCCESS;
◆ greaterPt()
|
inlinestaticprotectedinherited |
◆ greaterPtFE()
|
inlinestaticprotectedinherited |
◆ greaterPtPFO()
|
inlinestaticprotectedinherited |
◆ initialize()
StatusCode met::METTauAssociator::initialize |
( |
| ) |
|
|
overridevirtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from met::METAssociator.
Definition at line 54 of file METTauAssociator.cxx.
68 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isGoodEoverP()
Definition at line 384 of file METAssociator.cxx.
398 std::vector<Iso::IsolationType> trkIsoCones;
410 std::vector<Iso::IsolationType> caloIsoCones;
420 caloIsoCorr_coreCone);
421 if(!caloIsoResult.
etcones.empty()) {
425 ATH_MSG_WARNING(
"isGoodEoverP: Failed to retrieve the isolation core correction (etcone10)! Setting etcone10=0");
435 if(Rerr>0.4)
return false;
436 else if (
EoverP<0.65 && ((
EoverP>0.1 && Rerr>0.05) || Rerr>0.1))
return false;
440 if(
etcone10/trkptsum<0.6 && trk->
pt()/trkptsum>0.6)
return false;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msg_level_name()
const std::string & asg::AsgTool::msg_level_name |
( |
| ) |
const |
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
MSG::name( msg().level() )
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
- Returns
- The string name of the current minimum message level that's printed
Definition at line 101 of file AsgTool.cxx.
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ print()
void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ renounce()
◆ renounceArray()
◆ retrieveConstituents()
Definition at line 170 of file METAssociator.cxx.
176 if (!topoclusterCont.isValid()) {
178 return StatusCode::FAILURE;
180 constits.
tcCont=topoclusterCont.cptr();
181 ATH_MSG_DEBUG(
"Successfully retrieved topocluster collection");
183 std::string hybridname =
"Etmiss";
189 if( hybridCont.isValid()) {
190 constits.
tcCont=hybridCont.cptr();
192 ATH_MSG_WARNING(
"Trying to do something currently unsupported- lets abort");
193 return StatusCode::FAILURE;
244 if (!vxCont.isValid()) {
247 return StatusCode::FAILURE;
250 ATH_MSG_DEBUG(
"Successfully retrieved primary vertex container");
251 ATH_MSG_DEBUG(
"Container holds " << vxCont->size() <<
" vertices");
253 for(
const auto *
const vx : *vxCont) {
256 {constits.
pv = vx;
break;}
259 ATH_MSG_DEBUG(
"Failed to find primary vertex! Reject all tracks.");
267 if (!trCont.isValid()) {
269 return StatusCode::FAILURE;
271 constits.
trkCont=trCont.cptr();
276 constits.
feCont =
nullptr;
278 if (!feCont.isValid()) {
280 return StatusCode::FAILURE;
282 constits.
feCont=feCont.cptr();
288 if (!pfCont.isValid()) {
290 return StatusCode::FAILURE;
292 constits.
pfoCont=pfCont.cptr();
297 return StatusCode::SUCCESS;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_caloIsolationTool
◆ m_cenTrackPtThr
double met::METAssociator::m_cenTrackPtThr |
|
protectedinherited |
◆ m_chargedFELinksKey
std::string met::METAssociator::m_chargedFELinksKey |
|
protectedinherited |
◆ m_chargedFEReadDecorKey
◆ m_chargedPFOLinksKey
std::string met::METAssociator::m_chargedPFOLinksKey |
|
protectedinherited |
◆ m_clcollKey
◆ m_cleanChargedPFO
bool met::METAssociator::m_cleanChargedPFO |
|
protectedinherited |
◆ m_detStore
◆ m_evtStore
◆ m_fecollKey
◆ m_forcoll
std::string met::METAssociator::m_forcoll |
|
protectedinherited |
◆ m_foreta
double met::METAssociator::m_foreta |
|
protectedinherited |
◆ m_forTrackPtThr
double met::METAssociator::m_forTrackPtThr |
|
protectedinherited |
◆ m_hybridContKey
◆ m_neutralFELinksKey
std::string met::METAssociator::m_neutralFELinksKey |
|
protectedinherited |
◆ m_neutralFEReadDecorKey
◆ m_neutralPFOLinksKey
std::string met::METAssociator::m_neutralPFOLinksKey |
|
protectedinherited |
◆ m_pfcollKey
◆ m_pflow
bool met::METAssociator::m_pflow |
|
protectedinherited |
◆ m_pvcollKey
◆ m_recoil
Gaudi::Property<bool> met::METAssociator::m_recoil {this, "HRecoil", false, ""} |
|
protectedinherited |
◆ m_skipconst
bool met::METAssociator::m_skipconst |
|
protectedinherited |
◆ m_tauContKey
◆ m_trkcollKey
◆ m_trkIsolationTool
◆ m_trkseltool
◆ m_useFELinks
bool met::METAssociator::m_useFELinks |
|
protectedinherited |
◆ m_useIsolationTools
bool met::METAssociator::m_useIsolationTools = false |
|
protectedinherited |
◆ m_useModifiedClus
bool met::METAssociator::m_useModifiedClus |
|
protectedinherited |
◆ m_usePFOLinks
bool met::METAssociator::m_usePFOLinks |
|
protectedinherited |
◆ m_useRapidity
bool met::METAssociator::m_useRapidity |
|
protectedinherited |
◆ m_useTracks
bool met::METAssociator::m_useTracks |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_weight_charged_pfo
bool met::METAssociator::m_weight_charged_pfo = false |
|
protectedinherited |
The documentation for this class was generated from the following files:
virtual double pt() const override final
The transverse momentum ( ) of the particle.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
@ coreEnergy
energy stored for this correction
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
@ coreTrackPtr
tracks pointer
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_chargedFEReadDecorKey
Iso::IsolationTrackCorrectionBitset trackbitset
@ ptcone20
Track isolation.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual Type::ObjectType type() const
The type of the object as a simple enumeration.
const Amg::Vector3D & position() const
Returns the 3-pos.
Helper class to provide constant type-safe access to aux data.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
Class providing the definition of the 4-vector interface.
bool isValid() const
Test to see if the link can be dereferenced.
std::vector< const IParticle * > clusters() const
virtual void setOwner(IDataHandleHolder *o)=0
StatusCode extractFEs(const xAOD::TauJet *tau, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits) const
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Description of a calorimeter cluster.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_neutralFEReadDecorKey
Handle class for reading a decoration on an object.
@ etcone20
Calorimeter isolation.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::map< Iso::IsolationCaloCorrection, std::map< Iso::IsolationCorrectionParameter, float > > coreCorrections
Class describing a tau jet.
const JetLink_t & jetLink() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
float z() const
Returns the z position.
size_t index() const
Return the index of this element within its container.
double deltaR(const I4Momentum &p4, double eta, double phi)
from 1 I4Momentum
virtual void renounce()=0
virtual FourMom_t p4() const
The full 4-momentum of the particle.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ElementLink implementation for ROOT usage.
const xAOD::IParticle * chargedObject(std::size_t i) const
float qOverP() const
Returns the parameter.
const ParametersCovMatrix_t definingParametersCovMatrix() const
Returns the 5x5 symmetric matrix containing the defining parameters covariance matrix.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
virtual double e() const override
The total energy of the particle.
std::vector< float > etcones
@ coreCone
core energy (in dR<0.1).
StatusCode extractFEsFromLinks(const xAOD::TauJet *tau, std::vector< const xAOD::IParticle * > &felist, const met::METAssociator::ConstitHolder &constits) const
std::vector< float > ptcones
struct TBPatternUnitContext Muon
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauContKey
virtual FourMom_t p4() const override
The full 4-momentum of the particle.
Class describing a Vertex.
const Vertex * vertex() const
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Class describing a TrackParticle.
const Trk::Track * track() const
Returns a pointer (which can be NULL) to the Trk::Track which was used to make this TrackParticle.
bool isInDeltaR(const xAOD::IParticle &p1, const xAOD::IParticle &p2, double dR, bool useRapidity=true)
Check if 2 xAOD::IParticle are in a cone.
Evaluate cluster kinematics with a different vertex / signal state.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
std::vector< const TauTrack * > tracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
Get the v<const pointer> to a given tauTrack collection associated with this tau.
Iso::IsolationCaloCorrectionBitset calobitset
bool match(std::string s1, std::string s2)
match the individual directories of two strings
A detector object made of other lower level object(s)