26 theTracker = trackerHandle.
product();
40 double x = theTracker->idToDet(
id)->surface().bounds().width() /2;
41 double y = theTracker->idToDet(
id)->surface().bounds().length()/2;
49 file <<
", If[sd, {RGBColor[0.4,0.4,0.4], "
50 <<
"Line[{{"<<p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}, "
51 <<
"{"<<p01.
x()<<
","<<p01.
y()<<
",("<<p01.
z()<<
"-zs)*mz}, "
52 <<
"{"<<p11.
x()<<
","<<p11.
y()<<
",("<<p11.
z()<<
"-zs)*mz}, "
53 <<
"{"<<p10.
x()<<
","<<p10.
y()<<
",("<<p10.
z()<<
"-zs)*mz}, "
54 <<
"{"<<p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}}]}]"
64 p = theTracker->idToDet(
id)->toGlobal(lpos);
65 file <<
", Point[{"<<p.
x()<<
","<<p.
y()<<
",("<<p.
z()<<
"-zs)*mz}]" << std::endl;
69 std::vector<SiPixelCluster::Pixel> pixels = cluster->pixels();
71 file <<
", Text[StyleForm[\"r\", FontFamily->\"Helvetica\", URL -> \"RecHit |";
72 for(std::vector<SiPixelCluster::Pixel>::const_iterator
73 pixel = pixels.begin(); pixel!= pixels.end(); pixel++)
75 file <<
" [" << int(pixel->x)
76 <<
" " << int(pixel->y)
77 <<
" " << int(pixel->adc/135) <<
"]";
81 file <<
", {"<< p.
x()<<
","<<p.
y()<<
",("<<p.
z()<<
"-zs)*mz}"
82 <<
", {-1,1}]" << std::endl;
91 double x = theTracker->idToDet(
id)->surface().bounds().width() /2;
92 double y = theTracker->idToDet(
id)->surface().bounds().length()/2;
100 file <<
", If[sd, {RGBColor[0.6,0.6,0.6], "
101 <<
"Line[{{"<<p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}, "
102 <<
"{"<<p01.
x()<<
","<<p01.
y()<<
",("<<p01.
z()<<
"-zs)*mz}, "
103 <<
"{"<<p11.
x()<<
","<<p11.
y()<<
",("<<p11.
z()<<
"-zs)*mz}, "
104 <<
"{"<<p10.
x()<<
","<<p10.
y()<<
",("<<p10.
z()<<
"-zs)*mz}, "
105 <<
"{"<<p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}}]}]"
113 p = theTracker->idToDet(
id)->toGlobal(lpos);
114 file <<
", Line[{{"<<p.
x()<<
","<<p.
y()<<
",("<<p.
z()<<
"-zs)*mz}, {";
118 p = theTracker->idToDet(
id)->toGlobal(lpos);
119 file <<
""<<p.
x()<<
","<<p.
y()<<
",("<<p.
z()<<
"-zs)*mz}}]" << std::endl;
151 recHit = thePixelHits->
data().begin();
152 recHit!= thePixelHits->
data().end(); recHit++)
154 if(recHit->isValid())
155 printPixelRecHit(&(*recHit));
165 std::vector<edm::Handle<SiStripRecHit2DCollection> > stripColls;
169 stripColl = stripColls.begin();
170 stripColl!= stripColls.end(); stripColl++)
175 recHit = theStripHits->
data().begin();
176 recHit!= theStripHits->
data().end(); recHit++)
178 if(recHit->isValid())
179 printStripRecHit(&(*recHit));
186 std::vector<edm::Handle<SiStripMatchedRecHit2DCollection> > stripColls;
190 stripColl = stripColls.begin();
191 stripColl!= stripColls.end(); stripColl++)
196 recHit = theStripHits->
data().begin();
197 recHit!= theStripHits->
data().end(); recHit++)
199 auto m = recHit->monoHit();
200 auto s = recHit->stereoHit();
201 printStripRecHit(&
m);
202 printStripRecHit(&
s);
204 DetId id = recHit->geographicalId();
206 GlobalPoint p = theTracker->idToDet(
id)->toGlobal(lpos);
208 file <<
", Point[{"<< p.
x()<<
","<<p.
y()<<
",("<<p.
z()<<
"-zs)*mz}]" << std::endl;
217 file <<
"AbsolutePointSize[5]";
218 file <<
", If[pr, {RGBColor[0.4,0.4,1.0]";
219 printPixelRecHits(ev);
222 file <<
", If[sr, {RGBColor[0.6,0.6,1.0]";
223 printStripRecHits(ev);
void getManyByType(std::vector< Handle< PROD > > &results) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
PlotRecHits(const edm::EventSetup &es, std::ofstream &file_)
void printPixelRecHit(const SiPixelRecHit *recHit)
void printPixelRecHits(const edm::Event &ev)
data_type const * data(size_t cell) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void printStripRecHit(const SiStripRecHit2D *recHit)
virtual LocalPoint localPosition() const
ClusterRef cluster() const
void printStripRecHits(const edm::Event &ev)
T const * product() const
T const * product() const
DetId geographicalId() const
void printRecHits(const edm::Event &ev)