CMS 3D CMS Logo

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

#include <OldThreeThresholdAlgorithm.h>

Public Member Functions

 AboveSeed (float aseed, const ElectrodNoiseVector &vnoise)
 
 AboveSeed (float aseed, const edm::ESHandle< SiStripNoises > &noiseHandle, const SiStripNoises::Range &noiseRange, const edm::ESHandle< SiStripQuality > &qualityHandle, const SiStripQuality::Range &qualityRange)
 
bool operator() (const HDigiFP420 &digi)
 
bool operator() (const SiStripDigi &digi)
 

Private Attributes

const edm::ESHandle
< SiStripNoises > & 
noise_
 
const SiStripNoises::RangenoiseRange_
 
const edm::ESHandle
< SiStripQuality > & 
quality_
 
const SiStripQuality::RangequalityRange_
 
float seed
 
int verb
 
const ElectrodNoiseVectorvnoise_
 

Detailed Description

Definition at line 73 of file OldThreeThresholdAlgorithm.h.

Constructor & Destructor Documentation

AboveSeed::AboveSeed ( float  aseed,
const edm::ESHandle< SiStripNoises > &  noiseHandle,
const SiStripNoises::Range noiseRange,
const edm::ESHandle< SiStripQuality > &  qualityHandle,
const SiStripQuality::Range qualityRange 
)
inline

Definition at line 79 of file OldThreeThresholdAlgorithm.h.

80  : seed(aseed), noise_(noiseHandle), noiseRange_(noiseRange),quality_(qualityHandle), qualityRange_(qualityRange)
81  {};
const SiStripQuality::Range & qualityRange_
const edm::ESHandle< SiStripNoises > & noise_
const edm::ESHandle< SiStripQuality > & quality_
const SiStripNoises::Range & noiseRange_
AboveSeed::AboveSeed ( float  aseed,
const ElectrodNoiseVector vnoise 
)
inline

Definition at line 53 of file ClusterProducerFP420.h.

53 : verb(0), seed(aseed), vnoise_(vnoise) {};
const ElectrodNoiseVector & vnoise_

Member Function Documentation

bool AboveSeed::operator() ( const HDigiFP420 digi)
inline

Definition at line 55 of file ClusterProducerFP420.h.

References HDigiFP420::adc(), HDigiFP420::channel(), seed, and vnoise_.

55  { return ( !vnoise_[digi.channel()].getDisable() &&
56  digi.adc() >= seed * vnoise_[digi.channel()].getNoise()) ;}
int channel() const
Definition: HDigiFP420.h:22
int adc() const
Definition: HDigiFP420.h:21
const ElectrodNoiseVector & vnoise_
bool AboveSeed::operator() ( const SiStripDigi digi)
inline

Definition at line 84 of file OldThreeThresholdAlgorithm.h.

References SiStripDigi::adc(), noise_, noiseRange_, quality_, qualityRange_, seed, and SiStripDigi::strip().

84  {
85  return (
86  !quality_->IsStripBad(qualityRange_,digi.strip())
87  &&
88  digi.adc() >= seed * noise_->getNoise(digi.strip(), noiseRange_)
89  );
90  }
const SiStripQuality::Range & qualityRange_
const uint16_t & strip() const
Definition: SiStripDigi.h:40
const edm::ESHandle< SiStripNoises > & noise_
const edm::ESHandle< SiStripQuality > & quality_
const uint16_t & adc() const
Definition: SiStripDigi.h:41
const SiStripNoises::Range & noiseRange_

Member Data Documentation

const edm::ESHandle<SiStripNoises>& AboveSeed::noise_
private

Definition at line 93 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

const SiStripNoises::Range& AboveSeed::noiseRange_
private

Definition at line 94 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

const edm::ESHandle<SiStripQuality>& AboveSeed::quality_
private

Definition at line 95 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

const SiStripQuality::Range& AboveSeed::qualityRange_
private

Definition at line 96 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

float AboveSeed::seed
private

Definition at line 92 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

int AboveSeed::verb
private

Definition at line 58 of file ClusterProducerFP420.h.

const ElectrodNoiseVector& AboveSeed::vnoise_
private

Definition at line 60 of file ClusterProducerFP420.h.

Referenced by operator()().