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 * | moduleChanger () |
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 33 of file EcalEleCalibLooper.cc.
References qcdUeDQM_cfi::algorithm, cms::cuda::assert(), EBRegionDefinition(), EBregionsNum(), EERegionDefinition(), EEregionsNum(), PVValHelper::eta, beamvalidation::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, MillePedeFileConverter_cfg::out, phi, HLT_2018_cff::region, AlCaHLTBitMon_QueryRunRegistry::string, EBDetId::unhashIndex(), EEDetId::validDetId(), x, and y.
|
override |
dtor
LP destructor.
Definition at line 133 of file EcalEleCalibLooper.cc.
References m_EcalCalibBlocks.
|
overridevirtual |
Reimplemented from edm::EDLooperBase.
Definition at line 144 of file EcalEleCalibLooper.cc.
References isfirstcall_.
|
overridevirtual |
duringLoop return the status Kcontinue, fills the calibBlock with the recHits
Implements edm::EDLooper.
Definition at line 166 of file EcalEleCalibLooper.cc.
References funct::abs(), DetId::Ecal, EcalBarrel, EcalEndcap, HcalObjRepresent::Fill(), VFillMap::fillMap(), dqmdumpme::first, edm::EventSetup::get(), get, iEvent, 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(), and edm::Handle< T >::product().
|
private |
Tells if you are in the region to be calibrated.
Definition at line 344 of file EcalEleCalibLooper.cc.
References PVValHelper::eta, m_etaEnd, m_etaStart, m_phiEndEB, m_phiStartEB, and phi.
Referenced by EBRegionId().
|
private |
DS EB Region Definition.
Definition at line 448 of file EcalEleCalibLooper.cc.
References EBRegionId(), EBregionsNum(), PVValHelper::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 390 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 438 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 503 of file EcalEleCalibLooper.cc.
References degrees(), Ecal07UnpackerData_cfi::ics, m_phiEndEE, m_phiStartEE, m_radEnd, m_radStart, phi, x, and y.
Referenced by EERegionId().
|
private |
Definition at line 466 of file EcalEleCalibLooper.cc.
References bsc_activity_cfg::EBnum, EBregionsNum(), bsc_activity_cfg::EEnum, EERegionId(), EEregionsNum(), Ecal07UnpackerData_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 406 of file EcalEleCalibLooper.cc.
References degrees(), EEregionCheck(), Ecal07UnpackerData_cfi::ics, 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 428 of file EcalEleCalibLooper.cc.
References m_phiEndEE, m_phiStartEE, m_phiWidthEE, m_radEnd, m_radStart, and m_radWidth.
Referenced by EcalEleCalibLooper(), and EERegionDefinition().
|
overridevirtual |
LP endOfJob writes the coefficients in the xml format and exits
Reimplemented from edm::EDLooperBase.
Definition at line 320 of file EcalEleCalibLooper.cc.
References EcalBarrel, EcalEndcap, m_barrelCells, m_barrelMap, m_endcapCells, m_endcapMap, and calibXMLwriter::writeLine().
|
overridevirtual |
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 249 of file EcalEleCalibLooper.cc.
References corrVsCorr::filename, EBDetId::ieta(), 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 529 of file EcalEleCalibLooper.cc.
References cms::cuda::assert().
|
private |
copes with the infinitives of the tangent
Definition at line 369 of file EcalEleCalibLooper.cc.
References degrees(), radiants(), and funct::tan().
|
overridevirtual |
startingNewLoop empties the map of the calibBlock so that it can be filled
Implements edm::EDLooperBase.
Definition at line 150 of file EcalEleCalibLooper.cc.
References m_EcalCalibBlocks, and m_xtalNumOfHits.
|
private |
Definition at line 138 of file EcalEleCalibLooper.h.
Referenced by beginOfJob(), and duringLoop().
|
private |
EcalBarrel Input Collection name.
Definition at line 63 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 131 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
the maps of recalib coeffs
Definition at line 114 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
single blocks calibrators
Definition at line 101 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfLoop(), startingNewLoop(), and ~EcalEleCalibLooper().
|
private |
To take the electrons.
Definition at line 120 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
EcalEndcap Input Collection name.
Definition at line 65 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 132 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
Definition at line 115 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
eta end of the region of interest
Definition at line 83 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 81 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
eta size of the sub-matrix
Definition at line 72 of file EcalEleCalibLooper.h.
Referenced by EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
DS sets the number of loops to do.
Definition at line 118 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 122 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and EcalEleCalibLooper().
|
private |
maximum coefficient accepted (RAW)
Definition at line 109 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
maximum energy per crystal cut
Definition at line 105 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
maximum number of events per crystal
Definition at line 98 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
minimum coefficient accepted (RAW)
Definition at line 107 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
minimum energy per crystal cut
Definition at line 103 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
phi end of the region of interest
Definition at line 87 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), and EBregionsNum().
|
private |
Definition at line 94 of file EcalEleCalibLooper.h.
Referenced by EEregionCheck(), EERegionId(), and EEregionsNum().
|
private |
phi start of the region of interest
Definition at line 85 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), and EBregionsNum().
|
private |
Definition at line 93 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 76 of file EcalEleCalibLooper.h.
Referenced by EBRegionId(), and EBregionsNum().
|
private |
Definition at line 95 of file EcalEleCalibLooper.h.
Referenced by EERegionId(), and EEregionsNum().
|
private |
Definition at line 90 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), and EEregionsNum().
|
private |
DS For the EE.
Definition at line 89 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), EERegionId(), and EEregionsNum().
|
private |
Definition at line 91 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EERegionId(), and EEregionsNum().
|
private |
reconstruction window size
Definition at line 68 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 69 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 129 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), and EERegionDefinition().
|
private |
to exclude the blocksolver
Definition at line 111 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 136 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and startingNewLoop().
|
private |
Definition at line 135 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().
|
private |
Definition at line 134 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().