CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 219 of file HitStructures.h.

Constructor & Destructor Documentation

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

Definition at line 373 of file HitStructures.cc.

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

374  : m_layers_of_hits(trk_inf.n_layers()), m_n_layers(trk_inf.n_layers()) {
375  for (int ii = 0; ii < trk_inf.n_layers(); ++ii) {
376  const LayerInfo &li = trk_inf.layer(ii);
377  m_layers_of_hits[li.layer_id()].setupLayer(li);
378  }
379  }
int ii
Definition: cuy.py:589
std::vector< LayerOfHits > m_layers_of_hits

Member Function Documentation

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

Definition at line 238 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

238 { return m_layers_of_hits[i]; }
std::vector< LayerOfHits > m_layers_of_hits
const LayerOfHits& mkfit::EventOfHits::operator[] ( int  i) const
inline

Definition at line 239 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

239 { return m_layers_of_hits[i]; }
std::vector< LayerOfHits > m_layers_of_hits
const BeamSpot& mkfit::EventOfHits::refBeamSpot ( ) const
inline

Definition at line 233 of file HitStructures.h.

References m_beam_spot.

Referenced by mkfit::run_OneIteration(), and mkfit::runBtpCe_MultiIter().

233 { return m_beam_spot; }
void mkfit::EventOfHits::reset ( void  )
inline

Definition at line 223 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

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

223  {
224  for (auto& i : m_layers_of_hits) {
225  i.reset();
226  }
227  }
std::vector< LayerOfHits > m_layers_of_hits
void mkfit::EventOfHits::setBeamSpot ( const BeamSpot bs)
inline

Definition at line 234 of file HitStructures.h.

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

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

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

Definition at line 231 of file HitStructures.h.

References phase1PixelTopology::layer, and m_layers_of_hits.

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

231 { m_layers_of_hits[layer].suckInDeads(deadv); }
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< LayerOfHits > m_layers_of_hits
void mkfit::EventOfHits::suckInHits ( int  layer,
const HitVec hitv 
)
inline

Definition at line 229 of file HitStructures.h.

References phase1PixelTopology::layer, and m_layers_of_hits.

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

229 { m_layers_of_hits[layer].suckInHits(hitv); }
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< LayerOfHits > m_layers_of_hits

Member Data Documentation

BeamSpot mkfit::EventOfHits::m_beam_spot
private

Definition at line 244 of file HitStructures.h.

Referenced by refBeamSpot(), and setBeamSpot().

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

Definition at line 242 of file HitStructures.h.

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

int mkfit::EventOfHits::m_n_layers
private

Definition at line 243 of file HitStructures.h.

Referenced by nLayers().