CMS 3D CMS Logo

LASModuleProfile.h
Go to the documentation of this file.
1 
2 #ifndef __LASMODULEPROFILE_H
3 #define __LASMODULEPROFILE_H
4 
5 #include <vector>
6 
12 
13 public:
15  LASModuleProfile(double*);
16  LASModuleProfile(int*);
17  void SetData(double*);
18  void SetData(int*);
19  double GetValue(unsigned int theStripNumber) const { return (data[theStripNumber]); } // return an element
20  void SetValue(unsigned int theStripNumber, const double& theValue) { data.at(theStripNumber) = theValue; }
21  void SetAllValuesTo(const double&);
22  void DumpToArray(double[512]);
26  LASModuleProfile operator+(const double[512]);
27  LASModuleProfile operator-(const double[512]);
30  LASModuleProfile& operator+=(const double[512]);
31  LASModuleProfile& operator-=(const double[512]);
32  LASModuleProfile& operator+=(const int[512]);
33  LASModuleProfile& operator-=(const int[512]);
34  LASModuleProfile& operator/=(const double);
35 
36 private:
37  void Init(void);
38  std::vector<double> data;
39 };
40 
41 #endif
LASModuleProfile::GetValue
double GetValue(unsigned int theStripNumber) const
Definition: LASModuleProfile.h:19
LASModuleProfile::operator+
LASModuleProfile operator+(const LASModuleProfile &)
Definition: LASModuleProfile.cc:118
LASModuleProfile::SetData
void SetData(double *)
LASModuleProfile::LASModuleProfile
LASModuleProfile()
Definition: LASModuleProfile.cc:7
LASModuleProfile::operator-
LASModuleProfile operator-(const LASModuleProfile &)
Definition: LASModuleProfile.cc:131
LASModuleProfile::SetValue
void SetValue(unsigned int theStripNumber, const double &theValue)
Definition: LASModuleProfile.h:20
LASModuleProfile::operator=
LASModuleProfile & operator=(const LASModuleProfile &)
Definition: LASModuleProfile.cc:103
LASModuleProfile::SetAllValuesTo
void SetAllValuesTo(const double &)
Definition: LASModuleProfile.cc:76
LASModuleProfile::operator-=
LASModuleProfile & operator-=(const LASModuleProfile &)
Definition: LASModuleProfile.cc:182
LASModuleProfile::operator+=
LASModuleProfile & operator+=(const LASModuleProfile &)
Definition: LASModuleProfile.cc:170
LASModuleProfile::data
std::vector< double > data
Definition: LASModuleProfile.h:38
LASModuleProfile::DumpToArray
void DumpToArray(double[512])
Definition: LASModuleProfile.cc:85
LASModuleProfile
Definition: LASModuleProfile.h:7
LASModuleProfile::operator/=
LASModuleProfile & operator/=(const double)
Definition: LASModuleProfile.cc:244
LASModuleProfile::Init
void Init(void)
Definition: LASModuleProfile.cc:95