ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
TileLaserObject Class Reference

#include <TileLaserObject.h>

Collaboration diagram for TileLaserObject:

Public Types

enum  MAX_SIZE {
  nbGains =2, nbPmts =2, nbDiodes =14, nbTypes =4,
  firstType =0
}
 max size of diode and pmt vectors
More...
 
enum  daqType {
  daqPedestal =0x10, daqAlpha, daqLed, daqLinearity,
  daqLaser
}
 
enum  calibType { Pedestal0, Pedestal1, LED, Alpha }
 

Public Member Functions

 TileLaserObject ()
 
int getVersion () const
 
bool isLASERII () const
 
int getCounter () const
 
double getDiodeCurrOrd () const
 
double getDiodeCurrMeas () const
 
int getFiltNumber () const
 
double getPumpDiodeTemp () const
 
int getTimeLastMeasP () const
 
double getDiodeBoxTemp () const
 
int getTimeLastMeasD () const
 
double getGasFlux () const
 
int getTimeLastMeasF () const
 
double getHumidity () const
 
int getTimeLastMeasH () const
 
time_t getLastPedMeas () const
 
time_t getLastAlphaMeas () const
 
double getMean (int chan, int gain, int type) const
 
double getSigma (int chan, int gain, int type) const
 
int getN (int chan, int gain, int type) const
 
int getType (int chan, int gain, int type) const
 
bool isSet (int chan, int gain, int type) const
 
void setCalibType (int type)
 
int getCalibType () const
 
void setCalib (int chan, int type, double sumXinQDC, double sumX2inQDC, int nevts, int gain)
 
int getDaqType () const
 
int getDiodeADC (const unsigned int i, const unsigned int gain=0) const
 
double getDiodePedestal (const unsigned int i, const unsigned int gain=0) const
 
double getDiodeSigmaPedestal (const unsigned int i, const unsigned int gain=0) const
 
double getAlpha (const unsigned int i, const unsigned int gain=0) const
 
double getSigmaAlpha (const unsigned int i, const unsigned int gain=0) const
 
double getPedestalAlpha (const unsigned int i, const unsigned int gain=0) const
 
double getSigmaPedAlpha (const unsigned int i, const unsigned int gain=0) const
 
int getPMADC (const unsigned int j, const unsigned int gain=0) const
 
int getTDC (const unsigned int j, const unsigned int gain=0) const
 
double getPMPedestal (const unsigned int j, const unsigned int gain=0) const
 
double getPMSigmaPedestal (const unsigned int j, const unsigned int gain=0) const
 
int getBCID () const
 
void setBCID (const int BCID)
 
int getAlphaPos () const
 
double getLVdiodes () const
 
double getHVpmts () const
 
int getShutter () const
 
int getInterlock () const
 
int getAlarm () const
 
bool getQDCTimeout () const
 
bool getTDCTimeout () const
 
void setLaser (const int Counter, const int diodeCurrOrd, const int diodeCurrMeas, const int filtNumber, const int timingDelay, const int version)
 
void setControl (const double pumpDiodeTemp, const int timeLastMeasP, const double diodeBoxTemp, const int timeLastMeasD, const double gasFlux, const int timeLastMeasG, const double humidity, const int timeLastMeasH, const time_t lastPedMeas, const time_t lastAlphaMeas)
 
void setDiode (const unsigned int diode, const int diodeAdc, const double diodePedestal, const double diodeSigmaPedestal, const double alpha, const double sigmaAlpha, const double pedestalAlpha, const double sigmaPedAlpha, const unsigned int gain)
 
void setPmt (const unsigned int pmt, const int pmAdc, const int tdc, const double pmPedestal, const double pmSigmaPedestal, const unsigned int gain)
 
void setPLC (const int alphaPos, const double LVdiodes, const double HVpmts, const int shutter, const int interlock, const int alarm)
 
void setVersion (const int version)
 
void setDaqType (const unsigned int daqtype)
 
void setTimeouts (const bool qdc, const bool tdc)
 
 operator std::string () const
 Convertion operator to a std::string, can be used in a cast operation : (std::string) TileLaserPmt. More...
 

Private Attributes

TileLaserControl m_slowCtrl
 
TileLaser m_laserParameter
 
std::vector< TileLaserDiodem_diodesLG
 
std::vector< TileLaserDiodem_diodesHG
 
std::vector< TileLaserPmtm_pmtsLG
 
std::vector< TileLaserPmtm_pmtsHG
 
std::vector< std::vector< TileLasCalib > > m_lascalib
 
TileLaserPLC m_plc
 
bool m_qdctimeout
 
bool m_tdctimeout
 
int m_daqtype
 
int m_BCID
 
int m_version
 
int m_calibtype
 

Detailed Description

Definition at line 33 of file TileLaserObject.h.

Member Enumeration Documentation

◆ calibType

Enumerator
Pedestal0 
Pedestal1 
LED 
Alpha 

Definition at line 193 of file TileLaserObject.h.

◆ daqType

Enumerator
daqPedestal 
daqAlpha 
daqLed 
daqLinearity 
daqLaser 

Definition at line 153 of file TileLaserObject.h.

◆ MAX_SIZE

max size of diode and pmt vectors

Enumerator
nbGains 
nbPmts 
nbDiodes 
nbTypes 
firstType 

Definition at line 43 of file TileLaserObject.h.

43  {
44  nbGains=2, // LG/HG
45  nbPmts=2, // LASERI/LASERII MONITORING PMTS
46  nbDiodes=14, // LASERII MONITORING DIODES
47  nbTypes=4, // LASERII CALIBRATION TYPES
48  firstType=0 // LASERII VALUE OF FIRST CALIBRATION TYPE
49  };

Constructor & Destructor Documentation

◆ TileLaserObject()

TileLaserObject::TileLaserObject ( )

Definition at line 17 of file TileLaserObject.cxx.

18  : m_slowCtrl()
24  , m_lascalib(nbTypes,std::vector<TileLasCalib>(16))
25  , m_plc()
26  , m_qdctimeout(false)
27  , m_tdctimeout(false)
28  , m_daqtype(0)
29  , m_BCID(0)
30  , m_version(0)
31  , m_calibtype(-1)
32 {
33 /* for(int type=0;type<nbTypes;++type){
34  m_lascalib.push_back(std::vector<TileLasCalib>());
35  for(int chan=0;chan<nbDiodes+nbPmts;++chan){
36  m_lascalib[type].push_back(TileLasCalib());
37  } // FOR
38  } // FOR*/
39 } // TileLaserObject::TileLaserObject

Member Function Documentation

◆ getAlarm()

int TileLaserObject::getAlarm ( ) const
inline

Definition at line 309 of file TileLaserObject.h.

310 {
311  return m_plc.getAlarm();
312 }

◆ getAlpha()

double TileLaserObject::getAlpha ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 138 of file TileLaserObject.cxx.

139 {
140  if(i<nbDiodes){
141  if(gain==0){
142  return m_diodesLG[i].getAlpha();
143  } // IF
144  else{
145  return m_diodesHG[i].getAlpha();
146  } // IF
147  }else{
148  return 0.0;
149  }
150 }

◆ getAlphaPos()

int TileLaserObject::getAlphaPos ( ) const
inline

Definition at line 284 of file TileLaserObject.h.

285 {
286  return m_plc.getAlphaPos();
287 }

◆ getBCID()

int TileLaserObject::getBCID ( ) const
inline

Definition at line 335 of file TileLaserObject.h.

335 {return m_BCID;}

◆ getCalibType()

int TileLaserObject::getCalibType ( ) const

Definition at line 82 of file TileLaserObject.cxx.

82  {
83  return m_calibtype;
84 }

◆ getCounter()

int TileLaserObject::getCounter ( ) const
inline

Definition at line 199 of file TileLaserObject.h.

200 {
201  return m_laserParameter.getCounter();
202 }

◆ getDaqType()

int TileLaserObject::getDaqType ( ) const
inline

Definition at line 325 of file TileLaserObject.h.

326 {
327  return m_daqtype;
328 }

◆ getDiodeADC()

int TileLaserObject::getDiodeADC ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 95 of file TileLaserObject.cxx.

96 {
97  if(i<nbDiodes){
98  if(gain==0){
99  return m_diodesLG[i].getDiodeADC();
100  } // IF
101  else{
102  return m_diodesHG[i].getDiodeADC();
103  } // IF
104  } else {
105  return 0;
106  }
107 }

◆ getDiodeBoxTemp()

double TileLaserObject::getDiodeBoxTemp ( ) const
inline

Definition at line 244 of file TileLaserObject.h.

245 {
246  return m_slowCtrl.getDiodeBoxTemp();
247 }

◆ getDiodeCurrMeas()

double TileLaserObject::getDiodeCurrMeas ( ) const
inline

Definition at line 224 of file TileLaserObject.h.

225 {
227 }

◆ getDiodeCurrOrd()

double TileLaserObject::getDiodeCurrOrd ( ) const
inline

Definition at line 219 of file TileLaserObject.h.

220 {
222 }

◆ getDiodePedestal()

double TileLaserObject::getDiodePedestal ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 109 of file TileLaserObject.cxx.

110 {
111  if(i<nbDiodes){
112  if(gain==0){
113  return m_diodesLG[i].getDiodePedestal();
114  } // IF
115  else{
116  return m_diodesHG[i].getDiodePedestal();
117  } // IF
118  }else{
119  return 0.0;
120  }
121 }

◆ getDiodeSigmaPedestal()

double TileLaserObject::getDiodeSigmaPedestal ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 123 of file TileLaserObject.cxx.

124 {
125  if(i<nbDiodes){
126  if(gain==0){
127  return m_diodesLG[i].getDiodeSigmaPedestal();
128  } // IF
129  else{
130  return m_diodesHG[i].getDiodeSigmaPedestal();
131  } // IF
132  }else{
133  return 0.0;
134  }
135 }

◆ getFiltNumber()

int TileLaserObject::getFiltNumber ( ) const
inline

Definition at line 229 of file TileLaserObject.h.

230 {
232 }

◆ getGasFlux()

double TileLaserObject::getGasFlux ( ) const
inline

Definition at line 254 of file TileLaserObject.h.

255 {
256  return m_slowCtrl.getGasFlux();
257 }

◆ getHumidity()

double TileLaserObject::getHumidity ( ) const
inline

Definition at line 264 of file TileLaserObject.h.

265 {
266  return m_slowCtrl.getHumidity();
267 }

◆ getHVpmts()

double TileLaserObject::getHVpmts ( ) const
inline

Definition at line 294 of file TileLaserObject.h.

295 {
296  return m_plc.getHVpmts();
297 }

◆ getInterlock()

int TileLaserObject::getInterlock ( ) const
inline

Definition at line 304 of file TileLaserObject.h.

305 {
306  return m_plc.getInterlock();
307 }

◆ getLastAlphaMeas()

time_t TileLaserObject::getLastAlphaMeas ( ) const
inline

Definition at line 279 of file TileLaserObject.h.

280 {
281  return m_slowCtrl.getLastAlphaMeas();
282 }

◆ getLastPedMeas()

time_t TileLaserObject::getLastPedMeas ( ) const
inline

Definition at line 274 of file TileLaserObject.h.

275 {
276  return m_slowCtrl.getLastPedMeas();
277 }

◆ getLVdiodes()

double TileLaserObject::getLVdiodes ( ) const
inline

Definition at line 289 of file TileLaserObject.h.

290 {
291  return m_plc.getLVdiodes();
292 }

◆ getMean()

double TileLaserObject::getMean ( int  chan,
int  gain,
int  type 
) const

Definition at line 41 of file TileLaserObject.cxx.

41  {
42  if(type-firstType<0 || type-firstType>=nbTypes) return -1.;
43  if(chan<0 || chan>=nbDiodes+nbPmts) return -1.;
44  if(gain!=0 && gain!=1) return -1.;
45  if(m_lascalib[type][chan].getType() == type) return m_lascalib[type][chan].getMean(gain);
46  return -99.;
47 } // getMean

◆ getN()

int TileLaserObject::getN ( int  chan,
int  gain,
int  type 
) const

Definition at line 64 of file TileLaserObject.cxx.

64  {
65  if(type-firstType<0 || type-firstType>=nbTypes) return -1;
66  if(chan<0 || chan>=nbDiodes+nbPmts) return -1;
67  if(gain!=0 && gain!=1) return -1;
68  return m_lascalib[type][chan].getN();
69 } // getN

◆ getPedestalAlpha()

double TileLaserObject::getPedestalAlpha ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 166 of file TileLaserObject.cxx.

167 {
168  if(i<nbDiodes){
169  if(gain==0){
170  return m_diodesLG[i].getPedestalAlpha();
171  } // IF
172  else{
173  return m_diodesHG[i].getPedestalAlpha();
174  } // IF
175  }else{
176  return 0.0;
177  }
178 }

◆ getPMADC()

int TileLaserObject::getPMADC ( const unsigned int  j,
const unsigned int  gain = 0 
) const

Definition at line 195 of file TileLaserObject.cxx.

196 {
197  if(j<nbPmts){
198  if(gain==0){
199  return m_pmtsLG[j].getPMADC();
200  } // IF
201  else{
202  return m_pmtsHG[j].getPMADC();
203  } // IF
204  }else{
205  return 0;
206  }
207 }

◆ getPMPedestal()

double TileLaserObject::getPMPedestal ( const unsigned int  j,
const unsigned int  gain = 0 
) const

Definition at line 223 of file TileLaserObject.cxx.

224 {
225  if(j<nbPmts){
226  if(gain==0){
227  return m_pmtsLG[j].getPMPedestal();
228  } // IF
229  else{
230  return m_pmtsHG[j].getPMPedestal();
231  } // IF
232  }else{
233  return 0.0;
234  }
235 }

◆ getPMSigmaPedestal()

double TileLaserObject::getPMSigmaPedestal ( const unsigned int  j,
const unsigned int  gain = 0 
) const

Definition at line 237 of file TileLaserObject.cxx.

238 {
239  if(j<nbPmts){
240  if(gain==0){
241  return m_pmtsLG[j].getPMSigmaPedestal();
242  } // IF
243  else{
244  return m_pmtsHG[j].getPMSigmaPedestal();
245  } // IF
246  }else{
247  return 0.0;
248  }
249 }

◆ getPumpDiodeTemp()

double TileLaserObject::getPumpDiodeTemp ( ) const
inline

Definition at line 234 of file TileLaserObject.h.

235 {
236  return m_slowCtrl.getPumpDiodeTemp();
237 }

◆ getQDCTimeout()

bool TileLaserObject::getQDCTimeout ( ) const
inline

Definition at line 314 of file TileLaserObject.h.

315 {
316  return m_qdctimeout;
317 }

◆ getShutter()

int TileLaserObject::getShutter ( ) const
inline

Definition at line 299 of file TileLaserObject.h.

300 {
301  return m_plc.getShutter();
302 }

◆ getSigma()

double TileLaserObject::getSigma ( int  chan,
int  gain,
int  type 
) const

Definition at line 49 of file TileLaserObject.cxx.

49  {
50  if(type-firstType<0 || type-firstType>=nbTypes) return -1.;
51  if(chan<0 || chan>=nbDiodes+nbPmts) return -1.;
52  if(gain!=0 && gain!=1) return -1.;
53  if(m_lascalib[type][chan].getType() == type) return m_lascalib[type][chan].getSigma(gain);
54  return -99.;
55 } // getSigma

◆ getSigmaAlpha()

double TileLaserObject::getSigmaAlpha ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 152 of file TileLaserObject.cxx.

153 {
154  if(i<nbDiodes){
155  if(gain==0){
156  return m_diodesLG[i].getSigmaAlpha();
157  } // IF
158  else{
159  return m_diodesHG[i].getSigmaAlpha();
160  } // IF
161  }else{
162  return 0.0;
163  }
164 }

◆ getSigmaPedAlpha()

double TileLaserObject::getSigmaPedAlpha ( const unsigned int  i,
const unsigned int  gain = 0 
) const

Definition at line 180 of file TileLaserObject.cxx.

181 {
182  if(i<nbDiodes){
183  if(gain==0){
184  return m_diodesLG[i].getSigmaPedAlpha();
185  } // IF
186  else{
187  return m_diodesHG[i].getSigmaPedAlpha();
188  } // IF
189  }else{
190  return 0.0;
191  }
192 }

◆ getTDC()

int TileLaserObject::getTDC ( const unsigned int  j,
const unsigned int  gain = 0 
) const

Definition at line 209 of file TileLaserObject.cxx.

210 {
211  if(j<nbPmts){
212  if(gain==0){
213  return m_pmtsLG[j].getTDC();
214  } // IF
215  else{
216  return m_pmtsHG[j].getTDC();
217  } // IF
218  }else{
219  return 0;
220  }
221 }

◆ getTDCTimeout()

bool TileLaserObject::getTDCTimeout ( ) const
inline

Definition at line 319 of file TileLaserObject.h.

320 {
321  return m_tdctimeout;
322 }

◆ getTimeLastMeasD()

int TileLaserObject::getTimeLastMeasD ( ) const
inline

Definition at line 249 of file TileLaserObject.h.

250 {
251  return m_slowCtrl.getTimeLastMeasD();
252 }

◆ getTimeLastMeasF()

int TileLaserObject::getTimeLastMeasF ( ) const
inline

Definition at line 259 of file TileLaserObject.h.

260 {
261  return m_slowCtrl.getTimeLastMeasF();
262 }

◆ getTimeLastMeasH()

int TileLaserObject::getTimeLastMeasH ( ) const
inline

Definition at line 269 of file TileLaserObject.h.

270 {
271  return m_slowCtrl.getTimeLastMeasH();
272 }

◆ getTimeLastMeasP()

int TileLaserObject::getTimeLastMeasP ( ) const
inline

Definition at line 239 of file TileLaserObject.h.

240 {
241  return m_slowCtrl.getTimeLastMeasP();
242 }

◆ getType()

int TileLaserObject::getType ( int  chan,
int  gain,
int  type 
) const

Definition at line 57 of file TileLaserObject.cxx.

57  {
58  if(type-firstType<0 || type-firstType>=nbTypes) return -1;
59  if(chan<0 || chan>=nbDiodes+nbPmts) return -1;
60  if(gain!=0 && gain!=1) return -1;
61  return m_lascalib[type][chan].getType();
62 } // getMean

◆ getVersion()

int TileLaserObject::getVersion ( ) const
inline

Definition at line 209 of file TileLaserObject.h.

210 {
211  return m_version;
212 }

◆ isLASERII()

bool TileLaserObject::isLASERII ( ) const
inline

Definition at line 214 of file TileLaserObject.h.

215 {
216  return (std::abs(m_version)==2);
217 }

◆ isSet()

bool TileLaserObject::isSet ( int  chan,
int  gain,
int  type 
) const

Definition at line 71 of file TileLaserObject.cxx.

71  {
72  if(type-firstType<0 || type-firstType>=nbTypes) return false;
73  if(chan<0 || chan>=nbDiodes+nbPmts) return false;
74  if(gain!=0 && gain!=1) return false;
75  return m_lascalib[type][chan].isSet(gain);
76 } // getSigma

◆ operator std::string()

TileLaserObject::operator std::string ( ) const

Convertion operator to a std::string, can be used in a cast operation : (std::string) TileLaserPmt.

Definition at line 349 of file TileLaserObject.cxx.

350 {
351  std::ostringstream text;
352  text << "TileLaserObject:\n";
353  text << " ";
354  text << "version: " << m_version << " ";
355  text << "BCID: " << m_BCID << " ";
356  text << "daqtype: " << m_daqtype << " ";
357  text << "calibtype: " << m_calibtype << "\n";
358  text << " " << static_cast<std::string> (m_slowCtrl) << "\n";
359  text << " " << static_cast<std::string> (m_laserParameter) << "\n";
360  text << " " << static_cast<std::string> (m_plc) << "\n";
361  text << " LG diodes\n";
362  for (const TileLaserDiode& d : m_diodesLG) {
363  text << " " << static_cast<std::string> (d) << "\n";
364  }
365  text << " HG diodes\n";
366  for (const TileLaserDiode& d : m_diodesHG) {
367  text << " " << static_cast<std::string> (d) << "\n";
368  }
369  text << " LG PMTs\n";
370  for (const TileLaserPmt& p : m_pmtsLG) {
371  text << " " << static_cast<std::string> (p) << "\n";
372  }
373  text << " HG PMTs\n";
374  for (const TileLaserPmt& p : m_pmtsHG) {
375  text << " " << static_cast<std::string> (p) << "\n";
376  }
377  text << " Calib\n";
378  for (const std::vector<TileLasCalib>& v : m_lascalib) {
379  text << " " << v.size() << "calibs\n";
380  for (const TileLasCalib& c : v) {
381  text << " " << static_cast<std::string> (c) << "\n";
382  }
383  }
384  return text.str();
385 }

◆ setBCID()

void TileLaserObject::setBCID ( const int  BCID)
inline

Definition at line 330 of file TileLaserObject.h.

331 {
332  m_BCID=BCID;
333 }

◆ setCalib()

void TileLaserObject::setCalib ( int  chan,
int  type,
double  sumXinQDC,
double  sumX2inQDC,
int  nevts,
int  gain 
)

Definition at line 86 of file TileLaserObject.cxx.

86  {
87  if(!m_lascalib[type][chan].isSet(gain)){
88  m_lascalib[type][chan].setCalib(type,sumXinQDC,sumX2inQDC,nevts,gain);
89  } // IF
90 } // setCalib

◆ setCalibType()

void TileLaserObject::setCalibType ( int  type)

Definition at line 78 of file TileLaserObject.cxx.

78  {
79  m_calibtype = type;
80 }

◆ setControl()

void TileLaserObject::setControl ( const double  pumpDiodeTemp,
const int  timeLastMeasP,
const double  diodeBoxTemp,
const int  timeLastMeasD,
const double  gasFlux,
const int  timeLastMeasG,
const double  humidity,
const int  timeLastMeasH,
const time_t  lastPedMeas,
const time_t  lastAlphaMeas 
)

Definition at line 265 of file TileLaserObject.cxx.

275 {
276  m_slowCtrl.setControl(pumpDiodeTemp, timeLastMeasP, diodeBoxTemp,timeLastMeasD, gasFlux, timeLastMeasF, humidity, timeLastMeasH, lastPedMeas, lastAlphaMeas);
277 }

◆ setDaqType()

void TileLaserObject::setDaqType ( const unsigned int  daqtype)

Definition at line 344 of file TileLaserObject.cxx.

344  {
345  m_daqtype = daqtype;
346 }

◆ setDiode()

void TileLaserObject::setDiode ( const unsigned int  diode,
const int  diodeAdc,
const double  diodePedestal,
const double  diodeSigmaPedestal,
const double  alpha,
const double  sigmaAlpha,
const double  pedestalAlpha,
const double  sigmaPedAlpha,
const unsigned int  gain 
)

Definition at line 300 of file TileLaserObject.cxx.

309 {
310  //ATH_MSG_ERROR("TileLaserObject::setDiode " << diode);
311  if(diode<nbDiodes){
312  if(gain==0){
313  m_diodesLG[diode].setDiode(diodeAdc, diodePedestal, diodeSigmaPedestal, alpha, sigmaAlpha, pedestalAlpha, sigmaPedAlpha);
314  } // IF
315  else{
316  m_diodesHG[diode].setDiode(diodeAdc, diodePedestal, diodeSigmaPedestal, alpha, sigmaAlpha, pedestalAlpha, sigmaPedAlpha);
317  } // IF
318  }else{
319  // log<<MSG::ERROR<<"Exit code in method TileLaserObject::setDiode"<<endmsg;
320  std::abort();
321  }
322 }

◆ setLaser()

void TileLaserObject::setLaser ( const int  Counter,
const int  diodeCurrOrd,
const int  diodeCurrMeas,
const int  filtNumber,
const int  timingDelay,
const int  version 
)

Definition at line 253 of file TileLaserObject.cxx.

259 {
260  m_laserParameter.setLaser(Counter, diodeCurrOrd, diodeCurrMeas, filtNumber, timingDelay);
261  m_version = version;
262  //ATH_MSG_ERROR("TileLaserObject::setLASER " << version);
263 }

◆ setPLC()

void TileLaserObject::setPLC ( const int  alphaPos,
const double  LVdiodes,
const double  HVpmts,
const int  shutter,
const int  interlock,
const int  alarm 
)

Definition at line 280 of file TileLaserObject.cxx.

286 {
287 
288  m_plc.setPLC(alphaPos, LVdiodes, HVpmts, shutter, interlock, alarm);
289 
290 }

◆ setPmt()

void TileLaserObject::setPmt ( const unsigned int  pmt,
const int  pmAdc,
const int  tdc,
const double  pmPedestal,
const double  pmSigmaPedestal,
const unsigned int  gain 
)

Definition at line 324 of file TileLaserObject.cxx.

330 {
331  if(pmt<nbPmts){
332  if(gain==0){
333  m_pmtsLG[pmt].setPmt(pmAdc, tdc, pmPedestal, pmSigmaPedestal);
334  } // IF
335  else{
336  m_pmtsHG[pmt].setPmt(pmAdc, tdc, pmPedestal, pmSigmaPedestal);
337  } // IF
338  }else{
339  // log<<MSG::ERROR<<"Exit code in method TileLaserObject::setPmt"<<endmsg;
340  std::abort();
341  }
342 }

◆ setTimeouts()

void TileLaserObject::setTimeouts ( const bool  qdc,
const bool  tdc 
)

Definition at line 292 of file TileLaserObject.cxx.

294 {
295  m_qdctimeout = qdc;
296  m_tdctimeout = tdc;
297 }

◆ setVersion()

void TileLaserObject::setVersion ( const int  version)
inline

Definition at line 204 of file TileLaserObject.h.

205 {
206  m_version = version;
207 }

Member Data Documentation

◆ m_BCID

int TileLaserObject::m_BCID
private

Definition at line 182 of file TileLaserObject.h.

◆ m_calibtype

int TileLaserObject::m_calibtype
private

Definition at line 185 of file TileLaserObject.h.

◆ m_daqtype

int TileLaserObject::m_daqtype
private

Definition at line 174 of file TileLaserObject.h.

◆ m_diodesHG

std::vector<TileLaserDiode> TileLaserObject::m_diodesHG
private

Definition at line 166 of file TileLaserObject.h.

◆ m_diodesLG

std::vector<TileLaserDiode> TileLaserObject::m_diodesLG
private

Definition at line 165 of file TileLaserObject.h.

◆ m_lascalib

std::vector<std::vector<TileLasCalib> > TileLaserObject::m_lascalib
private

Definition at line 169 of file TileLaserObject.h.

◆ m_laserParameter

TileLaser TileLaserObject::m_laserParameter
private

Definition at line 164 of file TileLaserObject.h.

◆ m_plc

TileLaserPLC TileLaserObject::m_plc
private

Definition at line 170 of file TileLaserObject.h.

◆ m_pmtsHG

std::vector<TileLaserPmt> TileLaserObject::m_pmtsHG
private

Definition at line 168 of file TileLaserObject.h.

◆ m_pmtsLG

std::vector<TileLaserPmt> TileLaserObject::m_pmtsLG
private

Definition at line 167 of file TileLaserObject.h.

◆ m_qdctimeout

bool TileLaserObject::m_qdctimeout
private

Definition at line 171 of file TileLaserObject.h.

◆ m_slowCtrl

TileLaserControl TileLaserObject::m_slowCtrl
private

Definition at line 163 of file TileLaserObject.h.

◆ m_tdctimeout

bool TileLaserObject::m_tdctimeout
private

Definition at line 172 of file TileLaserObject.h.

◆ m_version

int TileLaserObject::m_version
private

Definition at line 183 of file TileLaserObject.h.


The documentation for this class was generated from the following files:
TileLaserControl::getLastAlphaMeas
time_t getLastAlphaMeas() const
Definition: TileLaserControl.h:44
TileLaserPLC::getAlphaPos
int getAlphaPos() const
Definition: TileLaserPLC.h:29
TileLaserObject::m_version
int m_version
Definition: TileLaserObject.h:183
TileLaserDiode
Definition: TileLaserDiode.h:16
TileLaserPLC::getHVpmts
double getHVpmts() const
Definition: TileLaserPLC.h:31
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
TileLaser::getDiodeCurrOrd
int getDiodeCurrOrd() const
Definition: TileLaser.h:30
TileLaserPmt
Definition: TileLaserPmt.h:16
TileLaserPLC::setPLC
void setPLC(const int alphaPos, const double LVdiodes, const double HVpmts, const int shutter, const int interlock, const int alarm)
Definition: TileLaserPLC.h:36
TileLaserObject::LED
@ LED
Definition: TileLaserObject.h:193
TileLaserControl::getTimeLastMeasD
int getTimeLastMeasD() const
Definition: TileLaserControl.h:38
TileLaserObject::getType
int getType(int chan, int gain, int type) const
Definition: TileLaserObject.cxx:57
TileLaserObject::nbGains
@ nbGains
Definition: TileLaserObject.h:44
hist_file_dump.d
d
Definition: hist_file_dump.py:137
ReadBchFromCool.pmt
pmt
Definition: ReadBchFromCool.py:62
TileLaser::getCounter
int getCounter() const
Definition: TileLaser.h:33
TileLaserObject::daqLinearity
@ daqLinearity
Definition: TileLaserObject.h:153
TileLaserObject::m_daqtype
int m_daqtype
Definition: TileLaserObject.h:174
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
TileLaserPLC::getInterlock
int getInterlock() const
Definition: TileLaserPLC.h:33
TileLaserObject::m_diodesLG
std::vector< TileLaserDiode > m_diodesLG
Definition: TileLaserObject.h:165
TileLaserControl::getDiodeBoxTemp
double getDiodeBoxTemp() const
Definition: TileLaserControl.h:37
TileLaserObject::m_slowCtrl
TileLaserControl m_slowCtrl
Definition: TileLaserObject.h:163
TileLaserControl::getLastPedMeas
time_t getLastPedMeas() const
Definition: TileLaserControl.h:43
TileLaserControl::getPumpDiodeTemp
double getPumpDiodeTemp() const
Definition: TileLaserControl.h:35
TileLaserControl::getGasFlux
double getGasFlux() const
Definition: TileLaserControl.h:39
TileLaserPLC::getAlarm
int getAlarm() const
Definition: TileLaserPLC.h:34
TileLaserObject::isSet
bool isSet(int chan, int gain, int type) const
Definition: TileLaserObject.cxx:71
TileLaserObject::m_tdctimeout
bool m_tdctimeout
Definition: TileLaserObject.h:172
TileLaserControl::setControl
void setControl(const double pumpDiodeTemp, const int timeLastMeasP, const double diodeBoxTemp, const int timeLastMeasD, const double gasFlux, const int timeLastMeasF, const double humidity, const int timeLastMeasH, const time_t lastPedMeas, const time_t lastAlphaMeas)
Definition: TileLaserControl.h:46
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
TileLaser::setLaser
void setLaser(const int Counter, const int diodeCurrOrd, const int diodeCurrMeas, const int filtNumber, const int SlamaDelay)
Definition: TileLaser.h:36
TileLaserPLC::getLVdiodes
double getLVdiodes() const
Definition: TileLaserPLC.h:30
TileLaserPLC::getShutter
int getShutter() const
Definition: TileLaserPLC.h:32
TileLaserObject::daqLaser
@ daqLaser
Definition: TileLaserObject.h:153
TileLaserControl::getHumidity
double getHumidity() const
Definition: TileLaserControl.h:41
TileLaserControl::getTimeLastMeasP
int getTimeLastMeasP() const
Definition: TileLaserControl.h:36
lumiFormat.i
int i
Definition: lumiFormat.py:92
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
TileLaserControl::getTimeLastMeasF
int getTimeLastMeasF() const
Definition: TileLaserControl.h:40
TileLaserObject::m_diodesHG
std::vector< TileLaserDiode > m_diodesHG
Definition: TileLaserObject.h:166
TileLaserObject::m_BCID
int m_BCID
Definition: TileLaserObject.h:182
TileLaser::getFiltNumber
int getFiltNumber() const
Definition: TileLaser.h:32
sg-dump.nevts
nevts
Definition: sg-dump.py:146
TileLaserObject::m_lascalib
std::vector< std::vector< TileLasCalib > > m_lascalib
Definition: TileLaserObject.h:169
TileLaserObject::m_qdctimeout
bool m_qdctimeout
Definition: TileLaserObject.h:171
TileLaserObject::m_laserParameter
TileLaser m_laserParameter
Definition: TileLaserObject.h:164
TileLasCalib
Definition: TileLasCalib.h:18
python.PyAthena.v
v
Definition: PyAthena.py:157
get_generator_info.version
version
Definition: get_generator_info.py:33
TileLaserObject::daqAlpha
@ daqAlpha
Definition: TileLaserObject.h:153
TileLaserObject::m_calibtype
int m_calibtype
Definition: TileLaserObject.h:185
TileLaserObject::nbPmts
@ nbPmts
Definition: TileLaserObject.h:45
TileLaserControl::getTimeLastMeasH
int getTimeLastMeasH() const
Definition: TileLaserControl.h:42
TileLaserObject::nbDiodes
@ nbDiodes
Definition: TileLaserObject.h:46
TileLaser::getDiodeCurrMeas
int getDiodeCurrMeas() const
Definition: TileLaser.h:31
TileLaserObject::daqLed
@ daqLed
Definition: TileLaserObject.h:153
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileLaserObject::nbTypes
@ nbTypes
Definition: TileLaserObject.h:47
TileLaserObject::m_pmtsLG
std::vector< TileLaserPmt > m_pmtsLG
Definition: TileLaserObject.h:167
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
TileLaserObject::Pedestal0
@ Pedestal0
Definition: TileLaserObject.h:193
TileLaserObject::Alpha
@ Alpha
Definition: TileLaserObject.h:193
TileLaserObject::m_plc
TileLaserPLC m_plc
Definition: TileLaserObject.h:170
python.compressB64.c
def c
Definition: compressB64.py:93
TileLaserObject::m_pmtsHG
std::vector< TileLaserPmt > m_pmtsHG
Definition: TileLaserObject.h:168
TileLaserObject::daqPedestal
@ daqPedestal
Definition: TileLaserObject.h:153
TileLaserObject::Pedestal1
@ Pedestal1
Definition: TileLaserObject.h:193
TileLaserObject::firstType
@ firstType
Definition: TileLaserObject.h:48