ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13/********************************************************************
14
15NAME: egPID.h
16PACKAGE: offline/Reconstruction/egammaRec
17
18AUTHORS: K. Cranmer, S. Rajagopalan, D. Rousseau, D. Zerwas
19CREATED: Sept 15. 2006
20
21PURPOSE: Class to hold PID vars egamma information.
22UPDATED:
23 Nov 24, 2009 (FD) use unsigned int
24********************************************************************/
25
27#include <vector>
28#include <cstddef>
29
30class 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(const egPID &original)=default
constructor
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
unsigned int IsGoodOQ(const unsigned int mask=egammaPIDObs::ALLOQ, bool *found=nullptr) const
Method to define Object quality variable.
Definition egPID.cxx:161
egPID()=default
Default constructor.
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()=default
Destructor.
egPID & operator=(const egPID &original)
Assignment.
Definition egPID.cxx:27
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
unsigned int egammaIDint(egammaPIDObs::PID, bool *found) const
retrieve unsinged int value
Definition egPID.cxx:172
std::vector< std::pair< egammaPIDObs::PID, double > > m_egammaID
Definition egPID.h:67
std::vector< std::pair< egammaPIDObs::PID, unsigned int > > m_egammaIDint
Definition egPID.h:65
bool set_egammaIDint(egammaPIDObs::PID, unsigned int)
set egamma ID, for unsigned int values
Definition egPID.cxx:114
unsigned int isEMsofte(const unsigned int mask=egammaPIDObs::ALL, bool *found=nullptr) const
Method to define isEMse variable.
Definition egPID.cxx:151
@ IsEM
cut-based identification for egamma objects (cluster and track-based)
const unsigned int ALLOQ
const unsigned int ALL
all cuts