|
|
#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;
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");
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");
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");
117 sprintf(
s,
"CASTORTowerTotalEnergy");
121 sprintf(
s,
"CASTORJetsMultiplicity");
124 sprintf(
s,
"CASTORJetEnergy");
127 sprintf(
s,
"CASTORJetEta");
130 sprintf(
s,
"CASTORJetPhi");
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, callgraph::module, and protons_cff::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 |
std::vector< T >::const_iterator const_iterator
virtual void setOption(const char *option)
MonitorElement * hJetEnergy
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * hJetsMultipl
virtual void setCurrentFolder(std::string const &fullpath)
T getUntrackedParameter(std::string const &, T const &) const
virtual TProfile2D * getTProfile2D() const
MonitorElement * h2RHchan
MonitorElement * h2RHoccmap
const_iterator begin() const
MonitorElement * h2RHvsSec
MonitorElement * hTowerMultipl
MonitorElement * h2TowerEMhad
MonitorElement * hallchan
const_iterator end() const
MonitorElement * hTowerDepth
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * h2RHentriesMap
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string subsystemname
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
float energyInEachChannel[14][16]