CMS 3D CMS Logo

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

#include <ODLaserConfig.h>

Inheritance diagram for ODLaserConfig:
IODConfig IDBObject

Public Member Functions

int fetchNextId () noexcept(false)
 
int getBlueLaserLogAttenuator () const
 
int getBlueLedMonAmpl () const
 
int getChannelMask () const
 
int getDebug () const
 
int getDummy () const
 
int getEMTCNone () const
 
int getEMTCSlotId () const
 
int getEMTCTTCIn () const
 
int getFilter () const
 
int getFPMode () const
 
int getGreenLaserLogAttenuator () const
 
int getGreenLaserPower () const
 
std::string getHalAddressTableFile () const
 
std::string getHalModuleFile () const
 
std::string getHalStaticTableFile () const
 
int getId () const
 
int getIRLaserLogAttenuator () const
 
int getIRLaserPower () const
 
unsigned char * getLaserClob () const
 
std::string getLaserConfigFile () const
 
std::string getLaserControlHost () const
 
int getLaserControlOn () const
 
int getLaserControlPort () const
 
int getLaserPhase () const
 
std::string getLaserTag () const
 
int getLed1ON () const
 
int getLed2ON () const
 
int getLed3ON () const
 
int getLed4ON () const
 
std::string getLedControlHost () const
 
int getLedControlON () const
 
int getLedControlPort () const
 
std::string getLocalOutputFile () const
 
std::string getMatacqAcquisitionMode () const
 
int getMatacqBaseAddress () const
 
int getMatacqFedId () const
 
std::string getMatacqMode () const
 
int getMatacqNone () const
 
std::string getMatacqSerialNumber () const
 
int getMatacqVernierMax ()
 
int getMatacqVernierMin ()
 
std::string getMaxSamplesForDaq () const
 
int getOpticalSwitch () const
 
int getOrangeLedMonAmpl () const
 
std::string getPedestalFile () const
 
int getPedestalRunEventCount () const
 
int getPostTrig () const
 
int getPower () const
 
int getRawDataMode () const
 
int getRedLaserLogAttenuator () const
 
int getRedLaserPower () const
 
unsigned int getSize () const
 
std::string getTable () override
 
std::string getTrigLogFile () const
 
int getUseBuffer () const
 
int getVinj () const
 
int getWaveLength () const
 
int getWTE2LaserDelay () const
 
int getWTE2LedDelay () const
 
 ODLaserConfig ()
 
void setBlueLaserLogAttenuator (int x)
 
void setBlueLedMonAmpl (int x)
 
void setChannelMask (int x)
 
void setDebug (int x)
 
void setDummy (int x)
 
void setEMTCNone (int x)
 
void setEMTCSlotId (int x)
 
void setEMTCTTCIn (int x)
 
void setFilter (int x)
 
void setFPMode (int x)
 
void setGreenLaserLogAttenuator (int x)
 
void setGreenLaserPower (int x)
 
void setHalAddressTableFile (std::string x)
 
void setHalModuleFile (std::string x)
 
void setHalStaticTableFile (std::string x)
 
void setId (int id)
 
void setIRLaserLogAttenuator (int x)
 
void setIRLaserPower (int x)
 
void setLaserClob (unsigned char *x)
 
void setLaserConfigFile (std::string x)
 
void setLaserControlHost (std::string x)
 
void setLaserControlOn (int x)
 
void setLaserControlPort (int x)
 
void setLaserPhase (int x)
 
void setLaserTag (std::string x)
 
void setLed1ON (int x)
 
void setLed2ON (int x)
 
void setLed3ON (int x)
 
void setLed4ON (int x)
 
void setLedControlHost (std::string x)
 
void setLedControlON (int x)
 
void setLedControlPort (int x)
 
void setLocalOutputFile (std::string x)
 
void setMatacqAcquisitionMode (std::string x)
 
void setMatacqBaseAddress (int x)
 
void setMatacqFedId (int x)
 
void setMatacqMode (std::string x)
 
void setMatacqNone (int x)
 
void setMatacqSerialNumber (std::string x)
 
void setMatacqVernierMax (int x)
 
void setMatacqVernierMin (int x)
 
void setMaxSamplesForDaq (std::string x)
 
void setOpticalSwitch (int x)
 
void setOrangeLedMonAmpl (int x)
 
void setParameters (const std::map< std::string, std::string > &my_keys_map)
 
void setPedestalFile (std::string x)
 
void setPedestalRunEventCount (int x)
 
void setPostTrig (int x)
 
void setPower (int x)
 
void setRawDataMode (int x)
 
void setRedLaserLogAttenuator (int x)
 
void setRedLaserPower (int x)
 
void setSize (unsigned int id)
 
void setTrigLogFile (std::string x)
 
void setUseBuffer (int x)
 
void setVinj (int x)
 
void setWaveLength (int x)
 
void setWTE2LaserDelay (int x)
 
void setWTE2LedDelay (int x)
 
 ~ODLaserConfig () override
 
- Public Member Functions inherited from IODConfig
std::string getConfigTag ()
 
void setConfigTag (std::string x)
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void clear ()
 
void fetchData (ODLaserConfig *result) noexcept(false)
 
int fetchID () noexcept(false)
 
void prepareWrite () noexcept(false) override
 
void writeDB () noexcept(false)
 

Private Attributes

std::string m_aqmode
 
int m_blue_laser_log_attenuator
 
int m_blue_led_mon_ampl
 
int m_chan_mask
 
int m_debug
 
int m_dummy
 
int m_emtc_1
 
int m_emtc_2
 
int m_emtc_3
 
int m_emtc_4
 
int m_emtc_5
 
int m_filter
 
int m_fp_mode
 
int m_green_laser_log_attenuator
 
int m_green_laser_power
 
std::string m_hal_add_file
 
std::string m_hal_mod_file
 
std::string m_hal_tab_file
 
int m_ID
 
int m_ir_laser_log_attenuator
 
int m_ir_laser_power
 
unsigned char * m_laser_clob
 
std::string m_laser_config_file
 
std::string m_laser_tag
 
std::string m_laserhost
 
int m_laserport
 
int m_led1_on
 
int m_led2_on
 
int m_led3_on
 
int m_led4_on
 
std::string m_led_control_host
 
int m_led_control_on
 
int m_led_control_port
 
int m_matacq_vernier_max
 
int m_matacq_vernier_min
 
std::string m_mode
 
int m_mq_base
 
int m_mq_fed
 
std::string m_mq_file
 
int m_mq_none
 
int m_on
 
int m_orange_led_mon_ampl
 
int m_ped_count
 
std::string m_ped_file
 
int m_post_trig
 
int m_power
 
int m_raw_mode
 
int m_red_laser_log_attenuator
 
int m_red_laser_power
 
std::string m_samples
 
std::string m_serial
 
unsigned int m_size
 
int m_switch
 
std::string m_trig_log_file
 
int m_use_buffer
 
int m_vinj
 
int m_wave
 
int m_wte_2_led_delay
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Public Types inherited from IODConfig
typedef oracle::occi::Clob Clob
 
typedef oracle::occi::SQLException SQLException
 
typedef oracle::occi::Statement Statement
 
typedef oracle::occi::Stream Stream
 
- Public Attributes inherited from IODConfig
std::string m_config_tag
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS = 1024
 
- Protected Member Functions inherited from IODConfig
void checkPrepare () noexcept(false)
 
void createReadStatement () noexcept(false)
 
void populateClob (Clob &clob, std::string fname, unsigned int bufsize) noexcept(false)
 
unsigned char * readClob (Clob &clob, int size) noexcept(false)
 
void setPrefetchRowCount (int ncount) noexcept(false)
 
void terminateReadStatement () noexcept(false)
 
void terminateWriteStatement () noexcept(false)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const noexcept(false)
 
- Protected Attributes inherited from IODConfig
Statementm_readStmt
 
Statementm_writeStmt
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 15 of file ODLaserConfig.h.

Constructor & Destructor Documentation

◆ ODLaserConfig()

ODLaserConfig::ODLaserConfig ( )

Definition at line 15 of file ODLaserConfig.cc.

References clear().

15  {
16  m_env = nullptr;
17  m_conn = nullptr;
18  m_writeStmt = nullptr;
19  m_readStmt = nullptr;
20  m_size = 0;
21  m_config_tag = "";
22  m_ID = 0;
23  clear();
24 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
Statement * m_writeStmt
Definition: IODConfig.h:33
std::string m_config_tag
Definition: IODConfig.h:25
unsigned int m_size
Statement * m_readStmt
Definition: IODConfig.h:34

◆ ~ODLaserConfig()

ODLaserConfig::~ODLaserConfig ( )
override

Definition at line 90 of file ODLaserConfig.cc.

90 {}

Member Function Documentation

◆ clear()

void ODLaserConfig::clear ( void  )
private

Definition at line 26 of file ODLaserConfig.cc.

26  {
27  m_debug = 0;
28  m_dummy = 0;
29 
30  // emtc
31  m_emtc_1 = 0;
32  m_emtc_2 = 0;
33  m_emtc_3 = 0;
34  m_emtc_4 = 0;
35  m_emtc_5 = 0;
36 
37  // laser
38  m_wave = 0;
39  m_power = 0;
40  m_switch = 0;
41  m_filter = 0;
42  m_on = 0;
43  m_laserhost = "";
44  m_laserport = 0;
45 
46  // mataq
47  m_mq_base = 0;
48  m_mq_none = 0;
49  m_mode = "";
50  m_chan_mask = 0;
51  m_samples = "";
52  m_ped_file = "";
53  m_use_buffer = 0;
54  m_post_trig = 0;
55  m_fp_mode = 0;
56  m_hal_mod_file = "";
57  m_hal_add_file = "";
58  m_hal_tab_file = "";
59  m_serial = "";
60  m_ped_count = 0;
61  m_raw_mode = 0;
62  m_aqmode = "";
63  m_mq_file = "";
64  m_laser_tag = "";
67 
69  m_led1_on = 0;
70  m_led2_on = 0;
71  m_led3_on = 0;
72  m_led4_on = 0;
73  m_vinj = 0;
76  m_trig_log_file = "";
77  m_led_control_on = 0;
78  m_led_control_host = "";
80  m_ir_laser_power = 0;
88 }
std::string m_mode
std::string m_aqmode
std::string m_led_control_host
int m_matacq_vernier_min
int m_orange_led_mon_ampl
std::string m_hal_add_file
std::string m_serial
int m_ir_laser_log_attenuator
std::string m_laser_tag
std::string m_laserhost
std::string m_laser_config_file
std::string m_ped_file
int m_green_laser_log_attenuator
int m_matacq_vernier_max
std::string m_mq_file
std::string m_hal_mod_file
std::string m_hal_tab_file
int m_blue_laser_log_attenuator
std::string m_trig_log_file
std::string m_samples
int m_red_laser_log_attenuator

◆ fetchData()

void ODLaserConfig::fetchData ( ODLaserConfig result)
privatenoexcept

Definition at line 431 of file ODLaserConfig.cc.

References edmScanValgrind::buffer, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

431  {
432  this->checkConnection();
433  result->clear();
434  if (result->getId() == 0 && (result->getConfigTag().empty())) {
435  throw(std::runtime_error("ODLaserConfig::fetchData(): no Id defined for this ODLaserConfig "));
436  }
437 
438  try {
439  m_readStmt->setSQL(
440  "SELECT * "
441  "FROM " +
442  getTable() + " where ( laser_configuration_id = :1 or laser_tag=:2 )");
443  m_readStmt->setInt(1, result->getId());
444  m_readStmt->setString(2, result->getConfigTag());
445  ResultSet* rset = m_readStmt->executeQuery();
446 
447  rset->next();
448 
449  // start from 3 because of select *
450 
451  result->setId(rset->getInt(1));
452  result->setConfigTag(rset->getString(2));
453 
454  result->setDebug(rset->getInt(3));
455  result->setDummy(rset->getInt(4));
456  result->setMatacqBaseAddress(rset->getInt(5));
457  result->setMatacqNone(rset->getInt(6));
458  result->setMatacqMode(rset->getString(7));
459  result->setChannelMask(rset->getInt(8));
460  result->setMaxSamplesForDaq(rset->getString(9));
461  result->setMatacqFedId(rset->getInt(10));
462  result->setPedestalFile(rset->getString(11));
463  result->setUseBuffer(rset->getInt(12));
464  result->setPostTrig(rset->getInt(13));
465  result->setFPMode(rset->getInt(14));
466  result->setHalModuleFile(rset->getString(15));
467  result->setHalAddressTableFile(rset->getString(16));
468  result->setHalStaticTableFile(rset->getString(17));
469  result->setMatacqSerialNumber(rset->getString(18));
470  result->setPedestalRunEventCount(rset->getInt(19));
471  result->setRawDataMode(rset->getInt(20));
472  result->setMatacqAcquisitionMode(rset->getString(21));
473  result->setLocalOutputFile(rset->getString(22));
474  result->setEMTCNone(rset->getInt(23));
475  result->setWTE2LaserDelay(rset->getInt(24));
476  result->setLaserPhase(rset->getInt(25));
477  result->setEMTCTTCIn(rset->getInt(26));
478  result->setEMTCSlotId(rset->getInt(27));
479  // laser
480  result->setWaveLength(rset->getInt(28));
481  result->setPower(rset->getInt(29));
482  result->setOpticalSwitch(rset->getInt(30));
483  result->setFilter(rset->getInt(31));
484  result->setLaserControlOn(rset->getInt(32));
485  result->setLaserControlHost(rset->getString(33));
486  result->setLaserControlPort(rset->getInt(34));
487  result->setLaserTag(rset->getString(35));
488 
489  result->setMatacqVernierMin(rset->getInt(36));
490  result->setMatacqVernierMax(rset->getInt(37));
491 
492  result->setWTE2LedDelay(rset->getInt(38));
493  result->setLed1ON(rset->getInt(39));
494  result->setLed2ON(rset->getInt(40));
495  result->setLed3ON(rset->getInt(41));
496  result->setLed4ON(rset->getInt(42));
497  result->setVinj(rset->getInt(43));
498  result->setOrangeLedMonAmpl(rset->getInt(44));
499  result->setBlueLedMonAmpl(rset->getInt(45));
500  result->setTrigLogFile(rset->getString(46));
501  result->setLedControlON(rset->getInt(47));
502  result->setLedControlHost(rset->getString(48));
503  result->setLedControlPort(rset->getInt(49));
504  result->setIRLaserPower(rset->getInt(50));
505  result->setGreenLaserPower(rset->getInt(51));
506  result->setRedLaserPower(rset->getInt(52));
507  result->setBlueLaserLogAttenuator(rset->getInt(53));
508  result->setIRLaserLogAttenuator(rset->getInt(54));
509  result->setGreenLaserLogAttenuator(rset->getInt(55));
510  result->setRedLaserLogAttenuator(rset->getInt(56));
511  result->setLaserConfigFile(rset->getString(57));
512 
513  Clob clob = rset->getClob(58);
514  cout << "Opening the clob in Read only mode" << endl;
515  clob.open(OCCI_LOB_READONLY);
516  int clobLength = clob.length();
517  cout << "Length of the clob is: " << clobLength << endl;
518  m_size = clobLength;
519  unsigned char* buffer = readClob(clob, m_size);
520  clob.close();
521  cout << "the clob buffer is:" << endl;
522  for (int i = 0; i < clobLength; ++i)
523  cout << (char)buffer[i];
524  cout << endl;
525 
526  result->setLaserClob(buffer);
527 
528  } catch (SQLException& e) {
529  throw(std::runtime_error(std::string("ODLaserConfig::fetchData(): ") + e.getMessage()));
530  }
531 }
unsigned char * readClob(Clob &clob, int size) noexcept(false)
Definition: IODConfig.h:124
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
unsigned int m_size
oracle::occi::Clob Clob
Definition: IODConfig.h:23
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
Statement * m_readStmt
Definition: IODConfig.h:34
std::string getTable() override
Definition: ODLaserConfig.h:22

◆ fetchID()

int ODLaserConfig::fetchID ( )
privatenoexcept

Definition at line 533 of file ODLaserConfig.cc.

References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.

533  {
534  // Return from memory if available
535  if (m_ID != 0) {
536  return m_ID;
537  }
538 
539  this->checkConnection();
540 
541  try {
542  Statement* stmt = m_conn->createStatement();
543  stmt->setSQL(
544  "SELECT laser_configuration_id FROM ecal_laser_configuration "
545  "WHERE laser_tag=:laser_tag ");
546  stmt->setString(1, getLaserTag());
547 
548  ResultSet* rset = stmt->executeQuery();
549 
550  if (rset->next()) {
551  m_ID = rset->getInt(1);
552  } else {
553  m_ID = 0;
554  }
555  m_conn->terminateStatement(stmt);
556  } catch (SQLException& e) {
557  throw(std::runtime_error(std::string("ODLaserConfig::fetchID: ") + e.getMessage()));
558  }
559 
560  fetchData(this);
561 
562  return m_ID;
563 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
std::string getLaserTag() const
oracle::occi::Statement Statement
Definition: IODConfig.h:21
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
void fetchData(ODLaserConfig *result) noexcept(false)

◆ fetchNextId()

int ODLaserConfig::fetchNextId ( )
noexcept

Definition at line 233 of file ODLaserConfig.cc.

References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

233  {
234  int result = 0;
235  try {
236  this->checkConnection();
237 
238  m_readStmt = m_conn->createStatement();
239  m_readStmt->setSQL("select ecal_laser_config_sq.NextVal from dual");
240  ResultSet* rset = m_readStmt->executeQuery();
241  while (rset->next()) {
242  result = rset->getInt(1);
243  }
244  m_conn->terminateStatement(m_readStmt);
245  return result;
246 
247  } catch (SQLException& e) {
248  throw(std::runtime_error(std::string("ODLaserConfig::fetchNextId(): ") + e.getMessage()));
249  }
250 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
Statement * m_readStmt
Definition: IODConfig.h:34

◆ getBlueLaserLogAttenuator()

int ODLaserConfig::getBlueLaserLogAttenuator ( ) const
inline

Definition at line 170 of file ODLaserConfig.h.

References m_blue_laser_log_attenuator.

170 { return m_blue_laser_log_attenuator; }
int m_blue_laser_log_attenuator

◆ getBlueLedMonAmpl()

int ODLaserConfig::getBlueLedMonAmpl ( ) const
inline

Definition at line 146 of file ODLaserConfig.h.

References m_blue_led_mon_ampl.

146 { return m_blue_led_mon_ampl; }

◆ getChannelMask()

int ODLaserConfig::getChannelMask ( ) const
inline

Definition at line 41 of file ODLaserConfig.h.

References m_chan_mask.

41 { return m_chan_mask; }

◆ getDebug()

int ODLaserConfig::getDebug ( ) const
inline

Definition at line 30 of file ODLaserConfig.h.

References m_debug.

30 { return m_debug; }

◆ getDummy()

int ODLaserConfig::getDummy ( ) const
inline

Definition at line 32 of file ODLaserConfig.h.

References m_dummy.

32 { return m_dummy; }

◆ getEMTCNone()

int ODLaserConfig::getEMTCNone ( ) const
inline

Definition at line 84 of file ODLaserConfig.h.

References m_emtc_1.

84 { return m_emtc_1; }

◆ getEMTCSlotId()

int ODLaserConfig::getEMTCSlotId ( ) const
inline

Definition at line 92 of file ODLaserConfig.h.

References m_emtc_5.

92 { return m_emtc_5; }

◆ getEMTCTTCIn()

int ODLaserConfig::getEMTCTTCIn ( ) const
inline

Definition at line 90 of file ODLaserConfig.h.

References m_emtc_4.

90 { return m_emtc_4; }

◆ getFilter()

int ODLaserConfig::getFilter ( ) const
inline

Definition at line 108 of file ODLaserConfig.h.

References m_filter.

108 { return m_filter; }

◆ getFPMode()

int ODLaserConfig::getFPMode ( ) const
inline

Definition at line 53 of file ODLaserConfig.h.

References m_fp_mode.

53 { return m_fp_mode; }

◆ getGreenLaserLogAttenuator()

int ODLaserConfig::getGreenLaserLogAttenuator ( ) const
inline

Definition at line 176 of file ODLaserConfig.h.

References m_green_laser_log_attenuator.

int m_green_laser_log_attenuator

◆ getGreenLaserPower()

int ODLaserConfig::getGreenLaserPower ( ) const
inline

Definition at line 164 of file ODLaserConfig.h.

References m_green_laser_power.

164 { return m_green_laser_power; }

◆ getHalAddressTableFile()

std::string ODLaserConfig::getHalAddressTableFile ( ) const
inline

Definition at line 62 of file ODLaserConfig.h.

References m_hal_add_file.

62 { return m_hal_add_file; }
std::string m_hal_add_file

◆ getHalModuleFile()

std::string ODLaserConfig::getHalModuleFile ( ) const
inline

Definition at line 55 of file ODLaserConfig.h.

References m_hal_mod_file.

55 { return m_hal_mod_file; }
std::string m_hal_mod_file

◆ getHalStaticTableFile()

std::string ODLaserConfig::getHalStaticTableFile ( ) const
inline

Definition at line 65 of file ODLaserConfig.h.

References m_hal_tab_file.

65 { return m_hal_tab_file; }
std::string m_hal_tab_file

◆ getId()

int ODLaserConfig::getId ( void  ) const
inline

Definition at line 25 of file ODLaserConfig.h.

References m_ID.

25 { return m_ID; }

◆ getIRLaserLogAttenuator()

int ODLaserConfig::getIRLaserLogAttenuator ( ) const
inline

Definition at line 173 of file ODLaserConfig.h.

References m_ir_laser_log_attenuator.

173 { return m_ir_laser_log_attenuator; }
int m_ir_laser_log_attenuator

◆ getIRLaserPower()

int ODLaserConfig::getIRLaserPower ( ) const
inline

Definition at line 161 of file ODLaserConfig.h.

References m_ir_laser_power.

161 { return m_ir_laser_power; }

◆ getLaserClob()

unsigned char* ODLaserConfig::getLaserClob ( ) const
inline

Definition at line 185 of file ODLaserConfig.h.

References m_laser_clob.

185 { return m_laser_clob; }
unsigned char * m_laser_clob

◆ getLaserConfigFile()

std::string ODLaserConfig::getLaserConfigFile ( ) const
inline

Definition at line 182 of file ODLaserConfig.h.

References m_laser_config_file.

182 { return m_laser_config_file; }
std::string m_laser_config_file

◆ getLaserControlHost()

std::string ODLaserConfig::getLaserControlHost ( ) const
inline

Definition at line 114 of file ODLaserConfig.h.

References m_laserhost.

114 { return m_laserhost; }
std::string m_laserhost

◆ getLaserControlOn()

int ODLaserConfig::getLaserControlOn ( ) const
inline

Definition at line 111 of file ODLaserConfig.h.

References m_on.

111 { return m_on; }

◆ getLaserControlPort()

int ODLaserConfig::getLaserControlPort ( ) const
inline

Definition at line 117 of file ODLaserConfig.h.

References m_laserport.

117 { return m_laserport; }

◆ getLaserPhase()

int ODLaserConfig::getLaserPhase ( ) const
inline

Definition at line 88 of file ODLaserConfig.h.

References m_emtc_3.

88 { return m_emtc_3; }

◆ getLaserTag()

std::string ODLaserConfig::getLaserTag ( ) const
inline

Definition at line 120 of file ODLaserConfig.h.

References m_laser_tag.

120 { return m_laser_tag; }
std::string m_laser_tag

◆ getLed1ON()

int ODLaserConfig::getLed1ON ( ) const
inline

Definition at line 128 of file ODLaserConfig.h.

References m_led1_on.

128 { return m_led1_on; }

◆ getLed2ON()

int ODLaserConfig::getLed2ON ( ) const
inline

Definition at line 131 of file ODLaserConfig.h.

References m_led2_on.

131 { return m_led2_on; }

◆ getLed3ON()

int ODLaserConfig::getLed3ON ( ) const
inline

Definition at line 134 of file ODLaserConfig.h.

References m_led3_on.

134 { return m_led3_on; }

◆ getLed4ON()

int ODLaserConfig::getLed4ON ( ) const
inline

Definition at line 137 of file ODLaserConfig.h.

References m_led4_on.

137 { return m_led4_on; }

◆ getLedControlHost()

std::string ODLaserConfig::getLedControlHost ( ) const
inline

Definition at line 155 of file ODLaserConfig.h.

References m_led_control_host.

155 { return m_led_control_host; }
std::string m_led_control_host

◆ getLedControlON()

int ODLaserConfig::getLedControlON ( ) const
inline

Definition at line 152 of file ODLaserConfig.h.

References m_led_control_on.

152 { return m_led_control_on; }

◆ getLedControlPort()

int ODLaserConfig::getLedControlPort ( ) const
inline

Definition at line 158 of file ODLaserConfig.h.

References m_led_control_port.

158 { return m_led_control_port; }

◆ getLocalOutputFile()

std::string ODLaserConfig::getLocalOutputFile ( ) const
inline

Definition at line 80 of file ODLaserConfig.h.

References m_mq_file.

80 { return m_mq_file; }
std::string m_mq_file

◆ getMatacqAcquisitionMode()

std::string ODLaserConfig::getMatacqAcquisitionMode ( ) const
inline

Definition at line 77 of file ODLaserConfig.h.

References m_aqmode.

77 { return m_aqmode; }
std::string m_aqmode

◆ getMatacqBaseAddress()

int ODLaserConfig::getMatacqBaseAddress ( ) const
inline

Definition at line 35 of file ODLaserConfig.h.

References m_mq_base.

35 { return m_mq_base; }

◆ getMatacqFedId()

int ODLaserConfig::getMatacqFedId ( ) const
inline

Definition at line 45 of file ODLaserConfig.h.

References m_mq_fed.

45 { return m_mq_fed; }

◆ getMatacqMode()

std::string ODLaserConfig::getMatacqMode ( ) const
inline

Definition at line 39 of file ODLaserConfig.h.

References m_mode.

39 { return m_mode; }
std::string m_mode

◆ getMatacqNone()

int ODLaserConfig::getMatacqNone ( ) const
inline

Definition at line 37 of file ODLaserConfig.h.

References m_mq_none.

37 { return m_mq_none; }

◆ getMatacqSerialNumber()

std::string ODLaserConfig::getMatacqSerialNumber ( ) const
inline

Definition at line 68 of file ODLaserConfig.h.

References m_serial.

68 { return m_serial; }
std::string m_serial

◆ getMatacqVernierMax()

int ODLaserConfig::getMatacqVernierMax ( )
inline

Definition at line 57 of file ODLaserConfig.h.

References m_matacq_vernier_max.

57 { return m_matacq_vernier_max; }
int m_matacq_vernier_max

◆ getMatacqVernierMin()

int ODLaserConfig::getMatacqVernierMin ( )
inline

Definition at line 59 of file ODLaserConfig.h.

References m_matacq_vernier_min.

59 { return m_matacq_vernier_min; }
int m_matacq_vernier_min

◆ getMaxSamplesForDaq()

std::string ODLaserConfig::getMaxSamplesForDaq ( ) const
inline

Definition at line 43 of file ODLaserConfig.h.

References m_samples.

43 { return m_samples; }
std::string m_samples

◆ getOpticalSwitch()

int ODLaserConfig::getOpticalSwitch ( ) const
inline

Definition at line 105 of file ODLaserConfig.h.

References m_switch.

105 { return m_switch; }

◆ getOrangeLedMonAmpl()

int ODLaserConfig::getOrangeLedMonAmpl ( ) const
inline

Definition at line 143 of file ODLaserConfig.h.

References m_orange_led_mon_ampl.

143 { return m_orange_led_mon_ampl; }
int m_orange_led_mon_ampl

◆ getPedestalFile()

std::string ODLaserConfig::getPedestalFile ( ) const
inline

Definition at line 47 of file ODLaserConfig.h.

References m_ped_file.

47 { return m_ped_file; }
std::string m_ped_file

◆ getPedestalRunEventCount()

int ODLaserConfig::getPedestalRunEventCount ( ) const
inline

Definition at line 71 of file ODLaserConfig.h.

References m_ped_count.

71 { return m_ped_count; }

◆ getPostTrig()

int ODLaserConfig::getPostTrig ( ) const
inline

Definition at line 51 of file ODLaserConfig.h.

References m_post_trig.

51 { return m_post_trig; }

◆ getPower()

int ODLaserConfig::getPower ( ) const
inline

Definition at line 102 of file ODLaserConfig.h.

References m_power.

102 { return m_power; }

◆ getRawDataMode()

int ODLaserConfig::getRawDataMode ( ) const
inline

Definition at line 74 of file ODLaserConfig.h.

References m_raw_mode.

74 { return m_raw_mode; }

◆ getRedLaserLogAttenuator()

int ODLaserConfig::getRedLaserLogAttenuator ( ) const
inline

Definition at line 179 of file ODLaserConfig.h.

References m_red_laser_log_attenuator.

179 { return m_red_laser_log_attenuator; }
int m_red_laser_log_attenuator

◆ getRedLaserPower()

int ODLaserConfig::getRedLaserPower ( ) const
inline

Definition at line 167 of file ODLaserConfig.h.

References m_red_laser_power.

167 { return m_red_laser_power; }

◆ getSize()

unsigned int ODLaserConfig::getSize ( ) const
inline

Definition at line 27 of file ODLaserConfig.h.

References m_size.

27 { return m_size; }
unsigned int m_size

◆ getTable()

std::string ODLaserConfig::getTable ( )
inlineoverridevirtual

Implements IODConfig.

Definition at line 22 of file ODLaserConfig.h.

22 { return "ECAL_Laser_CONFIGURATION"; }

◆ getTrigLogFile()

std::string ODLaserConfig::getTrigLogFile ( ) const
inline

Definition at line 149 of file ODLaserConfig.h.

References m_trig_log_file.

149 { return m_trig_log_file; }
std::string m_trig_log_file

◆ getUseBuffer()

int ODLaserConfig::getUseBuffer ( ) const
inline

Definition at line 49 of file ODLaserConfig.h.

References m_use_buffer.

49 { return m_use_buffer; }

◆ getVinj()

int ODLaserConfig::getVinj ( ) const
inline

Definition at line 140 of file ODLaserConfig.h.

References m_vinj.

140 { return m_vinj; }

◆ getWaveLength()

int ODLaserConfig::getWaveLength ( ) const
inline

Definition at line 99 of file ODLaserConfig.h.

References m_wave.

99 { return m_wave; }

◆ getWTE2LaserDelay()

int ODLaserConfig::getWTE2LaserDelay ( ) const
inline

Definition at line 86 of file ODLaserConfig.h.

References m_emtc_2.

86 { return m_emtc_2; }

◆ getWTE2LedDelay()

int ODLaserConfig::getWTE2LedDelay ( ) const
inline

Definition at line 125 of file ODLaserConfig.h.

References m_wte_2_led_delay.

125 { return m_wte_2_led_delay; }

◆ prepareWrite()

void ODLaserConfig::prepareWrite ( )
overrideprivatevirtualnoexcept

Implements IODConfig.

Definition at line 252 of file ODLaserConfig.cc.

References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.

252  {
253  this->checkConnection();
254  int next_id = fetchNextId();
255 
256  try {
257  m_writeStmt = m_conn->createStatement();
258  m_writeStmt->setSQL(
259  "INSERT INTO ECAL_Laser_CONFIGURATION ( laser_configuration_id, laser_tag "
260  ", laser_DEBUG "
261  ", DUMMY "
262  ", MATACQ_BASE_ADDRESS "
263  ", MATACQ_NONE "
264  ", matacq_mode "
265  ", channel_Mask "
266  ", max_Samples_For_Daq "
267  ", maTACQ_FED_ID "
268  ", pedestal_File "
269  ", use_Buffer "
270  ", postTrig "
271  ", fp_Mode "
272  ", hal_Module_File "
273  ", hal_Address_Table_File "
274  ", hal_Static_Table_File "
275  ", matacq_Serial_Number "
276  ", pedestal_Run_Event_Count "
277  ", raw_Data_Mode "
278  ", ACQUISITION_MODE "
279  ", LOCAL_OUTPUT_FILE "
280  ", emtc_none "
281  ", wte2_laser_delay "
282  ", laser_phase "
283  ", emtc_ttc_in "
284  ", emtc_slot_id "
285  ", WAVELENGTH "
286  ", POWER_SETTING "
287  ", OPTICAL_SWITCH "
288  ", FILTER "
289  ", LASER_CONTROL_ON "
290  ", LASER_CONTROL_HOST "
291  ", LASER_CONTROL_PORT "
292  ", LASER_TAG2 "
293  ", MATACQ_VERNIER_MIN "
294  ", MATACQ_VERNIER_MAX "
295  " , wte_2_led_delay "
296  " , led1_on "
297  " , led2_on "
298  " , led3_on "
299  " , led4_on "
300  " , VINJ "
301  " , orange_led_mon_ampl"
302  " , blue_led_mon_ampl "
303  " , trig_log_file "
304  " , led_control_on "
305  " , led_control_host "
306  " , led_control_port "
307  " , ir_laser_power "
308  " , green_laser_power"
309  " , red_laser_power "
310  " , blue_laser_log_attenuator "
311  " , IR_LASER_LOG_ATTENUATOR "
312  " , GREEN_LASER_LOG_ATTENUATOR"
313  " , RED_LASER_LOG_ATTENUATOR "
314  " , LASER_CONFIG_FILE "
315  " , laser_configuration ) "
316  " VALUES ( :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, "
317  ":11, :12, :13, :14, :15, :16, :17, :18, :19, :20, "
318  ":21, :22, :23, :24, :25, :26, :27, :28, :29, :30, "
319  ":31, :32, :33, :34, :35, :36, :37, "
320  " :38, :39, :40, :41, :42, :43, :44, :45, :46, :47, :48, :49, :50, :51, :52, :53, :54, :55, :56, :57, :58 )");
321  m_writeStmt->setInt(1, next_id);
322  m_ID = next_id;
323  } catch (SQLException& e) {
324  throw(std::runtime_error(std::string("ODLaserConfig::prepareWrite(): ") + e.getMessage()));
325  }
326 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
Statement * m_writeStmt
Definition: IODConfig.h:33
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
int fetchNextId() noexcept(false)
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20

◆ setBlueLaserLogAttenuator()

void ODLaserConfig::setBlueLaserLogAttenuator ( int  x)
inline

Definition at line 169 of file ODLaserConfig.h.

References m_blue_laser_log_attenuator, and x.

◆ setBlueLedMonAmpl()

void ODLaserConfig::setBlueLedMonAmpl ( int  x)
inline

Definition at line 145 of file ODLaserConfig.h.

References m_blue_led_mon_ampl, and x.

◆ setChannelMask()

void ODLaserConfig::setChannelMask ( int  x)
inline

Definition at line 40 of file ODLaserConfig.h.

References m_chan_mask, and x.

◆ setDebug()

void ODLaserConfig::setDebug ( int  x)
inline

Definition at line 29 of file ODLaserConfig.h.

References m_debug, and x.

◆ setDummy()

void ODLaserConfig::setDummy ( int  x)
inline

Definition at line 31 of file ODLaserConfig.h.

References m_dummy, and x.

◆ setEMTCNone()

void ODLaserConfig::setEMTCNone ( int  x)
inline

Definition at line 83 of file ODLaserConfig.h.

References m_emtc_1, and x.

◆ setEMTCSlotId()

void ODLaserConfig::setEMTCSlotId ( int  x)
inline

Definition at line 91 of file ODLaserConfig.h.

References m_emtc_5, and x.

◆ setEMTCTTCIn()

void ODLaserConfig::setEMTCTTCIn ( int  x)
inline

Definition at line 89 of file ODLaserConfig.h.

References m_emtc_4, and x.

◆ setFilter()

void ODLaserConfig::setFilter ( int  x)
inline

Definition at line 107 of file ODLaserConfig.h.

References m_filter, and x.

107 { m_filter = x; }

◆ setFPMode()

void ODLaserConfig::setFPMode ( int  x)
inline

Definition at line 52 of file ODLaserConfig.h.

References m_fp_mode, and x.

◆ setGreenLaserLogAttenuator()

void ODLaserConfig::setGreenLaserLogAttenuator ( int  x)
inline

Definition at line 175 of file ODLaserConfig.h.

References m_green_laser_log_attenuator, and x.

◆ setGreenLaserPower()

void ODLaserConfig::setGreenLaserPower ( int  x)
inline

Definition at line 163 of file ODLaserConfig.h.

References m_green_laser_power, and x.

◆ setHalAddressTableFile()

void ODLaserConfig::setHalAddressTableFile ( std::string  x)
inline

Definition at line 61 of file ODLaserConfig.h.

References m_hal_add_file, and x.

61 { m_hal_add_file = x; }
std::string m_hal_add_file

◆ setHalModuleFile()

void ODLaserConfig::setHalModuleFile ( std::string  x)
inline

Definition at line 54 of file ODLaserConfig.h.

References m_hal_mod_file, and x.

54 { m_hal_mod_file = x; }
std::string m_hal_mod_file

◆ setHalStaticTableFile()

void ODLaserConfig::setHalStaticTableFile ( std::string  x)
inline

Definition at line 64 of file ODLaserConfig.h.

References m_hal_tab_file, and x.

64 { m_hal_tab_file = x; }
std::string m_hal_tab_file

◆ setId()

void ODLaserConfig::setId ( int  id)
inline

Definition at line 24 of file ODLaserConfig.h.

References triggerObjects_cff::id, and m_ID.

◆ setIRLaserLogAttenuator()

void ODLaserConfig::setIRLaserLogAttenuator ( int  x)
inline

Definition at line 172 of file ODLaserConfig.h.

References m_ir_laser_log_attenuator, and x.

◆ setIRLaserPower()

void ODLaserConfig::setIRLaserPower ( int  x)
inline

Definition at line 160 of file ODLaserConfig.h.

References m_ir_laser_power, and x.

◆ setLaserClob()

void ODLaserConfig::setLaserClob ( unsigned char *  x)
inline

Definition at line 184 of file ODLaserConfig.h.

References m_laser_clob, and x.

184 { m_laser_clob = x; }
unsigned char * m_laser_clob

◆ setLaserConfigFile()

void ODLaserConfig::setLaserConfigFile ( std::string  x)
inline

Definition at line 181 of file ODLaserConfig.h.

References m_laser_config_file, and x.

181 { m_laser_config_file = x; }
std::string m_laser_config_file

◆ setLaserControlHost()

void ODLaserConfig::setLaserControlHost ( std::string  x)
inline

Definition at line 113 of file ODLaserConfig.h.

References m_laserhost, and x.

113 { m_laserhost = x; }
std::string m_laserhost

◆ setLaserControlOn()

void ODLaserConfig::setLaserControlOn ( int  x)
inline

Definition at line 110 of file ODLaserConfig.h.

References m_on, and x.

110 { m_on = x; }

◆ setLaserControlPort()

void ODLaserConfig::setLaserControlPort ( int  x)
inline

Definition at line 116 of file ODLaserConfig.h.

References m_laserport, and x.

◆ setLaserPhase()

void ODLaserConfig::setLaserPhase ( int  x)
inline

Definition at line 87 of file ODLaserConfig.h.

References m_emtc_3, and x.

◆ setLaserTag()

void ODLaserConfig::setLaserTag ( std::string  x)
inline

Definition at line 119 of file ODLaserConfig.h.

References m_laser_tag, and x.

119 { m_laser_tag = x; }
std::string m_laser_tag

◆ setLed1ON()

void ODLaserConfig::setLed1ON ( int  x)
inline

Definition at line 127 of file ODLaserConfig.h.

References m_led1_on, and x.

◆ setLed2ON()

void ODLaserConfig::setLed2ON ( int  x)
inline

Definition at line 130 of file ODLaserConfig.h.

References m_led2_on, and x.

◆ setLed3ON()

void ODLaserConfig::setLed3ON ( int  x)
inline

Definition at line 133 of file ODLaserConfig.h.

References m_led3_on, and x.

◆ setLed4ON()

void ODLaserConfig::setLed4ON ( int  x)
inline

Definition at line 136 of file ODLaserConfig.h.

References m_led4_on, and x.

◆ setLedControlHost()

void ODLaserConfig::setLedControlHost ( std::string  x)
inline

Definition at line 154 of file ODLaserConfig.h.

References m_led_control_host, and x.

154 { m_led_control_host = x; }
std::string m_led_control_host

◆ setLedControlON()

void ODLaserConfig::setLedControlON ( int  x)
inline

Definition at line 151 of file ODLaserConfig.h.

References m_led_control_on, and x.

◆ setLedControlPort()

void ODLaserConfig::setLedControlPort ( int  x)
inline

Definition at line 157 of file ODLaserConfig.h.

References m_led_control_port, and x.

◆ setLocalOutputFile()

void ODLaserConfig::setLocalOutputFile ( std::string  x)
inline

Definition at line 79 of file ODLaserConfig.h.

References m_mq_file, and x.

79 { m_mq_file = x; }
std::string m_mq_file

◆ setMatacqAcquisitionMode()

void ODLaserConfig::setMatacqAcquisitionMode ( std::string  x)
inline

Definition at line 76 of file ODLaserConfig.h.

References m_aqmode, and x.

76 { m_aqmode = x; }
std::string m_aqmode

◆ setMatacqBaseAddress()

void ODLaserConfig::setMatacqBaseAddress ( int  x)
inline

Definition at line 34 of file ODLaserConfig.h.

References m_mq_base, and x.

◆ setMatacqFedId()

void ODLaserConfig::setMatacqFedId ( int  x)
inline

Definition at line 44 of file ODLaserConfig.h.

References m_mq_fed, and x.

◆ setMatacqMode()

void ODLaserConfig::setMatacqMode ( std::string  x)
inline

Definition at line 38 of file ODLaserConfig.h.

References m_mode, and x.

38 { m_mode = x; }
std::string m_mode

◆ setMatacqNone()

void ODLaserConfig::setMatacqNone ( int  x)
inline

Definition at line 36 of file ODLaserConfig.h.

References m_mq_none, and x.

◆ setMatacqSerialNumber()

void ODLaserConfig::setMatacqSerialNumber ( std::string  x)
inline

Definition at line 67 of file ODLaserConfig.h.

References m_serial, and x.

67 { m_serial = x; }
std::string m_serial

◆ setMatacqVernierMax()

void ODLaserConfig::setMatacqVernierMax ( int  x)
inline

Definition at line 56 of file ODLaserConfig.h.

References m_matacq_vernier_max, and x.

◆ setMatacqVernierMin()

void ODLaserConfig::setMatacqVernierMin ( int  x)
inline

Definition at line 58 of file ODLaserConfig.h.

References m_matacq_vernier_min, and x.

◆ setMaxSamplesForDaq()

void ODLaserConfig::setMaxSamplesForDaq ( std::string  x)
inline

Definition at line 42 of file ODLaserConfig.h.

References m_samples, and x.

42 { m_samples = x; }
std::string m_samples

◆ setOpticalSwitch()

void ODLaserConfig::setOpticalSwitch ( int  x)
inline

Definition at line 104 of file ODLaserConfig.h.

References m_switch, and x.

104 { m_switch = x; }

◆ setOrangeLedMonAmpl()

void ODLaserConfig::setOrangeLedMonAmpl ( int  x)
inline

Definition at line 142 of file ODLaserConfig.h.

References m_orange_led_mon_ampl, and x.

◆ setParameters()

void ODLaserConfig::setParameters ( const std::map< std::string, std::string > &  my_keys_map)

Definition at line 92 of file ODLaserConfig.cc.

References gather_cfg::cout, mps_fire::end, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

92  {
93  // parses the result of the XML parser that is a map of
94  // string string with variable name variable value
95 
96  for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
97  if (ci->first == "LASER_CONFIGURATION_ID")
98  setConfigTag(ci->second);
99  if (ci->first == "DEBUG")
100  setDebug(atoi(ci->second.c_str()));
101  if (ci->first == "LASER_DEBUG")
102  setDebug(atoi(ci->second.c_str()));
103  if (ci->first == "DUMMY")
104  setDummy(atoi(ci->second.c_str()));
105  if (ci->first == "MATACQ_BASE_ADDRESS")
106  setMatacqBaseAddress(atoi(ci->second.c_str()));
107  if (ci->first == "MATACQ_NONE")
108  setMatacqNone(atoi(ci->second.c_str()));
109  if (ci->first == "MATACQ_MODE")
110  setMatacqMode(ci->second);
111  if (ci->first == "CHANNEL_MASK")
112  setChannelMask(atoi(ci->second.c_str()));
113  if (ci->first == "MAX_SAMPLES_FOR_DAQ")
114  setMaxSamplesForDaq(ci->second);
115  if (ci->first == "MATACQ_FED_ID")
116  setMatacqFedId(atoi(ci->second.c_str()));
117  if (ci->first == "PEDESTAL_FILE")
118  setPedestalFile(ci->second);
119  if (ci->first == "USE_BUFFER")
120  setUseBuffer(atoi(ci->second.c_str()));
121  if (ci->first == "POSTTRIG")
122  setPostTrig(atoi(ci->second.c_str()));
123  if (ci->first == "FP_MODE")
124  setFPMode(atoi(ci->second.c_str()));
125  if (ci->first == "HAL_MODULE_FILE")
126  setHalModuleFile(ci->second);
127  if (ci->first == "HAL_ADDRESS_TABLE_FILE" || ci->first == "HAL_ADDRESST_ABLE_FILE")
128  setHalAddressTableFile(ci->second);
129  if (ci->first == "HAL_STATIC_TABLE_FILE")
130  setHalStaticTableFile(ci->second);
131  if (ci->first == "MATACQ_SERIAL_NUMBER")
132  setMatacqSerialNumber(ci->second);
133  if (ci->first == "PEDESTAL_RUN_EVENT_COUNT")
134  setPedestalRunEventCount(atoi(ci->second.c_str()));
135  if (ci->first == "RAW_DATA_MODE")
136  setRawDataMode(atoi(ci->second.c_str()));
137  if (ci->first == "ACQUISITION_MODE")
138  setMatacqAcquisitionMode(ci->second);
139  if (ci->first == "LOCAL_OUTPUT_FILE")
140  setLocalOutputFile(ci->second);
141  if (ci->first == "EMTC_NONE")
142  setEMTCNone(atoi(ci->second.c_str()));
143  if (ci->first == "WTE2_LASER_DELAY")
144  setWTE2LaserDelay(atoi(ci->second.c_str()));
145  if (ci->first == "LASER_PHASE")
146  setLaserPhase(atoi(ci->second.c_str()));
147  if (ci->first == "EMTC_TTC_IN")
148  setEMTCTTCIn(atoi(ci->second.c_str()));
149  if (ci->first == "EMTC_SLOT_ID")
150  setEMTCSlotId(atoi(ci->second.c_str()));
151  if (ci->first == "WAVELENGTH")
152  setWaveLength(atoi(ci->second.c_str()));
153  if (ci->first == "OPTICAL_SWITCH")
154  setOpticalSwitch(atoi(ci->second.c_str()));
155  if (ci->first == "POWER_SETTING")
156  setPower(atoi(ci->second.c_str()));
157  if (ci->first == "FILTER")
158  setFilter(atoi(ci->second.c_str()));
159  if (ci->first == "LASER_CONTROL_ON")
160  setLaserControlOn(atoi(ci->second.c_str()));
161  if (ci->first == "LASER_CONTROL_HOST")
162  setLaserControlHost(ci->second);
163  if (ci->first == "LASER_CONTROL_PORT")
164  setLaserControlPort(atoi(ci->second.c_str()));
165  if (ci->first == "MATACQ_VERNIER_MAX")
166  setMatacqVernierMax(atoi(ci->second.c_str()));
167  if (ci->first == "MATACQ_VERNIER_MIN")
168  setMatacqVernierMin(atoi(ci->second.c_str()));
169 
170  if (ci->first == "WTE_2_LED_DELAY")
171  setWTE2LedDelay(atoi(ci->second.c_str()));
172  if (ci->first == "LED1_ON")
173  setLed1ON(atoi(ci->second.c_str()));
174  if (ci->first == "LED2_ON")
175  setLed2ON(atoi(ci->second.c_str()));
176  if (ci->first == "LED3_ON")
177  setLed3ON(atoi(ci->second.c_str()));
178  if (ci->first == "LED4_ON")
179  setLed4ON(atoi(ci->second.c_str()));
180  if (ci->first == "VINJ")
181  setVinj(atoi(ci->second.c_str()));
182  if (ci->first == "ORANGE_LED_MON_AMPL")
183  setOrangeLedMonAmpl(atoi(ci->second.c_str()));
184  if (ci->first == "BLUE_LED_MON_AMPL")
185  setBlueLedMonAmpl(atoi(ci->second.c_str()));
186  if (ci->first == "TRIG_LOG_FILE")
187  setTrigLogFile(ci->second);
188  if (ci->first == "LED_CONTROL_ON")
189  setLedControlON(atoi(ci->second.c_str()));
190  if (ci->first == "LED_CONTROL_HOST")
191  setLedControlHost(ci->second);
192  if (ci->first == "LED_CONTROL_PORT")
193  setLedControlPort(atoi(ci->second.c_str()));
194  if (ci->first == "IR_LASER_POWER")
195  setIRLaserPower(atoi(ci->second.c_str()));
196  if (ci->first == "GREEN_LASER_POWER")
197  setGreenLaserPower(atoi(ci->second.c_str()));
198  if (ci->first == "RED_LASER_POWER")
199  setRedLaserPower(atoi(ci->second.c_str()));
200  if (ci->first == "BLUE_LASER_LOG_ATTENUATOR")
201  setBlueLaserLogAttenuator(atoi(ci->second.c_str()));
202  if (ci->first == "IR_LASER_LOG_ATTENUATOR")
203  setIRLaserLogAttenuator(atoi(ci->second.c_str()));
204  if (ci->first == "GREEN_LASER_LOG_ATTENUATOR")
205  setGreenLaserLogAttenuator(atoi(ci->second.c_str()));
206  if (ci->first == "RED_LASER_LOG_ATTENUATOR")
207  setRedLaserLogAttenuator(atoi(ci->second.c_str()));
208 
209  if (ci->first == "LASER_CONFIG_FILE") {
210  std::string fname = ci->second;
212  // here we must open the file and read the DCC Clob
213  std::cout << "Going to read Laser file: " << fname << endl;
214 
215  ifstream inpFile;
216  inpFile.open(fname.c_str());
217 
218  // tell me size of file
219  int bufsize = 0;
220  inpFile.seekg(0, ios::end);
221  bufsize = inpFile.tellg();
222  std::cout << " bufsize =" << bufsize << std::endl;
223  // set file pointer to start again
224  inpFile.seekg(0, ios::beg);
225 
226  m_size = bufsize;
227 
228  inpFile.close();
229  }
230  }
231 }
void setFilter(int x)
void setDummy(int x)
Definition: ODLaserConfig.h:31
void setIRLaserLogAttenuator(int x)
void setLed1ON(int x)
void setChannelMask(int x)
Definition: ODLaserConfig.h:40
void setOrangeLedMonAmpl(int x)
void setMatacqFedId(int x)
Definition: ODLaserConfig.h:44
void setLedControlHost(std::string x)
void setPedestalFile(std::string x)
Definition: ODLaserConfig.h:46
void setOpticalSwitch(int x)
void setFPMode(int x)
Definition: ODLaserConfig.h:52
void setPower(int x)
void setMatacqNone(int x)
Definition: ODLaserConfig.h:36
void setTrigLogFile(std::string x)
void setEMTCSlotId(int x)
Definition: ODLaserConfig.h:91
void setMatacqBaseAddress(int x)
Definition: ODLaserConfig.h:34
void setGreenLaserLogAttenuator(int x)
void setMatacqVernierMin(int x)
Definition: ODLaserConfig.h:58
void setLed2ON(int x)
void setLaserControlHost(std::string x)
void setRedLaserPower(int x)
void setMatacqAcquisitionMode(std::string x)
Definition: ODLaserConfig.h:76
void setRawDataMode(int x)
Definition: ODLaserConfig.h:73
void setEMTCNone(int x)
Definition: ODLaserConfig.h:83
void setLedControlON(int x)
void setVinj(int x)
void setBlueLaserLogAttenuator(int x)
void setLed4ON(int x)
void setIRLaserPower(int x)
void setMaxSamplesForDaq(std::string x)
Definition: ODLaserConfig.h:42
void setRedLaserLogAttenuator(int x)
void setLed3ON(int x)
void setHalAddressTableFile(std::string x)
Definition: ODLaserConfig.h:61
void setMatacqVernierMax(int x)
Definition: ODLaserConfig.h:56
void setLaserPhase(int x)
Definition: ODLaserConfig.h:87
unsigned int m_size
void setLaserConfigFile(std::string x)
void setMatacqMode(std::string x)
Definition: ODLaserConfig.h:38
void setPedestalRunEventCount(int x)
Definition: ODLaserConfig.h:70
void setWTE2LedDelay(int x)
void setLedControlPort(int x)
void setGreenLaserPower(int x)
void setUseBuffer(int x)
Definition: ODLaserConfig.h:48
void setBlueLedMonAmpl(int x)
void setLocalOutputFile(std::string x)
Definition: ODLaserConfig.h:79
string fname
main script
void setPostTrig(int x)
Definition: ODLaserConfig.h:50
void setConfigTag(std::string x)
Definition: IODConfig.h:29
void setWTE2LaserDelay(int x)
Definition: ODLaserConfig.h:85
void setMatacqSerialNumber(std::string x)
Definition: ODLaserConfig.h:67
void setHalModuleFile(std::string x)
Definition: ODLaserConfig.h:54
void setHalStaticTableFile(std::string x)
Definition: ODLaserConfig.h:64
void setLaserControlOn(int x)
void setEMTCTTCIn(int x)
Definition: ODLaserConfig.h:89
void setDebug(int x)
Definition: ODLaserConfig.h:29
void setWaveLength(int x)
Definition: ODLaserConfig.h:98
void setLaserControlPort(int x)

◆ setPedestalFile()

void ODLaserConfig::setPedestalFile ( std::string  x)
inline

Definition at line 46 of file ODLaserConfig.h.

References m_ped_file, and x.

46 { m_ped_file = x; }
std::string m_ped_file

◆ setPedestalRunEventCount()

void ODLaserConfig::setPedestalRunEventCount ( int  x)
inline

Definition at line 70 of file ODLaserConfig.h.

References m_ped_count, and x.

◆ setPostTrig()

void ODLaserConfig::setPostTrig ( int  x)
inline

Definition at line 50 of file ODLaserConfig.h.

References m_post_trig, and x.

◆ setPower()

void ODLaserConfig::setPower ( int  x)
inline

Definition at line 101 of file ODLaserConfig.h.

References m_power, and x.

101 { m_power = x; }

◆ setRawDataMode()

void ODLaserConfig::setRawDataMode ( int  x)
inline

Definition at line 73 of file ODLaserConfig.h.

References m_raw_mode, and x.

◆ setRedLaserLogAttenuator()

void ODLaserConfig::setRedLaserLogAttenuator ( int  x)
inline

Definition at line 178 of file ODLaserConfig.h.

References m_red_laser_log_attenuator, and x.

◆ setRedLaserPower()

void ODLaserConfig::setRedLaserPower ( int  x)
inline

Definition at line 166 of file ODLaserConfig.h.

References m_red_laser_power, and x.

◆ setSize()

void ODLaserConfig::setSize ( unsigned int  id)
inline

Definition at line 26 of file ODLaserConfig.h.

References triggerObjects_cff::id, and m_size.

◆ setTrigLogFile()

void ODLaserConfig::setTrigLogFile ( std::string  x)
inline

Definition at line 148 of file ODLaserConfig.h.

References m_trig_log_file, and x.

148 { m_trig_log_file = x; }
std::string m_trig_log_file

◆ setUseBuffer()

void ODLaserConfig::setUseBuffer ( int  x)
inline

Definition at line 48 of file ODLaserConfig.h.

References m_use_buffer, and x.

◆ setVinj()

void ODLaserConfig::setVinj ( int  x)
inline

Definition at line 139 of file ODLaserConfig.h.

References m_vinj, and x.

139 { m_vinj = x; }

◆ setWaveLength()

void ODLaserConfig::setWaveLength ( int  x)
inline

Definition at line 98 of file ODLaserConfig.h.

References m_wave, and x.

◆ setWTE2LaserDelay()

void ODLaserConfig::setWTE2LaserDelay ( int  x)
inline

Definition at line 85 of file ODLaserConfig.h.

References m_emtc_2, and x.

◆ setWTE2LedDelay()

void ODLaserConfig::setWTE2LedDelay ( int  x)
inline

Definition at line 124 of file ODLaserConfig.h.

References m_wte_2_led_delay, and x.

◆ writeDB()

void ODLaserConfig::writeDB ( )
privatenoexcept

Definition at line 328 of file ODLaserConfig.cc.

References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.

328  {
329  this->checkConnection();
330  this->checkPrepare();
331 
332  try {
333  // 1 is the id 2 is the tag
334  m_writeStmt->setString(2, this->getConfigTag());
335 
336  m_writeStmt->setInt(3, this->getDebug());
337  m_writeStmt->setInt(4, this->getDummy());
338  m_writeStmt->setInt(5, this->getMatacqBaseAddress());
339  m_writeStmt->setInt(6, this->getMatacqNone());
340  m_writeStmt->setString(7, this->getMatacqMode());
341  m_writeStmt->setInt(8, this->getChannelMask());
342  m_writeStmt->setString(9, this->getMaxSamplesForDaq());
343  m_writeStmt->setInt(10, this->getMatacqFedId());
344  m_writeStmt->setString(11, this->getPedestalFile());
345  m_writeStmt->setInt(12, this->getUseBuffer());
346  m_writeStmt->setInt(13, this->getPostTrig());
347  m_writeStmt->setInt(14, this->getFPMode());
348  m_writeStmt->setString(15, this->getHalModuleFile());
349  m_writeStmt->setString(16, this->getHalAddressTableFile());
350  m_writeStmt->setString(17, this->getHalStaticTableFile());
351  m_writeStmt->setString(18, this->getMatacqSerialNumber());
352  m_writeStmt->setInt(19, this->getPedestalRunEventCount());
353  m_writeStmt->setInt(20, this->getRawDataMode());
354  m_writeStmt->setString(21, this->getMatacqAcquisitionMode());
355  m_writeStmt->setString(22, this->getLocalOutputFile());
356  m_writeStmt->setInt(23, this->getEMTCNone());
357  m_writeStmt->setInt(24, this->getWTE2LaserDelay());
358  m_writeStmt->setInt(25, this->getLaserPhase());
359  m_writeStmt->setInt(26, this->getEMTCTTCIn());
360  m_writeStmt->setInt(27, this->getEMTCSlotId());
361  // laser
362  m_writeStmt->setInt(28, this->getWaveLength());
363  m_writeStmt->setInt(29, this->getPower());
364  m_writeStmt->setInt(30, this->getOpticalSwitch());
365  m_writeStmt->setInt(31, this->getFilter());
366  m_writeStmt->setInt(32, this->getLaserControlOn());
367  m_writeStmt->setString(33, this->getLaserControlHost());
368  m_writeStmt->setInt(34, this->getLaserControlPort());
369  m_writeStmt->setString(35, this->getLaserTag());
370 
371  m_writeStmt->setInt(36, this->getMatacqVernierMin());
372  m_writeStmt->setInt(37, this->getMatacqVernierMax());
373 
374  // here goes the led and the new parameters
375  m_writeStmt->setInt(38, this->getWTE2LedDelay());
376  m_writeStmt->setInt(39, this->getLed1ON());
377  m_writeStmt->setInt(40, this->getLed2ON());
378  m_writeStmt->setInt(41, this->getLed3ON());
379  m_writeStmt->setInt(42, this->getLed4ON());
380  m_writeStmt->setInt(43, this->getVinj());
381  m_writeStmt->setInt(44, this->getOrangeLedMonAmpl());
382  m_writeStmt->setInt(45, this->getBlueLedMonAmpl());
383  m_writeStmt->setString(46, this->getTrigLogFile());
384  m_writeStmt->setInt(47, this->getLedControlON());
385  m_writeStmt->setString(48, this->getLedControlHost());
386  m_writeStmt->setInt(49, this->getLedControlPort());
387  m_writeStmt->setInt(50, this->getIRLaserPower());
388  m_writeStmt->setInt(51, this->getGreenLaserPower());
389  m_writeStmt->setInt(52, this->getRedLaserPower());
390  m_writeStmt->setInt(53, this->getBlueLaserLogAttenuator());
391  m_writeStmt->setInt(54, this->getIRLaserLogAttenuator());
392  m_writeStmt->setInt(55, this->getGreenLaserLogAttenuator());
393  m_writeStmt->setInt(56, this->getRedLaserLogAttenuator());
394  m_writeStmt->setString(57, this->getLaserConfigFile());
395 
396  // and now the clob
397  oracle::occi::Clob clob(m_conn);
398  clob.setEmpty();
399  m_writeStmt->setClob(58, clob);
400  m_writeStmt->executeUpdate();
401  m_conn->terminateStatement(m_writeStmt);
402 
403  // now we read and update it
404  m_writeStmt = m_conn->createStatement();
405  m_writeStmt->setSQL("SELECT laser_configuration FROM " + getTable() +
406  " WHERE"
407  " laser_configuration_id=:1 FOR UPDATE");
408  std::cout << "updating the laser clob " << std::endl;
409 
410  m_writeStmt->setInt(1, m_ID);
411  ResultSet* rset = m_writeStmt->executeQuery();
412  rset->next();
413  oracle::occi::Clob clob_to_write = rset->getClob(1);
414  cout << "Opening the clob in read write mode" << endl;
415 
416  populateClob(clob_to_write, getLaserConfigFile(), m_size);
417  int clobLength = clob_to_write.length();
418  cout << "Length of the clob is: " << clobLength << endl;
419  m_writeStmt->executeUpdate();
420  m_writeStmt->closeResultSet(rset);
421 
422  } catch (SQLException& e) {
423  throw(std::runtime_error(std::string("ODLaserConfig::writeDB(): ") + e.getMessage()));
424  }
425  // Now get the ID
426  if (!this->fetchID()) {
427  throw(std::runtime_error("ODLaserConfig::writeDB: Failed to write"));
428  }
429 }
int getMatacqVernierMin()
Definition: ODLaserConfig.h:59
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
Statement * m_writeStmt
Definition: IODConfig.h:33
int getBlueLedMonAmpl() const
int getPower() const
int getRedLaserPower() const
int getLedControlON() const
void checkConnection() const noexcept(false)
Definition: IDBObject.h:36
std::string getHalAddressTableFile() const
Definition: ODLaserConfig.h:62
int getDebug() const
Definition: ODLaserConfig.h:30
int getEMTCSlotId() const
Definition: ODLaserConfig.h:92
int getOrangeLedMonAmpl() const
std::string getMatacqAcquisitionMode() const
Definition: ODLaserConfig.h:77
int getLed4ON() const
int getOpticalSwitch() const
int getUseBuffer() const
Definition: ODLaserConfig.h:49
std::string getHalStaticTableFile() const
Definition: ODLaserConfig.h:65
int getMatacqNone() const
Definition: ODLaserConfig.h:37
std::string getLaserControlHost() const
int getRawDataMode() const
Definition: ODLaserConfig.h:74
int getLaserControlPort() const
std::string getLaserTag() const
int getWTE2LaserDelay() const
Definition: ODLaserConfig.h:86
int getMatacqVernierMax()
Definition: ODLaserConfig.h:57
std::string getLaserConfigFile() const
int getMatacqFedId() const
Definition: ODLaserConfig.h:45
int fetchID() noexcept(false)
int getIRLaserPower() const
int getEMTCTTCIn() const
Definition: ODLaserConfig.h:90
int getVinj() const
int getIRLaserLogAttenuator() const
void populateClob(Clob &clob, std::string fname, unsigned int bufsize) noexcept(false)
Definition: IODConfig.h:67
int getLed2ON() const
std::string getTrigLogFile() const
int getPedestalRunEventCount() const
Definition: ODLaserConfig.h:71
int getLaserControlOn() const
int getRedLaserLogAttenuator() const
int getFilter() const
std::string getLedControlHost() const
std::string getHalModuleFile() const
Definition: ODLaserConfig.h:55
int getWTE2LedDelay() const
std::string getLocalOutputFile() const
Definition: ODLaserConfig.h:80
unsigned int m_size
int getGreenLaserPower() const
std::string getMatacqMode() const
Definition: ODLaserConfig.h:39
std::string getMaxSamplesForDaq() const
Definition: ODLaserConfig.h:43
int getLed3ON() const
std::string getMatacqSerialNumber() const
Definition: ODLaserConfig.h:68
int getFPMode() const
Definition: ODLaserConfig.h:53
int getLedControlPort() const
int getMatacqBaseAddress() const
Definition: ODLaserConfig.h:35
oracle::occi::SQLException SQLException
Definition: IODConfig.h:20
int getBlueLaserLogAttenuator() const
int getWaveLength() const
Definition: ODLaserConfig.h:99
int getEMTCNone() const
Definition: ODLaserConfig.h:84
std::string getTable() override
Definition: ODLaserConfig.h:22
std::string getPedestalFile() const
Definition: ODLaserConfig.h:47
int getChannelMask() const
Definition: ODLaserConfig.h:41
std::string getConfigTag()
Definition: IODConfig.h:30
int getPostTrig() const
Definition: ODLaserConfig.h:51
int getLaserPhase() const
Definition: ODLaserConfig.h:88
int getDummy() const
Definition: ODLaserConfig.h:32
void checkPrepare() noexcept(false)
Definition: IODConfig.h:36
int getLed1ON() const
int getGreenLaserLogAttenuator() const

Friends And Related Function Documentation

◆ EcalCondDBInterface

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODLaserConfig.h.

Member Data Documentation

◆ m_aqmode

std::string ODLaserConfig::m_aqmode
private

Definition at line 220 of file ODLaserConfig.h.

Referenced by getMatacqAcquisitionMode(), and setMatacqAcquisitionMode().

◆ m_blue_laser_log_attenuator

int ODLaserConfig::m_blue_laser_log_attenuator
private

Definition at line 259 of file ODLaserConfig.h.

Referenced by getBlueLaserLogAttenuator(), and setBlueLaserLogAttenuator().

◆ m_blue_led_mon_ampl

int ODLaserConfig::m_blue_led_mon_ampl
private

Definition at line 251 of file ODLaserConfig.h.

Referenced by getBlueLedMonAmpl(), and setBlueLedMonAmpl().

◆ m_chan_mask

int ODLaserConfig::m_chan_mask
private

Definition at line 207 of file ODLaserConfig.h.

Referenced by getChannelMask(), and setChannelMask().

◆ m_debug

int ODLaserConfig::m_debug
private

Definition at line 203 of file ODLaserConfig.h.

Referenced by getDebug(), and setDebug().

◆ m_dummy

int ODLaserConfig::m_dummy
private

Definition at line 202 of file ODLaserConfig.h.

Referenced by getDummy(), and setDummy().

◆ m_emtc_1

int ODLaserConfig::m_emtc_1
private

Definition at line 226 of file ODLaserConfig.h.

Referenced by getEMTCNone(), and setEMTCNone().

◆ m_emtc_2

int ODLaserConfig::m_emtc_2
private

Definition at line 227 of file ODLaserConfig.h.

Referenced by getWTE2LaserDelay(), and setWTE2LaserDelay().

◆ m_emtc_3

int ODLaserConfig::m_emtc_3
private

Definition at line 228 of file ODLaserConfig.h.

Referenced by getLaserPhase(), and setLaserPhase().

◆ m_emtc_4

int ODLaserConfig::m_emtc_4
private

Definition at line 229 of file ODLaserConfig.h.

Referenced by getEMTCTTCIn(), and setEMTCTTCIn().

◆ m_emtc_5

int ODLaserConfig::m_emtc_5
private

Definition at line 230 of file ODLaserConfig.h.

Referenced by getEMTCSlotId(), and setEMTCSlotId().

◆ m_filter

int ODLaserConfig::m_filter
private

Definition at line 236 of file ODLaserConfig.h.

Referenced by getFilter(), and setFilter().

◆ m_fp_mode

int ODLaserConfig::m_fp_mode
private

Definition at line 213 of file ODLaserConfig.h.

Referenced by getFPMode(), and setFPMode().

◆ m_green_laser_log_attenuator

int ODLaserConfig::m_green_laser_log_attenuator
private

Definition at line 261 of file ODLaserConfig.h.

Referenced by getGreenLaserLogAttenuator(), and setGreenLaserLogAttenuator().

◆ m_green_laser_power

int ODLaserConfig::m_green_laser_power
private

Definition at line 257 of file ODLaserConfig.h.

Referenced by getGreenLaserPower(), and setGreenLaserPower().

◆ m_hal_add_file

std::string ODLaserConfig::m_hal_add_file
private

Definition at line 215 of file ODLaserConfig.h.

Referenced by getHalAddressTableFile(), and setHalAddressTableFile().

◆ m_hal_mod_file

std::string ODLaserConfig::m_hal_mod_file
private

Definition at line 214 of file ODLaserConfig.h.

Referenced by getHalModuleFile(), and setHalModuleFile().

◆ m_hal_tab_file

std::string ODLaserConfig::m_hal_tab_file
private

Definition at line 216 of file ODLaserConfig.h.

Referenced by getHalStaticTableFile(), and setHalStaticTableFile().

◆ m_ID

int ODLaserConfig::m_ID
private

Definition at line 199 of file ODLaserConfig.h.

Referenced by getId(), and setId().

◆ m_ir_laser_log_attenuator

int ODLaserConfig::m_ir_laser_log_attenuator
private

Definition at line 260 of file ODLaserConfig.h.

Referenced by getIRLaserLogAttenuator(), and setIRLaserLogAttenuator().

◆ m_ir_laser_power

int ODLaserConfig::m_ir_laser_power
private

Definition at line 256 of file ODLaserConfig.h.

Referenced by getIRLaserPower(), and setIRLaserPower().

◆ m_laser_clob

unsigned char* ODLaserConfig::m_laser_clob
private

Definition at line 264 of file ODLaserConfig.h.

Referenced by getLaserClob(), and setLaserClob().

◆ m_laser_config_file

std::string ODLaserConfig::m_laser_config_file
private

Definition at line 263 of file ODLaserConfig.h.

Referenced by getLaserConfigFile(), and setLaserConfigFile().

◆ m_laser_tag

std::string ODLaserConfig::m_laser_tag
private

Definition at line 241 of file ODLaserConfig.h.

Referenced by getLaserTag(), and setLaserTag().

◆ m_laserhost

std::string ODLaserConfig::m_laserhost
private

Definition at line 238 of file ODLaserConfig.h.

Referenced by getLaserControlHost(), and setLaserControlHost().

◆ m_laserport

int ODLaserConfig::m_laserport
private

Definition at line 239 of file ODLaserConfig.h.

Referenced by getLaserControlPort(), and setLaserControlPort().

◆ m_led1_on

int ODLaserConfig::m_led1_on
private

Definition at line 245 of file ODLaserConfig.h.

Referenced by getLed1ON(), and setLed1ON().

◆ m_led2_on

int ODLaserConfig::m_led2_on
private

Definition at line 246 of file ODLaserConfig.h.

Referenced by getLed2ON(), and setLed2ON().

◆ m_led3_on

int ODLaserConfig::m_led3_on
private

Definition at line 247 of file ODLaserConfig.h.

Referenced by getLed3ON(), and setLed3ON().

◆ m_led4_on

int ODLaserConfig::m_led4_on
private

Definition at line 248 of file ODLaserConfig.h.

Referenced by getLed4ON(), and setLed4ON().

◆ m_led_control_host

std::string ODLaserConfig::m_led_control_host
private

Definition at line 254 of file ODLaserConfig.h.

Referenced by getLedControlHost(), and setLedControlHost().

◆ m_led_control_on

int ODLaserConfig::m_led_control_on
private

Definition at line 253 of file ODLaserConfig.h.

Referenced by getLedControlON(), and setLedControlON().

◆ m_led_control_port

int ODLaserConfig::m_led_control_port
private

Definition at line 255 of file ODLaserConfig.h.

Referenced by getLedControlPort(), and setLedControlPort().

◆ m_matacq_vernier_max

int ODLaserConfig::m_matacq_vernier_max
private

Definition at line 223 of file ODLaserConfig.h.

Referenced by getMatacqVernierMax(), and setMatacqVernierMax().

◆ m_matacq_vernier_min

int ODLaserConfig::m_matacq_vernier_min
private

Definition at line 222 of file ODLaserConfig.h.

Referenced by getMatacqVernierMin(), and setMatacqVernierMin().

◆ m_mode

std::string ODLaserConfig::m_mode
private

Definition at line 206 of file ODLaserConfig.h.

Referenced by getMatacqMode(), and setMatacqMode().

◆ m_mq_base

int ODLaserConfig::m_mq_base
private

Definition at line 204 of file ODLaserConfig.h.

Referenced by getMatacqBaseAddress(), and setMatacqBaseAddress().

◆ m_mq_fed

int ODLaserConfig::m_mq_fed
private

Definition at line 209 of file ODLaserConfig.h.

Referenced by getMatacqFedId(), and setMatacqFedId().

◆ m_mq_file

std::string ODLaserConfig::m_mq_file
private

Definition at line 221 of file ODLaserConfig.h.

Referenced by getLocalOutputFile(), and setLocalOutputFile().

◆ m_mq_none

int ODLaserConfig::m_mq_none
private

Definition at line 205 of file ODLaserConfig.h.

Referenced by getMatacqNone(), and setMatacqNone().

◆ m_on

int ODLaserConfig::m_on
private

Definition at line 237 of file ODLaserConfig.h.

Referenced by getLaserControlOn(), and setLaserControlOn().

◆ m_orange_led_mon_ampl

int ODLaserConfig::m_orange_led_mon_ampl
private

Definition at line 250 of file ODLaserConfig.h.

Referenced by getOrangeLedMonAmpl(), and setOrangeLedMonAmpl().

◆ m_ped_count

int ODLaserConfig::m_ped_count
private

Definition at line 218 of file ODLaserConfig.h.

Referenced by getPedestalRunEventCount(), and setPedestalRunEventCount().

◆ m_ped_file

std::string ODLaserConfig::m_ped_file
private

Definition at line 210 of file ODLaserConfig.h.

Referenced by getPedestalFile(), and setPedestalFile().

◆ m_post_trig

int ODLaserConfig::m_post_trig
private

Definition at line 212 of file ODLaserConfig.h.

Referenced by getPostTrig(), and setPostTrig().

◆ m_power

int ODLaserConfig::m_power
private

Definition at line 234 of file ODLaserConfig.h.

Referenced by getPower(), and setPower().

◆ m_raw_mode

int ODLaserConfig::m_raw_mode
private

Definition at line 219 of file ODLaserConfig.h.

Referenced by getRawDataMode(), and setRawDataMode().

◆ m_red_laser_log_attenuator

int ODLaserConfig::m_red_laser_log_attenuator
private

Definition at line 262 of file ODLaserConfig.h.

Referenced by getRedLaserLogAttenuator(), and setRedLaserLogAttenuator().

◆ m_red_laser_power

int ODLaserConfig::m_red_laser_power
private

Definition at line 258 of file ODLaserConfig.h.

Referenced by getRedLaserPower(), and setRedLaserPower().

◆ m_samples

std::string ODLaserConfig::m_samples
private

Definition at line 208 of file ODLaserConfig.h.

Referenced by getMaxSamplesForDaq(), and setMaxSamplesForDaq().

◆ m_serial

std::string ODLaserConfig::m_serial
private

Definition at line 217 of file ODLaserConfig.h.

Referenced by getMatacqSerialNumber(), and setMatacqSerialNumber().

◆ m_size

unsigned int ODLaserConfig::m_size
private

Definition at line 265 of file ODLaserConfig.h.

Referenced by getSize(), and setSize().

◆ m_switch

int ODLaserConfig::m_switch
private

Definition at line 235 of file ODLaserConfig.h.

Referenced by getOpticalSwitch(), and setOpticalSwitch().

◆ m_trig_log_file

std::string ODLaserConfig::m_trig_log_file
private

Definition at line 252 of file ODLaserConfig.h.

Referenced by getTrigLogFile(), and setTrigLogFile().

◆ m_use_buffer

int ODLaserConfig::m_use_buffer
private

Definition at line 211 of file ODLaserConfig.h.

Referenced by getUseBuffer(), and setUseBuffer().

◆ m_vinj

int ODLaserConfig::m_vinj
private

Definition at line 249 of file ODLaserConfig.h.

Referenced by getVinj(), and setVinj().

◆ m_wave

int ODLaserConfig::m_wave
private

Definition at line 233 of file ODLaserConfig.h.

Referenced by getWaveLength(), and setWaveLength().

◆ m_wte_2_led_delay

int ODLaserConfig::m_wte_2_led_delay
private

Definition at line 244 of file ODLaserConfig.h.

Referenced by getWTE2LedDelay(), and setWTE2LedDelay().