24 #include <fmt/format.h>
41 : filename_(iConfig.getParameter<std::
string>(
"fileName")),
42 minbunch_(iConfig.getParameter<int>(
"minBunch")),
43 maxbunch_(iConfig.getParameter<int>(
"maxBunch")),
52 <<
", maxbunch: " <<
maxbunch_ << std::endl;
114 for (cfitr = coltr->begin(); cfitr != coltr->end(); cfitr++) {
119 double sumE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
122 for (cfiecalb = colecalb->begin(); cfiecalb != colecalb->end(); cfiecalb++) {
123 sumE[cfiecalb.bunch() -
minbunch_] += cfiecalb->energy();
130 double sumEE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
133 for (cfiecale = colecale->begin(); cfiecale != colecale->end(); cfiecale++) {
134 sumEE[cfiecale.bunch() -
minbunch_] += cfiecale->energy();
MonitorElement * caloEnergyEEH_[nMaxH]
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_EE_Token_
MonitorElement * trackPartIdH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfTrackToken_
MonitorElement * caloEnergyEBH_[nMaxH]
GlobalTest(const edm::ParameterSet &)
MonitorElement * nrPileupsH_[nMaxH]
MonitorElement * nrTracksH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * nrVerticesH_[nMaxH]
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_EB_Token_
void analyze(const edm::Event &, const edm::EventSetup &) override