41 filename_(iConfig.getParameter<
std::
string>(
"fileName")),
42 minbunch_(iConfig.getParameter<
int>(
"minBunch")),
43 maxbunch_(iConfig.getParameter<
int>(
"maxBunch")),
45 iConfig.getParameter<
edm::
InputTag>(
"cfTrackTag"))),
47 iConfig.getParameter<
edm::
InputTag>(
"cfVertexTag")))
56 std::cout <<
"Constructed GlobalTest, filename: " 65 for (
int i = 0;
i < 6;
i++)
delete[]
labels[
i];
75 size_t NrPileupEvtsSize = NrPileupEvts.size() + 1;
77 size_t NrVerticesSize = NrVertices.size() + 1;
79 size_t NrTracksSize = NrTracks.size() + 1;
81 size_t TrackPartIdSize = TrackPartId.size() + 1;
83 size_t CaloEnergyEBSize = CaloEnergyEB.size() + 1;
85 size_t CaloEnergyEESize = CaloEnergyEE.size() + 1;
87 labels[0] =
new char [NrPileupEvtsSize];
88 strncpy(
labels[0], NrPileupEvts.c_str(), NrPileupEvtsSize);
89 labels[1] =
new char [NrVerticesSize];
90 strncpy(labels[1], NrVertices.c_str(), NrVerticesSize);
91 labels[2] =
new char [NrTracksSize];
92 strncpy(labels[2], NrTracks.c_str(), NrTracksSize);
93 labels[3] =
new char [TrackPartIdSize];
94 strncpy(labels[3], TrackPartId.c_str(), TrackPartIdSize);
95 labels[4] =
new char [CaloEnergyEBSize];
96 strncpy(labels[4], CaloEnergyEB.c_str(), CaloEnergyEBSize);
97 labels[5] =
new char [CaloEnergyEESize];
98 strncpy(labels[5], CaloEnergyEE.c_str(), CaloEnergyEESize);
104 sprintf(label,
"%s_%d",labels[0],
i);
106 sprintf(label,
"%s_%d",labels[1],
i);
108 sprintf(label,
"%s_%d",labels[2],
i);
110 sprintf(label,
"%s_%d",labels[3],
i);
112 sprintf(label,
"%s_%d",labels[4],
i);
114 sprintf(label,
"%s_%d",labels[5],
i);
158 for (cfitr=coltr->begin(); cfitr!=coltr->end();cfitr++) {
163 double sumE[10]={0.,0.,0.,0.,0.,0.,0.,0.,0.,0.};
166 for (cfiecalb=colecalb->begin(); cfiecalb!=colecalb->end();cfiecalb++) {
174 double sumEE[10]={0.,0.,0.,0.,0.,0.,0.,0.,0.,0.};
177 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]
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
void setCurrentFolder(const std::string &fullpath)
T const * product() const
MonitorElement * nrVerticesH_[nMaxH]
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_EB_Token_
void analyze(const edm::Event &, const edm::EventSetup &) override