24 #include "CLHEP/Units/GlobalSystemOfUnits.h"
36 <<
" Hits: " <<
zdcHits <<
" / " << checkHit_ <<
" Output: " <<
outFile_;
44 ib.
setScope(MonitorElementData::Scope::RUN);
198 bool gotZDCDigis =
true;
204 if (!(zdchandle.isValid())) {
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;
T getUntrackedParameter(std::string const &, T const &) const
const edm::EventSetup & c
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void setOption(const char *option)
#define DEFINE_FWK_MODULE(type)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
int zside() const
get the z-side of the cell (1/-1)
virtual MonitorElementData::Scope setScope(MonitorElementData::Scope newscope)
std::vector< T >::const_iterator const_iterator
MonitorElement * meZdcfCPTOT
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcfCPEMvHAD
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcfCNTOT
MonitorElement * meZdcPHAD3fCvsTS
MonitorElement * meZdcfCPHAD
MonitorElement * meZdcNHAD2fCvsTS
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * meZdcPEM3fCvsTS
const HcalQIESample & sample(int i) const
access a sample
MonitorElement * meZdcNHAD3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcNEM2fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNEM3fCvsTS
constexpr double nominal_fC() const
get the nominal FC (no calibrations applied)
MonitorElement * meZdcPHAD1fCvsTS
MonitorElement * meZdcNHAD4fCvsTS
const HcalZDCDetId & id() const
Log< level::Info, false > LogInfo
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
int channel() const
get the channel
int size() const
total number of samples in the digi
MonitorElement * meZdcNHAD1fCvsTS
Section section() const
get the section
MonitorElement * meZdcfCNHAD
MonitorElement * meZdcfCNEMvHAD
MonitorElement * meZdcPHAD4fCvsTS
ZDCDigiStudy(const edm::ParameterSet &ps)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meZdcPEM4fCvsTS
edm::EDGetTokenT< ZDCDigiCollection > tok_zdc_
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
MonitorElement * meZdcNEM5fCvsTS
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)