CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalEleCalibLooper Class Reference

ECAL TB 2006 calibration with matrix inversion technique. More...

#include <EcalEleCalibLooper.h>

Inheritance diagram for EcalEleCalibLooper:
edm::EDLooper edm::EDLooperBase

Public Member Functions

void beginOfJob ()
 BeginOfJob. More...
 
Status duringLoop (const edm::Event &, const edm::EventSetup &)
 
 EcalEleCalibLooper (const edm::ParameterSet &)
 ctor More...
 
void endOfJob ()
 
Status endOfLoop (const edm::EventSetup &, unsigned int iCounter)
 
void startingNewLoop (unsigned int)
 
 ~EcalEleCalibLooper ()
 dtor More...
 
- Public Member Functions inherited from edm::EDLooper
 EDLooper ()
 
 EDLooper (EDLooper const &)=delete
 
EDLooperoperator= (EDLooper const &)=delete
 
virtual ~EDLooper ()
 
- Public Member Functions inherited from edm::EDLooperBase
virtual void attachTo (ActivityRegistry &)
 Override this method if you need to monitor the state of the processing. More...
 
virtual void beginOfJob (EventSetup const &)
 
void copyInfo (ScheduleInfo const &)
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &, ProcessContext *)
 
void doBeginRun (RunPrincipal &, EventSetup const &, ProcessContext *)
 
Status doDuringLoop (EventPrincipal &eventPrincipal, EventSetup const &es, ProcessingController &, StreamContext *)
 
void doEndLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &, ProcessContext *)
 
Status doEndOfLoop (EventSetup const &es)
 
void doEndRun (RunPrincipal &, EventSetup const &, ProcessContext *)
 
void doStartingNewLoop ()
 
 EDLooperBase ()
 
 EDLooperBase (EDLooperBase const &)=delete
 
virtual std::set
< eventsetup::EventSetupRecordKey
modifyingRecords () const
 
EDLooperBaseoperator= (EDLooperBase const &)=delete
 
void prepareForNextLoop (eventsetup::EventSetupProvider *esp)
 
void setActionTable (ExceptionToActionTable const *actionTable)
 
void setModuleChanger (ModuleChanger *)
 
virtual ~EDLooperBase ()
 

Private Member Functions

int EBregionCheck (const int eta, const int phi) const
 Tells if you are in the region to be calibrated. More...
 
void EBRegionDefinition ()
 DS EB Region Definition. More...
 
int EBRegionId (const int, const int) const
 Reg Id generator EB --— for the barrel. More...
 
int EBregionsNum () const
 DS number of regions in EB. More...
 
int EEregionCheck (const int, const int) const
 returns zero if the coordinates are in the right place. More...
 
void EERegionDefinition ()
 
int EERegionId (const int, const int) const
 Gives the id of the region. More...
 
int EEregionsNum () const
 DS Number of regions in EE. More...
 
int etaShifter (const int) const
 LP Change the coordinate system. More...
 
double giveLimit (int)
 copes with the infinitives of the tangent More...
 

Private Attributes

bool isfirstcall_
 
edm::InputTag m_barrelAlCa
 EcalBarrel Input Collection name. More...
 
std::vector< DetIdm_barrelCells
 
EcalIntercalibConstantMap m_barrelMap
 the maps of recalib coeffs More...
 
std::vector< VEcalCalibBlock * > m_EcalCalibBlocks
 single blocks calibrators More...
 
edm::InputTag m_ElectronLabel
 To take the electrons. More...
 
edm::InputTag m_endcapAlCa
 EcalEndcap Input Collection name. More...
 
std::vector< DetIdm_endcapCells
 
EcalIntercalibConstantMap m_endcapMap
 
int m_etaEnd
 eta end of the region of interest More...
 
int m_etaStart
 phi size of the additive border to the sub-matrix More...
 
int m_etaWidth
 eta size of the sub-matrix More...
 
unsigned int m_loops
 DS sets the number of loops to do. More...
 
VFillMapm_MapFiller
 
double m_maxCoeff
 maximum coefficient accepted (RAW) More...
 
double m_maxEnergyPerCrystal
 maximum energy per crystal cut More...
 
int m_maxSelectedNumPerXtal
 maximum number of events per crystal More...
 
double m_minCoeff
 minimum coefficient accepted (RAW) More...
 
double m_minEnergyPerCrystal
 minimum energy per crystal cut More...
 
int m_phiEndEB
 phi end of the region of interest More...
 
int m_phiEndEE
 
int m_phiStartEB
 phi start of the region of interest More...
 
int m_phiStartEE
 
int m_phiWidthEB
 eta size of the additive border to the sub-matrix More...
 
int m_phiWidthEE
 
int m_radEnd
 
int m_radStart
 DS For the EE. More...
 
int m_radWidth
 
int m_recoWindowSidex
 reconstruction window size More...
 
int m_recoWindowSidey
 
std::vector< int > m_regions
 
int m_usingBlockSolver
 to exclude the blocksolver More...
 
std::map< int, int > m_xtalNumOfHits
 
std::map< int, int > m_xtalPositionInRegion
 
std::map< int, int > m_xtalRegionId
 

Additional Inherited Members

- Public Types inherited from edm::EDLooperBase
enum  Status { kContinue, kStop }
 
- Protected Member Functions inherited from edm::EDLooperBase
ModuleChangermoduleChanger ()
 This only returns a non-zero value during the call to endOfLoop. More...
 
ScheduleInfo const * scheduleInfo () const
 This returns a non-zero value after the constructor has been called. More...
 

Detailed Description

ECAL TB 2006 calibration with matrix inversion technique.

Author

Definition at line 32 of file EcalEleCalibLooper.h.

Constructor & Destructor Documentation

EcalEleCalibLooper::EcalEleCalibLooper ( const edm::ParameterSet iConfig)
explicit

ctor

LP ctor.

Graphs to ckeck the region definition

End of Graphs

Definition at line 36 of file EcalEleCalibLooper.cc.

EcalEleCalibLooper::~EcalEleCalibLooper ( )

dtor

LP destructor.

Definition at line 142 of file EcalEleCalibLooper.cc.

Member Function Documentation

void EcalEleCalibLooper::beginOfJob ( )
virtual

BeginOfJob.

Reimplemented from edm::EDLooperBase.

Definition at line 158 of file EcalEleCalibLooper.cc.

edm::EDLooper::Status EcalEleCalibLooper::duringLoop ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

duringLoop return the status Kcontinue, fills the calibBlock with the recHits

Implements edm::EDLooper.

Definition at line 194 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EBregionCheck ( const int  eta,
const int  phi 
) const
private

Tells if you are in the region to be calibrated.

Definition at line 397 of file EcalEleCalibLooper.cc.

void EcalEleCalibLooper::EBRegionDefinition ( )
private

DS EB Region Definition.

Definition at line 519 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EBRegionId ( const int  etaXtl,
const int  phiXtl 
) const
private

Reg Id generator EB --— for the barrel.

Definition at line 455 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EBregionsNum ( ) const
inlineprivate

DS number of regions in EB.

Definition at line 507 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EEregionCheck ( const int  ics,
const int  ips 
) const
private

returns zero if the coordinates are in the right place.

Definition at line 576 of file EcalEleCalibLooper.cc.

void EcalEleCalibLooper::EERegionDefinition ( )
private

Definition at line 539 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EERegionId ( const int  ics,
const int  ips 
) const
private

Gives the id of the region.

Definition at line 472 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::EEregionsNum ( ) const
inlineprivate

DS Number of regions in EE.

Definition at line 495 of file EcalEleCalibLooper.cc.

void EcalEleCalibLooper::endOfJob ( )
virtual

LP endOfJob writes the coefficients in the xml format and exits

Reimplemented from edm::EDLooperBase.

Definition at line 365 of file EcalEleCalibLooper.cc.

edm::EDLooper::Status EcalEleCalibLooper::endOfLoop ( const edm::EventSetup dumb,
unsigned int  iCounter 
)
virtual

EndOfLoop Return kContinue if there's still another loop to be done; otherwise stops returnig kStop; Takes the coefficients solving the calibBlock;

Implements edm::EDLooperBase.

Definition at line 286 of file EcalEleCalibLooper.cc.

int EcalEleCalibLooper::etaShifter ( const int  etaOld) const
private

LP Change the coordinate system.

Definition at line 600 of file EcalEleCalibLooper.cc.

double EcalEleCalibLooper::giveLimit ( int  degrees)
private

copes with the infinitives of the tangent

Definition at line 431 of file EcalEleCalibLooper.cc.

void EcalEleCalibLooper::startingNewLoop ( unsigned int  ciclo)
virtual

startingNewLoop empties the map of the calibBlock so that it can be filled

Implements edm::EDLooperBase.

Definition at line 170 of file EcalEleCalibLooper.cc.

Member Data Documentation

bool EcalEleCalibLooper::isfirstcall_
private

Definition at line 143 of file EcalEleCalibLooper.h.

edm::InputTag EcalEleCalibLooper::m_barrelAlCa
private

EcalBarrel Input Collection name.

Definition at line 68 of file EcalEleCalibLooper.h.

std::vector<DetId> EcalEleCalibLooper::m_barrelCells
private

Definition at line 136 of file EcalEleCalibLooper.h.

EcalIntercalibConstantMap EcalEleCalibLooper::m_barrelMap
private

the maps of recalib coeffs

Definition at line 119 of file EcalEleCalibLooper.h.

std::vector<VEcalCalibBlock *> EcalEleCalibLooper::m_EcalCalibBlocks
private

single blocks calibrators

Definition at line 106 of file EcalEleCalibLooper.h.

edm::InputTag EcalEleCalibLooper::m_ElectronLabel
private

To take the electrons.

Definition at line 125 of file EcalEleCalibLooper.h.

edm::InputTag EcalEleCalibLooper::m_endcapAlCa
private

EcalEndcap Input Collection name.

Definition at line 70 of file EcalEleCalibLooper.h.

std::vector<DetId> EcalEleCalibLooper::m_endcapCells
private

Definition at line 137 of file EcalEleCalibLooper.h.

EcalIntercalibConstantMap EcalEleCalibLooper::m_endcapMap
private

Definition at line 120 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_etaEnd
private

eta end of the region of interest

Definition at line 88 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_etaStart
private

phi size of the additive border to the sub-matrix

eta start of the region of interest

Definition at line 86 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_etaWidth
private

eta size of the sub-matrix

Definition at line 77 of file EcalEleCalibLooper.h.

unsigned int EcalEleCalibLooper::m_loops
private

DS sets the number of loops to do.

Definition at line 123 of file EcalEleCalibLooper.h.

VFillMap* EcalEleCalibLooper::m_MapFiller
private

Definition at line 127 of file EcalEleCalibLooper.h.

double EcalEleCalibLooper::m_maxCoeff
private

maximum coefficient accepted (RAW)

Definition at line 114 of file EcalEleCalibLooper.h.

double EcalEleCalibLooper::m_maxEnergyPerCrystal
private

maximum energy per crystal cut

Definition at line 110 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_maxSelectedNumPerXtal
private

maximum number of events per crystal

Definition at line 103 of file EcalEleCalibLooper.h.

double EcalEleCalibLooper::m_minCoeff
private

minimum coefficient accepted (RAW)

Definition at line 112 of file EcalEleCalibLooper.h.

double EcalEleCalibLooper::m_minEnergyPerCrystal
private

minimum energy per crystal cut

Definition at line 108 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiEndEB
private

phi end of the region of interest

Definition at line 92 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiEndEE
private

Definition at line 99 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiStartEB
private

phi start of the region of interest

Definition at line 90 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiStartEE
private

Definition at line 98 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiWidthEB
private

eta size of the additive border to the sub-matrix

phi size of the sub-matrix

Definition at line 81 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_phiWidthEE
private

Definition at line 100 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_radEnd
private

Definition at line 95 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_radStart
private

DS For the EE.

Definition at line 94 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_radWidth
private

Definition at line 96 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_recoWindowSidex
private

reconstruction window size

Definition at line 73 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_recoWindowSidey
private

Definition at line 74 of file EcalEleCalibLooper.h.

std::vector<int> EcalEleCalibLooper::m_regions
private

Definition at line 134 of file EcalEleCalibLooper.h.

int EcalEleCalibLooper::m_usingBlockSolver
private

to exclude the blocksolver

Definition at line 116 of file EcalEleCalibLooper.h.

std::map<int,int> EcalEleCalibLooper::m_xtalNumOfHits
private

Definition at line 141 of file EcalEleCalibLooper.h.

std::map<int,int> EcalEleCalibLooper::m_xtalPositionInRegion
private

Definition at line 140 of file EcalEleCalibLooper.h.

std::map<int,int> EcalEleCalibLooper::m_xtalRegionId
private

Definition at line 139 of file EcalEleCalibLooper.h.