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 168 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 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

◆ operator[]() [2/2]

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

Definition at line 188 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

188 { 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 172 of file HitStructures.h.

References mps_fire::i, and m_layers_of_hits.

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

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

◆ setBeamSpot()

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

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

References m_layers_of_hits.

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

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

References m_layers_of_hits.

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

178 { 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 193 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 191 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 192 of file HitStructures.h.

Referenced by nLayers().