ECAL TB 2006 calibration with matrix inversion technique. More...
#include <EcalEleCalibLooper.h>
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< DetId > | m_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< DetId > | m_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... | |
VFillMap * | m_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 | |
ModuleChanger const * | moduleChanger () const |
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... | |
ECAL TB 2006 calibration with matrix inversion technique.
Definition at line 32 of file EcalEleCalibLooper.h.
|
explicit |
ctor
LP ctor.
Graphs to ckeck the region definition
End of Graphs
Definition at line 36 of file EcalEleCalibLooper.cc.
References HLT_25ns14e33_v1_cff::algorithm, assert(), EBRegionDefinition(), EBregionsNum(), EERegionDefinition(), EEregionsNum(), eta, cmsRelvalreport::exit, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_barrelMap, m_EcalCalibBlocks, m_endcapMap, m_etaEnd, m_etaStart, m_etaWidth, m_MapFiller, m_maxEnergyPerCrystal, m_minEnergyPerCrystal, m_radEnd, m_radStart, m_radWidth, m_recoWindowSidex, m_recoWindowSidey, m_regions, m_xtalPositionInRegion, m_xtalRegionId, dbtoconf::out, phi, HLT_25ns14e33_v3_cff::region, AlCaHLTBitMon_QueryRunRegistry::string, EBDetId::unhashIndex(), EEDetId::validDetId(), x, and y.
EcalEleCalibLooper::~EcalEleCalibLooper | ( | ) |
dtor
LP destructor.
Definition at line 142 of file EcalEleCalibLooper.cc.
References m_EcalCalibBlocks.
|
virtual |
Reimplemented from edm::EDLooperBase.
Definition at line 158 of file EcalEleCalibLooper.cc.
References isfirstcall_.
|
virtual |
duringLoop return the status Kcontinue, fills the calibBlock with the recHits
Implements edm::EDLooper.
Definition at line 194 of file EcalEleCalibLooper.cc.
References DetId::det(), DetId::Ecal, EcalBarrel, EcalEndcap, HcalObjRepresent::Fill(), VFillMap::fillMap(), plotBeamSpotDB::first, geometry, edm::EventSetup::get(), edm::Event::getByLabel(), CaloGeometry::getValidDetIds(), isfirstcall_, edm::HandleBase::isValid(), edm::EDLooperBase::kContinue, m_barrelAlCa, m_barrelCells, m_barrelMap, m_EcalCalibBlocks, m_ElectronLabel, m_endcapAlCa, m_endcapCells, m_endcapMap, m_MapFiller, m_maxSelectedNumPerXtal, m_xtalNumOfHits, m_xtalRegionId, Max(), edm::Handle< T >::product(), and DetId::rawId().
|
private |
Tells if you are in the region to be calibrated.
Definition at line 397 of file EcalEleCalibLooper.cc.
References m_etaEnd, m_etaStart, m_phiEndEB, and m_phiStartEB.
Referenced by EBRegionId().
|
private |
DS EB Region Definition.
Definition at line 519 of file EcalEleCalibLooper.cc.
References EBRegionId(), EBregionsNum(), eta, m_regions, m_xtalPositionInRegion, m_xtalRegionId, phi, DetId::rawId(), and EBDetId::unhashIndex().
Referenced by EcalEleCalibLooper().
|
private |
Reg Id generator EB --— for the barrel.
Definition at line 455 of file EcalEleCalibLooper.cc.
References EBregionCheck(), m_etaStart, m_etaWidth, m_phiEndEB, m_phiStartEB, and m_phiWidthEB.
Referenced by EBRegionDefinition().
|
inlineprivate |
DS number of regions in EB.
Definition at line 507 of file EcalEleCalibLooper.cc.
References m_etaEnd, m_etaStart, m_etaWidth, m_phiEndEB, m_phiStartEB, m_phiWidthEB, and phi.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), and EERegionDefinition().
|
private |
returns zero if the coordinates are in the right place.
Definition at line 576 of file EcalEleCalibLooper.cc.
References degrees(), m_phiEndEE, m_phiStartEE, m_radEnd, m_radStart, phi, x, and y.
Referenced by EERegionId().
|
private |
Definition at line 539 of file EcalEleCalibLooper.cc.
References bsc_activity_cfg::EBnum, EBregionsNum(), bsc_activity_cfg::EEnum, EERegionId(), EEregionsNum(), h2_mapping_cfi::ics, m_regions, m_xtalPositionInRegion, m_xtalRegionId, DetId::rawId(), and EEDetId::validDetId().
Referenced by EcalEleCalibLooper().
|
private |
Gives the id of the region.
Definition at line 472 of file EcalEleCalibLooper.cc.
References degrees(), EEregionCheck(), m_phiEndEE, m_phiStartEE, m_phiWidthEE, m_radStart, m_radWidth, phi, CosmicsPD_Skims::radius, and mathSSE::sqrt().
Referenced by EERegionDefinition().
|
inlineprivate |
DS Number of regions in EE.
Definition at line 495 of file EcalEleCalibLooper.cc.
References m_phiEndEE, m_phiStartEE, m_phiWidthEE, m_radEnd, m_radStart, and m_radWidth.
Referenced by EcalEleCalibLooper(), and EERegionDefinition().
|
virtual |
LP endOfJob writes the coefficients in the xml format and exits
Reimplemented from edm::EDLooperBase.
Definition at line 365 of file EcalEleCalibLooper.cc.
References EcalBarrel, EcalEndcap, m_barrelCells, m_barrelMap, m_endcapCells, m_endcapMap, and calibXMLwriter::writeLine().
|
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.
References lut2db_cfg::filename, EBDetId::ieta(), cmsHarvester::index, EBDetId::iphi(), EEDetId::ix(), EEDetId::iy(), edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, m_barrelCells, m_barrelMap, m_EcalCalibBlocks, m_endcapCells, m_endcapMap, m_loops, m_maxCoeff, m_minCoeff, m_usingBlockSolver, m_xtalPositionInRegion, m_xtalRegionId, and EEDetId::zside().
|
private |
LP Change the coordinate system.
Definition at line 600 of file EcalEleCalibLooper.cc.
References assert().
|
private |
copes with the infinitives of the tangent
Definition at line 431 of file EcalEleCalibLooper.cc.
References radiants(), and funct::tan().
|
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.
References m_EcalCalibBlocks, and m_xtalNumOfHits.
|
private |
Definition at line 143 of file EcalEleCalibLooper.h.
Referenced by beginOfJob(), and duringLoop().
|
private |
EcalBarrel Input Collection name.
Definition at line 68 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 136 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
the maps of recalib coeffs
Definition at line 119 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
single blocks calibrators
Definition at line 106 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfLoop(), startingNewLoop(), and ~EcalEleCalibLooper().
|
private |
To take the electrons.
Definition at line 125 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
EcalEndcap Input Collection name.
Definition at line 70 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 137 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
Definition at line 120 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
eta end of the region of interest
Definition at line 88 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBregionsNum(), and EcalEleCalibLooper().
|
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.
Referenced by EBregionCheck(), EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
eta size of the sub-matrix
Definition at line 77 of file EcalEleCalibLooper.h.
Referenced by EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
DS sets the number of loops to do.
Definition at line 123 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 127 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and EcalEleCalibLooper().
|
private |
maximum coefficient accepted (RAW)
Definition at line 114 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
maximum energy per crystal cut
Definition at line 110 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
maximum number of events per crystal
Definition at line 103 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
minimum coefficient accepted (RAW)
Definition at line 112 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
minimum energy per crystal cut
Definition at line 108 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
phi end of the region of interest
Definition at line 92 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), and EBregionsNum().
|
private |
Definition at line 99 of file EcalEleCalibLooper.h.
Referenced by EEregionCheck(), EERegionId(), and EEregionsNum().
|
private |
phi start of the region of interest
Definition at line 90 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), and EBregionsNum().
|
private |
Definition at line 98 of file EcalEleCalibLooper.h.
Referenced by EEregionCheck(), EERegionId(), and EEregionsNum().
|
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.
Referenced by EBRegionId(), and EBregionsNum().
|
private |
Definition at line 100 of file EcalEleCalibLooper.h.
Referenced by EERegionId(), and EEregionsNum().
|
private |
Definition at line 95 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), and EEregionsNum().
|
private |
DS For the EE.
Definition at line 94 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), EERegionId(), and EEregionsNum().
|
private |
Definition at line 96 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EERegionId(), and EEregionsNum().
|
private |
reconstruction window size
Definition at line 73 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 74 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 134 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), and EERegionDefinition().
|
private |
to exclude the blocksolver
Definition at line 116 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 141 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and startingNewLoop().
|
private |
Definition at line 140 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().
|
private |
Definition at line 139 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().