CMS 3D CMS Logo

EcalEleCalibLooper.h
Go to the documentation of this file.
1 
8 #ifndef __CINT__
9 #ifndef EcalEleCalibLooper_H
10 #define EcalEleCalibLooper_H
16 #include <string>
17 #include <vector>
18 
28 
29 #include "CLHEP/Matrix/GenMatrix.h"
30 #include "CLHEP/Matrix/Matrix.h"
31 #include "CLHEP/Matrix/Vector.h"
33 public:
35  explicit EcalEleCalibLooper(const edm::ParameterSet &);
37  ~EcalEleCalibLooper() override;
38  void beginOfJob() override;
39  void endOfJob() override;
40  void startingNewLoop(unsigned int) override;
41  Status duringLoop(const edm::Event &, const edm::EventSetup &) override;
42  Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override;
43 
44 private:
45  //DS to divide in Regions
46  int EBRegionId(const int, const int) const;
47  int EERegionId(const int, const int) const;
48  //DS to define the regions for each cristal
49  void EBRegionDefinition();
50  void EERegionDefinition();
51  //DS defines the limit for the tan of phi
52  double giveLimit(int);
53 
54  //DS checks if the values of ics and ips are in EE or not
55  int EEregionCheck(const int, const int) const;
56  int EBregionCheck(const int eta, const int phi) const;
57 
59  int etaShifter(const int) const;
60 
61 private:
66 
70 
72  int m_etaWidth; //PG sub matrix size and borders
74  // int m_etaBorder ; //FIXME
78  // int m_phiBorderEB //FIXME;
79 
81  int m_etaStart; //PG ECAL region to be calibrated
83  int m_etaEnd;
90  int m_radEnd;
92  //FIXME int m_radBorder ;
96 
99 
101  std::vector<VEcalCalibBlock *> m_EcalCalibBlocks;
107  double m_minCoeff;
109  double m_maxCoeff;
112 
116 
118  unsigned int m_loops;
121  //The map Filler
123 
124  //DS number of regions in the Endcap
125  inline int EEregionsNum() const;
126  //DS number of regions in the barrel
127  inline int EBregionsNum() const;
128 
129  std::vector<int> m_regions;
130 
131  std::vector<DetId> m_barrelCells;
132  std::vector<DetId> m_endcapCells;
133 
134  std::map<int, int> m_xtalRegionId;
135  std::map<int, int> m_xtalPositionInRegion;
136  std::map<int, int> m_xtalNumOfHits;
137 
139 };
140 #endif
141 #endif
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:79
EcalEleCalibLooper::m_endcapAlCa
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
Definition: EcalEleCalibLooper.h:65
EcalEleCalibLooper::EERegionId
int EERegionId(const int, const int) const
Gives the id of the region.
Definition: EcalEleCalibLooper.cc:406
EcalEleCalibLooper::m_etaEnd
int m_etaEnd
eta end of the region of interest
Definition: EcalEleCalibLooper.h:83
EcalEleCalibLooper::m_endcapMap
EcalIntercalibConstantMap m_endcapMap
Definition: EcalEleCalibLooper.h:115
EcalEleCalibLooper::EERegionDefinition
void EERegionDefinition()
Definition: EcalEleCalibLooper.cc:466
EcalEleCalibLooper::m_phiWidthEE
int m_phiWidthEE
Definition: EcalEleCalibLooper.h:95
EcalIntercalibConstants.h
EcalEleCalibLooper::EBRegionDefinition
void EBRegionDefinition()
DS EB Region Definition.
Definition: EcalEleCalibLooper.cc:448
EBDetId.h
EEDetId.h
VFillMap.h
EcalEleCalibLooper::m_minCoeff
double m_minCoeff
minimum coefficient accepted (RAW)
Definition: EcalEleCalibLooper.h:107
EcalEleCalibLooper
ECAL TB 2006 calibration with matrix inversion technique.
Definition: EcalEleCalibLooper.h:32
EcalEleCalibLooper::m_etaWidth
int m_etaWidth
eta size of the sub-matrix
Definition: EcalEleCalibLooper.h:72
EcalCondObjectContainer< float >
edm::EDLooper
Definition: EDLooper.h:27
EcalRecHitCollections.h
EcalEleCalibLooper::m_xtalPositionInRegion
std::map< int, int > m_xtalPositionInRegion
Definition: EcalEleCalibLooper.h:135
EcalEleCalibLooper::m_maxSelectedNumPerXtal
int m_maxSelectedNumPerXtal
maximum number of events per crystal
Definition: EcalEleCalibLooper.h:98
EcalEleCalibLooper::m_barrelCells
std::vector< DetId > m_barrelCells
Definition: EcalEleCalibLooper.h:131
EcalEleCalibLooper::m_regions
std::vector< int > m_regions
Definition: EcalEleCalibLooper.h:129
EcalEleCalibLooper::EBregionsNum
int EBregionsNum() const
DS number of regions in EB.
Definition: EcalEleCalibLooper.cc:438
EcalEleCalibLooper::m_phiStartEE
int m_phiStartEE
Definition: EcalEleCalibLooper.h:93
EcalEleCalibLooper::giveLimit
double giveLimit(int)
copes with the infinitives of the tangent
Definition: EcalEleCalibLooper.cc:369
EcalEleCalibLooper::m_radEnd
int m_radEnd
Definition: EcalEleCalibLooper.h:90
EcalEleCalibLooper::m_maxEnergyPerCrystal
double m_maxEnergyPerCrystal
maximum energy per crystal cut
Definition: EcalEleCalibLooper.h:105
PVValHelper::eta
Definition: PVValidationHelpers.h:69
EcalEleCalibLooper::m_MapFiller
VFillMap * m_MapFiller
Definition: EcalEleCalibLooper.h:122
EcalEleCalibLooper::m_barrelMap
EcalIntercalibConstantMap m_barrelMap
the maps of recalib coeffs
Definition: EcalEleCalibLooper.h:114
EcalEleCalibLooper::m_phiEndEE
int m_phiEndEE
Definition: EcalEleCalibLooper.h:94
EcalEleCalibLooper::beginOfJob
void beginOfJob() override
BeginOfJob.
Definition: EcalEleCalibLooper.cc:144
GsfElectron.h
EcalEleCalibLooper::m_xtalNumOfHits
std::map< int, int > m_xtalNumOfHits
Definition: EcalEleCalibLooper.h:136
VEcalCalibBlock.h
EcalEleCalibLooper::EEregionsNum
int EEregionsNum() const
DS Number of regions in EE.
Definition: EcalEleCalibLooper.cc:428
EcalEleCalibLooper::EBRegionId
int EBRegionId(const int, const int) const
Reg Id generator EB --— for the barrel.
Definition: EcalEleCalibLooper.cc:390
EcalEleCalibLooper::EBregionCheck
int EBregionCheck(const int eta, const int phi) const
Tells if you are in the region to be calibrated.
Definition: EcalEleCalibLooper.cc:344
ElectronFwd.h
EcalEleCalibLooper::endOfLoop
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override
Definition: EcalEleCalibLooper.cc:249
GsfElectronFwd.h
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
EcalEleCalibLooper::m_EcalCalibBlocks
std::vector< VEcalCalibBlock * > m_EcalCalibBlocks
single blocks calibrators
Definition: EcalEleCalibLooper.h:101
EcalEleCalibLooper::isfirstcall_
bool isfirstcall_
Definition: EcalEleCalibLooper.h:138
EcalEleCalibLooper::m_phiEndEB
int m_phiEndEB
phi end of the region of interest
Definition: EcalEleCalibLooper.h:87
EcalEleCalibLooper::~EcalEleCalibLooper
~EcalEleCalibLooper() override
dtor
Definition: EcalEleCalibLooper.cc:133
EcalEleCalibLooper::m_recoWindowSidey
int m_recoWindowSidey
Definition: EcalEleCalibLooper.h:69
EcalEleCalibLooper::startingNewLoop
void startingNewLoop(unsigned int) override
Definition: EcalEleCalibLooper.cc:150
EcalEleCalibLooper::m_loops
unsigned int m_loops
DS sets the number of loops to do.
Definition: EcalEleCalibLooper.h:118
EcalEleCalibLooper::etaShifter
int etaShifter(const int) const
LP Change the coordinate system.
Definition: EcalEleCalibLooper.cc:529
EcalEleCalibLooper::m_minEnergyPerCrystal
double m_minEnergyPerCrystal
minimum energy per crystal cut
Definition: EcalEleCalibLooper.h:103
VFillMap
Definition: VFillMap.h:12
EcalEleCalibLooper::m_maxCoeff
double m_maxCoeff
maximum coefficient accepted (RAW)
Definition: EcalEleCalibLooper.h:109
edm::EventSetup
Definition: EventSetup.h:57
EcalEleCalibLooper::m_ElectronLabel
edm::InputTag m_ElectronLabel
To take the electrons.
Definition: EcalEleCalibLooper.h:120
EcalEleCalibLooper::m_barrelAlCa
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Definition: EcalEleCalibLooper.h:63
DDAxes::phi
Electron.h
EcalEleCalibLooper::duringLoop
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Definition: EcalEleCalibLooper.cc:166
EcalEleCalibLooper::m_etaStart
int m_etaStart
phi size of the additive border to the sub-matrix
Definition: EcalEleCalibLooper.h:81
DetId.h
EcalEleCalibLooper::endOfJob
void endOfJob() override
Definition: EcalEleCalibLooper.cc:320
EcalEleCalibLooper::m_radWidth
int m_radWidth
Definition: EcalEleCalibLooper.h:91
EcalEleCalibLooper::m_xtalRegionId
std::map< int, int > m_xtalRegionId
Definition: EcalEleCalibLooper.h:134
EcalEleCalibLooper::m_phiWidthEB
int m_phiWidthEB
eta size of the additive border to the sub-matrix
Definition: EcalEleCalibLooper.h:76
EcalEleCalibLooper::m_recoWindowSidex
int m_recoWindowSidex
reconstruction window size
Definition: EcalEleCalibLooper.h:68
EDLooper.h
edm::Event
Definition: Event.h:73
EcalEleCalibLooper::m_endcapCells
std::vector< DetId > m_endcapCells
Definition: EcalEleCalibLooper.h:132
edm::InputTag
Definition: InputTag.h:15
BasicClusterShapeAssociation.h
EcalEleCalibLooper::m_phiStartEB
int m_phiStartEB
phi start of the region of interest
Definition: EcalEleCalibLooper.h:85
EcalEleCalibLooper::EEregionCheck
int EEregionCheck(const int, const int) const
returns zero if the coordinates are in the right place.
Definition: EcalEleCalibLooper.cc:503
EcalEleCalibLooper::EcalEleCalibLooper
EcalEleCalibLooper(const edm::ParameterSet &)
ctor
Definition: EcalEleCalibLooper.cc:33
EcalEleCalibLooper::m_usingBlockSolver
int m_usingBlockSolver
to exclude the blocksolver
Definition: EcalEleCalibLooper.h:111
EcalEleCalibLooper::m_radStart
int m_radStart
DS For the EE.
Definition: EcalEleCalibLooper.h:89