![]() |
![]() |
#include <RecoRomanPot/RecoFP420/interface/ClusterNoiseFP420.h>
Public Member Functions | |
ElectrodDisable | getDisable () const |
ElectrodNoise | getNoise () const |
void | setData (float noise_, bool disable_) |
void | setData (short data) |
Private Attributes | |
short | Data |
Definition at line 21 of file ClusterNoiseFP420.h.
ElectrodDisable ClusterNoiseFP420::ElectrodData::getDisable | ( | ) | const [inline] |
Definition at line 25 of file ClusterNoiseFP420.h.
00025 {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 funct::abs().
00024 {return static_cast<ElectrodNoise> (abs(Data)/10.0);}
Definition at line 27 of file ClusterNoiseFP420.h.
References GenMuonPlsPt100GeV_cfg::cout, and lat::endl().
00027 { 00028 short noise = static_cast<short> (noise_*10.0 + 0.5) & 0x01FF; 00029 Data = ( disable_ ? -1 : 1 ) * noise; // Data = sign(+/-1) * Noise(Adc count). if Data <=0 then electrode is disable 00030 00031 #ifdef mynsdebug0 00032 std::cout 00033 << std::fixed <<"ClusterNoiseFP420.h:: ElectrodData: noise= " << noise_ << " \t" 00034 <<": disable= " << disable_ << " \t" 00035 <<"sign Data(=noise*10.0 + 0.5)= " << Data << " \t" 00036 <<"in getNoise we do: abs(Data)/10.0, so it is OK" << " \t" 00037 << std::endl; 00038 #endif 00039 };
void ClusterNoiseFP420::ElectrodData::setData | ( | short | data | ) | [inline] |
short ClusterNoiseFP420::ElectrodData::Data [private] |
Definition at line 39 of file ClusterNoiseFP420.h.