CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 () throw (std::runtime_error)
 
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 ()
 
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 (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 ()
 
- 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) throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
void prepareWrite () throw (std::runtime_error)
 
void writeDB () throw (std::runtime_error)
 

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 () throw (std::runtime_error)
 
void createReadStatement () throw (std::runtime_error)
 
void populateClob (Clob &clob, std::string fname, unsigned int bufsize) throw (std::runtime_error)
 
unsigned char * readClob (Clob &clob, int size) throw (std::runtime_error)
 
void setPrefetchRowCount (int ncount) throw (std::runtime_error)
 
void terminateReadStatement () throw (std::runtime_error)
 
void terminateWriteStatement () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- 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 ( )

Definition at line 15 of file ODLaserConfig.cc.

References hitfit::clear(), and NULL.

16 {
17  m_env = NULL;
18  m_conn = NULL;
19  m_writeStmt = NULL;
20  m_readStmt = NULL;
21  m_size=0;
22  m_config_tag="";
23  m_ID=0;
24  clear();
25 
26 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:38
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
Statement * m_writeStmt
Definition: IODConfig.h:36
#define NULL
Definition: scimark2.h:8
std::string m_config_tag
Definition: IODConfig.h:27
unsigned int m_size
Statement * m_readStmt
Definition: IODConfig.h:37
ODLaserConfig::~ODLaserConfig ( )

Definition at line 95 of file ODLaserConfig.cc.

96 {
97 }

Member Function Documentation

void ODLaserConfig::clear ( void  )
private

Definition at line 28 of file ODLaserConfig.cc.

28  {
29 
30 
31  m_debug=0;
32  m_dummy=0;
33 
34  // emtc
35  m_emtc_1=0;
36  m_emtc_2=0;
37  m_emtc_3=0;
38  m_emtc_4=0;
39  m_emtc_5=0;
40 
41  // laser
42  m_wave=0;
43  m_power=0;
44  m_switch=0;
45  m_filter=0;
46  m_on=0;
47  m_laserhost="";
48  m_laserport=0;
49 
50  // mataq
51  m_mq_base=0;
52  m_mq_none=0;
53  m_mode="" ;
54  m_chan_mask=0;
55  m_samples="";
56  m_ped_file="";
57  m_use_buffer=0;
58  m_post_trig=0;
59  m_fp_mode=0;
60  m_hal_mod_file="";
61  m_hal_add_file="";
62  m_hal_tab_file="";
63  m_serial="";
64  m_ped_count=0;
65  m_raw_mode=0;
66  m_aqmode="";
67  m_mq_file="";
68  m_laser_tag="";
71 
73  m_led1_on =0;
74  m_led2_on =0;
75  m_led3_on =0;
76  m_led4_on =0;
77  m_vinj =0;
80  m_trig_log_file ="";
92 
93 }
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
void ODLaserConfig::fetchData ( ODLaserConfig result)
throw (std::runtime_error
)
private

Definition at line 408 of file ODLaserConfig.cc.

References gather_cfg::cout, alignCSCRings::e, i, and query::result.

410 {
411  this->checkConnection();
412  result->clear();
413  if(result->getId()==0 && (result->getConfigTag()=="") ){
414  throw(std::runtime_error("ODLaserConfig::fetchData(): no Id defined for this ODLaserConfig "));
415  }
416 
417  try {
418 
419  m_readStmt->setSQL("SELECT * "
420  "FROM "+getTable()+
421  " where ( laser_configuration_id = :1 or laser_tag=:2 )" );
422  m_readStmt->setInt(1, result->getId());
423  m_readStmt->setString(2, result->getConfigTag());
424  ResultSet* rset = m_readStmt->executeQuery();
425 
426  rset->next();
427 
428 
429  // start from 3 because of select *
430 
431  result->setId(rset->getInt(1));
432  result->setConfigTag(rset->getString(2));
433 
434  result->setDebug(rset->getInt( 3 ));
435  result->setDummy(rset->getInt( 4 ));
436  result->setMatacqBaseAddress(rset->getInt( 5 ));
437  result->setMatacqNone(rset->getInt( 6 ));
438  result->setMatacqMode(rset->getString(7 ));
439  result->setChannelMask(rset->getInt( 8 ));
440  result->setMaxSamplesForDaq(rset->getString( 9 ));
441  result->setMatacqFedId(rset->getInt( 10 ));
442  result->setPedestalFile(rset->getString( 11 ));
443  result->setUseBuffer(rset->getInt( 12 ));
444  result->setPostTrig(rset->getInt( 13 ));
445  result->setFPMode(rset->getInt( 14 ));
446  result->setHalModuleFile(rset->getString( 15 ));
447  result->setHalAddressTableFile(rset->getString( 16 ));
448  result->setHalStaticTableFile(rset->getString( 17 ));
449  result->setMatacqSerialNumber(rset->getString( 18 ));
450  result->setPedestalRunEventCount(rset->getInt( 19 ));
451  result->setRawDataMode(rset->getInt( 20 ));
452  result->setMatacqAcquisitionMode(rset->getString( 21 ));
453  result->setLocalOutputFile(rset->getString( 22 ));
454  result->setEMTCNone(rset->getInt( 23 ));
455  result->setWTE2LaserDelay(rset->getInt( 24 ));
456  result->setLaserPhase(rset->getInt( 25 ));
457  result->setEMTCTTCIn(rset->getInt( 26 ));
458  result->setEMTCSlotId(rset->getInt( 27 ));
459  // laser
460  result->setWaveLength(rset->getInt( 28 ));
461  result->setPower(rset->getInt( 29 ));
462  result->setOpticalSwitch(rset->getInt( 30 ));
463  result->setFilter(rset->getInt( 31 ));
464  result->setLaserControlOn(rset->getInt( 32 ));
465  result->setLaserControlHost(rset->getString( 33 ));
466  result->setLaserControlPort(rset->getInt( 34 ));
467  result->setLaserTag(rset->getString( 35 ));
468 
469  result->setMatacqVernierMin(rset->getInt( 36 ));
470  result->setMatacqVernierMax(rset->getInt( 37 ));
471 
472  result->setWTE2LedDelay(rset->getInt( 38 ));
473  result->setLed1ON(rset->getInt( 39 ));
474  result->setLed2ON(rset->getInt( 40 ));
475  result->setLed3ON(rset->getInt( 41 ));
476  result->setLed4ON(rset->getInt( 42 ));
477  result->setVinj(rset->getInt( 43 ));
478  result->setOrangeLedMonAmpl(rset->getInt( 44 ));
479  result->setBlueLedMonAmpl(rset->getInt( 45 ));
480  result->setTrigLogFile(rset->getString( 46 ));
481  result->setLedControlON(rset->getInt( 47 ));
482  result->setLedControlHost(rset->getString( 48 ));
483  result->setLedControlPort(rset->getInt( 49 ));
484  result->setIRLaserPower(rset->getInt( 50 ));
485  result->setGreenLaserPower(rset->getInt( 51 ));
486  result->setRedLaserPower(rset->getInt( 52 ));
487  result->setBlueLaserLogAttenuator(rset->getInt( 53 ));
488  result->setIRLaserLogAttenuator(rset->getInt( 54 ));
489  result->setGreenLaserLogAttenuator(rset->getInt( 55 ));
490  result->setRedLaserLogAttenuator(rset->getInt( 56 ));
491  result->setLaserConfigFile(rset->getString( 57 ));
492 
493  Clob clob = rset->getClob (58);
494  cout << "Opening the clob in Read only mode" << endl;
495  clob.open (OCCI_LOB_READONLY);
496  int clobLength=clob.length ();
497  cout << "Length of the clob is: " << clobLength << endl;
498  m_size=clobLength;
499  unsigned char* buffer = readClob (clob, m_size);
500  clob.close ();
501  cout<< "the clob buffer is:"<<endl;
502  for (int i = 0; i < clobLength; ++i)
503  cout << (char) buffer[i];
504  cout << endl;
505 
506  result->setLaserClob(buffer);
507 
508 
509  } catch (SQLException &e) {
510  throw(std::runtime_error("ODLaserConfig::fetchData(): "+e.getMessage()));
511  }
512 }
int i
Definition: DBlmapReader.cc:9
void setLaserClob(unsigned char *x)
void setFilter(int x)
void setDummy(int x)
Definition: ODLaserConfig.h:32
void setIRLaserLogAttenuator(int x)
void setLed1ON(int x)
void setChannelMask(int x)
Definition: ODLaserConfig.h:41
void setOrangeLedMonAmpl(int x)
void setMatacqFedId(int x)
Definition: ODLaserConfig.h:45
void setLedControlHost(std::string x)
unsigned char * readClob(Clob &clob, int size)
Definition: IODConfig.h:160
void setPedestalFile(std::string x)
Definition: ODLaserConfig.h:47
void setOpticalSwitch(int x)
void setFPMode(int x)
Definition: ODLaserConfig.h:53
void setPower(int x)
void setMatacqNone(int x)
Definition: ODLaserConfig.h:37
void setTrigLogFile(std::string x)
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
void setEMTCSlotId(int x)
Definition: ODLaserConfig.h:92
void setMatacqBaseAddress(int x)
Definition: ODLaserConfig.h:35
void setGreenLaserLogAttenuator(int x)
void setMatacqVernierMin(int x)
Definition: ODLaserConfig.h:59
void setLed2ON(int x)
void setLaserControlHost(std::string x)
void setRedLaserPower(int x)
void setMatacqAcquisitionMode(std::string x)
Definition: ODLaserConfig.h:77
void setRawDataMode(int x)
Definition: ODLaserConfig.h:74
void setEMTCNone(int x)
Definition: ODLaserConfig.h:84
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:43
void setRedLaserLogAttenuator(int x)
std::string getTable()
Definition: ODLaserConfig.h:22
void setId(int id)
Definition: ODLaserConfig.h:24
void setLed3ON(int x)
void setHalAddressTableFile(std::string x)
Definition: ODLaserConfig.h:62
void setMatacqVernierMax(int x)
Definition: ODLaserConfig.h:57
void setLaserPhase(int x)
Definition: ODLaserConfig.h:88
unsigned int m_size
void setLaserTag(std::string x)
void setLaserConfigFile(std::string x)
void setMatacqMode(std::string x)
Definition: ODLaserConfig.h:39
oracle::occi::Clob Clob
Definition: IODConfig.h:25
void setPedestalRunEventCount(int x)
Definition: ODLaserConfig.h:71
void setWTE2LedDelay(int x)
void setLedControlPort(int x)
void setGreenLaserPower(int x)
void setUseBuffer(int x)
Definition: ODLaserConfig.h:49
void setBlueLedMonAmpl(int x)
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:21
void setLocalOutputFile(std::string x)
Definition: ODLaserConfig.h:80
void setPostTrig(int x)
Definition: ODLaserConfig.h:51
int getId() const
Definition: ODLaserConfig.h:25
void setConfigTag(std::string x)
Definition: IODConfig.h:31
void setWTE2LaserDelay(int x)
Definition: ODLaserConfig.h:86
void setMatacqSerialNumber(std::string x)
Definition: ODLaserConfig.h:68
Statement * m_readStmt
Definition: IODConfig.h:37
void setHalModuleFile(std::string x)
Definition: ODLaserConfig.h:55
void setHalStaticTableFile(std::string x)
Definition: ODLaserConfig.h:65
std::string getConfigTag()
Definition: IODConfig.h:32
tuple cout
Definition: gather_cfg.py:121
void setLaserControlOn(int x)
void setEMTCTTCIn(int x)
Definition: ODLaserConfig.h:90
void setDebug(int x)
Definition: ODLaserConfig.h:30
void setWaveLength(int x)
Definition: ODLaserConfig.h:99
void setLaserControlPort(int x)
void checkConnection() const
Definition: IDBObject.h:41
int ODLaserConfig::fetchID ( )
throw (std::runtime_error
)
private

Definition at line 514 of file ODLaserConfig.cc.

References alignCSCRings::e.

515 {
516  // Return from memory if available
517  if (m_ID!=0) {
518  return m_ID;
519  }
520 
521  this->checkConnection();
522 
523  try {
524  Statement* stmt = m_conn->createStatement();
525  stmt->setSQL("SELECT laser_configuration_id FROM ecal_laser_configuration "
526  "WHERE laser_tag=:laser_tag ");
527  stmt->setString(1, getLaserTag());
528 
529  ResultSet* rset = stmt->executeQuery();
530 
531  if (rset->next()) {
532  m_ID = rset->getInt(1);
533  } else {
534  m_ID = 0;
535  }
536  m_conn->terminateStatement(stmt);
537  } catch (SQLException &e) {
538  throw(std::runtime_error("ODLaserConfig::fetchID: "+e.getMessage()));
539  }
540 
541  fetchData(this);
542 
543  return m_ID;
544 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
std::string getLaserTag() const
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
oracle::occi::Statement Statement
Definition: IODConfig.h:23
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:21
void checkConnection() const
Definition: IDBObject.h:41
void fetchData(ODLaserConfig *result)
int ODLaserConfig::fetchNextId ( )
throw (std::runtime_error
)

Definition at line 195 of file ODLaserConfig.cc.

References alignCSCRings::e, and query::result.

195  {
196 
197  int result=0;
198  try {
199  this->checkConnection();
200 
201  m_readStmt = m_conn->createStatement();
202  m_readStmt->setSQL("select ecal_laser_config_sq.NextVal from dual");
203  ResultSet* rset = m_readStmt->executeQuery();
204  while (rset->next ()){
205  result= rset->getInt(1);
206  }
207  m_conn->terminateStatement(m_readStmt);
208  return result;
209 
210  } catch (SQLException &e) {
211  throw(std::runtime_error("ODLaserConfig::fetchNextId(): "+e.getMessage()));
212  }
213 
214 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
tuple result
Definition: query.py:137
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:21
Statement * m_readStmt
Definition: IODConfig.h:37
void checkConnection() const
Definition: IDBObject.h:41
int ODLaserConfig::getBlueLaserLogAttenuator ( ) const
inline

Definition at line 175 of file ODLaserConfig.h.

References m_blue_laser_log_attenuator.

175 { return m_blue_laser_log_attenuator; }
int m_blue_laser_log_attenuator
int ODLaserConfig::getBlueLedMonAmpl ( ) const
inline

Definition at line 151 of file ODLaserConfig.h.

References m_blue_led_mon_ampl.

151 { return m_blue_led_mon_ampl; }
int ODLaserConfig::getChannelMask ( ) const
inline

Definition at line 42 of file ODLaserConfig.h.

References m_chan_mask.

42 { return m_chan_mask; }
int ODLaserConfig::getDebug ( ) const
inline

Definition at line 31 of file ODLaserConfig.h.

References m_debug.

31 { return m_debug; }
int ODLaserConfig::getDummy ( ) const
inline

Definition at line 33 of file ODLaserConfig.h.

References m_dummy.

33 { return m_dummy; }
int ODLaserConfig::getEMTCNone ( ) const
inline

Definition at line 85 of file ODLaserConfig.h.

References m_emtc_1.

85 { return m_emtc_1; }
int ODLaserConfig::getEMTCSlotId ( ) const
inline

Definition at line 93 of file ODLaserConfig.h.

References m_emtc_5.

93 { return m_emtc_5; }
int ODLaserConfig::getEMTCTTCIn ( ) const
inline

Definition at line 91 of file ODLaserConfig.h.

References m_emtc_4.

91 { return m_emtc_4; }
int ODLaserConfig::getFilter ( ) const
inline

Definition at line 109 of file ODLaserConfig.h.

References m_filter.

109 { return m_filter; }
int ODLaserConfig::getFPMode ( ) const
inline

Definition at line 54 of file ODLaserConfig.h.

References m_fp_mode.

54 { return m_fp_mode; }
int ODLaserConfig::getGreenLaserLogAttenuator ( ) const
inline

Definition at line 181 of file ODLaserConfig.h.

References m_green_laser_log_attenuator.

int m_green_laser_log_attenuator
int ODLaserConfig::getGreenLaserPower ( ) const
inline

Definition at line 169 of file ODLaserConfig.h.

References m_green_laser_power.

169 { return m_green_laser_power; }
std::string ODLaserConfig::getHalAddressTableFile ( ) const
inline

Definition at line 63 of file ODLaserConfig.h.

References m_hal_add_file.

63 { return m_hal_add_file; }
std::string m_hal_add_file
std::string ODLaserConfig::getHalModuleFile ( ) const
inline

Definition at line 56 of file ODLaserConfig.h.

References m_hal_mod_file.

56 { return m_hal_mod_file; }
std::string m_hal_mod_file
std::string ODLaserConfig::getHalStaticTableFile ( ) const
inline

Definition at line 66 of file ODLaserConfig.h.

References m_hal_tab_file.

66 { return m_hal_tab_file; }
std::string m_hal_tab_file
int ODLaserConfig::getId ( ) const
inline

Definition at line 25 of file ODLaserConfig.h.

References m_ID.

25 { return m_ID; }
int ODLaserConfig::getIRLaserLogAttenuator ( ) const
inline

Definition at line 178 of file ODLaserConfig.h.

References m_ir_laser_log_attenuator.

178 { return m_ir_laser_log_attenuator; }
int m_ir_laser_log_attenuator
int ODLaserConfig::getIRLaserPower ( ) const
inline

Definition at line 166 of file ODLaserConfig.h.

References m_ir_laser_power.

166 { return m_ir_laser_power; }
unsigned char* ODLaserConfig::getLaserClob ( ) const
inline

Definition at line 190 of file ODLaserConfig.h.

References m_laser_clob.

190 { return m_laser_clob; }
unsigned char * m_laser_clob
std::string ODLaserConfig::getLaserConfigFile ( ) const
inline

Definition at line 187 of file ODLaserConfig.h.

References m_laser_config_file.

187 { return m_laser_config_file ; }
std::string m_laser_config_file
std::string ODLaserConfig::getLaserControlHost ( ) const
inline

Definition at line 115 of file ODLaserConfig.h.

References m_laserhost.

115 { return m_laserhost; }
std::string m_laserhost
int ODLaserConfig::getLaserControlOn ( ) const
inline

Definition at line 112 of file ODLaserConfig.h.

References m_on.

112 { return m_on; }
int ODLaserConfig::getLaserControlPort ( ) const
inline

Definition at line 118 of file ODLaserConfig.h.

References m_laserport.

118 { return m_laserport; }
int ODLaserConfig::getLaserPhase ( ) const
inline

Definition at line 89 of file ODLaserConfig.h.

References m_emtc_3.

89 { return m_emtc_3; }
std::string ODLaserConfig::getLaserTag ( ) const
inline

Definition at line 123 of file ODLaserConfig.h.

References m_laser_tag.

123 { return m_laser_tag ; }
std::string m_laser_tag
int ODLaserConfig::getLed1ON ( ) const
inline

Definition at line 133 of file ODLaserConfig.h.

References m_led1_on.

133 { return m_led1_on; }
int ODLaserConfig::getLed2ON ( ) const
inline

Definition at line 136 of file ODLaserConfig.h.

References m_led2_on.

136 { return m_led2_on; }
int ODLaserConfig::getLed3ON ( ) const
inline

Definition at line 139 of file ODLaserConfig.h.

References m_led3_on.

139 { return m_led3_on; }
int ODLaserConfig::getLed4ON ( ) const
inline

Definition at line 142 of file ODLaserConfig.h.

References m_led4_on.

142 { return m_led4_on; }
std::string ODLaserConfig::getLedControlHost ( ) const
inline

Definition at line 160 of file ODLaserConfig.h.

References m_led_control_host.

160 { return m_led_control_host; }
std::string m_led_control_host
int ODLaserConfig::getLedControlON ( ) const
inline

Definition at line 157 of file ODLaserConfig.h.

References m_led_control_on.

157 { return m_led_control_on; }
int ODLaserConfig::getLedControlPort ( ) const
inline

Definition at line 163 of file ODLaserConfig.h.

References m_led_control_port.

163 { return m_led_control_port; }
std::string ODLaserConfig::getLocalOutputFile ( ) const
inline

Definition at line 81 of file ODLaserConfig.h.

References m_mq_file.

81 { return m_mq_file; }
std::string m_mq_file
std::string ODLaserConfig::getMatacqAcquisitionMode ( ) const
inline

Definition at line 78 of file ODLaserConfig.h.

References m_aqmode.

78 { return m_aqmode; }
std::string m_aqmode
int ODLaserConfig::getMatacqBaseAddress ( ) const
inline

Definition at line 36 of file ODLaserConfig.h.

References m_mq_base.

36 { return m_mq_base; }
int ODLaserConfig::getMatacqFedId ( ) const
inline

Definition at line 46 of file ODLaserConfig.h.

References m_mq_fed.

46 { return m_mq_fed; }
std::string ODLaserConfig::getMatacqMode ( ) const
inline

Definition at line 40 of file ODLaserConfig.h.

References m_mode.

40 { return m_mode; }
std::string m_mode
int ODLaserConfig::getMatacqNone ( ) const
inline

Definition at line 38 of file ODLaserConfig.h.

References m_mq_none.

38 { return m_mq_none; }
std::string ODLaserConfig::getMatacqSerialNumber ( ) const
inline

Definition at line 69 of file ODLaserConfig.h.

References m_serial.

69 { return m_serial; }
std::string m_serial
int ODLaserConfig::getMatacqVernierMax ( )
inline

Definition at line 58 of file ODLaserConfig.h.

References m_matacq_vernier_max.

58 { return m_matacq_vernier_max; }
int m_matacq_vernier_max
int ODLaserConfig::getMatacqVernierMin ( )
inline

Definition at line 60 of file ODLaserConfig.h.

References m_matacq_vernier_min.

60 { return m_matacq_vernier_min; }
int m_matacq_vernier_min
std::string ODLaserConfig::getMaxSamplesForDaq ( ) const
inline

Definition at line 44 of file ODLaserConfig.h.

References m_samples.

44 { return m_samples; }
std::string m_samples
int ODLaserConfig::getOpticalSwitch ( ) const
inline

Definition at line 106 of file ODLaserConfig.h.

References m_switch.

106 { return m_switch; }
int ODLaserConfig::getOrangeLedMonAmpl ( ) const
inline

Definition at line 148 of file ODLaserConfig.h.

References m_orange_led_mon_ampl.

148 { return m_orange_led_mon_ampl; }
int m_orange_led_mon_ampl
std::string ODLaserConfig::getPedestalFile ( ) const
inline

Definition at line 48 of file ODLaserConfig.h.

References m_ped_file.

48 { return m_ped_file; }
std::string m_ped_file
int ODLaserConfig::getPedestalRunEventCount ( ) const
inline

Definition at line 72 of file ODLaserConfig.h.

References m_ped_count.

72 { return m_ped_count; }
int ODLaserConfig::getPostTrig ( ) const
inline

Definition at line 52 of file ODLaserConfig.h.

References m_post_trig.

52 { return m_post_trig; }
int ODLaserConfig::getPower ( ) const
inline

Definition at line 103 of file ODLaserConfig.h.

References m_power.

103 { return m_power; }
int ODLaserConfig::getRawDataMode ( ) const
inline

Definition at line 75 of file ODLaserConfig.h.

References m_raw_mode.

75 { return m_raw_mode; }
int ODLaserConfig::getRedLaserLogAttenuator ( ) const
inline

Definition at line 184 of file ODLaserConfig.h.

References m_red_laser_log_attenuator.

184 { return m_red_laser_log_attenuator; }
int m_red_laser_log_attenuator
int ODLaserConfig::getRedLaserPower ( ) const
inline

Definition at line 172 of file ODLaserConfig.h.

References m_red_laser_power.

172 { return m_red_laser_power; }
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
std::string ODLaserConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODLaserConfig.h.

22 { return "ECAL_Laser_CONFIGURATION"; }
std::string ODLaserConfig::getTrigLogFile ( ) const
inline

Definition at line 154 of file ODLaserConfig.h.

References m_trig_log_file.

154 { return m_trig_log_file; }
std::string m_trig_log_file
int ODLaserConfig::getUseBuffer ( ) const
inline

Definition at line 50 of file ODLaserConfig.h.

References m_use_buffer.

50 { return m_use_buffer; }
int ODLaserConfig::getVinj ( ) const
inline

Definition at line 145 of file ODLaserConfig.h.

References m_vinj.

145 { return m_vinj; }
int ODLaserConfig::getWaveLength ( ) const
inline

Definition at line 100 of file ODLaserConfig.h.

References m_wave.

100 { return m_wave; }
int ODLaserConfig::getWTE2LaserDelay ( ) const
inline

Definition at line 87 of file ODLaserConfig.h.

References m_emtc_2.

87 { return m_emtc_2; }
int ODLaserConfig::getWTE2LedDelay ( ) const
inline

Definition at line 130 of file ODLaserConfig.h.

References m_wte_2_led_delay.

130 { return m_wte_2_led_delay; }
void ODLaserConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 217 of file ODLaserConfig.cc.

References alignCSCRings::e.

219 {
220  this->checkConnection();
221  int next_id=fetchNextId();
222 
223 
224  try {
225  m_writeStmt = m_conn->createStatement();
226  m_writeStmt->setSQL("INSERT INTO ECAL_Laser_CONFIGURATION ( laser_configuration_id, laser_tag "
227  ", laser_DEBUG "
228  ", DUMMY "
229  ", MATACQ_BASE_ADDRESS "
230  ", MATACQ_NONE "
231  ", matacq_mode "
232  ", channel_Mask "
233  ", max_Samples_For_Daq "
234  ", maTACQ_FED_ID "
235  ", pedestal_File "
236  ", use_Buffer "
237  ", postTrig "
238  ", fp_Mode "
239  ", hal_Module_File "
240  ", hal_Address_Table_File "
241  ", hal_Static_Table_File "
242  ", matacq_Serial_Number "
243  ", pedestal_Run_Event_Count "
244  ", raw_Data_Mode "
245  ", ACQUISITION_MODE "
246  ", LOCAL_OUTPUT_FILE "
247  ", emtc_none "
248  ", wte2_laser_delay "
249  ", laser_phase "
250  ", emtc_ttc_in "
251  ", emtc_slot_id "
252  ", WAVELENGTH "
253  ", POWER_SETTING "
254  ", OPTICAL_SWITCH "
255  ", FILTER "
256  ", LASER_CONTROL_ON "
257  ", LASER_CONTROL_HOST "
258  ", LASER_CONTROL_PORT "
259  ", LASER_TAG2 "
260  ", MATACQ_VERNIER_MIN "
261  ", MATACQ_VERNIER_MAX "
262  " , wte_2_led_delay "
263  " , led1_on "
264  " , led2_on "
265  " , led3_on "
266  " , led4_on "
267  " , VINJ "
268  " , orange_led_mon_ampl"
269  " , blue_led_mon_ampl "
270  " , trig_log_file "
271  " , led_control_on "
272  " , led_control_host "
273  " , led_control_port "
274  " , ir_laser_power "
275  " , green_laser_power"
276  " , red_laser_power "
277  " , blue_laser_log_attenuator "
278  " , IR_LASER_LOG_ATTENUATOR "
279  " , GREEN_LASER_LOG_ATTENUATOR"
280  " , RED_LASER_LOG_ATTENUATOR "
281  " , LASER_CONFIG_FILE "
282  " , laser_configuration ) "
283  " VALUES ( :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, "
284  ":11, :12, :13, :14, :15, :16, :17, :18, :19, :20, "
285  ":21, :22, :23, :24, :25, :26, :27, :28, :29, :30, "
286  ":31, :32, :33, :34, :35, :36, :37, "
287  " :38, :39, :40, :41, :42, :43, :44, :45, :46, :47, :48, :49, :50, :51, :52, :53, :54, :55, :56, :57, :58 )");
288  m_writeStmt->setInt(1, next_id);
289  m_ID=next_id;
290  } catch (SQLException &e) {
291  throw(std::runtime_error("ODLaserConfig::prepareWrite(): "+e.getMessage()));
292  }
293 }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
Statement * m_writeStmt
Definition: IODConfig.h:36
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
void checkConnection() const
Definition: IDBObject.h:41
void ODLaserConfig::setBlueLaserLogAttenuator ( int  x)
inline

Definition at line 174 of file ODLaserConfig.h.

References m_blue_laser_log_attenuator, and vdt::x.

int m_blue_laser_log_attenuator
x
Definition: VDTMath.h:216
void ODLaserConfig::setBlueLedMonAmpl ( int  x)
inline

Definition at line 150 of file ODLaserConfig.h.

References m_blue_led_mon_ampl, and vdt::x.

150 { m_blue_led_mon_ampl = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setChannelMask ( int  x)
inline

Definition at line 41 of file ODLaserConfig.h.

References m_chan_mask, and vdt::x.

41 { m_chan_mask = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setDebug ( int  x)
inline

Definition at line 30 of file ODLaserConfig.h.

References m_debug, and vdt::x.

30 { m_debug = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setDummy ( int  x)
inline

Definition at line 32 of file ODLaserConfig.h.

References m_dummy, and vdt::x.

32 { m_dummy = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setEMTCNone ( int  x)
inline

Definition at line 84 of file ODLaserConfig.h.

References m_emtc_1, and vdt::x.

84 { m_emtc_1 = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setEMTCSlotId ( int  x)
inline

Definition at line 92 of file ODLaserConfig.h.

References m_emtc_5, and vdt::x.

92 { m_emtc_5 = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setEMTCTTCIn ( int  x)
inline

Definition at line 90 of file ODLaserConfig.h.

References m_emtc_4, and vdt::x.

90 { m_emtc_4 = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setFilter ( int  x)
inline

Definition at line 108 of file ODLaserConfig.h.

References m_filter, and vdt::x.

108 { m_filter = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setFPMode ( int  x)
inline

Definition at line 53 of file ODLaserConfig.h.

References m_fp_mode, and vdt::x.

53 { m_fp_mode = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setGreenLaserLogAttenuator ( int  x)
inline

Definition at line 180 of file ODLaserConfig.h.

References m_green_laser_log_attenuator, and vdt::x.

int m_green_laser_log_attenuator
x
Definition: VDTMath.h:216
void ODLaserConfig::setGreenLaserPower ( int  x)
inline

Definition at line 168 of file ODLaserConfig.h.

References m_green_laser_power, and vdt::x.

168 { m_green_laser_power = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setHalAddressTableFile ( std::string  x)
inline

Definition at line 62 of file ODLaserConfig.h.

References m_hal_add_file, and vdt::x.

62 { m_hal_add_file = x; }
std::string m_hal_add_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setHalModuleFile ( std::string  x)
inline

Definition at line 55 of file ODLaserConfig.h.

References m_hal_mod_file, and vdt::x.

55 { m_hal_mod_file = x; }
std::string m_hal_mod_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setHalStaticTableFile ( std::string  x)
inline

Definition at line 65 of file ODLaserConfig.h.

References m_hal_tab_file, and vdt::x.

65 { m_hal_tab_file = x; }
std::string m_hal_tab_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setId ( int  id)
inline
void ODLaserConfig::setIRLaserLogAttenuator ( int  x)
inline

Definition at line 177 of file ODLaserConfig.h.

References m_ir_laser_log_attenuator, and vdt::x.

int m_ir_laser_log_attenuator
x
Definition: VDTMath.h:216
void ODLaserConfig::setIRLaserPower ( int  x)
inline

Definition at line 165 of file ODLaserConfig.h.

References m_ir_laser_power, and vdt::x.

165 { m_ir_laser_power = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserClob ( unsigned char *  x)
inline

Definition at line 189 of file ODLaserConfig.h.

References m_laser_clob, and vdt::x.

189 { m_laser_clob = x; }
unsigned char * m_laser_clob
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserConfigFile ( std::string  x)
inline

Definition at line 186 of file ODLaserConfig.h.

References m_laser_config_file, and vdt::x.

186 { m_laser_config_file = x; }
std::string m_laser_config_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserControlHost ( std::string  x)
inline

Definition at line 114 of file ODLaserConfig.h.

References m_laserhost, and vdt::x.

114 { m_laserhost = x; }
std::string m_laserhost
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserControlOn ( int  x)
inline

Definition at line 111 of file ODLaserConfig.h.

References m_on, and vdt::x.

111 { m_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserControlPort ( int  x)
inline

Definition at line 117 of file ODLaserConfig.h.

References m_laserport, and vdt::x.

117 { m_laserport = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserPhase ( int  x)
inline

Definition at line 88 of file ODLaserConfig.h.

References m_emtc_3, and vdt::x.

88 { m_emtc_3 = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLaserTag ( std::string  x)
inline

Definition at line 122 of file ODLaserConfig.h.

References m_laser_tag, and vdt::x.

122 { m_laser_tag = x; }
std::string m_laser_tag
x
Definition: VDTMath.h:216
void ODLaserConfig::setLed1ON ( int  x)
inline

Definition at line 132 of file ODLaserConfig.h.

References m_led1_on, and vdt::x.

132 { m_led1_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLed2ON ( int  x)
inline

Definition at line 135 of file ODLaserConfig.h.

References m_led2_on, and vdt::x.

135 { m_led2_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLed3ON ( int  x)
inline

Definition at line 138 of file ODLaserConfig.h.

References m_led3_on, and vdt::x.

138 { m_led3_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLed4ON ( int  x)
inline

Definition at line 141 of file ODLaserConfig.h.

References m_led4_on, and vdt::x.

141 { m_led4_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLedControlHost ( std::string  x)
inline

Definition at line 159 of file ODLaserConfig.h.

References m_led_control_host, and vdt::x.

159 { m_led_control_host = x; }
std::string m_led_control_host
x
Definition: VDTMath.h:216
void ODLaserConfig::setLedControlON ( int  x)
inline

Definition at line 156 of file ODLaserConfig.h.

References m_led_control_on, and vdt::x.

156 { m_led_control_on = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLedControlPort ( int  x)
inline

Definition at line 162 of file ODLaserConfig.h.

References m_led_control_port, and vdt::x.

162 { m_led_control_port = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setLocalOutputFile ( std::string  x)
inline

Definition at line 80 of file ODLaserConfig.h.

References m_mq_file, and vdt::x.

80 { m_mq_file = x; }
std::string m_mq_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqAcquisitionMode ( std::string  x)
inline

Definition at line 77 of file ODLaserConfig.h.

References m_aqmode, and vdt::x.

77 { m_aqmode = x; }
std::string m_aqmode
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqBaseAddress ( int  x)
inline

Definition at line 35 of file ODLaserConfig.h.

References m_mq_base, and vdt::x.

35 { m_mq_base = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqFedId ( int  x)
inline

Definition at line 45 of file ODLaserConfig.h.

References m_mq_fed, and vdt::x.

45 { m_mq_fed = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqMode ( std::string  x)
inline

Definition at line 39 of file ODLaserConfig.h.

References m_mode, and vdt::x.

39 { m_mode = x; }
std::string m_mode
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqNone ( int  x)
inline

Definition at line 37 of file ODLaserConfig.h.

References m_mq_none, and vdt::x.

37 { m_mq_none = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqSerialNumber ( std::string  x)
inline

Definition at line 68 of file ODLaserConfig.h.

References m_serial, and vdt::x.

68 { m_serial = x; }
std::string m_serial
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqVernierMax ( int  x)
inline

Definition at line 57 of file ODLaserConfig.h.

References m_matacq_vernier_max, and vdt::x.

57 { m_matacq_vernier_max = x; }
int m_matacq_vernier_max
x
Definition: VDTMath.h:216
void ODLaserConfig::setMatacqVernierMin ( int  x)
inline

Definition at line 59 of file ODLaserConfig.h.

References m_matacq_vernier_min, and vdt::x.

59 { m_matacq_vernier_min = x; }
int m_matacq_vernier_min
x
Definition: VDTMath.h:216
void ODLaserConfig::setMaxSamplesForDaq ( std::string  x)
inline

Definition at line 43 of file ODLaserConfig.h.

References m_samples, and vdt::x.

43 { m_samples = x; }
x
Definition: VDTMath.h:216
std::string m_samples
void ODLaserConfig::setOpticalSwitch ( int  x)
inline

Definition at line 105 of file ODLaserConfig.h.

References m_switch, and vdt::x.

105 { m_switch = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setOrangeLedMonAmpl ( int  x)
inline

Definition at line 147 of file ODLaserConfig.h.

References m_orange_led_mon_ampl, and vdt::x.

int m_orange_led_mon_ampl
x
Definition: VDTMath.h:216
void ODLaserConfig::setParameters ( std::map< std::string, std::string >  my_keys_map)

Definition at line 101 of file ODLaserConfig.cc.

References gather_cfg::cout, end, and alignmentValidation::fname.

101  {
102 
103  // parses the result of the XML parser that is a map of
104  // string string with variable name variable value
105 
106  for( std::map<std::string, std::string >::iterator ci=
107  my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
108 
109  if(ci->first== "LASER_CONFIGURATION_ID") setConfigTag(ci->second);
110  if(ci->first== "DEBUG") setDebug(atoi(ci->second.c_str()) );
111  if(ci->first== "LASER_DEBUG") setDebug(atoi(ci->second.c_str()) );
112  if(ci->first== "DUMMY") setDummy(atoi(ci->second.c_str() ));
113  if(ci->first== "MATACQ_BASE_ADDRESS") setMatacqBaseAddress(atoi(ci->second.c_str() ));
114  if(ci->first== "MATACQ_NONE") setMatacqNone(atoi(ci->second.c_str() ));
115  if(ci->first== "MATACQ_MODE") setMatacqMode(ci->second);
116  if(ci->first== "CHANNEL_MASK") setChannelMask(atoi(ci->second.c_str() ));
117  if(ci->first== "MAX_SAMPLES_FOR_DAQ") setMaxSamplesForDaq(ci->second );
118  if(ci->first== "MATACQ_FED_ID") setMatacqFedId(atoi(ci->second.c_str()) );
119  if(ci->first== "PEDESTAL_FILE") setPedestalFile(ci->second );
120  if(ci->first== "USE_BUFFER") setUseBuffer(atoi(ci->second.c_str())) ;
121  if(ci->first== "POSTTRIG") setPostTrig(atoi(ci->second.c_str()) );
122  if(ci->first== "FP_MODE") setFPMode(atoi(ci->second.c_str() ));
123  if(ci->first== "HAL_MODULE_FILE") setHalModuleFile(ci->second );
124  if(ci->first== "HAL_ADDRESS_TABLE_FILE" || ci->first== "HAL_ADDRESST_ABLE_FILE") setHalAddressTableFile(ci->second);
125  if(ci->first== "HAL_STATIC_TABLE_FILE") setHalStaticTableFile(ci->second );
126  if(ci->first== "MATACQ_SERIAL_NUMBER") setMatacqSerialNumber(ci->second );
127  if(ci->first== "PEDESTAL_RUN_EVENT_COUNT") setPedestalRunEventCount(atoi(ci->second.c_str()) );
128  if(ci->first== "RAW_DATA_MODE") setRawDataMode(atoi(ci->second.c_str()) );
129  if(ci->first== "ACQUISITION_MODE") setMatacqAcquisitionMode(ci->second );
130  if(ci->first== "LOCAL_OUTPUT_FILE") setLocalOutputFile(ci->second );
131  if(ci->first== "EMTC_NONE") setEMTCNone(atoi(ci->second.c_str()) );
132  if(ci->first== "WTE2_LASER_DELAY") setWTE2LaserDelay(atoi(ci->second.c_str()) );
133  if(ci->first== "LASER_PHASE") setLaserPhase(atoi(ci->second.c_str()) );
134  if(ci->first== "EMTC_TTC_IN") setEMTCTTCIn(atoi(ci->second.c_str()) );
135  if(ci->first== "EMTC_SLOT_ID") setEMTCSlotId(atoi(ci->second.c_str()) );
136  if(ci->first== "WAVELENGTH") setWaveLength(atoi(ci->second.c_str()) );
137  if(ci->first== "OPTICAL_SWITCH") setOpticalSwitch(atoi(ci->second.c_str()) );
138  if(ci->first== "POWER_SETTING") setPower(atoi(ci->second.c_str()) );
139  if(ci->first== "FILTER") setFilter(atoi(ci->second.c_str()) );
140  if(ci->first== "LASER_CONTROL_ON") setLaserControlOn(atoi(ci->second.c_str()) );
141  if(ci->first== "LASER_CONTROL_HOST") setLaserControlHost(ci->second );
142  if(ci->first== "LASER_CONTROL_PORT") setLaserControlPort(atoi(ci->second.c_str()) );
143  if(ci->first== "MATACQ_VERNIER_MAX") setMatacqVernierMax(atoi(ci->second.c_str()) );
144  if(ci->first== "MATACQ_VERNIER_MIN") setMatacqVernierMin(atoi(ci->second.c_str()) );
145 
146  if(ci->first== "WTE_2_LED_DELAY") setWTE2LedDelay(atoi(ci->second.c_str()) );
147  if(ci->first== "LED1_ON") setLed1ON(atoi(ci->second.c_str()) );
148  if(ci->first== "LED2_ON") setLed2ON(atoi(ci->second.c_str()) );
149  if(ci->first== "LED3_ON") setLed3ON(atoi(ci->second.c_str()) );
150  if(ci->first== "LED4_ON") setLed4ON(atoi(ci->second.c_str()) );
151  if(ci->first== "VINJ") setVinj(atoi(ci->second.c_str()) );
152  if(ci->first== "ORANGE_LED_MON_AMPL") setOrangeLedMonAmpl(atoi(ci->second.c_str()) );
153  if(ci->first== "BLUE_LED_MON_AMPL") setBlueLedMonAmpl(atoi(ci->second.c_str()) );
154  if(ci->first== "TRIG_LOG_FILE") setTrigLogFile(ci->second.c_str() );
155  if(ci->first== "LED_CONTROL_ON") setLedControlON(atoi(ci->second.c_str()) );
156  if(ci->first== "LED_CONTROL_HOST") setLedControlHost( ci->second.c_str() );
157  if(ci->first== "LED_CONTROL_PORT") setLedControlPort(atoi(ci->second.c_str()) );
158  if(ci->first== "IR_LASER_POWER") setIRLaserPower(atoi(ci->second.c_str()) );
159  if(ci->first== "GREEN_LASER_POWER") setGreenLaserPower(atoi(ci->second.c_str()) );
160  if(ci->first== "RED_LASER_POWER") setRedLaserPower(atoi(ci->second.c_str()) );
161  if(ci->first== "BLUE_LASER_LOG_ATTENUATOR") setBlueLaserLogAttenuator(atoi(ci->second.c_str()) );
162  if(ci->first== "IR_LASER_LOG_ATTENUATOR") setIRLaserLogAttenuator(atoi(ci->second.c_str()) );
163  if(ci->first== "GREEN_LASER_LOG_ATTENUATOR") setGreenLaserLogAttenuator(atoi(ci->second.c_str()) );
164  if(ci->first== "RED_LASER_LOG_ATTENUATOR") setRedLaserLogAttenuator(atoi(ci->second.c_str()) );
165 
166 
167  if(ci->first== "LASER_CONFIG_FILE") {
168  std::string fname=ci->second ;
169  setLaserConfigFile(fname );
170  // here we must open the file and read the DCC Clob
171  std::cout << "Going to read Laser file: " << fname << endl;
172 
173  ifstream inpFile;
174  inpFile.open(fname.c_str());
175 
176  // tell me size of file
177  int bufsize = 0;
178  inpFile.seekg( 0,ios::end );
179  bufsize = inpFile.tellg();
180  std::cout <<" bufsize ="<<bufsize<< std::endl;
181  // set file pointer to start again
182  inpFile.seekg( 0,ios::beg );
183 
184  m_size=bufsize;
185 
186  inpFile.close();
187 
188  }
189 
190 
191  }
192 
193 }
void setFilter(int x)
void setDummy(int x)
Definition: ODLaserConfig.h:32
void setIRLaserLogAttenuator(int x)
void setLed1ON(int x)
void setChannelMask(int x)
Definition: ODLaserConfig.h:41
void setOrangeLedMonAmpl(int x)
void setMatacqFedId(int x)
Definition: ODLaserConfig.h:45
void setLedControlHost(std::string x)
void setPedestalFile(std::string x)
Definition: ODLaserConfig.h:47
void setOpticalSwitch(int x)
void setFPMode(int x)
Definition: ODLaserConfig.h:53
void setPower(int x)
void setMatacqNone(int x)
Definition: ODLaserConfig.h:37
void setTrigLogFile(std::string x)
void setEMTCSlotId(int x)
Definition: ODLaserConfig.h:92
void setMatacqBaseAddress(int x)
Definition: ODLaserConfig.h:35
void setGreenLaserLogAttenuator(int x)
void setMatacqVernierMin(int x)
Definition: ODLaserConfig.h:59
void setLed2ON(int x)
void setLaserControlHost(std::string x)
void setRedLaserPower(int x)
void setMatacqAcquisitionMode(std::string x)
Definition: ODLaserConfig.h:77
void setRawDataMode(int x)
Definition: ODLaserConfig.h:74
void setEMTCNone(int x)
Definition: ODLaserConfig.h:84
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:43
void setRedLaserLogAttenuator(int x)
void setLed3ON(int x)
#define end
Definition: vmac.h:38
void setHalAddressTableFile(std::string x)
Definition: ODLaserConfig.h:62
void setMatacqVernierMax(int x)
Definition: ODLaserConfig.h:57
void setLaserPhase(int x)
Definition: ODLaserConfig.h:88
unsigned int m_size
void setLaserConfigFile(std::string x)
void setMatacqMode(std::string x)
Definition: ODLaserConfig.h:39
void setPedestalRunEventCount(int x)
Definition: ODLaserConfig.h:71
void setWTE2LedDelay(int x)
void setLedControlPort(int x)
void setGreenLaserPower(int x)
void setUseBuffer(int x)
Definition: ODLaserConfig.h:49
void setBlueLedMonAmpl(int x)
void setLocalOutputFile(std::string x)
Definition: ODLaserConfig.h:80
string fname
main script
void setPostTrig(int x)
Definition: ODLaserConfig.h:51
void setConfigTag(std::string x)
Definition: IODConfig.h:31
void setWTE2LaserDelay(int x)
Definition: ODLaserConfig.h:86
void setMatacqSerialNumber(std::string x)
Definition: ODLaserConfig.h:68
void setHalModuleFile(std::string x)
Definition: ODLaserConfig.h:55
void setHalStaticTableFile(std::string x)
Definition: ODLaserConfig.h:65
tuple cout
Definition: gather_cfg.py:121
void setLaserControlOn(int x)
void setEMTCTTCIn(int x)
Definition: ODLaserConfig.h:90
void setDebug(int x)
Definition: ODLaserConfig.h:30
void setWaveLength(int x)
Definition: ODLaserConfig.h:99
void setLaserControlPort(int x)
void ODLaserConfig::setPedestalFile ( std::string  x)
inline

Definition at line 47 of file ODLaserConfig.h.

References m_ped_file, and vdt::x.

47 { m_ped_file = x; }
std::string m_ped_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setPedestalRunEventCount ( int  x)
inline

Definition at line 71 of file ODLaserConfig.h.

References m_ped_count, and vdt::x.

71 { m_ped_count = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setPostTrig ( int  x)
inline

Definition at line 51 of file ODLaserConfig.h.

References m_post_trig, and vdt::x.

51 { m_post_trig = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setPower ( int  x)
inline

Definition at line 102 of file ODLaserConfig.h.

References m_power, and vdt::x.

102 { m_power = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setRawDataMode ( int  x)
inline

Definition at line 74 of file ODLaserConfig.h.

References m_raw_mode, and vdt::x.

74 { m_raw_mode = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setRedLaserLogAttenuator ( int  x)
inline

Definition at line 183 of file ODLaserConfig.h.

References m_red_laser_log_attenuator, and vdt::x.

x
Definition: VDTMath.h:216
int m_red_laser_log_attenuator
void ODLaserConfig::setRedLaserPower ( int  x)
inline

Definition at line 171 of file ODLaserConfig.h.

References m_red_laser_power, and vdt::x.

171 { m_red_laser_power = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setSize ( unsigned int  id)
inline
void ODLaserConfig::setTrigLogFile ( std::string  x)
inline

Definition at line 153 of file ODLaserConfig.h.

References m_trig_log_file, and vdt::x.

153 { m_trig_log_file = x; }
std::string m_trig_log_file
x
Definition: VDTMath.h:216
void ODLaserConfig::setUseBuffer ( int  x)
inline

Definition at line 49 of file ODLaserConfig.h.

References m_use_buffer, and vdt::x.

49 { m_use_buffer = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setVinj ( int  x)
inline

Definition at line 144 of file ODLaserConfig.h.

References m_vinj, and vdt::x.

144 { m_vinj = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setWaveLength ( int  x)
inline

Definition at line 99 of file ODLaserConfig.h.

References m_wave, and vdt::x.

99 { m_wave = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setWTE2LaserDelay ( int  x)
inline

Definition at line 86 of file ODLaserConfig.h.

References m_emtc_2, and vdt::x.

86 { m_emtc_2 = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::setWTE2LedDelay ( int  x)
inline

Definition at line 129 of file ODLaserConfig.h.

References m_wte_2_led_delay, and vdt::x.

129 { m_wte_2_led_delay = x; }
x
Definition: VDTMath.h:216
void ODLaserConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 297 of file ODLaserConfig.cc.

References gather_cfg::cout, and alignCSCRings::e.

299 {
300  this->checkConnection();
301  this->checkPrepare();
302 
303  try {
304 
305  // 1 is the id 2 is the tag
306  m_writeStmt->setString(2, this->getConfigTag());
307 
308  m_writeStmt->setInt( 3, this->getDebug());
309  m_writeStmt->setInt( 4, this->getDummy());
310  m_writeStmt->setInt( 5, this->getMatacqBaseAddress());
311  m_writeStmt->setInt( 6, this->getMatacqNone());
312  m_writeStmt->setString(7, this->getMatacqMode());
313  m_writeStmt->setInt( 8, this->getChannelMask());
314  m_writeStmt->setString(9, this->getMaxSamplesForDaq());
315  m_writeStmt->setInt( 10, this->getMatacqFedId());
316  m_writeStmt->setString(11, this->getPedestalFile());
317  m_writeStmt->setInt( 12, this->getUseBuffer());
318  m_writeStmt->setInt( 13, this->getPostTrig());
319  m_writeStmt->setInt( 14, this->getFPMode());
320  m_writeStmt->setString(15, this->getHalModuleFile() );
321  m_writeStmt->setString(16, this->getHalAddressTableFile() );
322  m_writeStmt->setString(17, this->getHalStaticTableFile() );
323  m_writeStmt->setString(18, this->getMatacqSerialNumber() );
324  m_writeStmt->setInt( 19, this->getPedestalRunEventCount() );
325  m_writeStmt->setInt( 20, this->getRawDataMode());
326  m_writeStmt->setString(21, this->getMatacqAcquisitionMode());
327  m_writeStmt->setString(22, this->getLocalOutputFile());
328  m_writeStmt->setInt( 23, this->getEMTCNone());
329  m_writeStmt->setInt( 24, this->getWTE2LaserDelay());
330  m_writeStmt->setInt( 25, this->getLaserPhase());
331  m_writeStmt->setInt( 26, this->getEMTCTTCIn());
332  m_writeStmt->setInt( 27, this->getEMTCSlotId());
333  // laser
334  m_writeStmt->setInt(28, this->getWaveLength());
335  m_writeStmt->setInt(29, this->getPower());
336  m_writeStmt->setInt(30, this->getOpticalSwitch());
337  m_writeStmt->setInt(31, this->getFilter());
338  m_writeStmt->setInt(32, this->getLaserControlOn());
339  m_writeStmt->setString(33, this->getLaserControlHost() );
340  m_writeStmt->setInt( 34, this->getLaserControlPort());
341  m_writeStmt->setString( 35, this->getLaserTag());
342 
343  m_writeStmt->setInt( 36, this->getMatacqVernierMin());
344  m_writeStmt->setInt( 37, this->getMatacqVernierMax());
345 
346 
347  // here goes the led and the new parameters
348  m_writeStmt->setInt( 38, this->getWTE2LedDelay());
349  m_writeStmt->setInt( 39, this->getLed1ON());
350  m_writeStmt->setInt( 40, this->getLed2ON());
351  m_writeStmt->setInt( 41, this->getLed3ON());
352  m_writeStmt->setInt( 42, this->getLed4ON());
353  m_writeStmt->setInt( 43, this->getVinj());
354  m_writeStmt->setInt( 44, this->getOrangeLedMonAmpl());
355  m_writeStmt->setInt( 45, this->getBlueLedMonAmpl());
356  m_writeStmt->setString( 46, this->getTrigLogFile());
357  m_writeStmt->setInt( 47, this->getLedControlON());
358  m_writeStmt->setString( 48, this->getLedControlHost());
359  m_writeStmt->setInt( 49, this->getLedControlPort());
360  m_writeStmt->setInt( 50, this->getIRLaserPower());
361  m_writeStmt->setInt( 51, this->getGreenLaserPower());
362  m_writeStmt->setInt( 52, this->getRedLaserPower());
363  m_writeStmt->setInt( 53, this->getBlueLaserLogAttenuator());
364  m_writeStmt->setInt( 54, this->getIRLaserLogAttenuator());
365  m_writeStmt->setInt( 55, this->getGreenLaserLogAttenuator());
366  m_writeStmt->setInt( 56, this->getRedLaserLogAttenuator());
367  m_writeStmt->setString( 57, this->getLaserConfigFile());
368 
369  // and now the clob
370  oracle::occi::Clob clob(m_conn);
371  clob.setEmpty();
372  m_writeStmt->setClob(58,clob);
373  m_writeStmt->executeUpdate ();
374  m_conn->terminateStatement(m_writeStmt);
375 
376  // now we read and update it
377  m_writeStmt = m_conn->createStatement();
378  m_writeStmt->setSQL ("SELECT laser_configuration FROM "+getTable()+" WHERE"
379  " laser_configuration_id=:1 FOR UPDATE");
380  std::cout<<"updating the laser clob "<<std::endl;
381 
382 
383  m_writeStmt->setInt(1, m_ID);
384  ResultSet* rset = m_writeStmt->executeQuery();
385  rset->next ();
386  oracle::occi::Clob clob_to_write = rset->getClob (1);
387  cout << "Opening the clob in read write mode" << endl;
388 
389  populateClob (clob_to_write, getLaserConfigFile(), m_size);
390  int clobLength=clob_to_write.length ();
391  cout << "Length of the clob is: " << clobLength << endl;
392  m_writeStmt->executeUpdate();
393  m_writeStmt->closeResultSet (rset);
394 
395 
396  } catch (SQLException &e) {
397  throw(std::runtime_error("ODLaserConfig::writeDB(): "+e.getMessage()));
398  }
399  // Now get the ID
400  if (!this->fetchID()) {
401  throw(std::runtime_error("ODLaserConfig::writeDB: Failed to write"));
402  }
403 
404 }
int getLed2ON() const
int getMatacqVernierMin()
Definition: ODLaserConfig.h:60
void populateClob(Clob &clob, std::string fname, unsigned int bufsize)
Definition: IODConfig.h:88
int getLaserControlPort() const
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
int getLaserControlOn() const
int getDebug() const
Definition: ODLaserConfig.h:31
Statement * m_writeStmt
Definition: IODConfig.h:36
int getIRLaserLogAttenuator() const
int getBlueLaserLogAttenuator() const
std::string getMatacqMode() const
Definition: ODLaserConfig.h:40
int getChannelMask() const
Definition: ODLaserConfig.h:42
int getLaserPhase() const
Definition: ODLaserConfig.h:89
std::string getLaserTag() const
int getGreenLaserPower() const
int getLedControlPort() const
std::string getMaxSamplesForDaq() const
Definition: ODLaserConfig.h:44
int getFilter() const
int getLed1ON() const
int getIRLaserPower() const
int getEMTCNone() const
Definition: ODLaserConfig.h:85
oracle::occi::SQLException SQLException
Definition: HcalDbOmds.cc:22
int getLed3ON() const
int getWTE2LaserDelay() const
Definition: ODLaserConfig.h:87
int getRedLaserPower() const
int getMatacqVernierMax()
Definition: ODLaserConfig.h:58
int getLedControlON() const
int getLed4ON() const
int getRawDataMode() const
Definition: ODLaserConfig.h:75
std::string getLedControlHost() const
std::string getMatacqAcquisitionMode() const
Definition: ODLaserConfig.h:78
std::string getHalStaticTableFile() const
Definition: ODLaserConfig.h:66
std::string getLaserConfigFile() const
int getOpticalSwitch() const
std::string getTable()
Definition: ODLaserConfig.h:22
int getPedestalRunEventCount() const
Definition: ODLaserConfig.h:72
std::string getLaserControlHost() const
int getFPMode() const
Definition: ODLaserConfig.h:54
int getRedLaserLogAttenuator() const
std::string getPedestalFile() const
Definition: ODLaserConfig.h:48
unsigned int m_size
int getEMTCSlotId() const
Definition: ODLaserConfig.h:93
int getOrangeLedMonAmpl() const
int getEMTCTTCIn() const
Definition: ODLaserConfig.h:91
int getMatacqNone() const
Definition: ODLaserConfig.h:38
std::string getMatacqSerialNumber() const
Definition: ODLaserConfig.h:69
int getDummy() const
Definition: ODLaserConfig.h:33
int getUseBuffer() const
Definition: ODLaserConfig.h:50
void checkPrepare()
Definition: IODConfig.h:39
std::string getLocalOutputFile() const
Definition: ODLaserConfig.h:81
std::string getTrigLogFile() const
int getWTE2LedDelay() const
oracle::occi::ResultSet ResultSet
Definition: HcalDbOmds.cc:21
int getMatacqBaseAddress() const
Definition: ODLaserConfig.h:36
int getVinj() const
std::string getConfigTag()
Definition: IODConfig.h:32
tuple cout
Definition: gather_cfg.py:121
int getWaveLength() const
std::string getHalAddressTableFile() const
Definition: ODLaserConfig.h:63
int getPower() const
int getGreenLaserLogAttenuator() const
int getBlueLedMonAmpl() const
int getMatacqFedId() const
Definition: ODLaserConfig.h:46
void checkConnection() const
Definition: IDBObject.h:41
std::string getHalModuleFile() const
Definition: ODLaserConfig.h:56
int getPostTrig() const
Definition: ODLaserConfig.h:52

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODLaserConfig.h.

Member Data Documentation

std::string ODLaserConfig::m_aqmode
private

Definition at line 226 of file ODLaserConfig.h.

Referenced by getMatacqAcquisitionMode(), and setMatacqAcquisitionMode().

int ODLaserConfig::m_blue_laser_log_attenuator
private

Definition at line 266 of file ODLaserConfig.h.

Referenced by getBlueLaserLogAttenuator(), and setBlueLaserLogAttenuator().

int ODLaserConfig::m_blue_led_mon_ampl
private

Definition at line 258 of file ODLaserConfig.h.

Referenced by getBlueLedMonAmpl(), and setBlueLedMonAmpl().

int ODLaserConfig::m_chan_mask
private

Definition at line 213 of file ODLaserConfig.h.

Referenced by getChannelMask(), and setChannelMask().

int ODLaserConfig::m_debug
private

Definition at line 209 of file ODLaserConfig.h.

Referenced by getDebug(), and setDebug().

int ODLaserConfig::m_dummy
private

Definition at line 208 of file ODLaserConfig.h.

Referenced by getDummy(), and setDummy().

int ODLaserConfig::m_emtc_1
private

Definition at line 232 of file ODLaserConfig.h.

Referenced by getEMTCNone(), and setEMTCNone().

int ODLaserConfig::m_emtc_2
private

Definition at line 233 of file ODLaserConfig.h.

Referenced by getWTE2LaserDelay(), and setWTE2LaserDelay().

int ODLaserConfig::m_emtc_3
private

Definition at line 234 of file ODLaserConfig.h.

Referenced by getLaserPhase(), and setLaserPhase().

int ODLaserConfig::m_emtc_4
private

Definition at line 235 of file ODLaserConfig.h.

Referenced by getEMTCTTCIn(), and setEMTCTTCIn().

int ODLaserConfig::m_emtc_5
private

Definition at line 236 of file ODLaserConfig.h.

Referenced by getEMTCSlotId(), and setEMTCSlotId().

int ODLaserConfig::m_filter
private

Definition at line 242 of file ODLaserConfig.h.

Referenced by getFilter(), and setFilter().

int ODLaserConfig::m_fp_mode
private

Definition at line 219 of file ODLaserConfig.h.

Referenced by getFPMode(), and setFPMode().

int ODLaserConfig::m_green_laser_log_attenuator
private

Definition at line 268 of file ODLaserConfig.h.

Referenced by getGreenLaserLogAttenuator(), and setGreenLaserLogAttenuator().

int ODLaserConfig::m_green_laser_power
private

Definition at line 264 of file ODLaserConfig.h.

Referenced by getGreenLaserPower(), and setGreenLaserPower().

std::string ODLaserConfig::m_hal_add_file
private

Definition at line 221 of file ODLaserConfig.h.

Referenced by getHalAddressTableFile(), and setHalAddressTableFile().

std::string ODLaserConfig::m_hal_mod_file
private

Definition at line 220 of file ODLaserConfig.h.

Referenced by getHalModuleFile(), and setHalModuleFile().

std::string ODLaserConfig::m_hal_tab_file
private

Definition at line 222 of file ODLaserConfig.h.

Referenced by getHalStaticTableFile(), and setHalStaticTableFile().

int ODLaserConfig::m_ID
private

Definition at line 205 of file ODLaserConfig.h.

Referenced by getId(), and setId().

int ODLaserConfig::m_ir_laser_log_attenuator
private

Definition at line 267 of file ODLaserConfig.h.

Referenced by getIRLaserLogAttenuator(), and setIRLaserLogAttenuator().

int ODLaserConfig::m_ir_laser_power
private

Definition at line 263 of file ODLaserConfig.h.

Referenced by getIRLaserPower(), and setIRLaserPower().

unsigned char* ODLaserConfig::m_laser_clob
private

Definition at line 271 of file ODLaserConfig.h.

Referenced by getLaserClob(), and setLaserClob().

std::string ODLaserConfig::m_laser_config_file
private

Definition at line 270 of file ODLaserConfig.h.

Referenced by getLaserConfigFile(), and setLaserConfigFile().

std::string ODLaserConfig::m_laser_tag
private

Definition at line 247 of file ODLaserConfig.h.

Referenced by getLaserTag(), and setLaserTag().

std::string ODLaserConfig::m_laserhost
private

Definition at line 244 of file ODLaserConfig.h.

Referenced by getLaserControlHost(), and setLaserControlHost().

int ODLaserConfig::m_laserport
private

Definition at line 245 of file ODLaserConfig.h.

Referenced by getLaserControlPort(), and setLaserControlPort().

int ODLaserConfig::m_led1_on
private

Definition at line 252 of file ODLaserConfig.h.

Referenced by getLed1ON(), and setLed1ON().

int ODLaserConfig::m_led2_on
private

Definition at line 253 of file ODLaserConfig.h.

Referenced by getLed2ON(), and setLed2ON().

int ODLaserConfig::m_led3_on
private

Definition at line 254 of file ODLaserConfig.h.

Referenced by getLed3ON(), and setLed3ON().

int ODLaserConfig::m_led4_on
private

Definition at line 255 of file ODLaserConfig.h.

Referenced by getLed4ON(), and setLed4ON().

std::string ODLaserConfig::m_led_control_host
private

Definition at line 261 of file ODLaserConfig.h.

Referenced by getLedControlHost(), and setLedControlHost().

int ODLaserConfig::m_led_control_on
private

Definition at line 260 of file ODLaserConfig.h.

Referenced by getLedControlON(), and setLedControlON().

int ODLaserConfig::m_led_control_port
private

Definition at line 262 of file ODLaserConfig.h.

Referenced by getLedControlPort(), and setLedControlPort().

int ODLaserConfig::m_matacq_vernier_max
private

Definition at line 229 of file ODLaserConfig.h.

Referenced by getMatacqVernierMax(), and setMatacqVernierMax().

int ODLaserConfig::m_matacq_vernier_min
private

Definition at line 228 of file ODLaserConfig.h.

Referenced by getMatacqVernierMin(), and setMatacqVernierMin().

std::string ODLaserConfig::m_mode
private

Definition at line 212 of file ODLaserConfig.h.

Referenced by getMatacqMode(), and setMatacqMode().

int ODLaserConfig::m_mq_base
private

Definition at line 210 of file ODLaserConfig.h.

Referenced by getMatacqBaseAddress(), and setMatacqBaseAddress().

int ODLaserConfig::m_mq_fed
private

Definition at line 215 of file ODLaserConfig.h.

Referenced by getMatacqFedId(), and setMatacqFedId().

std::string ODLaserConfig::m_mq_file
private

Definition at line 227 of file ODLaserConfig.h.

Referenced by getLocalOutputFile(), and setLocalOutputFile().

int ODLaserConfig::m_mq_none
private

Definition at line 211 of file ODLaserConfig.h.

Referenced by getMatacqNone(), and setMatacqNone().

int ODLaserConfig::m_on
private

Definition at line 243 of file ODLaserConfig.h.

Referenced by getLaserControlOn(), and setLaserControlOn().

int ODLaserConfig::m_orange_led_mon_ampl
private

Definition at line 257 of file ODLaserConfig.h.

Referenced by getOrangeLedMonAmpl(), and setOrangeLedMonAmpl().

int ODLaserConfig::m_ped_count
private

Definition at line 224 of file ODLaserConfig.h.

Referenced by getPedestalRunEventCount(), and setPedestalRunEventCount().

std::string ODLaserConfig::m_ped_file
private

Definition at line 216 of file ODLaserConfig.h.

Referenced by getPedestalFile(), and setPedestalFile().

int ODLaserConfig::m_post_trig
private

Definition at line 218 of file ODLaserConfig.h.

Referenced by getPostTrig(), and setPostTrig().

int ODLaserConfig::m_power
private

Definition at line 240 of file ODLaserConfig.h.

Referenced by getPower(), and setPower().

int ODLaserConfig::m_raw_mode
private

Definition at line 225 of file ODLaserConfig.h.

Referenced by getRawDataMode(), and setRawDataMode().

int ODLaserConfig::m_red_laser_log_attenuator
private

Definition at line 269 of file ODLaserConfig.h.

Referenced by getRedLaserLogAttenuator(), and setRedLaserLogAttenuator().

int ODLaserConfig::m_red_laser_power
private

Definition at line 265 of file ODLaserConfig.h.

Referenced by getRedLaserPower(), and setRedLaserPower().

std::string ODLaserConfig::m_samples
private

Definition at line 214 of file ODLaserConfig.h.

Referenced by getMaxSamplesForDaq(), and setMaxSamplesForDaq().

std::string ODLaserConfig::m_serial
private

Definition at line 223 of file ODLaserConfig.h.

Referenced by getMatacqSerialNumber(), and setMatacqSerialNumber().

unsigned int ODLaserConfig::m_size
private

Definition at line 272 of file ODLaserConfig.h.

Referenced by getSize(), and setSize().

int ODLaserConfig::m_switch
private

Definition at line 241 of file ODLaserConfig.h.

Referenced by getOpticalSwitch(), and setOpticalSwitch().

std::string ODLaserConfig::m_trig_log_file
private

Definition at line 259 of file ODLaserConfig.h.

Referenced by getTrigLogFile(), and setTrigLogFile().

int ODLaserConfig::m_use_buffer
private

Definition at line 217 of file ODLaserConfig.h.

Referenced by getUseBuffer(), and setUseBuffer().

int ODLaserConfig::m_vinj
private

Definition at line 256 of file ODLaserConfig.h.

Referenced by getVinj(), and setVinj().

int ODLaserConfig::m_wave
private

Definition at line 239 of file ODLaserConfig.h.

Referenced by getWaveLength(), and setWaveLength().

int ODLaserConfig::m_wte_2_led_delay
private

Definition at line 251 of file ODLaserConfig.h.

Referenced by getWTE2LedDelay(), and setWTE2LedDelay().