ATLAS Offline Software
Loading...
Searching...
No Matches
METHelpers.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7// METHelpers.h
8// Header file for METHelpers functions
9// Author: T.J.Khoo<khoo@cern.ch>
10// Author: Bill Balunas <bill.balunas@cern.ch>
12#ifndef METUTILITIES_MET_METHELPERS_H
13#define METUTILITIES_MET_METHELPERS_H 1
14
15#include <vector>
16#include <utility>
17
18// Framework includes
21
22#include "xAODBase/IParticle.h"
23#include "xAODEgamma/Electron.h"
24#include "xAODEgamma/Photon.h"
25#include "xAODTau/TauJet.h"
26
29
31
32
33
34namespace met {
35
36 ANA_MSG_HEADER (msgMET)
37
38 const static MissingETBase::Types::bitmask_t invisSource = 0x100000; // doesn't overlap with any other
39
41
42 StatusCode buildMETSum(const std::string& totalName,
43 xAOD::MissingETContainer* metCont);
44
45 StatusCode buildMETSum(const std::string& totalName,
46 xAOD::MissingETContainer* metCont,
47 MissingETBase::Types::bitmask_t softTermsSource);
48
49 StatusCode fillMET(xAOD::MissingET *& met,
50 xAOD::MissingETContainer * metCont,
51 const std::string& metKey,
52 const MissingETBase::Types::bitmask_t metSource);
53
54 // Helpers for retrieving contributing objects from MET terms
55
56 template <class T = xAOD::IParticle>
58
59 template <class T = xAOD::IParticle>
61
62}
63
64#include "METUtilities/METHelpers.icc"
65
66#endif
macros for messaging and checking status codes
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
STL class.
Class providing the definition of the 4-vector interface.
General namespace for MET EDM software.
StatusCode buildMETSum(const std::string &totalName, xAOD::MissingETContainer *metCont)
void addGhostMuonsToJets(const xAOD::MuonContainer &muons, xAOD::JetContainer &jets)
std::vector< const T * > getMETElements(const xAOD::MissingET &met)
std::vector< std::pair< const T *, float > > getMETElementsWeights(const xAOD::MissingET &met)
static const MissingETBase::Types::bitmask_t invisSource
Definition METHelpers.h:38
StatusCode fillMET(xAOD::MissingET *&met, xAOD::MissingETContainer *metCont, const std::string &metKey, const MissingETBase::Types::bitmask_t metSource)
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
MissingET_v1 MissingET
Version control by type defintion.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".