CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Definition at line 174 of file RechitClusterProducer.cc.

Definition at line 175 of file RechitClusterProducer.cc.

Definition at line 176 of file RechitClusterProducer.cc.

Definition at line 177 of file RechitClusterProducer.cc.

Member Function Documentation

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

Definition at line 182 of file RechitClusterProducer.cc.

References DTChamberId, and 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
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 DTChamberId, 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  }
Definition: DetId.h:17
static int position[264][3]
Definition: ReadPGInfo.cc:289
int station() const
Return the station number.
Definition: DTChamberId.h:42
static std::string DTRecHitTrait::producerName ( )
inlinestatic

Definition at line 179 of file RechitClusterProducer.cc.

179 { return "dtRechitClusterProducer"; }
static std::string DTRecHitTrait::recHitLabel ( )
inlinestatic

Definition at line 178 of file RechitClusterProducer.cc.

178 { return "dt1DRecHits"; }
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(); }
static DTChamberId detid(const DTRecHit1DPair &dtRechit)
int station() const
Return the station number.
Definition: DTChamberId.h:42