CMS 3D CMS Logo

InvRingCalib.h
Go to the documentation of this file.
1 
8 #ifndef __CINT__
9 #ifndef InvRingCalib_H
10 #define InvRingCalib_H
18 
19 #include <string>
20 #include <vector>
21 //#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
23 
25 
26 class InvRingCalib : public edm::EDLooper {
27 public:
29  explicit InvRingCalib(const edm::ParameterSet &);
31  ~InvRingCalib() override;
32  void beginOfJob() override;
33  void endOfJob() override;
34  void startingNewLoop(unsigned int) override;
35  Status duringLoop(const edm::Event &, const edm::EventSetup &) override;
36  Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override;
37 
38  //end
39 
40 private:
42  inline int EERegionNum() const;
44  int EBRegionNum() const;
46  void EBRegionDef();
48  void EERingDef(const edm::EventSetup &);
50  void EERegionDef();
52  void RegPrepare();
54  int EBRegId(const int);
56  int EERegId(int);
57 
60 
61 private:
78  int m_etaEnd;
81  // std::map<int,float> m_eta;
85  std::map<int, int> m_RingNumOfHits;
87  std::vector<VEcalCalibBlock *> m_IMACalibBlocks;
89  double m_minCoeff;
91  double m_maxCoeff;
95  std::map<int, GlobalPoint> m_cellPos;
96  std::map<int, int> m_cellPhi;
102  unsigned int m_loops;
107  std::map<int, int> m_xtalRing;
109  std::map<int, int> m_xtalRegionId;
111  std::map<int, int> m_RinginRegion;
112 
114  std::vector<DetId> m_barrelCells;
115  std::vector<DetId> m_endcapCells;
120  int m_EEZone;
122  std::map<int, int> m_Reg;
125 };
126 #endif
127 #endif
edm::InputTag m_ElectronLabel
To take the electrons.
Definition: InvRingCalib.h:67
void startingNewLoop(unsigned int) override
startingNewLoop
void EERingDef(const edm::EventSetup &)
Defines the rins in the endcap.
std::map< int, int > m_xtalRegionId
association map between raw detIds and Region
Definition: InvRingCalib.h:109
int EBRegionNum() const
Number of regions in EB.
void EBRegionDef()
Defines the regions in the barrel.
double m_maxCoeff
maximum coefficient accepted (RAW)
Definition: InvRingCalib.h:91
int m_maxSelectedNumPerRing
maximum number of events per Ring
Definition: InvRingCalib.h:83
std::string m_EEcoeffFile
Definition: InvRingCalib.h:118
int m_recoWindowSidey
Definition: InvRingCalib.h:70
InvRingCalib(const edm::ParameterSet &)
ctor
Definition: InvRingCalib.cc:30
double m_minEnergyPerCrystal
minimum energy per crystal cut
Definition: InvRingCalib.h:72
int m_EEZone
endcap zone to be calibrated
Definition: InvRingCalib.h:120
EcalIntercalibConstantMap m_endcapMap
Definition: InvRingCalib.h:100
void EERegionDef()
Defines the regions in the endcap.
void beginOfJob() override
BeginOfJob.
double m_maxEnergyPerCrystal
maximum energy per crystal cut
Definition: InvRingCalib.h:74
std::vector< VEcalCalibBlock * > m_IMACalibBlocks
single blocks calibrators
Definition: InvRingCalib.h:87
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
duringLoop
int EERegId(int)
gives back in which region of the endcap you are.
int m_etaStart
eta start of the zone of interest
Definition: InvRingCalib.h:76
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override
EcalIntercalibConstantMap m_barrelMap
Definition: InvRingCalib.h:99
void endOfJob() override
std::map< int, GlobalPoint > m_cellPos
position of the cell, borders, coords etc...
Definition: InvRingCalib.h:95
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
Definition: InvRingCalib.h:65
VFillMap * m_MapFiller
The class that fills the map!
Definition: InvRingCalib.h:59
std::map< int, int > m_Reg
EB regions vs. eta index.
Definition: InvRingCalib.h:122
std::vector< DetId > m_barrelCells
geometry things used all over the file
Definition: InvRingCalib.h:114
std::map< int, int > m_RinginRegion
association map between raw detIds and the number of the ring inside the region
Definition: InvRingCalib.h:111
int m_startRing
LP define the EE region to calibrate.
Definition: InvRingCalib.h:104
~InvRingCalib() override
dtor
void RegPrepare()
Prepares the EB regions;.
int m_etaWidth
eta size of the regions
Definition: InvRingCalib.h:80
unsigned int m_loops
LP sets the number of loops to do.
Definition: InvRingCalib.h:102
int m_usingBlockSolver
to exclude the blocksolver
Definition: InvRingCalib.h:93
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Definition: InvRingCalib.h:63
int m_etaEnd
eta end of the zone of interest
Definition: InvRingCalib.h:78
std::map< int, int > m_xtalRing
association map between Raw detIds and Rings
Definition: InvRingCalib.h:107
double m_minCoeff
minimum coefficient accepted (RAW)
Definition: InvRingCalib.h:89
std::string m_EBcoeffFile
coeffs filenames
Definition: InvRingCalib.h:117
std::map< int, int > m_cellPhi
Definition: InvRingCalib.h:96
int m_recoWindowSidex
reconstruction window size
Definition: InvRingCalib.h:69
ECAL TB 2006 calibration with matrix inversion technique.
Definition: InvRingCalib.h:26
std::vector< DetId > m_endcapCells
Definition: InvRingCalib.h:115
std::map< int, int > m_RingNumOfHits
number of events already read per Ring
Definition: InvRingCalib.h:85
std::string m_mapFillerType
Definition: InvRingCalib.h:123
int EBRegId(const int)
Gives back in which region you are:
int EERegionNum() const
The number of regions in EE.