CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
HitInfo Class Reference

#include <RntStructs.h>

Inheritance diagram for HitInfo:
HitMatchInfo

Public Member Functions

 HitInfo ()
 
 HitInfo ()=default
 
HitInfooperator= (const HitInfo &)=default
 
 ~HitInfo ()
 

Static Public Member Functions

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

Public Attributes

int hit_lbl
 
float hit_phi
 
RVec hit_pos
 
float hit_q
 
float hit_qbar
 
float hit_qhalflen
 

Detailed Description

Definition at line 73 of file RntStructs.h.

Constructor & Destructor Documentation

◆ HitInfo() [1/2]

HitInfo::HitInfo ( )
default

Definition at line 13 of file HitInfo.cc.

13 {}

◆ HitInfo() [2/2]

HitInfo::HitInfo ( )

◆ ~HitInfo()

HitInfo::~HitInfo ( )

Definition at line 16 of file HitInfo.cc.

16 {}

Member Function Documentation

◆ getInfo() [1/4]

string HitInfo::getInfo ( const DetId id,
const TrackerTopology tTopo 
)
static

Definition at line 19 of file HitInfo.cc.

References info(), EcalTangentSkim_cfg::o, PixelSubdetector::PixelBarrel, TrackerTopology::pxbLadder(), TrackerTopology::pxbLayer(), TrackerTopology::pxbModule(), TrackerTopology::pxfBlade(), TrackerTopology::pxfDisk(), TrackerTopology::pxfModule(), TrackerTopology::pxfPanel(), and TrackerTopology::pxfSide().

Referenced by TripletFilter::checkTrack(), TrackCleaner::cleanTracks(), LowPtClusterShapeSeedComparitor::compatible(), PixelTripletLowPtGenerator::hitTriplets(), and ClusterShapeTrackFilter::operator()().

19  {
20  string info;
21 
22  if (id.subdetId() == int(PixelSubdetector::PixelBarrel)) {
23  // 0 + (layer-1)<<1 + (ladder-1)%2 : 0-5
24 
25  ostringstream o;
26  o << " (" << tTopo->pxbLayer(id) << "|" << tTopo->pxbLadder(id) << "|" << tTopo->pxbModule(id) << ")";
27  info += o.str();
28  } else {
29  // 6 + (disk-1)<<1 + (panel-1)%2
30 
31  ostringstream o;
32  o << " (" << tTopo->pxfSide(id) << "|" << tTopo->pxfDisk(id) << "|" << tTopo->pxfBlade(id) << "|"
33  << tTopo->pxfPanel(id) << "|" << tTopo->pxfModule(id) << ")";
34  info += o.str();
35  }
36 
37  return info;
38 }
unsigned int pxbLayer(const DetId &id) const
static const TGPicture * info(bool iBackgroundIsBlack)
unsigned int pxfBlade(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
unsigned int pxbModule(const DetId &id) const

◆ getInfo() [2/4]

string HitInfo::getInfo ( const TrackingRecHit recHit,
const TrackerTopology tTopo 
)
static

Definition at line 41 of file HitInfo.cc.

References l1ctLayer2EG_cff::id, and rpcPointValidation_cfi::recHit.

41  {
42  DetId id(recHit.geographicalId());
43 
44  return getInfo(id, tTopo);
45 }
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:19
Definition: DetId.h:17

◆ getInfo() [3/4]

string HitInfo::getInfo ( const std::vector< const TrackingRecHit *> &  recHits,
const TrackerTopology tTopo 
)
static

Definition at line 48 of file HitInfo.cc.

References info(), rpcPointValidation_cfi::recHit, and FastTrackerRecHitMaskProducer_cfi::recHits.

48  {
49  string info;
50 
51  for (vector<const TrackingRecHit *>::const_iterator recHit = recHits.begin(); recHit != recHits.end(); recHit++)
52  info += getInfo(**recHit, tTopo);
53 
54  return info;
55 }
static const TGPicture * info(bool iBackgroundIsBlack)
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:19

◆ getInfo() [4/4]

string HitInfo::getInfo ( const PSimHit simHit,
const TrackerTopology tTopo 
)
static

Definition at line 58 of file HitInfo.cc.

References info(), EcalTangentSkim_cfg::o, and rpcPointValidation_cfi::simHit.

58  {
59  string info;
60 
61  DetId id = DetId(simHit.detUnitId());
62 
63  {
64  ostringstream o;
65  o << simHit.particleType();
66 
67  info += " | pid=" + o.str();
68  }
69 
70  {
71  ostringstream o;
72  o << id.subdetId();
73 
74  info += " | " + o.str();
75  }
76 
77  return info + getInfo(id, tTopo);
78 }
static const TGPicture * info(bool iBackgroundIsBlack)
static std::string getInfo(const DetId &id, const TrackerTopology *tTopo)
Definition: HitInfo.cc:19
Definition: DetId.h:17

◆ operator=()

HitInfo& HitInfo::operator= ( const HitInfo )
default

Member Data Documentation

◆ hit_lbl

int HitInfo::hit_lbl

Definition at line 76 of file RntStructs.h.

◆ hit_phi

float HitInfo::hit_phi

Definition at line 75 of file RntStructs.h.

◆ hit_pos

RVec HitInfo::hit_pos

Definition at line 74 of file RntStructs.h.

◆ hit_q

float HitInfo::hit_q

Definition at line 75 of file RntStructs.h.

◆ hit_qbar

float HitInfo::hit_qbar

Definition at line 75 of file RntStructs.h.

◆ hit_qhalflen

float HitInfo::hit_qhalflen

Definition at line 75 of file RntStructs.h.