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 
27 class InvRingCalib : public edm::EDLooper {
28  public:
29 
31  explicit InvRingCalib(const edm::ParameterSet&);
33  ~InvRingCalib() override;
34  void beginOfJob() override ;
35  void endOfJob() override;
36  void startingNewLoop(unsigned int) override ;
37  Status duringLoop(const edm::Event&, const edm::EventSetup&) override ;
38  Status endOfLoop(const edm::EventSetup&,unsigned int iCounter) override ;
39 
40  //end
41 
42  private:
43 
45  inline int EERegionNum () const ;
47  int EBRegionNum () const ;
49  void EBRegionDef () ;
51  void EERingDef (const edm::EventSetup&);
53  void EERegionDef ();
55  void RegPrepare ();
57  int EBRegId(const int) ;
59  int EERegId ( int) ;
60 
63 
64  private:
79  int m_etaStart ;
81  int m_etaEnd ;
83  int m_etaWidth ;
84 // std::map<int,float> m_eta;
88  std::map<int,int> m_RingNumOfHits;
90  std::vector<VEcalCalibBlock *> m_IMACalibBlocks ;
92  double m_minCoeff ;
94  double m_maxCoeff ;
98  std::map<int,GlobalPoint> m_cellPos;
99  std::map<int,int> m_cellPhi;
105  unsigned int m_loops ;
110  std::map<int,int> m_xtalRing;
112  std::map<int,int> m_xtalRegionId;
114  std::map<int,int> m_RinginRegion;
115 
117  std::vector<DetId> m_barrelCells;
118  std::vector<DetId> m_endcapCells;
123  int m_EEZone;
125  std::map<int,int> m_Reg;
128 };
129 #endif
130 #endif
edm::InputTag m_ElectronLabel
To take the electrons.
Definition: InvRingCalib.h:70
void startingNewLoop(unsigned int) override
startingNewLoop
void EERingDef(const edm::EventSetup &)
Defines the rins in the endcap.
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:94
int m_maxSelectedNumPerRing
maximum number of events per Ring
Definition: InvRingCalib.h:86
std::string m_EEcoeffFile
Definition: InvRingCalib.h:121
int m_recoWindowSidey
Definition: InvRingCalib.h:73
InvRingCalib(const edm::ParameterSet &)
ctor
Definition: InvRingCalib.cc:30
double m_minEnergyPerCrystal
minimum energy per crystal cut
Definition: InvRingCalib.h:75
int m_EEZone
endcap zone to be calibrated
Definition: InvRingCalib.h:123
std::map< int, int > m_cellPhi
Definition: InvRingCalib.h:99
std::map< int, GlobalPoint > m_cellPos
position of the cell, borders, coords etc...
Definition: InvRingCalib.h:98
EcalIntercalibConstantMap m_endcapMap
Definition: InvRingCalib.h:103
void EERegionDef()
Defines the regions in the endcap.
std::map< int, int > m_Reg
EB regions vs. eta index.
Definition: InvRingCalib.h:125
void beginOfJob() override
BeginOfJob.
double m_maxEnergyPerCrystal
maximum energy per crystal cut
Definition: InvRingCalib.h:77
std::vector< VEcalCalibBlock * > m_IMACalibBlocks
single blocks calibrators
Definition: InvRingCalib.h:90
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:79
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override
EcalIntercalibConstantMap m_barrelMap
Definition: InvRingCalib.h:102
std::map< int, int > m_RingNumOfHits
number of events already read per Ring
Definition: InvRingCalib.h:88
void endOfJob() override
std::map< int, int > m_xtalRegionId
association map between raw detIds and Region
Definition: InvRingCalib.h:112
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
Definition: InvRingCalib.h:68
VFillMap * m_MapFiller
The class that fills the map!
Definition: InvRingCalib.h:62
std::vector< DetId > m_barrelCells
geometry things used all over the file
Definition: InvRingCalib.h:117
int m_startRing
LP define the EE region to calibrate.
Definition: InvRingCalib.h:107
~InvRingCalib() override
dtor
void RegPrepare()
Prepares the EB regions;.
int m_etaWidth
eta size of the regions
Definition: InvRingCalib.h:83
unsigned int m_loops
LP sets the number of loops to do.
Definition: InvRingCalib.h:105
int m_usingBlockSolver
to exclude the blocksolver
Definition: InvRingCalib.h:96
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Definition: InvRingCalib.h:66
int m_etaEnd
eta end of the zone of interest
Definition: InvRingCalib.h:81
double m_minCoeff
minimum coefficient accepted (RAW)
Definition: InvRingCalib.h:92
std::string m_EBcoeffFile
coeffs filenames
Definition: InvRingCalib.h:120
int m_recoWindowSidex
reconstruction window size
Definition: InvRingCalib.h:72
ECAL TB 2006 calibration with matrix inversion technique.
Definition: InvRingCalib.h:27
std::vector< DetId > m_endcapCells
Definition: InvRingCalib.h:118
std::map< int, int > m_RinginRegion
association map between raw detIds and the number of the ring inside the region
Definition: InvRingCalib.h:114
std::map< int, int > m_xtalRing
association map between Raw detIds and Rings
Definition: InvRingCalib.h:110
std::string m_mapFillerType
Definition: InvRingCalib.h:126
int EBRegId(const int)
Gives back in which region you are:
int EERegionNum() const
The number of regions in EE.