/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/LaserAlignment/interface/LASModuleProfile.h
39 строк
1 KB
Christopher Jones
Use default op= in LASModuleProfile
19 мар 2024, 12:30
19 мар 2024, 12:30
21833f1
Код
Авторство
О чём код?
#ifndef __LASMODULEPROFILE_H #define __LASMODULEPROFILE_H #include <vector> class LASModuleProfile { /// /// container class for a LAS /// SiStrip module's 512 strip signals /// public: LASModuleProfile(); LASModuleProfile(double*); LASModuleProfile(int*); void SetData(double*); void SetData(int*); double GetValue(unsigned int theStripNumber) const { return (data[theStripNumber]); } // return an element void SetValue(unsigned int theStripNumber, const double& theValue) { data.at(theStripNumber) = theValue; } void SetAllValuesTo(const double&); void DumpToArray(double[512]); LASModuleProfile operator+(const LASModuleProfile&); LASModuleProfile operator-(const LASModuleProfile&); LASModuleProfile operator+(const double[512]); LASModuleProfile operator-(const double[512]); LASModuleProfile& operator+=(const LASModuleProfile&); LASModuleProfile& operator-=(const LASModuleProfile&); LASModuleProfile& operator+=(const double[512]); LASModuleProfile& operator-=(const double[512]); LASModuleProfile& operator+=(const int[512]); LASModuleProfile& operator-=(const int[512]); LASModuleProfile& operator/=(const double); private: void Init(void); std::vector<double> data; }; #endif