86 ev.
getByLabel(
"g4SimHits",
"EcalHitsEB", simHitsBarrel);
92 ev.
getByLabel(
"g4SimHits",
"EcalHitsEE", simHitsEndcap);
123 file <<
", If[st, {RGBColor[0.5,0.5,0.5]";
125 for(TrackingParticleCollection::const_iterator simTrack = simTracks->begin();
126 simTrack!= simTracks->end();
131 #warning "This file has been modified just to get it to compile without any regard as to whether it still functions as intended"
132 #ifdef REMOVED_JUST_TO_GET_IT_TO_COMPILE__THIS_CODE_NEEDS_TO_BE_CHECKED
133 simHits = simTrack->trackPSimHit();
139 for(std::vector<PSimHit>::const_iterator simHit = simHits.begin();
140 simHit!= simHits.end(); simHit++)
152 file <<
", Point[{" << p1.
x() <<
"," << p1.
y() <<
",(" << p1.
z() <<
"-zs)*mz}]"
154 file <<
", Text[StyleForm[\"s\", URL->\"SimHit | Ekin="
155 << simTrack->energy() - simTrack->mass()
156 <<
" GeV | parent: source="
157 << simTrack->parentVertex()->nSourceTracks()
158 <<
" daughter=" << simTrack->parentVertex()->nDaughterTracks()
160 << p1.
x() <<
"," << p1.
y() <<
",(" << p1.
z() <<
"-zs)*mz}, {1,1}]"
177 file <<
", If[sd, {RGBColor[0.6,0.6,0.6], ";
179 file <<
", If[sd, {RGBColor[0.8,0.8,0.8], ";
181 file <<
"Line[{{"<< p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}, "
182 <<
"{"<< p01.
x()<<
","<<p01.
y()<<
",("<<p01.
z()<<
"-zs)*mz}, "
183 <<
"{"<< p11.
x()<<
","<<p11.
y()<<
",("<<p11.
z()<<
"-zs)*mz}, "
184 <<
"{"<< p10.
x()<<
","<<p10.
y()<<
",("<<p10.
z()<<
"-zs)*mz}, "
185 <<
"{"<< p00.
x()<<
","<<p00.
y()<<
",("<<p00.
z()<<
"-zs)*mz}}]}]"
188 if(simHit == simHits.begin())
191 simTrack->vertex().y(),
192 simTrack->vertex().z());
196 if(simHit+1 != simHits.end())
208 if(simHit+1 == simHits.end())
217 for(edm::PCaloHitContainer::const_iterator
218 simHit = simHitsBarrel->begin();
219 simHit!= simHitsBarrel->end(); simHit++)
220 if(simHit->geantTrackId() ==
static_cast<int>(simTrack->g4Track_begin()->trackId()) &&
221 simHit->energy() > 0.060)
227 file <<
", Line[{{" << p.x()
229 <<
",(" << p.z() <<
"-zs)*mz}"
230 <<
", {" << cell->getPosition().x() <<
","
231 << cell->getPosition().y() <<
",("
232 << cell->getPosition().z() <<
"-zs)*mz}}]" << std::endl;
240 for(edm::PCaloHitContainer::const_iterator
241 simHit = simHitsEndcap->begin();
242 simHit!= simHitsEndcap->end(); simHit++)
243 if(simHit->geantTrackId() ==
static_cast<int>(simTrack->g4Track_begin()->trackId()) &&
244 simHit->energy() > 0.060)
250 file <<
", Line[{{" << p.x()
252 <<
",(" << p.z() <<
"-zs)*mz}"
253 <<
", {" << cell->getPosition().x() <<
","
254 << cell->getPosition().y() <<
",("
255 << cell->getPosition().z() <<
"-zs)*mz}}]" << std::endl;
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void printHelix(const GlobalPoint &p1, const GlobalPoint &p2, const GlobalVector &n2, std::ofstream &outFile, int charge)
virtual float length() const =0
std::vector< TrackingParticle > TrackingParticleCollection
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual SubDetector subDetector() const =0
Which subdetector.
const Bounds & bounds() const
const Plane & surface() const
The nominal surface of the GeomDet.
virtual const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
const TrackerGeometry * theTracker
const CaloGeometry * theCaloGeometry
virtual const GeomDet * idToDet(DetId) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
T const * product() const
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
virtual float width() const =0