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:
34 
36  explicit EcalEleCalibLooper(const edm::ParameterSet&);
39  void beginOfJob() ;
40  void endOfJob();
41  void startingNewLoop(unsigned int) ;
43  Status endOfLoop(const edm::EventSetup&,unsigned int iCounter) ;
44 
45 
46  private:
47 
48  //DS to divide in Regions
49  int EBRegionId (const int, const int) const;
50  int EERegionId (const int, const int) const;
51  //DS to define the regions for each cristal
52  void EBRegionDefinition ();
53  void EERegionDefinition ();
54  //DS defines the limit for the tan of phi
55  double giveLimit (int);
56 
57  //DS checks if the values of ics and ips are in EE or not
58  int EEregionCheck (const int, const int) const;
59  int EBregionCheck (const int eta,const int phi) const;
60 
62  int etaShifter (const int) const ;
63 
64  private:
65 
66 
71 
75 
77  int m_etaWidth ; //PG sub matrix size and borders
79 // int m_etaBorder ; //FIXME
83 // int m_phiBorderEB //FIXME;
84 
86  int m_etaStart ; //PG ECAL region to be calibrated
88  int m_etaEnd ;
92  int m_phiEndEB ;
94  int m_radStart ;
95  int m_radEnd ;
96  int m_radWidth ;
97 //FIXME int m_radBorder ;
99  int m_phiEndEE ;
101 
104 
106  std::vector<VEcalCalibBlock *> m_EcalCalibBlocks ;
112  double m_minCoeff ;
114  double m_maxCoeff ;
117 
121 
123  unsigned int m_loops ;
126  //The map Filler
128 
129  //DS number of regions in the Endcap
130  inline int EEregionsNum () const ;
131  //DS number of regions in the barrel
132  inline int EBregionsNum () const ;
133 
134  std::vector<int> m_regions;
135 
136  std::vector<DetId> m_barrelCells;
137  std::vector<DetId> m_endcapCells;
138 
139  std::map<int,int> m_xtalRegionId ;
140  std::map<int,int> m_xtalPositionInRegion ;
141  std::map <int,int> m_xtalNumOfHits;
142 
144 };
145 #endif
146 #endif
std::vector< DetId > m_barrelCells
double giveLimit(int)
copes with the infinitives of the tangent
int EEregionsNum() const
DS Number of regions in EE.
std::vector< VEcalCalibBlock * > m_EcalCalibBlocks
single blocks calibrators
edm::InputTag m_endcapAlCa
EcalEndcap Input Collection name.
void startingNewLoop(unsigned int)
unsigned int m_loops
DS sets the number of loops to do.
int EBregionCheck(const int eta, const int phi) const
Tells if you are in the region to be calibrated.
ECAL TB 2006 calibration with matrix inversion technique.
int m_phiWidthEB
eta size of the additive border to the sub-matrix
int m_maxSelectedNumPerXtal
maximum number of events per crystal
double m_minEnergyPerCrystal
minimum energy per crystal cut
double m_maxCoeff
maximum coefficient accepted (RAW)
std::vector< DetId > m_endcapCells
int m_usingBlockSolver
to exclude the blocksolver
int m_radStart
DS For the EE.
edm::InputTag m_ElectronLabel
To take the electrons.
int m_etaStart
phi size of the additive border to the sub-matrix
EcalIntercalibConstantMap m_barrelMap
the maps of recalib coeffs
int EEregionCheck(const int, const int) const
returns zero if the coordinates are in the right place.
int m_recoWindowSidex
reconstruction window size
std::map< int, int > m_xtalRegionId
void EBRegionDefinition()
DS EB Region Definition.
int EERegionId(const int, const int) const
Gives the id of the region.
void beginOfJob()
BeginOfJob.
double m_minCoeff
minimum coefficient accepted (RAW)
int m_etaWidth
eta size of the sub-matrix
std::vector< int > m_regions
int etaShifter(const int) const
LP Change the coordinate system.
std::map< int, int > m_xtalNumOfHits
int m_phiEndEB
phi end of the region of interest
int m_phiStartEB
phi start of the region of interest
EcalIntercalibConstantMap m_endcapMap
edm::InputTag m_barrelAlCa
EcalBarrel Input Collection name.
Status duringLoop(const edm::Event &, const edm::EventSetup &)
EcalEleCalibLooper(const edm::ParameterSet &)
ctor
int m_etaEnd
eta end of the region of interest
int EBRegionId(const int, const int) const
Reg Id generator EB --— for the barrel.
Status endOfLoop(const edm::EventSetup &, unsigned int iCounter)
int EBregionsNum() const
DS number of regions in EB.
std::map< int, int > m_xtalPositionInRegion
double m_maxEnergyPerCrystal
maximum energy per crystal cut