ATLAS Offline Software
Loading...
Searching...
No Matches
met Namespace Reference

Namespaces

namespace  jetTrkAffSyst
namespace  softCaloAffSyst
namespace  softTrkAffSyst

Classes

class  ColumnarMETMaker
class  IParticle
 Class providing the definition of the 4-vector interface. More...
class  JetConstituentVector
 A vector of jet constituents at the scale used during jet finding. More...
class  METAssociationTool
class  METAssociator
class  METAssocTestAlg
class  METBuilderTool
class  METCaloRegionsTool
class  METEgammaAssociator
class  METElectronAssociator
class  METJetAssocTool
class  METJetTool
class  METMaker
class  METMakerAlg
class  METMuonAssociator
class  METNet
 METNet tool class used to create a missing transverse momentum estimate using a pre-trained neural network. More...
class  METNetHandler
class  METPhotonAssociator
class  METReaderAlg
class  METRecoAlg
class  METRecoTool
class  METRefinerTool
class  METRegionsTool
class  METSignificance
class  METSoftAssociator
class  METSoftTermsTool
class  METSystematicsTool
class  METTauAssociator
class  METTrackFilterTool
class  METTruthAssociator
class  METTruthTool
struct  missingEt
struct  MissingETComposition
 Collection of functions managing the MET composition map and association map. More...
class  string
 STL class. More...
class  vector
 STL class. More...

Typedefs

typedef ElementLink< xAOD::IParticleContainerobj_link_t
using iplink_t = ElementLink<xAOD::IParticleContainer>
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef CaloCluster_v1 CaloCluster
 Define the latest version of the calorimeter cluster class.
typedef CaloClusterContainer_v1 CaloClusterContainer
 Define the latest version of the calorimeter cluster container.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETContainer_v1 MissingETContainer
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETContainer_v1 MissingETContainer
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef MissingETAuxContainer_v1 MissingETAuxContainer
typedef MissingETAuxComponentMap_v1 MissingETAuxComponentMap
 Version control by type definition.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETContainer_v1 MissingETContainer
typedef MissingETComponent_v1 MissingETComponent
 Version control by type definition.
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef TrackParticle_v1 TrackParticle
 Reference the current persistent version:
typedef TrackParticleContainer_v1 TrackParticleContainer
 Definition of the current "TrackParticle container version".
typedef VertexContainer_v1 VertexContainer
 Definition of the current "Vertex container version".
typedef CaloCluster_v1 CaloCluster
 Define the latest version of the calorimeter cluster class.
typedef CaloClusterContainer_v1 CaloClusterContainer
 Define the latest version of the calorimeter cluster container.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETComponent_v1 MissingETComponent
 Version control by type definition.
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef TruthEvent_v1 TruthEvent
 Typedef to implementation.
typedef TruthEventContainer_v1 TruthEventContainer
 Declare the latest version of the truth event container.
typedef TruthParticle_v1 TruthParticle
 Typedef to implementation.
typedef TruthParticleContainer_v1 TruthParticleContainer
 Declare the latest version of the truth particle container.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETComponentMap_v1 MissingETComponentMap
 Version control by type definition.
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETContainer_v1 MissingETContainer
typedef MissingETAssociation_v1 MissingETAssociation
 Version control by type definition.
typedef MissingETAssociationMap_v1 MissingETAssociationMap
 Version control by type defintion.
typedef MissingETAuxContainer_v1 MissingETAuxContainer
typedef DataVector< IParticleIParticleContainer
 Simple convenience declaration of IParticleContainer.
typedef JetContainer_v1 JetContainer
 Definition of the current "jet container version".
typedef TrackParticle_v1 TrackParticle
 Reference the current persistent version:
typedef MissingET_v1 MissingET
 Version control by type defintion.
typedef MissingETContainer_v1 MissingETContainer
typedef MissingETAssociation_v1 MissingETAssociation
 Version control by type definition.
typedef MissingETAssociationMap_v1 MissingETAssociationMap
 Version control by type defintion.
typedef MissingETAuxContainer_v1 MissingETAuxContainer
typedef DataVector< IParticleIParticleContainer
 Simple convenience declaration of IParticleContainer.
typedef JetContainer_v1 JetContainer
 Definition of the current "jet container version".
typedef TrackParticle_v1 TrackParticle
 Reference the current persistent version:

Enumerations

enum  SoftTermParams { Random = 0 , PthardParam = 1 , TSTParam = 2 }
enum  METSignificanceResoTerms {
  ResoNone = 0 , ResoJet = 1 , ResoSoft = 2 , ResoEle = 3 ,
  ResoMuo = 4 , ResoPho = 5 , ResoTau = 6
}
enum  SystType { INVALID =-1 , SOFTCALO , SOFTTRK , JETTRK }
enum  SWClusterMatchMethod { DeltaR , ClusterLink }
enum  SystApplied {
  NONE , MET_SOFTTRK_SCALEUP , MET_SOFTTRK_SCALEDOWN , MET_SOFTTRK_RESOPARA ,
  MET_SOFTTRK_RESOPERP , MET_SOFTTRK_RESOCORR , MET_SOFTCALO_SCALEUP , MET_SOFTCALO_SCALEDOWN ,
  MET_SOFTCALO_RESOPARA , MET_SOFTCALO_RESOPERP , MET_SOFTCALO_RESOCORR , MET_JETTRK_SCALEUP ,
  MET_JETTRK_SCALEDOWN
}

Functions

SystType getSystType (const CP::SystematicVariation &systematic)
void addGhostMuonsToJets (const xAOD::MuonContainer &muons, xAOD::JetContainer &jets)
StatusCode buildMETSum (const std::string &totalName, xAOD::MissingETContainer *metCont)
StatusCode buildMETSum (const std::string &totalName, xAOD::MissingETContainer *metCont, MissingETBase::Types::bitmask_t softTermsSource)
StatusCode fillMET (xAOD::MissingET *&met, xAOD::MissingETContainer *metCont, const std::string &metKey, const MissingETBase::Types::bitmask_t metSource)

Typedef Documentation

◆ CaloCluster [1/2]

Define the latest version of the calorimeter cluster class.

Definition at line 19 of file Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h.

◆ CaloCluster [2/2]

Define the latest version of the calorimeter cluster class.

Definition at line 19 of file Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h.

◆ CaloClusterContainer [1/2]

Define the latest version of the calorimeter cluster container.

Define the cluster container as a simple DataVector.

Definition at line 17 of file Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h.

◆ CaloClusterContainer [2/2]

Define the latest version of the calorimeter cluster container.

Define the cluster container as a simple DataVector.

Definition at line 17 of file Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h.

◆ IParticleContainer [1/2]

Simple convenience declaration of IParticleContainer.

Note that this structure should be used with care. It should mainly be used in tool interfaces, and nowhere else. For instance it is possible to put view containers of this type into StoreGate, but it is not possible to write out an object of this type into an output file.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
567380
Date
2013-10-28 11:48:26 +0100 (Mon, 28 Oct 2013)

Definition at line 32 of file xAOD/xAODBase/xAODBase/IParticleContainer.h.

◆ IParticleContainer [2/2]

Simple convenience declaration of IParticleContainer.

Note that this structure should be used with care. It should mainly be used in tool interfaces, and nowhere else. For instance it is possible to put view containers of this type into StoreGate, but it is not possible to write out an object of this type into an output file.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
567380
Date
2013-10-28 11:48:26 +0100 (Mon, 28 Oct 2013)

Definition at line 32 of file xAOD/xAODBase/xAODBase/IParticleContainer.h.

◆ iplink_t

◆ JetContainer [1/2]

Definition of the current "jet container version".

Definition of the current container version.

Definition at line 17 of file JetContainer.h.

◆ JetContainer [2/2]

Definition of the current "jet container version".

Definition of the current container version.

Definition at line 17 of file JetContainer.h.

◆ MissingET [1/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [2/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [3/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [4/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [5/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [6/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [7/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [8/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingET [9/9]

Version control by type defintion.

Definition at line 15 of file Event/xAOD/xAODMissingET/xAODMissingET/MissingET.h.

◆ MissingETAssociation [1/2]

Version control by type definition.

Definition at line 15 of file MissingETAssociation.h.

◆ MissingETAssociation [2/2]

Version control by type definition.

Definition at line 15 of file MissingETAssociation.h.

◆ MissingETAssociationMap [1/2]

Version control by type defintion.

Definition at line 16 of file MissingETAssociationMap.h.

◆ MissingETAssociationMap [2/2]

Version control by type defintion.

Definition at line 16 of file MissingETAssociationMap.h.

◆ MissingETAuxComponentMap

Version control by type definition.

Definition at line 15 of file MissingETAuxComponentMap.h.

◆ MissingETAuxContainer [1/3]

◆ MissingETAuxContainer [2/3]

◆ MissingETAuxContainer [3/3]

◆ MissingETComponent [1/2]

Version control by type definition.

Definition at line 15 of file MissingETComponent.h.

◆ MissingETComponent [2/2]

Version control by type definition.

Definition at line 15 of file MissingETComponent.h.

◆ MissingETComponentMap [1/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETComponentMap [2/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETComponentMap [3/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETComponentMap [4/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETComponentMap [5/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETComponentMap [6/6]

Version control by type definition.

Definition at line 16 of file MissingETComponentMap.h.

◆ MissingETContainer [1/5]

◆ MissingETContainer [2/5]

◆ MissingETContainer [3/5]

◆ MissingETContainer [4/5]

◆ MissingETContainer [5/5]

◆ obj_link_t

◆ TrackParticle [1/3]

Reference the current persistent version:

Definition at line 13 of file Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h.

◆ TrackParticle [2/3]

Reference the current persistent version:

Definition at line 13 of file Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h.

◆ TrackParticle [3/3]

Reference the current persistent version:

Definition at line 13 of file Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h.

◆ TrackParticleContainer

Definition of the current "TrackParticle container version".

Provide a forward declaration for TrackParticleContainer.

Definition at line 14 of file Event/xAOD/xAODTracking/xAODTracking/TrackParticleContainer.h.

◆ TruthEvent

Typedef to implementation.

Definition at line 17 of file TruthEvent.h.

◆ TruthEventContainer

Declare the latest version of the truth event container.

Definition at line 18 of file TruthEventContainer.h.

◆ TruthParticle

Typedef to implementation.

Definition at line 15 of file Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h.

◆ TruthParticleContainer

Declare the latest version of the truth particle container.

Provide a forward declaration for TruthParticleContainer.

Definition at line 17 of file Event/xAOD/xAODTruth/xAODTruth/TruthParticleContainer.h.

◆ VertexContainer

Definition of the current "Vertex container version".

Provide a forward declaration for VertexContainer.

Definition at line 14 of file VertexContainer.h.

Enumeration Type Documentation

◆ METSignificanceResoTerms

Enumerator
ResoNone 
ResoJet 
ResoSoft 
ResoEle 
ResoMuo 
ResoPho 
ResoTau 

Definition at line 31 of file IMETSignificance.h.

31 {
32 ResoNone = 0,
33 ResoJet = 1,
34 ResoSoft = 2,
35 ResoEle = 3,
36 ResoMuo = 4,
37 ResoPho = 5,
38 ResoTau = 6
39 };

◆ SoftTermParams

Enumerator
Random 
PthardParam 
TSTParam 

Definition at line 26 of file IMETSignificance.h.

26 {
27 Random = 0,
28 PthardParam = 1,
29 TSTParam = 2
30 };

◆ SWClusterMatchMethod

Enumerator
DeltaR 
ClusterLink 

Definition at line 10 of file METRecoCommon.h.

10 {
11 DeltaR,
13 };
@ ClusterLink

◆ SystApplied

Enumerator
NONE 
MET_SOFTTRK_SCALEUP 
MET_SOFTTRK_SCALEDOWN 
MET_SOFTTRK_RESOPARA 
MET_SOFTTRK_RESOPERP 
MET_SOFTTRK_RESOCORR 
MET_SOFTCALO_SCALEUP 
MET_SOFTCALO_SCALEDOWN 
MET_SOFTCALO_RESOPARA 
MET_SOFTCALO_RESOPERP 
MET_SOFTCALO_RESOCORR 
MET_JETTRK_SCALEUP 
MET_JETTRK_SCALEDOWN 

Definition at line 68 of file METSystematicsTool.h.

◆ SystType

Enumerator
INVALID 
SOFTCALO 
SOFTTRK 
JETTRK 

Definition at line 48 of file IMETSystematicsTool.h.

48 {
49 INVALID=-1,
51 SOFTTRK,
52 JETTRK
53 };

Function Documentation

◆ addGhostMuonsToJets()

void met::addGhostMuonsToJets ( const xAOD::MuonContainer & muons,
xAOD::JetContainer & jets )

Definition at line 34 of file METHelpers.cxx.

35 {
36 std::vector<const xAOD::TrackParticle*> jet_tracks;
37 for (xAOD::Jet* jet: jets) {
38 // Fill this with muons to be associated
39 std::vector<const xAOD::Muon*> muons_in_jet;
40 // Get the tracks associated to the jet
41 jet_tracks.clear();
42 if ( jet->getAssociatedObjects("GhostTrack", jet_tracks) ) {
43
44 for(const auto *const muon : muons) {
45 const xAOD::TrackParticle* idtrack = muon->trackParticle( xAOD::Muon::InnerDetectorTrackParticle );
46 if(!idtrack) continue;
47 // check if this is ghost associated to a jet
48 // make sure the jet is close first
49 if(xAOD::P4Helpers::deltaR2(*jet,*muon)>0.36) continue;
50
51 for(unsigned jtrk=0; jtrk<jet_tracks.size(); ++jtrk) {
52 // check if the track pointers match
53 if(jet_tracks.at(jtrk)==idtrack) {
54 muons_in_jet.push_back(muon);
55 break;
56 }
57 } // loop over jet tracks
58 } // loop over muons
59 } // jet has associated tracks
60 jet->setAssociatedObjects( "GhostMuon", muons_in_jet) ;
61 } // loop over jets
62 }
double deltaR2(double rapidity1, double phi1, double rapidity2, double phi2)
from bare rapidity,phi
Jet_v1 Jet
Definition of the current "jet version".
TrackParticle_v1 TrackParticle
Reference the current persistent version:

◆ buildMETSum() [1/2]

StatusCode met::buildMETSum ( const std::string & totalName,
xAOD::MissingETContainer * metCont )

Definition at line 64 of file METHelpers.cxx.

66 {
67 using namespace msgMET;
68 ANA_MSG_DEBUG("Build MET total: " << totalName);
69
70 xAOD::MissingET* metFinal = nullptr;
71 if(fillMET(metFinal, metCont, totalName, MissingETBase::Source::total()) != StatusCode::SUCCESS){
72 ANA_MSG_ERROR("failed to fill MET term");
73 return StatusCode::FAILURE;
74 }
75
76 for(xAOD::MissingETContainer::const_iterator iMET=metCont->begin(); iMET!=metCont->end(); ++iMET) {
77 if(*iMET==metFinal) continue;
78 *metFinal += **iMET;
79 }
80
81 ANA_MSG_DEBUG( "Rebuilt MET Final --"
82 << " mpx: " << metFinal->mpx()
83 << " mpy: " << metFinal->mpy()
84 );
85
86 return StatusCode::SUCCESS;
87 }
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
#define ANA_MSG_DEBUG(xmsg)
Macro printing debug messages.
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
float mpx() const
Returns .
float mpy() const
Returns .
StatusCode fillMET(xAOD::MissingET *&met, xAOD::MissingETContainer *metCont, const std::string &metKey, const MissingETBase::Types::bitmask_t metSource)
MissingET_v1 MissingET
Version control by type defintion.
static Types::bitmask_t total(Region reg=Region::FullAcceptance)
Standard full reconstructed MET.

◆ buildMETSum() [2/2]

StatusCode met::buildMETSum ( const std::string & totalName,
xAOD::MissingETContainer * metCont,
MissingETBase::Types::bitmask_t softTermsSource )

Definition at line 89 of file METHelpers.cxx.

92 {
93 using namespace msgMET;
94 ANA_MSG_DEBUG("Build MET total: " << totalName);
95
96 xAOD::MissingET* metFinal = nullptr;
97 if( fillMET(metFinal, metCont, totalName, MissingETBase::Source::total()) != StatusCode::SUCCESS) {
98 ANA_MSG_ERROR("failed to fill MET term \"" << totalName << "\"");
99 return StatusCode::FAILURE;
100 }
101
102 // not using a reference, because the iterator doesn't return a reference
103 for(const auto met : *metCont) {
104 if(MissingETBase::Source::isTotalTerm(met->source())) continue;
105 if(met->source()==invisSource) continue;
106 if(softTermsSource && MissingETBase::Source::isSoftTerm(met->source())) {
107 if(!MissingETBase::Source::hasPattern(met->source(),softTermsSource)) continue;
108 }
109 ANA_MSG_VERBOSE("Add MET term " << met->name() );
110 *metFinal += *met;
111 }
112
113 ANA_MSG_DEBUG( "Rebuilt MET Final --"
114 << " mpx: " << metFinal->mpx()
115 << " mpy: " << metFinal->mpy()
116 );
117
118 return StatusCode::SUCCESS;
119 }
#define ANA_MSG_VERBOSE(xmsg)
Macro printing verbose messages.
static bool isSoftTerm(Types::bitmask_t bits, Region reg=Region::FullAcceptance)
static bool hasPattern(E bits, F mask)
Generic check for given pattern.
static bool isTotalTerm(Types::bitmask_t bits, Region reg=Region::FullAcceptance)

◆ fillMET()

StatusCode met::fillMET ( xAOD::MissingET *& met,
xAOD::MissingETContainer * metCont,
const std::string & metKey,
const MissingETBase::Types::bitmask_t metSource )

Definition at line 123 of file METHelpers.cxx.

126 {
127 using namespace msgMET;
128 if(met != nullptr){
129 ANA_MSG_ERROR("You can't fill a filled MET value");
130 return StatusCode::FAILURE;
131 }
132 if(metCont->find(metKey)!=metCont->end()){
133 ANA_MSG_ERROR("Attempted to add a duplicate MET term: " << metKey);
134 return StatusCode::FAILURE;
135 }
136
137 met = new xAOD::MissingET();
138 metCont->push_back(met);
139
140 met->setName (metKey);
141 met->setSource(metSource);
142
143 return StatusCode::SUCCESS;
144 }
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator find(const std::string &name) const
Find non-modifiable MET object by name.
void setSource(MissingETBase::Types::bitmask_t src)
Set the source of the MET object.
void setName(const std::string &name)
Set the name of the MET object.

◆ getSystType()

SystType met::getSystType ( const CP::SystematicVariation & systematic)
inline

Definition at line 55 of file IMETSystematicsTool.h.

56 {
57 if(systematic == met::softCaloAffSyst::MET_SoftCalo_ScaleUp ||
58 systematic == met::softCaloAffSyst::MET_SoftCalo_ScaleDown ||
59 systematic == met::softCaloAffSyst::MET_SoftCalo_ResoPara ||
60 systematic == met::softCaloAffSyst::MET_SoftCalo_ResoPerp ||
61 systematic == met::softCaloAffSyst::MET_SoftCalo_ResoCorr ) return SOFTCALO;
62 if(systematic == met::softTrkAffSyst::MET_SoftTrk_ScaleUp ||
63 systematic == met::softTrkAffSyst::MET_SoftTrk_ScaleDown ||
64 systematic == met::softTrkAffSyst::MET_SoftTrk_ResoPara ||
65 systematic == met::softTrkAffSyst::MET_SoftTrk_ResoPerp ||
66 systematic == met::softTrkAffSyst::MET_SoftTrk_ResoCorr ) return SOFTTRK;
67 if(systematic == met::jetTrkAffSyst::MET_JetTrk_ScaleUp ||
68 systematic == met::jetTrkAffSyst::MET_JetTrk_ScaleDown ) return JETTRK;
69 return INVALID;
70 }