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 75 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 81 of file OldThreeThresholdAlgorithm.h.

82  : seed(aseed), noise_(noiseHandle), noiseRange_(noiseRange),quality_(qualityHandle), qualityRange_(qualityRange)
83  {};
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 86 of file OldThreeThresholdAlgorithm.h.

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

86  {
87  return (
88  !quality_->IsStripBad(qualityRange_,digi.strip())
89  &&
90  digi.adc() >= seed * noise_->getNoise(digi.strip(), noiseRange_)
91  );
92  }
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 95 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

const SiStripNoises::Range& AboveSeed::noiseRange_
private

Definition at line 96 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

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

Definition at line 97 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

const SiStripQuality::Range& AboveSeed::qualityRange_
private

Definition at line 98 of file OldThreeThresholdAlgorithm.h.

Referenced by operator()().

float AboveSeed::seed
private

Definition at line 94 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()().