Go to the documentation of this file.
31 #include <Math/VectorUtil.h>
84 m_outputFileName (iConfig.getUntrackedParameter<
std::
string>
85 (
"HistOutFile",
std::
string (
"AlCaElectronsTest.root")))
140 std::cout <<
"[AlCaElectronsTest] analysing event "
141 <<
iEvent.id () << std::endl ;
147 if (!barrelRecHitsHandle.
isValid()) {
150 std::cerr <<
"[AlCaElectronsTest] caught std::exception "
151 <<
" in rertieving " <<
labels.module
160 barrelMaxId.ieta () ,
164 barrelMaxId.ieta () ,
165 barrelMaxId.iphi () ,
169 barrelHitsCollection,
178 if (!endcapRecHitsHandle.
isValid()) {
181 std::cerr <<
"[AlCaElectronsTest] caught std::exception "
182 <<
" in rertieving " <<
labels.module
200 endcapHitsCollection,
220 if (elem->energy () >
energy)
222 energy = elem->energy () ;
240 EBDetId elementId = elem->id () ;
271 EEDetId elementId = elem->id () ;
273 elementId.
ix () -
ics ,
274 elementId.
iy () - ips
277 elementId.
ix () -
ics ,
278 elementId.
iy () - ips ,
void fillAroundBarrel(const EcalRecHitCollection *recHits, int eta, int phi)
TH2F * m_barrelLocalCrystalsEnergy
local Energy
int ieta() const
get the crystal ieta
std::vector< EcalRecHit >::const_iterator const_iterator
TH2F * m_endcapGlobalCrystalsEnergy
ECAL Energy.
T const * product() const
DetId id() const
get the id
TH2F * m_endcapLocalCrystalsMap
local map
std::string m_outputFileName
TH2F * m_endcapGlobalCrystalsEnergyMap
ECAL EnergyMap.
TH2F * m_barrelGlobalCrystalsMap
ECAL map.
void fillAroundEndcap(const EcalRecHitCollection *recHits, int ics, int ips)
edm::EDGetTokenT< EERecHitCollection > m_endcapAlCa
TH2F * m_endcapLocalCrystalsEnergy
local Energy
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
TH2F * m_barrelLocalCrystalsMap
local map
EcalRecHit getMaximum(const EcalRecHitCollection *recHits)
TH2F * m_barrelGlobalCrystalsEnergy
ECAL Energy.
TH2F * m_barrelGlobalCrystalsEnergyMap
ECAL EnergyMap.
int iphi() const
get the crystal iphi
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
TH2F * m_endcapGlobalCrystalsMap
ECAL map.
edm::EDGetTokenT< EBRecHitCollection > m_barrelAlCa
AlCaElectronsTest(const edm::ParameterSet &)