CMS 3D CMS Logo

Typedefs | Functions
shallow Namespace Reference

Typedefs

typedef std::map< std::pair< uint32_t, uint16_t >, unsigned int > CLUSTERMAP
 

Functions

LocalVector drift (const StripGeomDetUnit *, const MagneticField &, const SiStripLorentzAngle &)
 
int findTrackIndex (const edm::Handle< edm::View< reco::Track > > &h, const reco::Track *t)
 
CLUSTERMAP make_cluster_map (const edm::Event &, const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > &)
 

Typedef Documentation

◆ CLUSTERMAP

typedef std::map<std::pair<uint32_t, uint16_t>, unsigned int> shallow::CLUSTERMAP

Definition at line 21 of file ShallowTools.h.

Function Documentation

◆ drift()

LocalVector shallow::drift ( const StripGeomDetUnit stripDet,
const MagneticField magfield,
const SiStripLorentzAngle lorentzAngle 
)

◆ findTrackIndex()

int shallow::findTrackIndex ( const edm::Handle< edm::View< reco::Track > > &  h,
const reco::Track t 
)

Definition at line 25 of file ShallowTools.cc.

25  {
27  //Compare addresses
28  for (; it != end; it++) {
29  if (&(*it) == track) {
30  return it - tracks->begin();
31  }
32  }
33  return -2;
34  }

References mps_fire::end, HLT_FULL_cff::track, and PDWG_EXOHSCP_cff::tracks.

Referenced by ShallowSimTracksProducer::produce(), ShallowTrackClustersProducer::produce(), and ShallowGainCalibration::produce().

◆ make_cluster_map()

CLUSTERMAP shallow::make_cluster_map ( const edm::Event iEvent,
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > &  cluster_token 
)

Definition at line 12 of file ShallowTools.cc.

13  {
14  CLUSTERMAP clustermap;
16  iEvent.getByToken(cluster_token, clusters);
17 
18  unsigned int clusterindex = 0;
19  for (auto const& ds : *clusters)
20  for (auto const& cluster : ds)
21  clustermap.insert(std::make_pair(std::make_pair(ds.detId(), cluster.firstStrip()), clusterindex++));
22  return clustermap;
23  }

References bsc_activity_cfg::clusters, and iEvent.

Referenced by ShallowRechitClustersProducer::produce(), ShallowSimhitClustersProducer::produce(), and ShallowTrackClustersProducer::produce().

Vector3DBase< float, LocalTag >
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
edm::Handle
Definition: AssociativeIterator.h:50
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
mps_fire.end
end
Definition: mps_fire.py:242
bsc_activity_cfg.clusters
clusters
Definition: bsc_activity_cfg.py:36
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
Bounds::thickness
virtual float thickness() const =0
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
LocalVector
Local3DVector LocalVector
Definition: LocalVector.h:12
iEvent
int iEvent
Definition: GenABIO.cc:224
GeomDet::specificSurface
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
Definition: GeomDet.h:40
SiStripLorentzAngle::getLorentzAngle
float getLorentzAngle(const uint32_t &) const
Definition: SiStripLorentzAngle.cc:15
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
toLocal
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
Definition: ConversionProducer.h:199
edm::View::const_iterator
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
volumeBasedMagneticField_160812_cfi.magfield
magfield
Definition: volumeBasedMagneticField_160812_cfi.py:11
shallow::CLUSTERMAP
std::map< std::pair< uint32_t, uint16_t >, unsigned int > CLUSTERMAP
Definition: ShallowTools.h:21