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 170 of file HitStructures.h.

Constructor & Destructor Documentation

◆ EventOfHits()

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

Definition at line 269 of file HitStructures.cc.

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

269  : m_n_layers(trk_inf.n_layers()) {
270  m_layers_of_hits.reserve(trk_inf.n_layers());
271  for (int ii = 0; ii < trk_inf.n_layers(); ++ii) {
272  m_layers_of_hits.emplace_back(LayerOfHits::Initializator(trk_inf.layer(ii)));
273  }
274  }
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 189 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

189 { 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 190 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

190 { 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 174 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

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

174  {
175  for (auto& i : m_layers_of_hits) {
176  i.reset();
177  }
178  }
std::vector< LayerOfHits > m_layers_of_hits

◆ setBeamSpot()

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

Definition at line 185 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 182 of file HitStructures.h.

References m_layers_of_hits.

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

182 { 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 180 of file HitStructures.h.

References m_layers_of_hits.

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

180 { 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 195 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 193 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 194 of file HitStructures.h.

Referenced by nLayers().