ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction/MissingETEvent/MissingETEvent/MissingET.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MISSINGETEVENT_MISSINGET_H
6#define MISSINGETEVENT_MISSINGET_H
7
8/********************************************************************
9
10NAME: MissingEt.cxx
11PACKAGE: offline/Reconstruction/MissingETEvent
12
13AUTHORS: P. Loch, S. Resconi
14CREATED: Oct 2004
15
16PURPOSE: Base Class for MissingETEvent package, it owns the region object
17********************************************************************/
20#include "CaloEvent/CaloCell.h"
21
23{
24 public:
25
26 // The following enum lists the various sources of MissingEt
27 // the source names are not final, can be changed
28 enum Source
29 {
30 Calo = 0,
31 Calib = 1,
32 Truth = 2,
33 Muon = 3,
35 Final = 5,
36 Cryo = 6,
37 Topo = 7,
38 Ref = 8,
40 Track = 10,
42 ObjMuon = 101,
43 ObjJet = 102,
44 ObjIdTrk = 103,
46 ObjRest = 105,
47 ObjFinal = 106,
48 Unknown = 999
49 };
50
51 // default constructor
52 MissingET();
53
54 // construct with a specifier
56
57 // construct with region sums
58 MissingET(MissingEtRegions* theRegions);
59
60 // construct with a specifier and region sums
61 MissingET(MissingET::Source aSource, MissingEtRegions* theRegions);
62
65 std::unique_ptr<MissingEtRegions> theRegions,
66 double ex,
67 double ey,
68 double etSum);
69
70 //fix by Andrei Gaponenko
71 MissingET(const MissingET& b); // copy constructor
72
73 //fix by Andrei Gaponenko
74 MissingET& operator=(const MissingET& b); // assignment
75
77 MissingET(MissingET&& b) = default;
78 MissingET& operator=(MissingET&& b) = default;
79
80 // destructor
81 virtual ~MissingET();
82
83 // set methods for kinematics
84 virtual void setEx(double theEx);
85 virtual void setEy(double theEy);
86 virtual void setEtSum(double theSum);
87
88 // add kinematics
89 //virtual void add(const CaloCell* aCell, double &weight);
90 virtual void add(double theEx, double theEy, double theEt,
91 double theEta,double weight );
92
93
94 // retrieve kinematics
95 virtual double etx() const;
96 virtual double ety() const;
97 virtual double sumet() const;
98 virtual double et() const;
99 virtual double phi() const;
100
101
102 virtual const MissingEtRegions* getRegions() const;
103
104 virtual Source getSource() const;
105
106 protected:
107
108 std::unique_ptr<MissingEtRegions> m_regions;
109
111
112 // basic components of MissingET
113 double m_ex;
114 double m_ey;
115 double m_etSum;
116
117 //void Calc_Ecellxy(const CaloCell* cObj, double &ex, double &ey);
118};
119
120CLASS_DEF(MissingET, 75817330, 1)
121
122#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
virtual double et() const
virtual const MissingEtRegions * getRegions() const
std::unique_ptr< MissingEtRegions > m_regions
virtual double sumet() const
MissingET & operator=(MissingET &&b)=default
virtual void setEtSum(double theSum)
virtual void setEx(double theEx)
Definition MissingET.cxx:96
virtual void add(double theEx, double theEy, double theEt, double theEta, double weight)
virtual double etx() const
virtual double phi() const
virtual double ety() const
virtual void setEy(double theEy)
virtual ~MissingET()
Definition MissingET.cxx:91
MissingET & operator=(const MissingET &b)
Definition MissingET.cxx:28
MissingET(MissingET &&b)=default
Move.
virtual Source getSource() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.