31 : filename_(iConfig.getParameter<
std::
string>(
"fileName")),
32 bunchcr_(iConfig.getParameter<
int>(
"BunchNr")),
33 minbunch_(iConfig.getParameter<
int>(
"minBunch")),
34 maxbunch_(iConfig.getParameter<
int>(
"maxBunch")),
52 dbe_->showDirStructure();
53 dbe_->setCurrentFolder(
"MixingV/Mixing");
71 std::string subdetTracker(
"g4SimHitsTrackerHitsTECLowTof");
85 char histotracks[30], sighistotracks[30], histotracksindsig[30], histotracksind[30];
86 sprintf(histotracks,
"Tracks_bcr_%d",
bunchcr_);
87 sprintf(sighistotracks,
"SignalTracks_bcr_%d",
bunchcr_);
88 sprintf(histotracksind,
"VtxPointers_%d",
bunchcr_);
89 sprintf(histotracksindsig,
"VtxPointers_signal_%d",
bunchcr_);
94 MonitorElement *trindhist =
dbe_->book1D(histotracksind,
"Track to Vertex indices", 100, 0, 500);
95 MonitorElement *trindhistsig =
dbe_->book1D(histotracksindsig,
"Signal Track to Vertex indices", 100, 0, 500);
98 for (cfi1 = col1->begin(); cfi1 != col1->end(); cfi1++) {
101 trindhist->
Fill(cfi1->vertIndex());
103 trindhistsig->
Fill(cfi1->vertIndex());
109 char histovertices[30], sighistovertices[30], histovertexindices[30], histovertexindicessig[30];
110 sprintf(histovertices,
"Vertices_bcr_%d",
bunchcr_);
111 sprintf(sighistovertices,
"SignalVertices_bcr_%d",
bunchcr_);
112 sprintf(histovertexindices,
"TrackPointers_%d",
bunchcr_);
113 sprintf(histovertexindicessig,
"TrackPointers_signal_%d",
bunchcr_);
118 MonitorElement *vtxindhist =
dbe_->book1D(histovertexindices,
"Vertex to Track Indices", 100, 0, 300);
119 MonitorElement *vtxindhistsig =
dbe_->book1D(histovertexindicessig,
"Signal Vertex to Track Indices", 100, 0, 300);
122 for (cfi2 = col2->begin(); cfi2 != col2->end(); cfi2++) {
125 if (!cfi2->noParent())
126 vtxindhist->
Fill(cfi2->parentIndex());
129 if (!cfi2->noParent())
130 vtxindhistsig->
Fill(cfi2->parentIndex());
135 int bsp = cf_simhit->getBunchSpace();
138 sprintf(tof,
"TrackerHit_Tof_bcr_%d",
bunchcr_);
141 sprintf(tof,
"SignalTrackerHit_Tof_bcr_%d",
bunchcr_);
143 dbe_->book1D(tof,
"TrackerHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
146 for (cfish = colsh->begin(); cfish != colsh->end(); cfish++) {
148 tofhist_sig->
Fill(cfish->timeOfFlight());
150 tofhist->
Fill(cfish->timeOfFlight());
155 sprintf(tof,
"EcalEBHit_Tof_bcr_%d",
bunchcr_);
157 dbe_->book1D(tof,
"EcalEBHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
158 sprintf(tof,
"SignalEcalEBHit_Tof_bcr_%d",
bunchcr_);
160 dbe_->book1D(tof,
"EcalEBHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
164 for (cfiecal = colecal->begin(); cfiecal != colecal->end(); cfiecal++) {
166 tofecalhist_sig->
Fill(cfiecal->time());
168 tofecalhist->
Fill(cfiecal->time());
172 sprintf(tof,
"HcalHit_Tof_bcr_%d",
bunchcr_);
174 dbe_->book1D(tof,
"HcalHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
175 sprintf(tof,
"SignalHcalHit_Tof_bcr_%d",
bunchcr_);
177 dbe_->book1D(tof,
"HcalHit_ToF", 100,
float(bsp * minbunch_),
float(bsp * maxbunch_) + 50.);
182 for (cfihcal = colhcal->begin(); cfihcal != colhcal->end(); cfihcal++) {
184 tofhcalhist_sig->
Fill(cfihcal->time());
186 tofhcalhist->
Fill(cfihcal->time());
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TestSuite(const edm::ParameterSet &)
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfTrackToken_
edm::EDGetTokenT< CrossingFrame< PSimHit > > g4SimHits_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_HCal_Token_
T const * product() const
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_Ecal_Token_