CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
InvRingCalib.h
Go to the documentation of this file.
1 
10 #ifndef __CINT__
11 #ifndef InvRingCalib_H
12 #define InvRingCalib_H
20 
21 #include <string>
22 #include <vector>
23 //#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
25 
27 
28 
29 class InvRingCalib : public edm::EDLooper {
30  public:
31 
33  explicit InvRingCalib(const edm::ParameterSet&);
35  ~InvRingCalib();
36  void beginOfJob() ;
37  void endOfJob();
38  void startingNewLoop(unsigned int) ;
40  Status endOfLoop(const edm::EventSetup&,unsigned int iCounter) ;
41 
42  //end
43 
44  private:
45 
47  inline int EERegionNum () const ;
49  int EBRegionNum () const ;
51  void EBRegionDef () ;
53  void EERingDef (const edm::EventSetup&);
55  void EERegionDef ();
57  void RegPrepare ();
59  int EBRegId(const int) ;
61  int EERegId ( int) ;
62 
65 
66  private:
81  int m_etaStart ;
83  int m_etaEnd ;
85  int m_etaWidth ;
86 // std::map<int,float> m_eta;
90  std::map<int,int> m_RingNumOfHits;
92  std::vector<VEcalCalibBlock *> m_IMACalibBlocks ;
94  double m_minCoeff ;
96  double m_maxCoeff ;
100  std::map<int,GlobalPoint> m_cellPos;
101  std::map<int,int> m_cellPhi;
107  unsigned int m_loops ;
112  std::map<int,int> m_xtalRing;
114  std::map<int,int> m_xtalRegionId;
116  std::map<int,int> m_RinginRegion;
117 
119  std::vector<DetId> m_barrelCells;
120  std::vector<DetId> m_endcapCells;
122  std::string m_EBcoeffFile;
123  std::string m_EEcoeffFile;
125  int m_EEZone;
127  std::map<int,int> m_Reg;
128  std::string m_mapFillerType;
130 };
131 #endif
132 #endif
edm::InputTag m_ElectronLabel
To take the electrons.
Definition: InvRingCalib.h:72
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:96
int m_maxSelectedNumPerRing
maximum number of events per Ring
Definition: InvRingCalib.h:88
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter)
std::string m_EEcoeffFile
Definition: InvRingCalib.h:123
~InvRingCalib()
dtor
int m_recoWindowSidey
Definition: InvRingCalib.h:75
InvRingCalib(const edm::ParameterSet &)
ctor
Definition: InvRingCalib.cc:30
double m_minEnergyPerCrystal
minimum energy per crystal cut
Definition: InvRingCalib.h:77
int m_EEZone
endcap zone to be calibrated
Definition: InvRingCalib.h:125
std::map< int, int > m_cellPhi
Definition: InvRingCalib.h:101
std::map< int, GlobalPoint > m_cellPos
position of the cell, borders, coords etc...
Definition: InvRingCalib.h:100
EcalIntercalibConstantMap m_endcapMap
Definition: InvRingCalib.h:105
void EERegionDef()
Defines the regions in the endcap.
std::map< int, int > m_Reg
EB regions vs. eta index.
Definition: InvRingCalib.h:127
double m_maxEnergyPerCrystal
maximum energy per crystal cut
Definition: InvRingCalib.h:79
std::vector< VEcalCalibBlock * > m_IMACalibBlocks
single blocks calibrators
Definition: InvRingCalib.h:92
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:81
EcalIntercalibConstantMap m_barrelMap
Definition: InvRingCalib.h:104
std::map< int, int > m_RingNumOfHits
number of events already read per Ring
Definition: InvRingCalib.h:90
std::map< int, int > m_xtalRegionId
association map between raw detIds and Region
Definition: InvRingCalib.h:114
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
Definition: InvRingCalib.h:70
VFillMap * m_MapFiller
The class that fills the map!
Definition: InvRingCalib.h:64
void beginOfJob()
BeginOfJob.
std::vector< DetId > m_barrelCells
geometry things used all over the file
Definition: InvRingCalib.h:119
int m_startRing
LP define the EE region to calibrate.
Definition: InvRingCalib.h:109
Status duringLoop(const edm::Event &, const edm::EventSetup &)
duringLoop
void RegPrepare()
Prepares the EB regions;.
int m_etaWidth
eta size of the regions
Definition: InvRingCalib.h:85
unsigned int m_loops
LP sets the number of loops to do.
Definition: InvRingCalib.h:107
int m_usingBlockSolver
to exclude the blocksolver
Definition: InvRingCalib.h:98
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Definition: InvRingCalib.h:68
void startingNewLoop(unsigned int)
startingNewLoop
int m_etaEnd
eta end of the zone of interest
Definition: InvRingCalib.h:83
double m_minCoeff
minimum coefficient accepted (RAW)
Definition: InvRingCalib.h:94
std::string m_EBcoeffFile
coeffs filenames
Definition: InvRingCalib.h:122
int m_recoWindowSidex
reconstruction window size
Definition: InvRingCalib.h:74
ECAL TB 2006 calibration with matrix inversion technique.
Definition: InvRingCalib.h:29
std::vector< DetId > m_endcapCells
Definition: InvRingCalib.h:120
std::map< int, int > m_RinginRegion
association map between raw detIds and the number of the ring inside the region
Definition: InvRingCalib.h:116
std::map< int, int > m_xtalRing
association map between Raw detIds and Rings
Definition: InvRingCalib.h:112
std::string m_mapFillerType
Definition: InvRingCalib.h:128
int EBRegId(const int)
Gives back in which region you are:
int EERegionNum() const
The number of regions in EE.