CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
LASModuleProfile Class Reference

#include <LASModuleProfile.h>

Public Member Functions

void DumpToArray (double[512])
 
double GetValue (unsigned int theStripNumber) const
 
 LASModuleProfile ()
 
 LASModuleProfile (double *)
 
 LASModuleProfile (int *)
 
LASModuleProfile operator+ (const LASModuleProfile &)
 
LASModuleProfile operator+ (const double[512])
 
LASModuleProfileoperator+= (const LASModuleProfile &)
 
LASModuleProfileoperator+= (const double[512])
 
LASModuleProfileoperator+= (const int[512])
 
LASModuleProfile operator- (const LASModuleProfile &)
 
LASModuleProfile operator- (const double[512])
 
LASModuleProfileoperator-= (const LASModuleProfile &)
 
LASModuleProfileoperator-= (const double[512])
 
LASModuleProfileoperator-= (const int[512])
 
LASModuleProfileoperator/= (const double)
 
void SetAllValuesTo (const double &)
 
void SetData (double *)
 
void SetData (int *)
 
void SetValue (unsigned int theStripNumber, const double &theValue)
 

Private Member Functions

void Init (void)
 

Private Attributes

std::vector< double > data
 

Detailed Description

Definition at line 7 of file LASModuleProfile.h.

Constructor & Destructor Documentation

◆ LASModuleProfile() [1/3]

LASModuleProfile::LASModuleProfile ( )

container class for a LAS SiStrip module's 512 strip signals

def constructor

Definition at line 7 of file LASModuleProfile.cc.

References Init().

Referenced by operator+(), and operator-().

7  {
11 
12  Init();
13 }

◆ LASModuleProfile() [2/3]

LASModuleProfile::LASModuleProfile ( double *  )

◆ LASModuleProfile() [3/3]

LASModuleProfile::LASModuleProfile ( int *  )

Member Function Documentation

◆ DumpToArray()

void LASModuleProfile::DumpToArray ( double  array[512])

fill array

Definition at line 85 of file LASModuleProfile.cc.

References mps_check::array, data, and mps_fire::i.

85  {
89 
90  for (unsigned int i = 0; i < 512; ++i) {
91  array[i] = data.at(i);
92  }
93 }
std::vector< double > data

◆ GetValue()

double LASModuleProfile::GetValue ( unsigned int  theStripNumber) const
inline

◆ Init()

void LASModuleProfile::Init ( void  )
private

everything needed for initialization

Definition at line 95 of file LASModuleProfile.cc.

References data.

Referenced by LASModuleProfile().

95  {
99 
100  data.resize(512);
101 }
std::vector< double > data

◆ operator+() [1/2]

LASModuleProfile LASModuleProfile::operator+ ( const LASModuleProfile anotherProfile)

Definition at line 103 of file LASModuleProfile.cc.

References GetValue(), mps_fire::i, and LASModuleProfile().

103  {
107 
108  double theArray[512];
109  for (unsigned int i = 0; i < 512; ++i) {
110  theArray[i] = this->GetValue(i) + anotherProfile.GetValue(i);
111  }
112 
113  return (LASModuleProfile(theArray));
114 }
double GetValue(unsigned int theStripNumber) const

◆ operator+() [2/2]

LASModuleProfile LASModuleProfile::operator+ ( const double  b[512])

add a double[512]

Definition at line 129 of file LASModuleProfile.cc.

References GetValue(), mps_fire::i, and LASModuleProfile().

129  {
133 
134  double theArray[512];
135  for (unsigned int i = 0; i < 512; ++i) {
136  theArray[i] = this->GetValue(i) + b[i];
137  }
138 
139  return (LASModuleProfile(theArray));
140 }
double GetValue(unsigned int theStripNumber) const
double b
Definition: hdecay.h:120

◆ operator+=() [1/3]

LASModuleProfile & LASModuleProfile::operator+= ( const LASModuleProfile anotherProfile)

Definition at line 155 of file LASModuleProfile.cc.

References data, GetValue(), and mps_fire::i.

155  {
159 
160  for (unsigned int i = 0; i < 512; ++i) {
161  data.at(i) += anotherProfile.GetValue(i);
162  }
163 
164  return *this;
165 }
double GetValue(unsigned int theStripNumber) const
std::vector< double > data

◆ operator+=() [2/3]

LASModuleProfile & LASModuleProfile::operator+= ( const double  b[512])

Definition at line 179 of file LASModuleProfile.cc.

References b, data, and mps_fire::i.

179  {
183 
184  for (unsigned int i = 0; i < 512; ++i) {
185  data.at(i) += b[i];
186  }
187 
188  return *this;
189 }
std::vector< double > data
double b
Definition: hdecay.h:120

◆ operator+=() [3/3]

LASModuleProfile & LASModuleProfile::operator+= ( const int  b[512])

temporary workaround as long as data is provided in int arrays

Definition at line 203 of file LASModuleProfile.cc.

References b, data, and mps_fire::i.

203  {
208 
209  for (unsigned int i = 0; i < 512; ++i) {
210  data.at(i) += b[i];
211  }
212 
213  return *this;
214 }
std::vector< double > data
double b
Definition: hdecay.h:120

◆ operator-() [1/2]

LASModuleProfile LASModuleProfile::operator- ( const LASModuleProfile anotherProfile)

Definition at line 116 of file LASModuleProfile.cc.

References GetValue(), mps_fire::i, and LASModuleProfile().

116  {
120 
121  double theArray[512];
122  for (unsigned int i = 0; i < 512; ++i) {
123  theArray[i] = this->GetValue(i) - anotherProfile.GetValue(i);
124  }
125 
126  return (LASModuleProfile(theArray));
127 }
double GetValue(unsigned int theStripNumber) const

◆ operator-() [2/2]

LASModuleProfile LASModuleProfile::operator- ( const double  b[512])

subtract a double[512]

Definition at line 142 of file LASModuleProfile.cc.

References GetValue(), mps_fire::i, and LASModuleProfile().

142  {
146 
147  double theArray[512];
148  for (unsigned int i = 0; i < 512; ++i) {
149  theArray[i] = this->GetValue(i) - b[i];
150  }
151 
152  return (LASModuleProfile(theArray));
153 }
double GetValue(unsigned int theStripNumber) const
double b
Definition: hdecay.h:120

◆ operator-=() [1/3]

LASModuleProfile & LASModuleProfile::operator-= ( const LASModuleProfile anotherProfile)

Definition at line 167 of file LASModuleProfile.cc.

References data, GetValue(), and mps_fire::i.

167  {
171 
172  for (unsigned int i = 0; i < 512; ++i) {
173  data.at(i) -= anotherProfile.GetValue(i);
174  }
175 
176  return *this;
177 }
double GetValue(unsigned int theStripNumber) const
std::vector< double > data

◆ operator-=() [2/3]

LASModuleProfile & LASModuleProfile::operator-= ( const double  b[512])

Definition at line 191 of file LASModuleProfile.cc.

References b, data, and mps_fire::i.

191  {
195 
196  for (unsigned int i = 0; i < 512; ++i) {
197  data.at(i) -= b[i];
198  }
199 
200  return *this;
201 }
std::vector< double > data
double b
Definition: hdecay.h:120

◆ operator-=() [3/3]

LASModuleProfile & LASModuleProfile::operator-= ( const int  b[512])

temporary workaround as long as data is provided in int arrays

Definition at line 216 of file LASModuleProfile.cc.

References b, data, and mps_fire::i.

216  {
221 
222  for (unsigned int i = 0; i < 512; ++i) {
223  data.at(i) -= b[i];
224  }
225 
226  return *this;
227 }
std::vector< double > data
double b
Definition: hdecay.h:120

◆ operator/=()

LASModuleProfile & LASModuleProfile::operator/= ( const double  divisor)

handle with care!!

Definition at line 229 of file LASModuleProfile.cc.

References data, and mps_fire::i.

229  {
233 
234  for (unsigned int i = 0; i < 512; ++i) {
235  data.at(i) /= divisor;
236  }
237 
238  return *this;
239 }
std::vector< double > data

◆ SetAllValuesTo()

void LASModuleProfile::SetAllValuesTo ( const double &  theValue)

Definition at line 76 of file LASModuleProfile.cc.

References data, and mps_fire::i.

Referenced by LaserAlignment::beginJob(), and LaserAlignment::fillDataProfiles().

76  {
80 
81  for (unsigned int i = 0; i < data.size(); ++i)
82  data.at(i) = theValue;
83 }
std::vector< double > data

◆ SetData() [1/2]

void LASModuleProfile::SetData ( double *  )

◆ SetData() [2/2]

void LASModuleProfile::SetData ( int *  )

◆ SetValue()

void LASModuleProfile::SetValue ( unsigned int  theStripNumber,
const double &  theValue 
)
inline

Definition at line 20 of file LASModuleProfile.h.

References data.

Referenced by LaserAlignment::fillDataProfiles(), and LaserAlignment::fillPedestalProfiles().

20 { data.at(theStripNumber) = theValue; }
std::vector< double > data

Member Data Documentation

◆ data

std::vector<double> LASModuleProfile::data
private

Definition at line 37 of file LASModuleProfile.h.

Referenced by MainPageGenerator.MainPageGenerator::__NewTreePage(), data_sources.node::__str__(), confdb.HLTProcess::_fix_parameter(), confdb.HLTProcess::addEras(), confdb.HLTProcess::addGlobalOptions(), confdb.HLTProcess::append_filenames(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), confdb.HLTProcess::build_source(), MainPageGenerator.MainPageGenerator::CreateNewMainPage(), confdb.HLTProcess::customize(), confdb.HLTProcess::dump(), DumpToArray(), MainPageGenerator.MainPageGenerator::ExportJSON(), confdb.HLTProcess::fixPrescales(), data_sources.json_list::get_members(), confdb.HLTProcess::getRawConfigurationFromDB(), GetValue(), Init(), confdb.HLTProcess::instrumentDQM(), confdb.HLTProcess::instrumentOpenMode(), confdb.HLTProcess::instrumentTiming(), data_sources.json_list::last(), confdb.HLTProcess::loadAdditionalConditions(), confdb.HLTProcess::loadCff(), confdb.HLTProcess::loadSetupCff(), operator+=(), operator-=(), operator/=(), confdb.HLTProcess::overrideGlobalTag(), confdb.HLTProcess::overrideL1MenuXml(), confdb.HLTProcess::overrideOutput(), confdb.HLTProcess::overrideParameters(), confdb.HLTProcess::overrideProcessName(), confdb.HLTProcess::removeElementFromSequencesTasksAndPaths(), confdb.HLTProcess::runL1Emulator(), SetAllValuesTo(), SetValue(), confdb.HLTProcess::specificCustomize(), cuy.FindIssue::startElement(), edmStreamStallGrapher.Stack::update(), and confdb.HLTProcess::updateMessageLogger().