31 #include <Math/VectorUtil.h> 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,
222 energy =
elem->energy () ;
273 elementId.
ix () - ics ,
274 elementId.
iy () - ips
277 elementId.
ix () - ics ,
278 elementId.
iy () - ips ,
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
void fillAroundBarrel(const EcalRecHitCollection *recHits, int eta, int phi)
TH2F * m_endcapGlobalCrystalsEnergyMap
ECAL EnergyMap.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< EcalRecHit >::const_iterator const_iterator
TH2F * m_endcapGlobalCrystalsEnergy
ECAL Energy.
std::string m_outputFileName
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
int iphi() const
get the crystal iphi
TH2F * m_endcapLocalCrystalsEnergy
local Energy
TH2F * m_barrelGlobalCrystalsMap
ECAL map.
edm::EDGetTokenT< EERecHitCollection > m_endcapAlCa
int ieta() const
get the crystal ieta
TH2F * m_barrelLocalCrystalsMap
local map
def elem(elemtype, innerHTML='', html_class='', kwargs)
void fillAroundEndcap(const EcalRecHitCollection *recHits, int ics, int ips)
const_iterator end() const
DetId id() const
get the id
T const * product() const
TH2F * m_endcapGlobalCrystalsMap
ECAL map.
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
TH2F * m_barrelGlobalCrystalsEnergyMap
ECAL EnergyMap.
AlCaElectronsTest(const edm::ParameterSet &)
TH2F * m_barrelGlobalCrystalsEnergy
ECAL Energy.
edm::EDGetTokenT< EBRecHitCollection > m_barrelAlCa
EcalRecHit getMaximum(const EcalRecHitCollection *recHits)
TH2F * m_barrelLocalCrystalsEnergy
local Energy
const_iterator begin() const
TH2F * m_endcapLocalCrystalsMap
local map