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_ |
const edm::InputTag | m_barrelAlCa |
EcalBarrel Input Collection name. More... | |
std::vector< DetId > | m_barrelCells |
EcalIntercalibConstantMap | m_barrelMap |
the maps of recalib coeffs More... | |
const edm::EDGetTokenT< EBRecHitCollection > | m_ebRecHitToken |
ED token. More... | |
std::vector< VEcalCalibBlock * > | m_EcalCalibBlocks |
single blocks calibrators More... | |
const edm::EDGetTokenT< EERecHitCollection > | m_eeRecHitToken |
edm::InputTag | m_ElectronLabel |
To take the electrons. More... | |
const edm::InputTag | m_endcapAlCa |
EcalEndcap Input Collection name. More... | |
std::vector< DetId > | m_endcapCells |
EcalIntercalibConstantMap | m_endcapMap |
const int | m_etaEnd |
eta end of the region of interest More... | |
const int | m_etaStart |
phi size of the additive border to the sub-matrix More... | |
const int | m_etaWidth |
eta size of the sub-matrix More... | |
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | m_geometryToken |
ES token. More... | |
const edm::EDGetTokenT< reco::GsfElectronCollection > | m_gsfElectronToken |
const unsigned int | m_loops |
DS sets the number of loops to do. More... | |
VFillMap * | m_MapFiller |
const double | m_maxCoeff |
maximum coefficient accepted (RAW) More... | |
const double | m_maxEnergyPerCrystal |
maximum energy per crystal cut More... | |
const int | m_maxSelectedNumPerXtal |
maximum number of events per crystal More... | |
const double | m_minCoeff |
minimum coefficient accepted (RAW) More... | |
const double | m_minEnergyPerCrystal |
minimum energy per crystal cut More... | |
const int | m_phiEndEB |
phi end of the region of interest More... | |
const int | m_phiEndEE |
const int | m_phiStartEB |
phi start of the region of interest More... | |
const int | m_phiStartEE |
const int | m_phiWidthEB |
eta size of the additive border to the sub-matrix More... | |
const int | m_phiWidthEE |
const int | m_radEnd |
const int | m_radStart |
DS For the EE. More... | |
const int | m_radWidth |
const int | m_recoWindowSidex |
reconstruction window size More... | |
const int | m_recoWindowSidey |
std::vector< int > | m_regions |
const 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 } |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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... | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
ECAL TB 2006 calibration with matrix inversion technique.
Definition at line 34 of file EcalEleCalibLooper.h.
|
explicit |
ctor
LP ctor.
Graphs to ckeck the region definition
End of Graphs
Definition at line 29 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_2023v12_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::getData(), SiStripPI::getMaximum(), iEvent, isfirstcall_, edm::HandleBase::isValid(), edm::EDLooperBase::kContinue, m_barrelCells, m_barrelMap, m_ebRecHitToken, m_EcalCalibBlocks, m_eeRecHitToken, m_endcapCells, m_endcapMap, m_geometryToken, m_gsfElectronToken, m_MapFiller, m_maxSelectedNumPerXtal, m_xtalNumOfHits, m_xtalRegionId, METSkim_cff::Max, and edm::Handle< T >::product().
|
private |
Tells if you are in the region to be calibrated.
Definition at line 342 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 446 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 388 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 436 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 501 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 464 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 404 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 426 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 318 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 247 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 527 of file EcalEleCalibLooper.cc.
References cms::cuda::assert().
|
private |
copes with the infinitives of the tangent
Definition at line 367 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 140 of file EcalEleCalibLooper.h.
Referenced by beginOfJob(), and duringLoop().
|
private |
EcalBarrel Input Collection name.
Definition at line 65 of file EcalEleCalibLooper.h.
|
private |
Definition at line 133 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
the maps of recalib coeffs
Definition at line 118 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
|
private |
single blocks calibrators
Definition at line 105 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfLoop(), startingNewLoop(), and ~EcalEleCalibLooper().
|
private |
Definition at line 144 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
To take the electrons.
Definition at line 69 of file EcalEleCalibLooper.h.
|
private |
EcalEndcap Input Collection name.
Definition at line 67 of file EcalEleCalibLooper.h.
|
private |
Definition at line 134 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
Definition at line 119 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EcalEleCalibLooper(), endOfJob(), and endOfLoop().
|
private |
eta end of the region of interest
Definition at line 87 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 85 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
eta size of the sub-matrix
Definition at line 76 of file EcalEleCalibLooper.h.
Referenced by EBRegionId(), EBregionsNum(), and EcalEleCalibLooper().
|
private |
|
private |
Definition at line 145 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
DS sets the number of loops to do.
Definition at line 122 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 124 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and EcalEleCalibLooper().
|
private |
maximum coefficient accepted (RAW)
Definition at line 113 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
maximum energy per crystal cut
Definition at line 109 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
maximum number of events per crystal
Definition at line 102 of file EcalEleCalibLooper.h.
Referenced by duringLoop().
|
private |
minimum coefficient accepted (RAW)
Definition at line 111 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
minimum energy per crystal cut
Definition at line 107 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
phi end of the region of interest
Definition at line 91 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 |
phi start of the region of interest
Definition at line 89 of file EcalEleCalibLooper.h.
Referenced by EBregionCheck(), EBRegionId(), and EBregionsNum().
|
private |
Definition at line 97 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 80 of file EcalEleCalibLooper.h.
Referenced by EBRegionId(), and EBregionsNum().
|
private |
Definition at line 99 of file EcalEleCalibLooper.h.
Referenced by EERegionId(), and EEregionsNum().
|
private |
Definition at line 94 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), and EEregionsNum().
|
private |
DS For the EE.
Definition at line 93 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EEregionCheck(), EERegionId(), and EEregionsNum().
|
private |
Definition at line 95 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper(), EERegionId(), and EEregionsNum().
|
private |
reconstruction window size
Definition at line 72 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 73 of file EcalEleCalibLooper.h.
Referenced by EcalEleCalibLooper().
|
private |
Definition at line 131 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), and EERegionDefinition().
|
private |
to exclude the blocksolver
Definition at line 115 of file EcalEleCalibLooper.h.
Referenced by endOfLoop().
|
private |
Definition at line 138 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), and startingNewLoop().
|
private |
Definition at line 137 of file EcalEleCalibLooper.h.
Referenced by EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().
|
private |
Definition at line 136 of file EcalEleCalibLooper.h.
Referenced by duringLoop(), EBRegionDefinition(), EcalEleCalibLooper(), EERegionDefinition(), and endOfLoop().