|
|
Go to the documentation of this file.
24 #include "CLHEP/Units/GlobalSystemOfUnits.h"
42 ib.setCurrentFolder(
"ZDCDigiValidation");
44 ib.setScope(MonitorElementData::Scope::RUN);
58 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/1D_fC");
59 meZdcfCPHAD =
ib.book1D(
"PHAD_TotalfC",
"PZDC_HAD_TotalfC", 1000, -50, 10000);
63 meZdcfCPTOT =
ib.book1D(
"PZDC_TotalfC",
"PZDC_TotalfC", 1000, -50, 20000);
67 meZdcfCNHAD =
ib.book1D(
"NHAD_TotalfC",
"NZDC_HAD_TotalfC", 1000, -50, 10000);
71 meZdcfCNTOT =
ib.book1D(
"NZDC_TotalfC",
"NZDC_TotalfC", 1000, -50, 20000);
77 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/fCvsTS/PZDC");
124 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/fCvsTS/NZDC");
173 ib.setCurrentFolder(
"ZDCDigiValidation/ZDC_Digis/2D_EMvHAD");
176 meZdcfCPEMvHAD =
ib.book2D(
"PEMvPHAD",
"PZDC_EMvHAD", 200, -25, 12000, 200, -25, 15000);
181 meZdcfCNEMvHAD =
ib.book2D(
"NEMvNHAD",
"NZDC_EMvHAD", 1000, -25, 12000, 1000, -25, 15000);
198 bool gotZDCDigis =
true;
208 double totalPHADCharge = 0;
209 double totalNHADCharge = 0;
210 double totalPEMCharge = 0;
211 double totalNEMCharge = 0;
212 double totalPCharge = 0;
213 double totalNCharge = 0;
216 if (gotZDCDigis ==
true) {
225 for (
int i = 0;
i < digi.
size(); ++
i)
248 if (
i == 4 ||
i == 5 ||
i == 6)
252 for (
int i = 0;
i < digi.
size(); ++
i) {
273 if (
i == 4 ||
i == 5 ||
i == 6)
282 for (
int i = 0;
i < digi.
size(); ++
i) {
308 if (
i == 4 ||
i == 5 ||
i == 6)
312 for (
int i = 0;
i < digi.
size(); ++
i) {
338 if (
i == 4 ||
i == 5 ||
i == 6)
344 totalPCharge = totalPHADCharge + (0.1) * totalPEMCharge;
345 totalNCharge = totalNHADCharge + (0.1) * totalNEMCharge;
MonitorElement * meZdcfCNEMvHAD
MonitorElement * meZdcfCPEMvHAD
constexpr double nominal_fC() const
get the nominal FC (no calibrations applied)
std::vector< T >::const_iterator const_iterator
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcfCNTOT
MonitorElement * meZdcPHAD4fCvsTS
virtual void setOption(const char *option)
edm::EDGetTokenT< ZDCDigiCollection > tok_zdc_
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
MonitorElement * meZdcfCPHAD
int channel() const
get the channel
void analyze(const edm::Event &e, const edm::EventSetup &c) override
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
MonitorElement * meZdcNEM2fCvsTS
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
const HcalZDCDetId & id() const
int size() const
total number of samples in the digi
MonitorElement * meZdcfCPTOT
MonitorElement * meZdcPHAD3fCvsTS
const HcalQIESample & sample(int i) const
access a sample
int zside() const
get the z-side of the cell (1/-1)
MonitorElement * meZdcNHAD2fCvsTS
const_iterator end() const
MonitorElement * meZdcPEM3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcPEM4fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNHAD3fCvsTS
ZDCDigiStudy(const edm::ParameterSet &ps)
MonitorElement * meZdcNEM3fCvsTS
MonitorElement * meZdcNEM5fCvsTS
MonitorElement * meZdcNHAD4fCvsTS
MonitorElement * meZdcPHAD1fCvsTS
Section section() const
get the section
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meZdcNHAD1fCvsTS
MonitorElement * meZdcfCNHAD
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override