CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
StripClusterizerAlgorithm Class Reference

#include <StripClusterizerAlgorithm.h>

Inheritance diagram for StripClusterizerAlgorithm:
ThreeThresholdAlgorithm

Classes

struct  InvalidChargeException
 
struct  State
 

Public Types

using Det = SiStripClusterizerConditions::Det
 
typedef edmNew::DetSetVector
< SiStripCluster
output_t
 

Public Member Functions

void clusterize (const edm::DetSetVector< SiStripDigi > &, output_t &) const
 
void clusterize (const edmNew::DetSetVector< SiStripDigi > &, output_t &) const
 
virtual void clusterizeDetUnit (const edm::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const
 
virtual void clusterizeDetUnit (const edmNew::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const
 
const
SiStripClusterizerConditions
conditions () const
 
void initialize (const edm::EventSetup &es)
 
virtual void stripByStripAdd (State &state, uint16_t strip, uint8_t adc, std::vector< SiStripCluster > &out) const
 
virtual void stripByStripAdd (State &state, uint16_t strip, uint8_t adc, output_t::TSFastFiller &out) const
 
Det const & stripByStripBegin (uint32_t id) const
 
virtual void stripByStripEnd (State &state, std::vector< SiStripCluster > &out) const
 
virtual void stripByStripEnd (State &state, output_t::TSFastFiller &out) const
 
virtual ~StripClusterizerAlgorithm ()
 

Protected Member Functions

 StripClusterizerAlgorithm (const edm::ESGetToken< SiStripClusterizerConditions, SiStripClusterizerConditionsRcd > &conditionsToken)
 

Private Member Functions

template<class T >
void clusterize_ (const T &input, output_t &output) const
 

Private Attributes

const
SiStripClusterizerConditions
m_conditions
 
edm::ESGetToken
< SiStripClusterizerConditions,
SiStripClusterizerConditionsRcd
m_conditionsToken
 

Detailed Description

Definition at line 16 of file StripClusterizerAlgorithm.h.

Member Typedef Documentation

Definition at line 18 of file StripClusterizerAlgorithm.h.

Definition at line 39 of file StripClusterizerAlgorithm.h.

Constructor & Destructor Documentation

virtual StripClusterizerAlgorithm::~StripClusterizerAlgorithm ( )
inlinevirtual

Definition at line 33 of file StripClusterizerAlgorithm.h.

33 {}
StripClusterizerAlgorithm::StripClusterizerAlgorithm ( const edm::ESGetToken< SiStripClusterizerConditions, SiStripClusterizerConditionsRcd > &  conditionsToken)
inlineexplicitprotected

Definition at line 60 of file StripClusterizerAlgorithm.h.

62  : m_conditionsToken(conditionsToken) {}
edm::ESGetToken< SiStripClusterizerConditions, SiStripClusterizerConditionsRcd > m_conditionsToken

Member Function Documentation

void StripClusterizerAlgorithm::clusterize ( const edm::DetSetVector< SiStripDigi > &  input,
output_t output 
) const

Definition at line 12 of file StripClusterizerAlgorithm.cc.

References clusterize_().

12  {
13  clusterize_(input, output);
14 }
void clusterize_(const T &input, output_t &output) const
void StripClusterizerAlgorithm::clusterize ( const edmNew::DetSetVector< SiStripDigi > &  input,
output_t output 
) const

Definition at line 15 of file StripClusterizerAlgorithm.cc.

References clusterize_().

15  {
16  clusterize_(input, output);
17 }
void clusterize_(const T &input, output_t &output) const
template<class T >
void StripClusterizerAlgorithm::clusterize_ ( const T input,
output_t output 
) const
inlineprivate

Definition at line 66 of file StripClusterizerAlgorithm.h.

References clusterizeDetUnit(), and alignCSCRings::ff.

Referenced by clusterize().

66  {
67  for (typename T::const_iterator it = input.begin(); it != input.end(); it++) {
68  output_t::TSFastFiller ff(output, it->detId());
69  clusterizeDetUnit(*it, ff);
70  if (ff.empty())
71  ff.abort();
72  }
73  }
friend class TSFastFiller
static std::string const input
Definition: EdmProvDump.cc:47
virtual void clusterizeDetUnit(const edm::DetSet< SiStripDigi > &, output_t::TSFastFiller &) const
virtual void StripClusterizerAlgorithm::clusterizeDetUnit ( const edm::DetSet< SiStripDigi > &  ,
output_t::TSFastFiller  
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 42 of file StripClusterizerAlgorithm.h.

Referenced by clusterize_().

42 {}
virtual void StripClusterizerAlgorithm::clusterizeDetUnit ( const edmNew::DetSet< SiStripDigi > &  ,
output_t::TSFastFiller  
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 43 of file StripClusterizerAlgorithm.h.

43 {}
const SiStripClusterizerConditions& StripClusterizerAlgorithm::conditions ( ) const
inline

Definition at line 36 of file StripClusterizerAlgorithm.h.

References m_conditions.

Referenced by ThreeThresholdAlgorithm::clusterizeDetUnit_().

36 { return *m_conditions; }
const SiStripClusterizerConditions * m_conditions
void StripClusterizerAlgorithm::initialize ( const edm::EventSetup es)
inline

Definition at line 35 of file StripClusterizerAlgorithm.h.

References edm::EventSetup::getData(), m_conditions, and m_conditionsToken.

const SiStripClusterizerConditions * m_conditions
bool getData(T &iHolder) const
Definition: EventSetup.h:128
edm::ESGetToken< SiStripClusterizerConditions, SiStripClusterizerConditionsRcd > m_conditionsToken
virtual void StripClusterizerAlgorithm::stripByStripAdd ( State state,
uint16_t  strip,
uint8_t  adc,
std::vector< SiStripCluster > &  out 
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 48 of file StripClusterizerAlgorithm.h.

48 {}
virtual void StripClusterizerAlgorithm::stripByStripAdd ( State state,
uint16_t  strip,
uint8_t  adc,
output_t::TSFastFiller out 
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 51 of file StripClusterizerAlgorithm.h.

51 {}
Det const& StripClusterizerAlgorithm::stripByStripBegin ( uint32_t  id) const
inline

Definition at line 46 of file StripClusterizerAlgorithm.h.

References SiStripClusterizerConditions::findDetId(), and m_conditions.

46 { return m_conditions->findDetId(id); }
const SiStripClusterizerConditions * m_conditions
Det const & findDetId(const uint32_t id) const
virtual void StripClusterizerAlgorithm::stripByStripEnd ( State state,
std::vector< SiStripCluster > &  out 
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 49 of file StripClusterizerAlgorithm.h.

49 {}
virtual void StripClusterizerAlgorithm::stripByStripEnd ( State state,
output_t::TSFastFiller out 
) const
inlinevirtual

Reimplemented in ThreeThresholdAlgorithm.

Definition at line 52 of file StripClusterizerAlgorithm.h.

52 {}

Member Data Documentation

const SiStripClusterizerConditions* StripClusterizerAlgorithm::m_conditions
private

Definition at line 76 of file StripClusterizerAlgorithm.h.

Referenced by conditions(), initialize(), and stripByStripBegin().

edm::ESGetToken<SiStripClusterizerConditions, SiStripClusterizerConditionsRcd> StripClusterizerAlgorithm::m_conditionsToken
private

Definition at line 75 of file StripClusterizerAlgorithm.h.

Referenced by initialize().