ATLAS Offline Software
egPID.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EGAMMAEVENT_EGPID_H
6 #define EGAMMAEVENT_EGPID_H
7 
13 /********************************************************************
14 
15 NAME: egPID.h
16 PACKAGE: offline/Reconstruction/egammaRec
17 
18 AUTHORS: K. Cranmer, S. Rajagopalan, D. Rousseau, D. Zerwas
19 CREATED: Sept 15. 2006
20 
21 PURPOSE: Class to hold PID vars egamma information.
22 UPDATED:
23  Nov 24, 2009 (FD) use unsigned int
24 ********************************************************************/
25 
27 #include <vector>
28 #include <cstddef>
29 
30 class egPID
31 
32 {
33  public:
34 
36  egPID() = default;
38  ~egPID() = default;
40  egPID(const egPID& original) = default; // copy constructor
42  egPID& operator= (const egPID& original);
44  unsigned int isEM(const unsigned int mask = egammaPIDObs::ALL,
46  bool *found = nullptr) const;
48  unsigned int isEMsofte(const unsigned int mask = egammaPIDObs::ALL, bool *found = nullptr) const;
50  unsigned int IsGoodOQ(const unsigned int mask = egammaPIDObs::ALLOQ, bool *found = nullptr) const;
51 
55  double egammaID(egammaPIDObs::PID, bool *found = nullptr) const;
58  bool set_egammaID(egammaPIDObs::PID, double);
59 
61  bool set_egammaIDint(egammaPIDObs::PID, unsigned int);
62 
63  private:
65  std::vector< std::pair<egammaPIDObs::PID, unsigned int> > m_egammaIDint;
67  std::vector< std::pair<egammaPIDObs::PID,double> > m_egammaID;
68 
70  unsigned int egammaIDint(egammaPIDObs::PID, bool *found) const;
71 
72 };
73 
74 
75 
76 #endif
egPID::~egPID
~egPID()=default
Destructor.
egammaPIDdefsObs.h
egammaPIDObs::IsEM
@ IsEM
cut-based identification for egamma objects (cluster and track-based)
Definition: egammaPIDdefsObs.h:55
egPID::m_egammaID
std::vector< std::pair< egammaPIDObs::PID, double > > m_egammaID
Definition: egPID.h:78
egammaPIDObs::PID
PID
Definition: egammaPIDdefsObs.h:53
egPID::set_egammaID
bool set_egammaID(egammaPIDObs::PID, double)
set egamma ID, as double to work double values and all possible weights as likelihood
Definition: egPID.cxx:78
egPID::egammaIDint
unsigned int egammaIDint(egammaPIDObs::PID, bool *found) const
retrieve unsinged int value
Definition: egPID.cxx:172
egPID::set_egammaIDint
bool set_egammaIDint(egammaPIDObs::PID, unsigned int)
set egamma ID, for unsigned int values
Definition: egPID.cxx:114
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
egPID::egammaID
double egammaID(egammaPIDObs::PID, bool *found=nullptr) const
retrieve egamma ID, as double to work for IsEM and all possible weights as likelihood; found,...
Definition: egPID.cxx:39
egPID::isEM
unsigned int isEM(const unsigned int mask=egammaPIDObs::ALL, egammaPIDObs::PID=egammaPIDObs::IsEM, bool *found=nullptr) const
Metod to define isEM variable.
Definition: egPID.cxx:139
egPID::operator=
egPID & operator=(const egPID &original)
Assignment.
Definition: egPID.cxx:27
egPID::isEMsofte
unsigned int isEMsofte(const unsigned int mask=egammaPIDObs::ALL, bool *found=nullptr) const
Method to define isEMse variable.
Definition: egPID.cxx:151
egammaPIDObs::ALL
const unsigned int ALL
all cuts
Definition: egammaPIDdefsObs.h:950
egPID::IsGoodOQ
unsigned int IsGoodOQ(const unsigned int mask=egammaPIDObs::ALLOQ, bool *found=nullptr) const
Method to define Object quality variable.
Definition: egPID.cxx:161
egPID::egPID
egPID()=default
Default constructor.
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
egPID::m_egammaIDint
std::vector< std::pair< egammaPIDObs::PID, unsigned int > > m_egammaIDint
Definition: egPID.h:76
egPID
Definition: egPID.h:32
egammaPIDObs::ALLOQ
const unsigned int ALLOQ
Definition: egammaPIDdefsObs.h:729