CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
mkfit::EventOfHits Class Reference

#include <HitStructures.h>

Public Member Functions

 EventOfHits (const TrackerInfo &trk_inf)
 
int nLayers () const
 
LayerOfHitsoperator[] (int i)
 
const LayerOfHitsoperator[] (int i) const
 
const BeamSpotrefBeamSpot () const
 
void reset ()
 
void setBeamSpot (const BeamSpot &bs)
 
void suckInDeads (int layer, const DeadVec &deadv)
 
void suckInHits (int layer, const HitVec &hitv)
 

Private Attributes

BeamSpot m_beam_spot
 
std::vector< LayerOfHitsm_layers_of_hits
 
int m_n_layers
 

Detailed Description

Definition at line 167 of file HitStructures.h.

Constructor & Destructor Documentation

◆ EventOfHits()

mkfit::EventOfHits::EventOfHits ( const TrackerInfo trk_inf)

Definition at line 243 of file HitStructures.cc.

References cuy::ii, mkfit::TrackerInfo::layer(), m_layers_of_hits, and mkfit::TrackerInfo::n_layers().

243  : m_n_layers(trk_inf.n_layers()) {
244  m_layers_of_hits.reserve(trk_inf.n_layers());
245  for (int ii = 0; ii < trk_inf.n_layers(); ++ii) {
246  m_layers_of_hits.emplace_back(LayerOfHits::Initializator(trk_inf.layer(ii)));
247  }
248  }
ii
Definition: cuy.py:589
std::vector< LayerOfHits > m_layers_of_hits

Member Function Documentation

◆ nLayers()

int mkfit::EventOfHits::nLayers ( ) const
inline

◆ operator[]() [1/2]

LayerOfHits& mkfit::EventOfHits::operator[] ( int  i)
inline

Definition at line 186 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

186 { return m_layers_of_hits[i]; }
std::vector< LayerOfHits > m_layers_of_hits

◆ operator[]() [2/2]

const LayerOfHits& mkfit::EventOfHits::operator[] ( int  i) const
inline

Definition at line 187 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

187 { return m_layers_of_hits[i]; }
std::vector< LayerOfHits > m_layers_of_hits

◆ refBeamSpot()

const BeamSpot& mkfit::EventOfHits::refBeamSpot ( ) const
inline

◆ reset()

void mkfit::EventOfHits::reset ( void  )
inline

Definition at line 171 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

Referenced by mkfit::StdSeq::cmssw_LoadHits_Begin(), and mkfit::StdSeq::loadHitsAndBeamSpot().

171  {
172  for (auto& i : m_layers_of_hits) {
173  i.reset();
174  }
175  }
std::vector< LayerOfHits > m_layers_of_hits

◆ setBeamSpot()

void mkfit::EventOfHits::setBeamSpot ( const BeamSpot bs)
inline

Definition at line 182 of file HitStructures.h.

References cms::cuda::bs, and m_beam_spot.

Referenced by mkfit::StdSeq::loadHitsAndBeamSpot().

◆ suckInDeads()

void mkfit::EventOfHits::suckInDeads ( int  layer,
const DeadVec deadv 
)
inline

Definition at line 179 of file HitStructures.h.

References m_layers_of_hits.

Referenced by mkfit::StdSeq::loadDeads().

179 { m_layers_of_hits[layer].suckInDeads(deadv); }
std::vector< LayerOfHits > m_layers_of_hits

◆ suckInHits()

void mkfit::EventOfHits::suckInHits ( int  layer,
const HitVec hitv 
)
inline

Definition at line 177 of file HitStructures.h.

References m_layers_of_hits.

Referenced by mkfit::StdSeq::loadHitsAndBeamSpot().

177 { m_layers_of_hits[layer].suckInHits(hitv); }
std::vector< LayerOfHits > m_layers_of_hits

Member Data Documentation

◆ m_beam_spot

BeamSpot mkfit::EventOfHits::m_beam_spot
private

Definition at line 192 of file HitStructures.h.

Referenced by refBeamSpot(), and setBeamSpot().

◆ m_layers_of_hits

std::vector<LayerOfHits> mkfit::EventOfHits::m_layers_of_hits
private

Definition at line 190 of file HitStructures.h.

Referenced by EventOfHits(), operator[](), reset(), suckInDeads(), and suckInHits().

◆ m_n_layers

int mkfit::EventOfHits::m_n_layers
private

Definition at line 191 of file HitStructures.h.

Referenced by nLayers().