#include <Alignment/LaserAlignment/src/LASModuleProfile.h>
Definition at line 8 of file LASModuleProfile.h.
LASModuleProfile::LASModuleProfile | ( | ) |
container class for a LAS SiStrip module's 512 strip signals
def constructor
Definition at line 9 of file LASModuleProfile.cc.
References Init().
Referenced by operator+(), and operator-().
00009 { 00013 00014 Init(); 00015 00016 }
LASModuleProfile::LASModuleProfile | ( | double * | ) |
LASModuleProfile::LASModuleProfile | ( | int * | ) |
void LASModuleProfile::DumpToArray | ( | double | array[512] | ) |
double LASModuleProfile::GetValue | ( | unsigned int | theStripNumber | ) | const [inline] |
Definition at line 20 of file LASModuleProfile.h.
References data.
Referenced by LaserAlignment::endJob(), LASPeakFinder::FindPeakIn(), LASProfileJudge::GetNegativity(), LASProfileJudge::IsNegativePeaksInProfile(), LASProfileJudge::IsPeaksInProfile(), operator+(), operator+=(), operator-(), operator-=(), and operator=().
00020 { return( data[theStripNumber] ); } // return an element
everything needed for initialization
Definition at line 131 of file LASModuleProfile.cc.
References data.
Referenced by LASModuleProfile().
00131 { 00135 00136 data.resize( 512 ); 00137 00138 }
LASModuleProfile LASModuleProfile::operator+ | ( | const | double[512] | ) |
add a double[512]
Definition at line 202 of file LASModuleProfile.cc.
References GetValue(), i, and LASModuleProfile().
00202 { 00206 00207 double theArray[512]; 00208 for( unsigned int i = 0; i < 512; ++i ) { 00209 theArray[i] = this->GetValue( i ) + b[i]; 00210 } 00211 00212 return( LASModuleProfile( theArray ) ); 00213 00214 }
LASModuleProfile LASModuleProfile::operator+ | ( | const LASModuleProfile & | anotherProfile | ) |
Definition at line 166 of file LASModuleProfile.cc.
References GetValue(), i, and LASModuleProfile().
00166 { 00170 00171 double theArray[512]; 00172 for( unsigned int i = 0; i < 512; ++i ) { 00173 theArray[i] = this->GetValue( i ) + anotherProfile.GetValue( i ); 00174 } 00175 00176 return( LASModuleProfile( theArray ) ); 00177 00178 }
LASModuleProfile & LASModuleProfile::operator+= | ( | const | int[512] | ) |
LASModuleProfile & LASModuleProfile::operator+= | ( | const | double[512] | ) |
LASModuleProfile & LASModuleProfile::operator+= | ( | const LASModuleProfile & | anotherProfile | ) |
LASModuleProfile LASModuleProfile::operator- | ( | const | double[512] | ) |
subtract a double[512]
Definition at line 220 of file LASModuleProfile.cc.
References GetValue(), i, and LASModuleProfile().
00220 { 00224 00225 double theArray[512]; 00226 for( unsigned int i = 0; i < 512; ++i ) { 00227 theArray[i] = this->GetValue( i ) - b[i]; 00228 } 00229 00230 return( LASModuleProfile( theArray ) ); 00231 00232 }
LASModuleProfile LASModuleProfile::operator- | ( | const LASModuleProfile & | anotherProfile | ) |
Definition at line 184 of file LASModuleProfile.cc.
References GetValue(), i, and LASModuleProfile().
00184 { 00188 00189 double theArray[512]; 00190 for( unsigned int i = 0; i < 512; ++i ) { 00191 theArray[i] = this->GetValue( i ) - anotherProfile.GetValue( i ); 00192 } 00193 00194 return( LASModuleProfile( theArray ) ); 00195 00196 }
LASModuleProfile & LASModuleProfile::operator-= | ( | const | int[512] | ) |
LASModuleProfile & LASModuleProfile::operator-= | ( | const | double[512] | ) |
LASModuleProfile & LASModuleProfile::operator-= | ( | const LASModuleProfile & | anotherProfile | ) |
LASModuleProfile & LASModuleProfile::operator/= | ( | const | double | ) |
LASModuleProfile & LASModuleProfile::operator= | ( | const LASModuleProfile & | anotherProfile | ) |
Definition at line 144 of file LASModuleProfile.cc.
References data, GetValue(), and i.
00144 { 00148 00149 // check for self-assignment 00150 if( this != &anotherProfile ) { 00151 00152 for( unsigned int i = 0; i < 512; ++i ) { 00153 data.at( i ) = anotherProfile.GetValue( i ); 00154 } 00155 00156 } 00157 00158 return *this; 00159 00160 }
void LASModuleProfile::SetAllValuesTo | ( | const double & | theValue | ) |
void LASModuleProfile::SetData | ( | double * | ) |
Definition at line 21 of file LASModuleProfile.h.
References data.
Referenced by LaserAlignment::fillAdcCounts(), and LaserAlignment::fillPedestalProfiles().
00021 { data.at( theStripNumber ) = theValue; }
std::vector<double> LASModuleProfile::data [private] |
Definition at line 39 of file LASModuleProfile.h.
Referenced by DumpToArray(), GetValue(), Init(), operator+=(), operator-=(), operator/=(), operator=(), SetAllValuesTo(), and SetValue().