ATLAS Offline Software
MissingEtRegions.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_MissingEtRegions_H
6 #define MissingETEVENT_MissingEtRegions_H
7 
8 /********************************************************************
9 
10 NAME: MissingEtRegions.cxx
11 PACKAGE: offline/Reconstruction/MissingETEvent
12 
13 AUTHORS: S. Resconi
14 CREATED: Oct 2004
15 
16 PURPOSE: Calculate ExMiss,EyMiss and Sumet in Eta Regions
17 ********************************************************************/
18 #include <vector>
19 #include "CaloEvent/CaloCell.h"
20 
22 {
23  public:
24 
25  // The following enum lists the various eta regions
26  // fixed regions or set by JobOpt ?
27  // not final, just an example
28  enum RegionIndex
29  {
30  Central = 0,
31  EndCap = 1,
32  Forward = 2,
33  Size = 3,
34  Unknown = 999
35  };
36 
37  // constructor
39 
40  // destructor
41  virtual ~MissingEtRegions();
42 
43  // add kinematics
44  virtual void addReg(double theEx, double theEy, double theEt,
45  double theEta, double weight );
46 
47 
49 
50  // set region contributions
51  void setExReg(RegionIndex aRegion, double theEx);
52  void setEyReg(RegionIndex aRegion, double theEy);
53  void setEtSumReg(RegionIndex aRegion, double theEtSum);
54 
55  void setExRegVec(std::vector<double>&& exVec);
56  void setEyRegVec(std::vector<double>&& eyVec);
57  void setEtSumRegVec(std::vector<double>&& etSumVec);
58 
59  // get region contributions
60  double exReg(RegionIndex aRegion) const;
61  double eyReg(RegionIndex aRegion) const;
62  double etSumReg(RegionIndex aRegion) const;
63 
64  const std::vector<double>& exRegVec() const;
65  const std::vector<double>& eyRegVec() const;
66  const std::vector<double>& etSumRegVec() const;
67 
68  protected:
69 
71 
72  std::vector<double> m_exReg;
73  std::vector<double> m_eyReg;
74  std::vector<double> m_etReg;
75 
76  void setup();
77  void Calc_Ecellxy(const CaloCell* cObj, double &ex, double &ey);
78 };
79 
80 
81 #endif
MissingEtRegions
Definition: MissingEtRegions.h:22
MissingEtRegions::setExRegVec
void setExRegVec(std::vector< double > &&exVec)
Definition: MissingEtRegions.cxx:114
MissingEtRegions::addReg
virtual void addReg(double theEx, double theEy, double theEt, double theEta, double weight)
Definition: MissingEtRegions.cxx:57
MissingEtRegions::m_exReg
std::vector< double > m_exReg
Definition: MissingEtRegions.h:81
CaloCell.h
MissingEtRegions::setEyReg
void setEyReg(RegionIndex aRegion, double theEy)
Definition: MissingEtRegions.cxx:101
MissingEtRegions::MissingEtRegions
MissingEtRegions()
Definition: MissingEtRegions.cxx:20
MissingEtRegions::etSumReg
double etSumReg(RegionIndex aRegion) const
Definition: MissingEtRegions.cxx:147
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
MissingEtRegions::EndCap
@ EndCap
Definition: MissingEtRegions.h:49
MissingEtRegions::Central
@ Central
Definition: MissingEtRegions.h:48
MissingEtRegions::exRegVec
const std::vector< double > & exRegVec() const
Definition: MissingEtRegions.cxx:154
MissingEtRegions::~MissingEtRegions
virtual ~MissingEtRegions()
Definition: MissingEtRegions.cxx:28
MissingEtRegions::Size
@ Size
Definition: MissingEtRegions.h:51
MissingEtRegions::etSumRegVec
const std::vector< double > & etSumRegVec() const
Definition: MissingEtRegions.cxx:168
MissingEtRegions::setup
void setup()
Definition: MissingEtRegions.cxx:86
MissingEtRegions::eyRegVec
const std::vector< double > & eyRegVec() const
Definition: MissingEtRegions.cxx:161
MissingEtRegions::m_eyReg
std::vector< double > m_eyReg
Definition: MissingEtRegions.h:82
MissingEtRegions::Calc_Ecellxy
void Calc_Ecellxy(const CaloCell *cObj, double &ex, double &ey)
MissingEtRegions::Forward
@ Forward
Definition: MissingEtRegions.h:50
MissingEtRegions::exReg
double exReg(RegionIndex aRegion) const
Definition: MissingEtRegions.cxx:137
MissingEtRegions::m_etReg
std::vector< double > m_etReg
Definition: MissingEtRegions.h:83
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
MissingEtRegions::m_reg
RegionIndex m_reg
Definition: MissingEtRegions.h:79
MissingEtRegions::setEtSumReg
void setEtSumReg(RegionIndex aRegion, double theEtSum)
Definition: MissingEtRegions.cxx:107
MissingEtRegions::Unknown
@ Unknown
Definition: MissingEtRegions.h:52
MissingEtRegions::setEyRegVec
void setEyRegVec(std::vector< double > &&eyVec)
Definition: MissingEtRegions.cxx:121
MissingEtRegions::setEtSumRegVec
void setEtSumRegVec(std::vector< double > &&etSumVec)
Definition: MissingEtRegions.cxx:128
MissingEtRegions::getRegions
virtual RegionIndex getRegions()
Definition: MissingEtRegions.cxx:81
MissingEtRegions::eyReg
double eyReg(RegionIndex aRegion) const
Definition: MissingEtRegions.cxx:142
MissingEtRegions::RegionIndex
RegionIndex
Definition: MissingEtRegions.h:38
MissingEtRegions::setExReg
void setExReg(RegionIndex aRegion, double theEx)
Definition: MissingEtRegions.cxx:95