39 : filename_(iConfig.getParameter<
std::
string>(
"fileName")),
40 minbunch_(iConfig.getParameter<
int>(
"minBunch")),
41 maxbunch_(iConfig.getParameter<
int>(
"maxBunch")),
50 <<
", maxbunch: " <<
maxbunch_ << std::endl;
54 for (
int i = 0;
i < 6;
i++)
64 size_t NrPileupEvtsSize = NrPileupEvts.size() + 1;
66 size_t NrVerticesSize = NrVertices.size() + 1;
68 size_t NrTracksSize = NrTracks.size() + 1;
70 size_t TrackPartIdSize = TrackPartId.size() + 1;
72 size_t CaloEnergyEBSize = CaloEnergyEB.size() + 1;
74 size_t CaloEnergyEESize = CaloEnergyEE.size() + 1;
76 labels[0] =
new char[NrPileupEvtsSize];
77 strncpy(
labels[0], NrPileupEvts.c_str(), NrPileupEvtsSize);
78 labels[1] =
new char[NrVerticesSize];
79 strncpy(labels[1], NrVertices.c_str(), NrVerticesSize);
80 labels[2] =
new char[NrTracksSize];
81 strncpy(labels[2], NrTracks.c_str(), NrTracksSize);
82 labels[3] =
new char[TrackPartIdSize];
83 strncpy(labels[3], TrackPartId.c_str(), TrackPartIdSize);
84 labels[4] =
new char[CaloEnergyEBSize];
85 strncpy(labels[4], CaloEnergyEB.c_str(), CaloEnergyEBSize);
86 labels[5] =
new char[CaloEnergyEESize];
87 strncpy(labels[5], CaloEnergyEE.c_str(), CaloEnergyEESize);
93 sprintf(label,
"%s_%d", labels[0],
i);
95 sprintf(label,
"%s_%d", labels[1],
i);
97 sprintf(label,
"%s_%d", labels[2],
i);
99 sprintf(label,
"%s_%d", labels[3],
i);
101 sprintf(label,
"%s_%d", labels[4],
i);
103 sprintf(label,
"%s_%d", labels[5],
i);
144 for (cfitr = coltr->begin(); cfitr != coltr->end(); cfitr++) {
149 double sumE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
152 for (cfiecalb = colecalb->begin(); cfiecalb != colecalb->end(); cfiecalb++) {
160 double sumEE[10] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0.};
163 for (cfiecale = colecale->begin(); cfiecale != colecale->end(); cfiecale++) {
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
MonitorElement * caloEnergyEEH_[nMaxH]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setCurrentFolder(std::string const &fullpath)
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
T const * product() const
MonitorElement * nrVerticesH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_EB_Token_
void analyze(const edm::Event &, const edm::EventSetup &) override