30 : filename_(iConfig.getParameter<std::
string>(
"fileName")),
31 bunchcr_(iConfig.getParameter<int>(
"BunchNr")),
32 minbunch_(iConfig.getParameter<int>(
"minBunch")),
33 maxbunch_(iConfig.getParameter<int>(
"maxBunch")),
69 std::string subdetTracker(
"g4SimHitsTrackerHitsTECLowTof");
83 char histotracks[30], sighistotracks[30], histotracksindsig[30], histotracksind[30];
84 sprintf(histotracks,
"Tracks_bcr_%d",
bunchcr_);
85 sprintf(sighistotracks,
"SignalTracks_bcr_%d",
bunchcr_);
86 sprintf(histotracksind,
"VtxPointers_%d",
bunchcr_);
87 sprintf(histotracksindsig,
"VtxPointers_signal_%d",
bunchcr_);
96 for (cfi1 = col1->begin(); cfi1 != col1->end(); cfi1++) {
97 if (cfi1.getTrigger() == 0) {
98 trhist->Fill(cfi1.bunch());
99 trindhist->Fill(cfi1->vertIndex());
101 trindhistsig->Fill(cfi1->vertIndex());
102 trhistsig->Fill(cfi1.bunch());
107 char histovertices[30], sighistovertices[30], histovertexindices[30], histovertexindicessig[30];
108 sprintf(histovertices,
"Vertices_bcr_%d",
bunchcr_);
109 sprintf(sighistovertices,
"SignalVertices_bcr_%d",
bunchcr_);
110 sprintf(histovertexindices,
"TrackPointers_%d",
bunchcr_);
111 sprintf(histovertexindicessig,
"TrackPointers_signal_%d",
bunchcr_);
120 for (cfi2 = col2->begin(); cfi2 != col2->end(); cfi2++) {
121 if (cfi2.getTrigger() == 0) {
122 vtxhist->Fill(cfi2.bunch());
123 if (!cfi2->noParent())
124 vtxindhist->Fill(cfi2->parentIndex());
126 vtxhistsig->Fill(cfi2.bunch());
127 if (!cfi2->noParent())
128 vtxindhistsig->Fill(cfi2->parentIndex());
133 int bsp = cf_simhit->getBunchSpace();
136 sprintf(tof,
"TrackerHit_Tof_bcr_%d",
bunchcr_);
139 sprintf(tof,
"SignalTrackerHit_Tof_bcr_%d",
bunchcr_);
141 dbe_->
book1D(tof,
"TrackerHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
144 for (cfish = colsh->begin(); cfish != colsh->end(); cfish++) {
145 if (cfish.getTrigger()) {
146 tofhist_sig->Fill(cfish->timeOfFlight());
148 tofhist->Fill(cfish->timeOfFlight());
153 sprintf(tof,
"EcalEBHit_Tof_bcr_%d",
bunchcr_);
155 dbe_->
book1D(tof,
"EcalEBHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
156 sprintf(tof,
"SignalEcalEBHit_Tof_bcr_%d",
bunchcr_);
158 dbe_->
book1D(tof,
"EcalEBHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
162 for (cfiecal = colecal->begin(); cfiecal != colecal->end(); cfiecal++) {
163 if (cfiecal.getTrigger())
164 tofecalhist_sig->Fill(cfiecal->time());
166 tofecalhist->Fill(cfiecal->time());
170 sprintf(tof,
"HcalHit_Tof_bcr_%d",
bunchcr_);
172 dbe_->
book1D(tof,
"HcalHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
173 sprintf(tof,
"SignalHcalHit_Tof_bcr_%d",
bunchcr_);
175 dbe_->
book1D(tof,
"HcalHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
180 for (cfihcal = colhcal->begin(); cfihcal != colhcal->end(); cfihcal++) {
181 if (cfihcal.getTrigger())
182 tofhcalhist_sig->Fill(cfihcal->time());
184 tofhcalhist->Fill(cfihcal->time());
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setCurrentFolder(std::string const &fullpath) override
TestSuite(const edm::ParameterSet &)
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfTrackToken_
edm::EDGetTokenT< CrossingFrame< PSimHit > > g4SimHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_HCal_Token_
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_Ecal_Token_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())