40 : filename_(iConfig.getParameter<
std::
string>(
"fileName")),
41 minbunch_(iConfig.getParameter<
int>(
"minBunch")),
42 maxbunch_(iConfig.getParameter<
int>(
"maxBunch")),
51 <<
", maxbunch: " <<
maxbunch_ << std::endl;
55 for (
int i = 0;
i < 6;
i++)
65 size_t NrPileupEvtsSize = NrPileupEvts.size() + 1;
67 size_t NrVerticesSize = NrVertices.size() + 1;
69 size_t NrTracksSize = NrTracks.size() + 1;
71 size_t TrackPartIdSize = TrackPartId.size() + 1;
73 size_t CaloEnergyEBSize = CaloEnergyEB.size() + 1;
75 size_t CaloEnergyEESize = CaloEnergyEE.size() + 1;
77 labels[0] =
new char[NrPileupEvtsSize];
78 strncpy(
labels[0], NrPileupEvts.c_str(), NrPileupEvtsSize);
79 labels[1] =
new char[NrVerticesSize];
80 strncpy(labels[1], NrVertices.c_str(), NrVerticesSize);
81 labels[2] =
new char[NrTracksSize];
82 strncpy(labels[2], NrTracks.c_str(), NrTracksSize);
83 labels[3] =
new char[TrackPartIdSize];
84 strncpy(labels[3], TrackPartId.c_str(), TrackPartIdSize);
85 labels[4] =
new char[CaloEnergyEBSize];
86 strncpy(labels[4], CaloEnergyEB.c_str(), CaloEnergyEBSize);
87 labels[5] =
new char[CaloEnergyEESize];
88 strncpy(labels[5], CaloEnergyEE.c_str(), CaloEnergyEESize);
94 sprintf(label,
"%s_%d", labels[0],
i);
96 sprintf(label,
"%s_%d", labels[1],
i);
98 sprintf(label,
"%s_%d", labels[2],
i);
100 sprintf(label,
"%s_%d", labels[3],
i);
102 sprintf(label,
"%s_%d", labels[4],
i);
104 sprintf(label,
"%s_%d", labels[5],
i);
145 for (cfitr = coltr->begin(); cfitr != coltr->end(); cfitr++) {
150 double sumE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
153 for (cfiecalb = colecalb->begin(); cfiecalb != colecalb->end(); cfiecalb++) {
161 double sumEE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
164 for (cfiecale = colecale->begin(); cfiecale != colecale->end(); cfiecale++) {
MonitorElement * caloEnergyEEH_[nMaxH]
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]
void setCurrentFolder(std::string const &fullpath)
GlobalTest(const edm::ParameterSet &)
MonitorElement * nrPileupsH_[nMaxH]
MonitorElement * book1D(Args &&...args)
MonitorElement * nrTracksH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T const * product() const
MonitorElement * nrVerticesH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_EB_Token_
void analyze(const edm::Event &, const edm::EventSetup &) override