28 #include "CLHEP/Units/GlobalSystemOfUnits.h"
219 bool gotZDCDigis=
true;
227 if (!(zdchandle.isValid()))
232 double totalPHADCharge=0;
233 double totalNHADCharge=0;
234 double totalPEMCharge=0;
235 double totalNEMCharge=0;
236 double totalPCharge=0;
237 double totalNCharge=0;
241 if (gotZDCDigis==
true){
243 zdc!=zdchandle->end();
256 for (
int i=0;
i<digi.
size();++
i)
278 for (
int i=0;
i<digi.
size();++
i)
304 for (
int i=0;
i<digi.
size();++
i)
330 for (
int i=0;
i<digi.
size();++
i)
357 totalPCharge=totalPHADCharge+totalPEMCharge;
358 totalNCharge=totalNHADCharge+totalNEMCharge;
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
int zside() const
get the z-side of the cell (1/-1)
std::vector< ZDCDataFrame >::const_iterator const_iterator
MonitorElement * meZdcfCPTOT
MonitorElement * meZdcPEM1fCvsTS
MonitorElement * meZdcfCPEMvHAD
MonitorElement * meZdcPHAD2fCvsTS
MonitorElement * meZdcfCNTOT
MonitorElement * meZdcPHAD3fCvsTS
MonitorElement * meZdcfCPHAD
MonitorElement * meZdcNHAD2fCvsTS
MonitorElement * meZdcPEM3fCvsTS
const HcalQIESample & sample(int i) const
access a sample
void endRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * meZdcNHAD3fCvsTS
MonitorElement * meZdcPEM2fCvsTS
MonitorElement * meZdcNEM2fCvsTS
MonitorElement * meZdcNEM4fCvsTS
MonitorElement * meZdcNEM3fCvsTS
void setVerbose(unsigned level)
Section section() const
get the section
MonitorElement * meZdcPHAD1fCvsTS
MonitorElement * meZdcNHAD4fCvsTS
const HcalZDCDetId & id() const
double nominal_fC() const
get the nominal FC (no calibrations applied)
TH1F * getTH1F(void) const
int channel() const
get the channel
int size() const
total number of samples in the digi
MonitorElement * meZdcNHAD1fCvsTS
MonitorElement * meZdcfCNHAD
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * meZdcfCNEMvHAD
MonitorElement * meZdcPHAD4fCvsTS
void showDirStructure(void) const
ZDCDigiStudy(const edm::ParameterSet &ps)
TH2F * getTH2F(void) const
MonitorElement * meZdcPEM4fCvsTS
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
edm::EDGetTokenT< ZDCDigiCollection > tok_zdc_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meZdcPEM5fCvsTS
MonitorElement * meZdcNEM1fCvsTS
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meZdcNEM5fCvsTS