32 iConfig.getParameter<
edm::
InputTag>(
"cfTrackTag"))),
34 iConfig.getParameter<
edm::
InputTag>(
"cfVertexTag"))),
36 edm::
InputTag(
"mix",
"g4SimHitsTrackerHitsTECLowTof"))),
43 <<
" filename: " <<
filename_ << std::endl;
58 dbe_->showDirStructure();
59 dbe_->setCurrentFolder(
"MixingV/Mixing");
80 std::string subdetTracker(
"g4SimHitsTrackerHitsTECLowTof");
94 char histotracks[30],sighistotracks[30],histotracksindsig[30],histotracksind[30];
95 sprintf(histotracks,
"Tracks_bcr_%d",
bunchcr_);
96 sprintf(sighistotracks,
"SignalTracks_bcr_%d",
bunchcr_);
97 sprintf(histotracksind,
"VtxPointers_%d",
bunchcr_);
98 sprintf(histotracksindsig,
"VtxPointers_signal_%d",
bunchcr_);
101 MonitorElement * trindhist =
dbe_->book1D(histotracksind,
"Track to Vertex indices",100,0,500);
102 MonitorElement * trindhistsig =
dbe_->book1D(histotracksindsig,
"Signal Track to Vertex indices",100,0,500);
105 for (cfi1=col1->begin(); cfi1!=col1->end();cfi1++) {
108 trindhist->
Fill(cfi1->vertIndex());
110 trindhistsig->
Fill(cfi1->vertIndex());
117 char histovertices[30], sighistovertices[30],histovertexindices[30],histovertexindicessig[30];
118 sprintf(histovertices,
"Vertices_bcr_%d",
bunchcr_);
119 sprintf(sighistovertices,
"SignalVertices_bcr_%d",
bunchcr_);
120 sprintf(histovertexindices,
"TrackPointers_%d",
bunchcr_);
121 sprintf(histovertexindicessig,
"TrackPointers_signal_%d",
bunchcr_);
124 MonitorElement * vtxindhist =
dbe_->book1D(histovertexindices,
"Vertex to Track Indices",100,0,300);
125 MonitorElement * vtxindhistsig =
dbe_->book1D(histovertexindicessig,
"Signal Vertex to Track Indices",100,0,300);
128 for (cfi2=col2->begin(); cfi2!=col2->end();cfi2++) {
131 if (!cfi2->noParent()) vtxindhist->
Fill(cfi2->parentIndex());
134 if (!cfi2->noParent()) vtxindhistsig->
Fill(cfi2->parentIndex());
139 int bsp=cf_simhit->getBunchSpace();
142 sprintf(tof,
"TrackerHit_Tof_bcr_%d",
bunchcr_);
144 sprintf(tof,
"SignalTrackerHit_Tof_bcr_%d",
bunchcr_);
145 MonitorElement * tofhist_sig =
dbe_->book1D(tof,
"TrackerHit_ToF",100,
float(bsp*minbunch_),
float(bsp*maxbunch_)+50.);
148 for (cfish=colsh->begin(); cfish!=colsh->end();cfish++) {
150 tofhist_sig->
Fill(cfish->timeOfFlight());
153 tofhist->
Fill(cfish->timeOfFlight());
158 sprintf(tof,
"EcalEBHit_Tof_bcr_%d",
bunchcr_);
159 MonitorElement * tofecalhist =
dbe_->book1D(tof,
"EcalEBHit_ToF",100,
float(bsp*minbunch_),
float(bsp*maxbunch_)+50.);
160 sprintf(tof,
"SignalEcalEBHit_Tof_bcr_%d",
bunchcr_);
161 MonitorElement * tofecalhist_sig =
dbe_->book1D(tof,
"EcalEBHit_ToF",100,
float(bsp*minbunch_),
float(bsp*maxbunch_)+50.);
165 for (cfiecal=colecal->begin(); cfiecal!=colecal->end();cfiecal++) {
167 else tofecalhist->
Fill(cfiecal->time());
171 sprintf(tof,
"HcalHit_Tof_bcr_%d",
bunchcr_);
172 MonitorElement * tofhcalhist =
dbe_->book1D(tof,
"HcalHit_ToF",100,
float(bsp*minbunch_),
float(bsp*maxbunch_)+50.);
173 sprintf(tof,
"SignalHcalHit_Tof_bcr_%d",
bunchcr_);
174 MonitorElement * tofhcalhist_sig =
dbe_->book1D(tof,
"HcalHit_ToF",100,
float(bsp*minbunch_),
float(bsp*maxbunch_)+50.);
179 for (cfihcal=colhcal->begin(); cfihcal!=colhcal->end();cfihcal++) {
181 else tofhcalhist->
Fill(cfihcal->time());
edm::EDGetTokenT< CrossingFrame< SimTrack > > cfVertexToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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
edm::EDGetTokenT< CrossingFrame< PCaloHit > > g4SimHits_Ecal_Token_