28 #include "CLHEP/Units/GlobalSystemOfUnits.h"
217 bool gotZDCDigis=
true;
221 if (!(iEvent.
getByLabel(
"simHcalUnsuppressedDigis",zdchandle)))
225 if (!(zdchandle.isValid()))
230 double totalPHADCharge=0;
231 double totalNHADCharge=0;
232 double totalPEMCharge=0;
233 double totalNEMCharge=0;
234 double totalPCharge=0;
235 double totalNCharge=0;
239 if (gotZDCDigis==
true){
241 zdc!=zdchandle->end();
254 for (
int i=0;
i<digi.
size();++
i)
276 for (
int i=0;
i<digi.
size();++
i)
302 for (
int i=0;
i<digi.
size();++
i)
328 for (
int i=0;
i<digi.
size();++
i)
355 totalPCharge=totalPHADCharge+totalPEMCharge;
356 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.
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
int zside() const
get the z-side of the cell (1/-1)
std::vector< T >::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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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 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.
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