CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
DTRecHitTrait Struct Reference

Public Types

using GeometryType = DTGeometry
 
using InputType = DTRecHitCollection
 
using RecHitRef = edm::Ref< DTRecHitCollection >
 
using RecHitRefVector = edm::RefVector< DTRecHitCollection >
 

Static Public Member Functions

static DTChamberId detid (const DTRecHit1DPair &dtRechit)
 
static void emplace_back (RecHitClusterCollection *clusters, math::RhoEtaPhiVectorF const &position, int nStation, float avgStation, RecHitRefVector const &rechits)
 
static std::string producerName ()
 
static std::string recHitLabel ()
 
static int station (const DTRecHit1DPair &dtRechit)
 

Detailed Description

Definition at line 173 of file RechitClusterProducer.cc.

Member Typedef Documentation

◆ GeometryType

Definition at line 174 of file RechitClusterProducer.cc.

◆ InputType

Definition at line 175 of file RechitClusterProducer.cc.

◆ RecHitRef

Definition at line 176 of file RechitClusterProducer.cc.

◆ RecHitRefVector

Definition at line 177 of file RechitClusterProducer.cc.

Member Function Documentation

◆ detid()

static DTChamberId DTRecHitTrait::detid ( const DTRecHit1DPair dtRechit)
inlinestatic

Definition at line 182 of file RechitClusterProducer.cc.

References DTRecHit1DPair::geographicalId().

Referenced by station().

182  {
183  DetId geoid = dtRechit.geographicalId();
184  DTChamberId dtdetid = DTChamberId(geoid);
185  return dtdetid;
186  }
virtual DetId geographicalId() const
Return the detId of the Det (a DTLayer).
Definition: DetId.h:17

◆ emplace_back()

static void DTRecHitTrait::emplace_back ( RecHitClusterCollection clusters,
math::RhoEtaPhiVectorF const &  position,
int  nStation,
float  avgStation,
RecHitRefVector const &  rechits 
)
inlinestatic

Definition at line 187 of file RechitClusterProducer.cc.

References bsc_activity_cfg::clusters, position, HI_PhotonSkim_cff::rechits, and DTChamberId::station().

191  {
192  // compute nMB1, nMB2
193  int nMB1 = 0;
194  int nMB2 = 0;
195  for (auto const& rechit : rechits) {
196  DetId geoid = rechit->geographicalId();
197  DTChamberId dtdetid = DTChamberId(geoid);
198  if (dtdetid.station() == 1)
199  nMB1++;
200  if (dtdetid.station() == 2)
201  nMB2++;
202  }
203  //set time, timespread, nME11,nME12 to 0
204  reco::MuonRecHitCluster cls(position, rechits.size(), nStation, avgStation, 0.0, 0.0, 0, 0, 0, 0, nMB1, nMB2);
205  clusters->emplace_back(cls);
206  }
int station() const
Return the station number.
Definition: DTChamberId.h:42
Definition: DetId.h:17
static int position[264][3]
Definition: ReadPGInfo.cc:289

◆ producerName()

static std::string DTRecHitTrait::producerName ( )
inlinestatic

Definition at line 179 of file RechitClusterProducer.cc.

179 { return "dtRechitClusterProducer"; }

◆ recHitLabel()

static std::string DTRecHitTrait::recHitLabel ( )
inlinestatic

Definition at line 178 of file RechitClusterProducer.cc.

178 { return "dt1DRecHits"; }

◆ station()

static int DTRecHitTrait::station ( const DTRecHit1DPair dtRechit)
inlinestatic

Definition at line 181 of file RechitClusterProducer.cc.

References detid(), and DTChamberId::station().

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

181 { return detid(dtRechit).station(); }
int station() const
Return the station number.
Definition: DTChamberId.h:42
static DTChamberId detid(const DTRecHit1DPair &dtRechit)