CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalEleCalibLooper.h
Go to the documentation of this file.
1 
10 #ifndef __CINT__
11 #ifndef EcalEleCalibLooper_H
12 #define EcalEleCalibLooper_H
18 #include <string>
19 #include <vector>
20 
30 
31 #include "CLHEP/Matrix/GenMatrix.h"
32 #include "CLHEP/Matrix/Matrix.h"
33 #include "CLHEP/Matrix/Vector.h"
35  public:
36 
38  explicit EcalEleCalibLooper(const edm::ParameterSet&);
41  void beginOfJob() ;
42  void endOfJob();
43  void startingNewLoop(unsigned int) ;
45  Status endOfLoop(const edm::EventSetup&,unsigned int iCounter) ;
46 
47 
48  private:
49 
50  //DS to divide in Regions
51  int EBRegionId (const int, const int) const;
52  int EERegionId (const int, const int) const;
53  //DS to define the regions for each cristal
54  void EBRegionDefinition ();
55  void EERegionDefinition ();
56  //DS defines the limit for the tan of phi
57  double giveLimit (int);
58 
59  //DS checks if the values of ics and ips are in EE or not
60  int EEregionCheck (const int, const int) const;
61  int EBregionCheck (const int eta,const int phi) const;
62 
64  int etaShifter (const int) const ;
65 
66  private:
67 
68 
73 
77 
79  int m_etaWidth ; //PG sub matrix size and borders
81 // int m_etaBorder ; //FIXME
85 // int m_phiBorderEB //FIXME;
86 
88  int m_etaStart ; //PG ECAL region to be calibrated
90  int m_etaEnd ;
94  int m_phiEndEB ;
96  int m_radStart ;
97  int m_radEnd ;
98  int m_radWidth ;
99 //FIXME int m_radBorder ;
103 
106 
108  std::vector<VEcalCalibBlock *> m_EcalCalibBlocks ;
114  double m_minCoeff ;
116  double m_maxCoeff ;
119 
123 
125  unsigned int m_loops ;
128  //The map Filler
130 
131  //DS number of regions in the Endcap
132  inline int EEregionsNum () const ;
133  //DS number of regions in the barrel
134  inline int EBregionsNum () const ;
135 
136  std::vector<int> m_regions;
137 
138  std::vector<DetId> m_barrelCells;
139  std::vector<DetId> m_endcapCells;
140 
141  std::map<int,int> m_xtalRegionId ;
142  std::map<int,int> m_xtalPositionInRegion ;
143  std::map <int,int> m_xtalNumOfHits;
144 
146 };
147 #endif
148 #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)
T eta() const
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.
Definition: DDAxes.h:10
std::map< int, int > m_xtalPositionInRegion
double m_maxEnergyPerCrystal
maximum energy per crystal cut