ECAL TB 2006 calibration with matrix inversion technique. More...
#include <InvRingCalib.h>
Private Member Functions | |
int | EBRegId (const int) |
Gives back in which region you are: More... | |
void | EBRegionDef () |
Defines the regions in the barrel. More... | |
int | EBRegionNum () const |
Number of regions in EB. More... | |
int | EERegId (int) |
gives back in which region of the endcap you are. More... | |
void | EERegionDef () |
Defines the regions in the endcap. More... | |
int | EERegionNum () const |
The number of regions in EE. More... | |
void | EERingDef (const edm::EventSetup &) |
Defines the rins in the endcap. More... | |
void | RegPrepare () |
Prepares the EB regions;. More... | |
Private Attributes | |
bool | isfirstcall_ |
edm::InputTag | m_barrelAlCa |
EcalBarrel Input Collection name. More... | |
std::vector< DetId > | m_barrelCells |
geometry things used all over the file More... | |
EcalIntercalibConstantMap | m_barrelMap |
std::map< int, int > | m_cellPhi |
std::map< int, GlobalPoint > | m_cellPos |
position of the cell, borders, coords etc... More... | |
std::string | m_EBcoeffFile |
coeffs filenames More... | |
std::string | m_EEcoeffFile |
int | m_EEZone |
endcap zone to be calibrated 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_endRing |
int | m_etaEnd |
eta end of the zone of interest More... | |
int | m_etaStart |
eta start of the zone of interest More... | |
int | m_etaWidth |
eta size of the regions More... | |
std::vector< VEcalCalibBlock * > | m_IMACalibBlocks |
single blocks calibrators More... | |
unsigned int | m_loops |
LP sets the number of loops to do. More... | |
VFillMap * | m_MapFiller |
The class that fills the map! More... | |
std::string | m_mapFillerType |
double | m_maxCoeff |
maximum coefficient accepted (RAW) More... | |
double | m_maxEnergyPerCrystal |
maximum energy per crystal cut More... | |
int | m_maxSelectedNumPerRing |
maximum number of events per Ring More... | |
double | m_minCoeff |
minimum coefficient accepted (RAW) More... | |
double | m_minEnergyPerCrystal |
minimum energy per crystal cut More... | |
int | m_recoWindowSidex |
reconstruction window size More... | |
int | m_recoWindowSidey |
std::map< int, int > | m_Reg |
EB regions vs. eta index. More... | |
std::map< int, int > | m_RinginRegion |
association map between raw detIds and the number of the ring inside the region More... | |
std::map< int, int > | m_RingNumOfHits |
number of events already read per Ring More... | |
int | m_startRing |
LP define the EE region to calibrate. More... | |
int | m_usingBlockSolver |
to exclude the blocksolver More... | |
std::map< int, int > | m_xtalRegionId |
association map between raw detIds and Region More... | |
std::map< int, int > | m_xtalRing |
association map between Raw detIds and Rings More... | |
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 27 of file InvRingCalib.h.
|
explicit |
ctor
Definition at line 30 of file InvRingCalib.cc.
References funct::abs(), HLT_FULL_cff::algorithm, assert(), EBRegionNum(), EERegionNum(), cmsRelvalreport::exit, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), i, m_EEZone, m_endRing, m_etaEnd, m_etaStart, m_etaWidth, m_IMACalibBlocks, m_loops, m_mapFillerType, m_startRing, and AlCaHLTBitMon_QueryRunRegistry::string.
InvRingCalib::~InvRingCalib | ( | ) |
|
virtual |
Reimplemented from edm::EDLooperBase.
Definition at line 130 of file InvRingCalib.cc.
References isfirstcall_.
|
virtual |
duringLoop
Implements edm::EDLooper.
Definition at line 165 of file InvRingCalib.cc.
References DetId::det(), EBRegionDef(), DetId::Ecal, EcalBarrel, EcalEndcap, EERegionDef(), EERingDef(), HcalObjRepresent::Fill(), VFillMap::fillMap(), plotBeamSpotDB::first, geometry, edm::EventSetup::get(), CaloMiscalibMapEcal::get(), edm::Event::getByLabel(), EcalCondObjectContainer< T >::getMap(), CaloGeometry::getValidDetIds(), EBDetId::ieta(), EBDetId::iphi(), isfirstcall_, edm::HandleBase::isValid(), EEDetId::ix(), EEDetId::iy(), edm::EDLooperBase::kContinue, m_barrelAlCa, m_barrelCells, m_barrelMap, m_EBcoeffFile, m_EEcoeffFile, m_ElectronLabel, m_endcapAlCa, m_endcapCells, m_endcapMap, m_IMACalibBlocks, m_MapFiller, m_mapFillerType, m_maxEnergyPerCrystal, m_minEnergyPerCrystal, m_recoWindowSidex, m_recoWindowSidey, m_RinginRegion, m_RingNumOfHits, m_xtalRegionId, m_xtalRing, Max(), GenerateHcalLaserBadRunList::out, MiscalibReaderFromXML::parseXMLMiscalibFile(), CaloMiscalibMapEcal::prefillMap(), edm::Handle< T >::product(), DetId::rawId(), and EEDetId::zside().
|
private |
Gives back in which region you are:
gives the region Id given ieta
Definition at line 609 of file InvRingCalib.cc.
References m_etaEnd, and m_Reg.
Referenced by EBRegionDef().
|
private |
Defines the regions in the barrel.
Definition at line 620 of file InvRingCalib.cc.
References EBRegId(), m_barrelCells, m_etaStart, m_etaWidth, m_RinginRegion, m_xtalRegionId, m_xtalRing, and RegPrepare().
Referenced by duringLoop().
|
private |
Number of regions in EB.
number of Ring in EB
Definition at line 586 of file InvRingCalib.cc.
References m_etaEnd, m_etaStart, and m_etaWidth.
Referenced by EERegionDef(), and InvRingCalib().
|
private |
gives back in which region of the endcap you are.
Gives the Id of the region given the id of the xtal.
Definition at line 518 of file InvRingCalib.cc.
References m_EEZone, m_endRing, m_etaWidth, m_RinginRegion, m_startRing, m_xtalRing, relativeConstraints::ring, and EEDetId::zside().
Referenced by EERegionDef().
|
private |
Defines the regions in the endcap.
Loops over all the endcap xtals and sets for each xtal the value of the region the xtal is in, and the ringNumber inside the region
Definition at line 555 of file InvRingCalib.cc.
References EBRegionNum(), EERegId(), EERegionNum(), m_endcapCells, m_xtalRegionId, and EEDetId::zside().
Referenced by duringLoop().
|
inlineprivate |
The number of regions in EE.
Number of Regions in EE.
Definition at line 579 of file InvRingCalib.cc.
References m_endRing, m_etaWidth, and m_startRing.
Referenced by EERegionDef(), and InvRingCalib().
|
private |
Defines the rins in the endcap.
EE ring definition.
Definition at line 455 of file InvRingCalib.cc.
References DetId::Ecal, EcalEndcap, geometry, edm::EventSetup::get(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), CaloGeometry::getSubdetectorGeometry(), m_cellPhi, m_cellPos, m_endcapCells, m_xtalRing, PV3DBase< T, PVType, FrameType >::phi(), DetId::rawId(), relativeConstraints::ring, EEDetId::validDetId(), EEDetId::XYMODE, and EEDetId::zside().
Referenced by duringLoop().
|
virtual |
Reimplemented from edm::EDLooperBase.
Definition at line 426 of file InvRingCalib.cc.
References EcalBarrel, EcalEndcap, m_barrelCells, m_barrelMap, m_endcapCells, m_endcapMap, and calibXMLwriter::writeLine().
|
virtual |
Called after the system has finished one loop over the events. Thar argument is a count of how many loops have been processed before this loo. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 342 of file InvRingCalib.cc.
References lut2db_cfg::filename, citk::for(), edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, m_barrelCells, m_barrelMap, m_endcapCells, m_endcapMap, m_IMACalibBlocks, m_loops, m_maxCoeff, m_minCoeff, m_RinginRegion, m_RingNumOfHits, m_usingBlockSolver, m_xtalRegionId, m_xtalRing, and GenerateHcalLaserBadRunList::out.
|
private |
Prepares the EB regions;.
Divides the barrel in region, necessary to take into account the missing 0 xtal
Definition at line 598 of file InvRingCalib.cc.
References i, relval_2017::k, m_etaEnd, m_etaStart, m_etaWidth, and m_Reg.
Referenced by EBRegionDef().
|
virtual |
startingNewLoop
Implements edm::EDLooperBase.
Definition at line 142 of file InvRingCalib.cc.
References m_IMACalibBlocks, m_RingNumOfHits, m_xtalRing, and relativeConstraints::ring.
|
private |
Definition at line 127 of file InvRingCalib.h.
Referenced by beginOfJob(), and duringLoop().
|
private |
EcalBarrel Input Collection name.
Definition at line 66 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
geometry things used all over the file
Definition at line 117 of file InvRingCalib.h.
Referenced by duringLoop(), EBRegionDef(), endOfJob(), and endOfLoop().
|
private |
association map between coeff and ring coeffs for the single xtals
Definition at line 102 of file InvRingCalib.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
Definition at line 99 of file InvRingCalib.h.
Referenced by EERingDef().
|
private |
position of the cell, borders, coords etc...
Definition at line 98 of file InvRingCalib.h.
Referenced by EERingDef().
|
private |
|
private |
Definition at line 121 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
endcap zone to be calibrated
Definition at line 123 of file InvRingCalib.h.
Referenced by EERegId(), and InvRingCalib().
|
private |
|
private |
EcalEndcap Input Collection name.
Definition at line 68 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
Definition at line 118 of file InvRingCalib.h.
Referenced by duringLoop(), EERegionDef(), EERingDef(), endOfJob(), and endOfLoop().
|
private |
Definition at line 103 of file InvRingCalib.h.
Referenced by duringLoop(), endOfJob(), and endOfLoop().
|
private |
Definition at line 108 of file InvRingCalib.h.
Referenced by EERegId(), EERegionNum(), and InvRingCalib().
|
private |
eta end of the zone of interest
Definition at line 81 of file InvRingCalib.h.
Referenced by EBRegId(), EBRegionNum(), InvRingCalib(), and RegPrepare().
|
private |
eta start of the zone of interest
Definition at line 79 of file InvRingCalib.h.
Referenced by EBRegionDef(), EBRegionNum(), InvRingCalib(), and RegPrepare().
|
private |
eta size of the regions
Definition at line 83 of file InvRingCalib.h.
Referenced by EBRegionDef(), EBRegionNum(), EERegId(), EERegionNum(), InvRingCalib(), and RegPrepare().
|
private |
single blocks calibrators
Definition at line 90 of file InvRingCalib.h.
Referenced by duringLoop(), endOfLoop(), InvRingCalib(), and startingNewLoop().
|
private |
LP sets the number of loops to do.
Definition at line 105 of file InvRingCalib.h.
Referenced by endOfLoop(), and InvRingCalib().
|
private |
The class that fills the map!
Definition at line 62 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
Definition at line 126 of file InvRingCalib.h.
Referenced by duringLoop(), and InvRingCalib().
|
private |
maximum coefficient accepted (RAW)
Definition at line 94 of file InvRingCalib.h.
Referenced by endOfLoop().
|
private |
maximum energy per crystal cut
Definition at line 77 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
maximum number of events per Ring
Definition at line 86 of file InvRingCalib.h.
|
private |
minimum coefficient accepted (RAW)
Definition at line 92 of file InvRingCalib.h.
Referenced by endOfLoop().
|
private |
minimum energy per crystal cut
Definition at line 75 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
reconstruction window size
Definition at line 72 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
Definition at line 73 of file InvRingCalib.h.
Referenced by duringLoop().
|
private |
EB regions vs. eta index.
Definition at line 125 of file InvRingCalib.h.
Referenced by EBRegId(), and RegPrepare().
|
private |
association map between raw detIds and the number of the ring inside the region
Definition at line 114 of file InvRingCalib.h.
Referenced by duringLoop(), EBRegionDef(), EERegId(), and endOfLoop().
|
private |
number of events already read per Ring
Definition at line 88 of file InvRingCalib.h.
Referenced by duringLoop(), endOfLoop(), and startingNewLoop().
|
private |
LP define the EE region to calibrate.
Definition at line 107 of file InvRingCalib.h.
Referenced by EERegId(), EERegionNum(), and InvRingCalib().
|
private |
|
private |
association map between raw detIds and Region
Definition at line 112 of file InvRingCalib.h.
Referenced by duringLoop(), EBRegionDef(), EERegionDef(), and endOfLoop().
|
private |
association map between Raw detIds and Rings
Definition at line 110 of file InvRingCalib.h.
Referenced by duringLoop(), EBRegionDef(), EERegId(), EERingDef(), endOfLoop(), and startingNewLoop().