CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
HitInfo Class Reference

#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 DetId &id, const TrackerTopology *tTopo)
 
static std::string getInfo (const TrackingRecHit &recHit, const TrackerTopology *tTopo)
 
static std::string getInfo (const TrackingRecHit &recHit, const TrackerTopology *tTopo)
 
static std::string getInfo (std::vector< const TrackingRecHit * > recHits, 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 PSimHit &simHit, const TrackerTopology *tTopo)
 

Detailed Description

Definition at line 14 of file HitInfo.h.

Constructor & Destructor Documentation

HitInfo::HitInfo ( )

Definition at line 15 of file HitInfo.cc.

16 {
17 }
HitInfo::~HitInfo ( )

Definition at line 20 of file HitInfo.cc.

21 {
22 }
HitInfo::HitInfo ( )
HitInfo::~HitInfo ( )

Member Function Documentation

static std::string HitInfo::getInfo ( const DetId id,
const TrackerTopology tTopo 
)
static
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 TripletFilter::checkTrack(), TrackCleaner::cleanTracks(), LowPtClusterShapeSeedComparitor::compatible(), PlotRecTracks::getPixelInfo(), PlotRecTracks::getStripInfo(), PixelTripletLowPtGenerator::hitTriplets(), ValidHitPairFilter::operator()(), ClusterShapeTrackFilter::operator()(), and PlotSimTracks::printSimTracks().

26 {
28 
29  if(id.subdetId() == int(PixelSubdetector::PixelBarrel))
30  {
31  // 0 + (layer-1)<<1 + (ladder-1)%2 : 0-5
32 
33  ostringstream o;
34  o << " (" << tTopo->pxbLayer(id) << "|" << tTopo->pxbLadder(id)
35  << "|" << tTopo->pxbModule(id) << ")";
36  info += o.str();
37  }
38  else
39  {
40  // 6 + (disk-1)<<1 + (panel-1)%2
41 
42  ostringstream o;
43  o << " (" << tTopo->pxfSide(id) << "|" << tTopo->pxfDisk(id)
44  << "|" << tTopo->pxfBlade(id) << "|" << tTopo->pxfPanel(id)
45  << "|" << tTopo->pxfModule(id) << ")";
46  info += o.str();
47  }
48 
49  return info;
50 }
unsigned int pxfDisk(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int pxbModule(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
static std::string HitInfo::getInfo ( const TrackingRecHit recHit,
const TrackerTopology tTopo 
)
static
string HitInfo::getInfo ( const TrackingRecHit recHit,
const TrackerTopology tTopo 
)
static

Definition at line 53 of file HitInfo.cc.

References TrackingRecHit::geographicalId().

54 {
55  DetId id(recHit.geographicalId());
56 
57  return getInfo(id, tTopo);
58 }
Definition: DetId.h:20
DetId geographicalId() const
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:25
string HitInfo::getInfo ( std::vector< const TrackingRecHit * >  recHits,
const TrackerTopology tTopo 
)
static

Definition at line 59 of file HitInfo.cc.

References info.

60 {
61  string info;
62 
63  for(vector<const TrackingRecHit *>::const_iterator
64  recHit = recHits.begin();
65  recHit!= recHits.end(); recHit++)
66  info += getInfo(**recHit, tTopo);
67 
68  return info;
69 }
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:25
static std::string HitInfo::getInfo ( const PSimHit simHit,
const TrackerTopology tTopo 
)
static
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.

62 {
64 
65  for(std::vector<const TrackingRecHit *>::const_iterator
66  recHit = recHits.begin();
67  recHit!= recHits.end(); recHit++)
68  info += getInfo(**recHit, tTopo);
69 
70  return info;
71 }
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:25
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.

75 {
77 
78  DetId id = DetId(simHit.detUnitId());
79 
80  {
81  ostringstream o;
82  o << simHit.particleType();
83 
84  info += " | pid=" + o.str();
85  }
86 
87  {
88  ostringstream o;
89 // o << theTracker->idToDet(id)->subDetector();
90  o << id.subdetId();
91 
92  info += " | " + o.str();
93  }
94 
95  return info + getInfo(id, tTopo);
96 }
Definition: DetId.h:20
int particleType() const
Definition: PSimHit.h:85
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:25
unsigned int detUnitId() const
Definition: PSimHit.h:93