![]() |
![]() |
#include <HitInfo.h>
Public Member Functions | |
HitInfo () | |
HitInfo () | |
~HitInfo () | |
~HitInfo () | |
Static Public Member Functions | |
static std::string | getInfo (const DetId &id, const TrackerTopology *tTopo) |
static std::string | getInfo (const PSimHit &simHit, const TrackerTopology *tTopo) |
static std::string | getInfo (std::vector< const TrackingRecHit * > recHits, const TrackerTopology *tTopo) |
static std::string | getInfo (const TrackingRecHit &recHit, const TrackerTopology *tTopo) |
static std::string | getInfo (const DetId &id, const TrackerTopology *tTopo) |
static std::string | getInfo (const PSimHit &simHit, const TrackerTopology *tTopo) |
static std::string | getInfo (const std::vector< const TrackingRecHit * > &recHits, const TrackerTopology *tTopo) |
static std::string | getInfo (const TrackingRecHit &recHit, const TrackerTopology *tTopo) |
HitInfo::HitInfo | ( | ) |
Definition at line 15 of file HitInfo.cc.
{ }
HitInfo::~HitInfo | ( | ) |
Definition at line 20 of file HitInfo.cc.
{ }
HitInfo::HitInfo | ( | ) |
HitInfo::~HitInfo | ( | ) |
string HitInfo::getInfo | ( | const DetId & | id, |
const TrackerTopology * | tTopo | ||
) | [static] |
Definition at line 25 of file HitInfo.cc.
References info, python::connectstrParser::o, PixelSubdetector::PixelBarrel, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), TrackerTopology::pxfBlade(), TrackerTopology::pxfDisk(), TrackerTopology::pxfModule(), TrackerTopology::pxfPanel(), TrackerTopology::pxfSide(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TrackCleaner::cleanTracks(), LowPtClusterShapeSeedComparitor::compatible(), PlotRecTracks::getPixelInfo(), PlotRecTracks::getStripInfo(), PixelTripletLowPtGenerator::hitTriplets(), and PlotSimTracks::printSimTracks().
{ std::string info; if(id.subdetId() == int(PixelSubdetector::PixelBarrel)) { // 0 + (layer-1)<<1 + (ladder-1)%2 : 0-5 ostringstream o; o << " (" << tTopo->pxbLayer(id) << "|" << tTopo->pxbLadder(id) << "|" << tTopo->pxbModule(id) << ")"; info += o.str(); } else { // 6 + (disk-1)<<1 + (panel-1)%2 ostringstream o; o << " (" << tTopo->pxfSide(id) << "|" << tTopo->pxfDisk(id) << "|" << tTopo->pxfBlade(id) << "|" << tTopo->pxfPanel(id) << "|" << tTopo->pxfModule(id) << ")"; info += o.str(); } return info; }
static std::string HitInfo::getInfo | ( | const PSimHit & | simHit, |
const TrackerTopology * | tTopo | ||
) | [static] |
static std::string HitInfo::getInfo | ( | std::vector< const TrackingRecHit * > | recHits, |
const TrackerTopology * | tTopo | ||
) | [static] |
static std::string HitInfo::getInfo | ( | const TrackingRecHit & | recHit, |
const TrackerTopology * | tTopo | ||
) | [static] |
static std::string HitInfo::getInfo | ( | const DetId & | id, |
const TrackerTopology * | tTopo | ||
) | [static] |
string HitInfo::getInfo | ( | const PSimHit & | simHit, |
const TrackerTopology * | tTopo | ||
) | [static] |
Definition at line 74 of file HitInfo.cc.
References PSimHit::detUnitId(), info, python::connectstrParser::o, PSimHit::particleType(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string info; DetId id = DetId(simHit.detUnitId()); { ostringstream o; o << simHit.particleType(); info += " | pid=" + o.str(); } { ostringstream o; // o << theTracker->idToDet(id)->subDetector(); o << id.subdetId(); info += " | " + o.str(); } return info + getInfo(id, tTopo); }
string HitInfo::getInfo | ( | const std::vector< const TrackingRecHit * > & | recHits, |
const TrackerTopology * | tTopo | ||
) | [static] |
Definition at line 61 of file HitInfo.cc.
References info, and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string info; for(std::vector<const TrackingRecHit *>::const_iterator recHit = recHits.begin(); recHit!= recHits.end(); recHit++) info += getInfo(**recHit, tTopo); return info; }
string HitInfo::getInfo | ( | const TrackingRecHit & | recHit, |
const TrackerTopology * | tTopo | ||
) | [static] |
Definition at line 53 of file HitInfo.cc.
References TrackingRecHit::geographicalId().
{ DetId id(recHit.geographicalId()); return getInfo(id, tTopo); }