CMS 3D CMS Logo

Public Member Functions | Private Attributes

ClusterNoiseFP420::ElectrodData Class Reference

#include <ClusterNoiseFP420.h>

List of all members.

Public Member Functions

ElectrodDisable getDisable () const
ElectrodNoise getNoise () const
void setData (short data)
void setData (float noise_, bool disable_)

Private Attributes

short Data

Detailed Description

Definition at line 21 of file ClusterNoiseFP420.h.


Member Function Documentation

ElectrodDisable ClusterNoiseFP420::ElectrodData::getDisable ( ) const [inline]

Definition at line 25 of file ClusterNoiseFP420.h.

{return ( (Data>0) ? false : true );}// if Data <=0 then electrode is disable
ElectrodNoise ClusterNoiseFP420::ElectrodData::getNoise ( ) const [inline]

Definition at line 24 of file ClusterNoiseFP420.h.

References abs.

{return static_cast<ElectrodNoise> (std::abs(Data)/10.0);}
void ClusterNoiseFP420::ElectrodData::setData ( short  data) [inline]

Definition at line 26 of file ClusterNoiseFP420.h.

References AlCaHLTBitMon_QueryRunRegistry::data.

Referenced by FP420ClusterMain::run().

void ClusterNoiseFP420::ElectrodData::setData ( float  noise_,
bool  disable_ 
) [inline]

Definition at line 27 of file ClusterNoiseFP420.h.

References gather_cfg::cout.

                                            {
      short noise =  static_cast<short>  (noise_*10.0 + 0.5) & 0x01FF;
      Data = ( disable_ ? -1 : 1 ) * noise; // Data = sign(+/-1) * Noise(Adc count). if Data <=0 then electrode is disable
 
#ifdef mynsdebug0
         std::cout  
        << std::fixed <<"ClusterNoiseFP420.h:: ElectrodData: noise= " << noise_ << " \t"  
        <<": disable= " << disable_  << " \t"  
        <<"sign Data(=noise*10.0 + 0.5)= " << Data << " \t"  
        <<"in getNoise we do: abs(Data)/10.0, so it is OK"  << " \t"  
        << std::endl; 
#endif
    };

Member Data Documentation

Definition at line 39 of file ClusterNoiseFP420.h.