#include <CastorRecHitMonitor.h>
Definition at line 20 of file CastorRecHitMonitor.h.
◆ DQMStore
◆ MonitorElement
◆ CastorRecHitMonitor()
◆ ~CastorRecHitMonitor()
CastorRecHitMonitor::~CastorRecHitMonitor |
( |
| ) |
|
◆ bookHistograms()
Definition at line 26 of file CastorRecHitMonitor.cc.
29 std::cout <<
"CastorRecHitMonitor::bookHistograms" << std::endl;
30 ibooker.setCurrentFolder(
subsystemname +
"/CastorRecHitMonitor");
34 float ySec[nySec + 1];
35 float xSec[N_Sec + 1];
36 double E0sec = 1. / 1024.;
39 double lnBsec =
log(2.);
40 for (
int j = 1;
j < nySec;
j++)
41 ySec[
j + 1] = E0sec *
exp(
j * lnBsec);
42 for (
int i = 0;
i <= N_Sec;
i++)
45 sprintf(
s,
"Castor Energy by Sectors #Phi");
46 h2RHvsSec = ibooker.book2D(
s,
s, N_Sec, xSec, nySec, ySec);
55 for (
int i = 0;
i <= nxCh;
i++)
57 double E0 = 1. / 1024.;
61 for (
int j = 1;
j < nyE;
j++)
62 yErh[
j + 1] = E0 *
exp(
j * lnA);
64 string st =
"Castor Cell Energy Map (cell-wise)";
65 h2RHchan = ibooker.book2D(st, st +
";moduleZ*16 + sector #Phi;RecHit / GeV", nxCh, xCh, nyE, yErh);
68 sprintf(
s,
"Castor Cell Energy");
72 st =
"Castor cell avr Energy per event Map Z-Phi";
73 h2RHoccmap = ibooker.bookProfile2D(st, st +
";module Z;sector Phi", 14, 0, 14, 16, 0, 16, 0., 1.e10,
"");
76 sprintf(
s,
"CastorRecHitEntriesMap");
82 sprintf(
s,
"CastorRecHitTime");
83 hRHtime = ibooker.book1D(
s,
s, 301, -101., 200.);
85 sprintf(
s,
"CASTORTowerDepth");
89 sprintf(
s,
"CASTORTowerMultiplicity");
93 float EhadTow[NEtow + 1];
94 float EMTow[NEtow + 1];
95 float ETower[NEtow + 2];
96 double E0tow = 1. / 1024.;
103 double lnBtow =
log(2.);
104 for (
int j = 1;
j < NEtow;
j++)
105 EMTow[
j + 1] = E0tow *
exp(
j * lnBtow);
106 for (
int j = 1;
j < NEtow;
j++)
107 EhadTow[
j + 1] = E0tow *
exp(
j * lnBtow);
108 for (
int j = 1;
j <= NEtow;
j++)
109 ETower[
j + 1] = E0tow *
exp(
j * lnBtow);
111 sprintf(
s,
"CASTORTowerEMvsEhad");
112 h2TowerEMhad = ibooker.book2D(
s,
s, NEtow, EhadTow, NEtow, EMTow);
117 sprintf(
s,
"CASTORTowerTotalEnergy");
118 hTowerE = ibooker.book1D(
s,
s, NEtow + 1, ETower);
121 sprintf(
s,
"CASTORJetsMultiplicity");
124 sprintf(
s,
"CASTORJetEnergy");
127 sprintf(
s,
"CASTORJetEta");
128 hJetEta = ibooker.book1D(
s,
s, 126, -6.3, 6.3);
130 sprintf(
s,
"CASTORJetPhi");
131 hJetPhi = ibooker.book1D(
s,
s, 63, -3.15, 3.15);
134 std::cout <<
"CastorRecHitMonitor::bookHistograms(end)" << std::endl;
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile2D(), gather_cfg::cout, JetChargeProducer_cfi::exp, dqm::legacy::MonitorElement::getTProfile2D(), mps_fire::i, dqmiolumiharvest::j, dqm-mbProfile::log, alignCSCRings::s, dqm::impl::MonitorElement::setAxisTitle(), dqm::implementation::NavigatorBase::setCurrentFolder(), and dqm::impl::MonitorElement::setOption().
◆ processEvent()
Definition at line 153 of file CastorRecHitMonitor.cc.
155 std::cout <<
"CastorRecHitMonitor::processEvent (begin)" << std::endl;
157 for (
int z = 0;
z < 14;
z++)
164 if (castorHits.
empty())
167 for (CASTORiter = castorHits.
begin(); CASTORiter != castorHits.
end(); ++CASTORiter) {
168 float energy = CASTORiter->energy();
169 float time = CASTORiter->time();
178 int sector = (
int)
id.sector();
188 for (
int z = 0;
z < 14;
z++) {
190 int ind =
z * 16 +
phi + 1;
204 std::cout <<
"CastorRecHitMonitor::processEvent (end)" << std::endl;
References edm::SortedCollection< T, SORT >::begin(), gather_cfg::cout, edm::SortedCollection< T, SORT >::empty(), edm::SortedCollection< T, SORT >::end(), HCALHighEnergyHPDFilter_cfi::energy, triggerObjects_cff::id, createfilelist::int, and ntuplemaker::time.
◆ processEventJets()
◆ processEventTowers()
Definition at line 138 of file CastorRecHitMonitor.cc.
139 if (castorTowers.empty())
143 for (reco::CastorTowerCollection::const_iterator iTower = castorTowers.begin(); iTower != castorTowers.end();
146 h2TowerEMhad->
Fill(iTower->hadEnergy() * 0.001, iTower->emEnergy() * 0.001);
References ecaldqm::nTowers.
◆ energyInEachChannel
float CastorRecHitMonitor::energyInEachChannel[14][16] |
|
private |
◆ fVerbosity
int CastorRecHitMonitor::fVerbosity = 0 |
|
private |
◆ h2RecHitMap
TH2F* CastorRecHitMonitor::h2RecHitMap |
|
private |
◆ h2RHchan
◆ h2RHentriesMap
◆ h2RHmap
◆ h2RHoccmap
◆ h2RHvsSec
◆ h2TowerEMhad
◆ hallchan
◆ hJetEnergy
◆ hJetEta
◆ hJetPhi
◆ hJetsMultipl
◆ hRHtime
◆ hTowerDepth
◆ hTowerE
◆ hTowerMultipl
◆ ievt_
int CastorRecHitMonitor::ievt_ |
|
private |
◆ subsystemname
std::string CastorRecHitMonitor::subsystemname |
|
private |