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
InvRingCalib::m_etaWidth
int m_etaWidth
eta size of the regions
Definition: InvRingCalib.h:80
InvRingCalib::m_EBcoeffFile
std::string m_EBcoeffFile
coeffs filenames
Definition: InvRingCalib.h:117
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:79
InvRingCalib::m_barrelAlCa
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Definition: InvRingCalib.h:63
InvRingCalib::m_minEnergyPerCrystal
double m_minEnergyPerCrystal
minimum energy per crystal cut
Definition: InvRingCalib.h:72
InvRingCalib::m_recoWindowSidex
int m_recoWindowSidex
reconstruction window size
Definition: InvRingCalib.h:69
InvRingCalib::RegPrepare
void RegPrepare()
Prepares the EB regions;.
Definition: InvRingCalib.cc:528
InvRingCalib::m_RingNumOfHits
std::map< int, int > m_RingNumOfHits
number of events already read per Ring
Definition: InvRingCalib.h:85
EcalIntercalibConstants.h
InvRingCalib::m_loops
unsigned int m_loops
LP sets the number of loops to do.
Definition: InvRingCalib.h:102
InvRingCalib::m_endRing
int m_endRing
Definition: InvRingCalib.h:105
InvRingCalib::m_etaStart
int m_etaStart
eta start of the zone of interest
Definition: InvRingCalib.h:76
VFillMap.h
InvRingCalib::m_etaEnd
int m_etaEnd
eta end of the zone of interest
Definition: InvRingCalib.h:78
InvRingCalib::m_RinginRegion
std::map< int, int > m_RinginRegion
association map between raw detIds and the number of the ring inside the region
Definition: InvRingCalib.h:111
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
InvRingCalib::m_recoWindowSidey
int m_recoWindowSidey
Definition: InvRingCalib.h:70
InvRingCalib::EBRegionNum
int EBRegionNum() const
Number of regions in EB.
Definition: InvRingCalib.cc:517
edm::EDLooper
Definition: EDLooper.h:27
InvRingCalib::EERingDef
void EERingDef(const edm::EventSetup &)
Defines the rins in the endcap.
Definition: InvRingCalib.cc:384
InvRingCalib::m_xtalRegionId
std::map< int, int > m_xtalRegionId
association map between raw detIds and Region
Definition: InvRingCalib.h:109
CaloRecHit.h
InvRingCalib::isfirstcall_
bool isfirstcall_
Definition: InvRingCalib.h:124
InvRingCalib::EERegionNum
int EERegionNum() const
The number of regions in EE.
Definition: InvRingCalib.cc:514
InvRingCalib::m_cellPhi
std::map< int, int > m_cellPhi
Definition: InvRingCalib.h:96
InvRingCalib::m_EEcoeffFile
std::string m_EEcoeffFile
Definition: InvRingCalib.h:118
InvRingCalib::endOfLoop
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter) override
Definition: InvRingCalib.cc:291
InvRingCalib::m_EEZone
int m_EEZone
endcap zone to be calibrated
Definition: InvRingCalib.h:120
InvRingCalib::beginOfJob
void beginOfJob() override
BeginOfJob.
Definition: InvRingCalib.cc:108
InvRingCalib::EERegId
int EERegId(int)
gives back in which region of the endcap you are.
Definition: InvRingCalib.cc:444
VEcalCalibBlock.h
InvRingCalib::endOfJob
void endOfJob() override
Definition: InvRingCalib.cc:361
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InvRingCalib::m_IMACalibBlocks
std::vector< VEcalCalibBlock * > m_IMACalibBlocks
single blocks calibrators
Definition: InvRingCalib.h:87
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
InvRingCalib::startingNewLoop
void startingNewLoop(unsigned int) override
startingNewLoop
Definition: InvRingCalib.cc:113
InvRingCalib::m_minCoeff
double m_minCoeff
minimum coefficient accepted (RAW)
Definition: InvRingCalib.h:89
InvRingCalib::m_ElectronLabel
edm::InputTag m_ElectronLabel
To take the electrons.
Definition: InvRingCalib.h:67
InvRingCalib::m_cellPos
std::map< int, GlobalPoint > m_cellPos
position of the cell, borders, coords etc...
Definition: InvRingCalib.h:95
InvRingCalib::m_barrelMap
EcalIntercalibConstantMap m_barrelMap
Definition: InvRingCalib.h:99
VFillMap
Definition: VFillMap.h:12
InvRingCalib::m_endcapCells
std::vector< DetId > m_endcapCells
Definition: InvRingCalib.h:115
edm::EventSetup
Definition: EventSetup.h:57
InvRingCalib::m_MapFiller
VFillMap * m_MapFiller
The class that fills the map!
Definition: InvRingCalib.h:59
InvRingCalib::InvRingCalib
InvRingCalib(const edm::ParameterSet &)
ctor
Definition: InvRingCalib.cc:30
InvRingCalib::m_barrelCells
std::vector< DetId > m_barrelCells
geometry things used all over the file
Definition: InvRingCalib.h:114
InvRingCalib::duringLoop
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
duringLoop
Definition: InvRingCalib.cc:129
InvRingCalib::m_maxCoeff
double m_maxCoeff
maximum coefficient accepted (RAW)
Definition: InvRingCalib.h:91
DetId.h
InvRingCalib::m_endcapAlCa
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
Definition: InvRingCalib.h:65
InvRingCalib::EBRegId
int EBRegId(const int)
Gives back in which region you are:
Definition: InvRingCalib.cc:538
InvRingCalib::m_usingBlockSolver
int m_usingBlockSolver
to exclude the blocksolver
Definition: InvRingCalib.h:93
EventSetup.h
InvRingCalib::m_xtalRing
std::map< int, int > m_xtalRing
association map between Raw detIds and Rings
Definition: InvRingCalib.h:107
InvRingCalib::m_mapFillerType
std::string m_mapFillerType
Definition: InvRingCalib.h:123
InvRingCalib::EERegionDef
void EERegionDef()
Defines the regions in the endcap.
Definition: InvRingCalib.cc:491
InvRingCalib::m_startRing
int m_startRing
LP define the EE region to calibrate.
Definition: InvRingCalib.h:104
InvRingCalib::m_maxEnergyPerCrystal
double m_maxEnergyPerCrystal
maximum energy per crystal cut
Definition: InvRingCalib.h:74
InvRingCalib::~InvRingCalib
~InvRingCalib() override
dtor
Definition: InvRingCalib.cc:103
InvRingCalib::m_maxSelectedNumPerRing
int m_maxSelectedNumPerRing
maximum number of events per Ring
Definition: InvRingCalib.h:83
EDLooper.h
edm::Event
Definition: Event.h:73
GlobalPoint.h
InvRingCalib::EBRegionDef
void EBRegionDef()
Defines the regions in the barrel.
Definition: InvRingCalib.cc:548
edm::InputTag
Definition: InputTag.h:15
InvRingCalib
ECAL TB 2006 calibration with matrix inversion technique.
Definition: InvRingCalib.h:26
InvRingCalib::m_Reg
std::map< int, int > m_Reg
EB regions vs. eta index.
Definition: InvRingCalib.h:122
InvRingCalib::m_endcapMap
EcalIntercalibConstantMap m_endcapMap
Definition: InvRingCalib.h:100