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++) {
99 trindhist->
Fill(cfi1->vertIndex());
101 trindhistsig->
Fill(cfi1->vertIndex());
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++) {
123 if (!cfi2->noParent())
124 vtxindhist->
Fill(cfi2->parentIndex());
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_);
144 for (cfish = colsh->begin(); cfish != colsh->end(); cfish++) {
146 tofhist_sig->
Fill(cfish->timeOfFlight());
148 tofhist->
Fill(cfish->timeOfFlight());
153 sprintf(tof,
"EcalEBHit_Tof_bcr_%d",
bunchcr_);
156 sprintf(tof,
"SignalEcalEBHit_Tof_bcr_%d",
bunchcr_);
162 for (cfiecal = colecal->begin(); cfiecal != colecal->end(); cfiecal++) {
164 tofecalhist_sig->
Fill(cfiecal->time());
166 tofecalhist->
Fill(cfiecal->time());
170 sprintf(tof,
"HcalHit_Tof_bcr_%d",
bunchcr_);
173 sprintf(tof,
"SignalHcalHit_Tof_bcr_%d",
bunchcr_);
180 for (cfihcal = colhcal->begin(); cfihcal != colhcal->end(); cfihcal++) {
182 tofhcalhist_sig->
Fill(cfihcal->time());
184 tofhcalhist->
Fill(cfihcal->time());
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
void setCurrentFolder(std::string const &fullpath) override
T const * product() const
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())