#include <ODLaserConfig.h>
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 () | |
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 |
Definition at line 15 of file ODLaserConfig.h.
ODLaserConfig::ODLaserConfig | ( | ) |
Definition at line 15 of file ODLaserConfig.cc.
References hitfit::clear(), and NULL.
{ m_env = NULL; m_conn = NULL; m_writeStmt = NULL; m_readStmt = NULL; m_size=0; m_config_tag=""; m_ID=0; clear(); }
ODLaserConfig::~ODLaserConfig | ( | ) |
Definition at line 95 of file ODLaserConfig.cc.
{ }
void ODLaserConfig::clear | ( | void | ) | [private] |
Definition at line 28 of file ODLaserConfig.cc.
{ m_debug=0; m_dummy=0; // emtc m_emtc_1=0; m_emtc_2=0; m_emtc_3=0; m_emtc_4=0; m_emtc_5=0; // laser m_wave=0; m_power=0; m_switch=0; m_filter=0; m_on=0; m_laserhost=""; m_laserport=0; // mataq m_mq_base=0; m_mq_none=0; m_mode="" ; m_chan_mask=0; m_samples=""; m_ped_file=""; m_use_buffer=0; m_post_trig=0; m_fp_mode=0; m_hal_mod_file=""; m_hal_add_file=""; m_hal_tab_file=""; m_serial=""; m_ped_count=0; m_raw_mode=0; m_aqmode=""; m_mq_file=""; m_laser_tag=""; m_matacq_vernier_min=0; m_matacq_vernier_max=0; m_wte_2_led_delay =0; m_led1_on =0; m_led2_on =0; m_led3_on =0; m_led4_on =0; m_vinj =0; m_orange_led_mon_ampl=0; m_blue_led_mon_ampl =0; m_trig_log_file =""; m_led_control_on =0; m_led_control_host=""; m_led_control_port =0; m_ir_laser_power =0; m_green_laser_power=0; m_red_laser_power =0; m_blue_laser_log_attenuator =0; m_ir_laser_log_attenuator =0; m_green_laser_log_attenuator =0; m_red_laser_log_attenuator =0; m_laser_config_file =""; }
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.
{ this->checkConnection(); result->clear(); if(result->getId()==0 && (result->getConfigTag()=="") ){ throw(std::runtime_error("ODLaserConfig::fetchData(): no Id defined for this ODLaserConfig ")); } try { m_readStmt->setSQL("SELECT * " "FROM "+getTable()+ " where ( laser_configuration_id = :1 or laser_tag=:2 )" ); m_readStmt->setInt(1, result->getId()); m_readStmt->setString(2, result->getConfigTag()); ResultSet* rset = m_readStmt->executeQuery(); rset->next(); // start from 3 because of select * result->setId(rset->getInt(1)); result->setConfigTag(rset->getString(2)); result->setDebug(rset->getInt( 3 )); result->setDummy(rset->getInt( 4 )); result->setMatacqBaseAddress(rset->getInt( 5 )); result->setMatacqNone(rset->getInt( 6 )); result->setMatacqMode(rset->getString(7 )); result->setChannelMask(rset->getInt( 8 )); result->setMaxSamplesForDaq(rset->getString( 9 )); result->setMatacqFedId(rset->getInt( 10 )); result->setPedestalFile(rset->getString( 11 )); result->setUseBuffer(rset->getInt( 12 )); result->setPostTrig(rset->getInt( 13 )); result->setFPMode(rset->getInt( 14 )); result->setHalModuleFile(rset->getString( 15 )); result->setHalAddressTableFile(rset->getString( 16 )); result->setHalStaticTableFile(rset->getString( 17 )); result->setMatacqSerialNumber(rset->getString( 18 )); result->setPedestalRunEventCount(rset->getInt( 19 )); result->setRawDataMode(rset->getInt( 20 )); result->setMatacqAcquisitionMode(rset->getString( 21 )); result->setLocalOutputFile(rset->getString( 22 )); result->setEMTCNone(rset->getInt( 23 )); result->setWTE2LaserDelay(rset->getInt( 24 )); result->setLaserPhase(rset->getInt( 25 )); result->setEMTCTTCIn(rset->getInt( 26 )); result->setEMTCSlotId(rset->getInt( 27 )); // laser result->setWaveLength(rset->getInt( 28 )); result->setPower(rset->getInt( 29 )); result->setOpticalSwitch(rset->getInt( 30 )); result->setFilter(rset->getInt( 31 )); result->setLaserControlOn(rset->getInt( 32 )); result->setLaserControlHost(rset->getString( 33 )); result->setLaserControlPort(rset->getInt( 34 )); result->setLaserTag(rset->getString( 35 )); result->setMatacqVernierMin(rset->getInt( 36 )); result->setMatacqVernierMax(rset->getInt( 37 )); result->setWTE2LedDelay(rset->getInt( 38 )); result->setLed1ON(rset->getInt( 39 )); result->setLed2ON(rset->getInt( 40 )); result->setLed3ON(rset->getInt( 41 )); result->setLed4ON(rset->getInt( 42 )); result->setVinj(rset->getInt( 43 )); result->setOrangeLedMonAmpl(rset->getInt( 44 )); result->setBlueLedMonAmpl(rset->getInt( 45 )); result->setTrigLogFile(rset->getString( 46 )); result->setLedControlON(rset->getInt( 47 )); result->setLedControlHost(rset->getString( 48 )); result->setLedControlPort(rset->getInt( 49 )); result->setIRLaserPower(rset->getInt( 50 )); result->setGreenLaserPower(rset->getInt( 51 )); result->setRedLaserPower(rset->getInt( 52 )); result->setBlueLaserLogAttenuator(rset->getInt( 53 )); result->setIRLaserLogAttenuator(rset->getInt( 54 )); result->setGreenLaserLogAttenuator(rset->getInt( 55 )); result->setRedLaserLogAttenuator(rset->getInt( 56 )); result->setLaserConfigFile(rset->getString( 57 )); Clob clob = rset->getClob (58); cout << "Opening the clob in Read only mode" << endl; clob.open (OCCI_LOB_READONLY); int clobLength=clob.length (); cout << "Length of the clob is: " << clobLength << endl; m_size=clobLength; unsigned char* buffer = readClob (clob, m_size); clob.close (); cout<< "the clob buffer is:"<<endl; for (int i = 0; i < clobLength; ++i) cout << (char) buffer[i]; cout << endl; result->setLaserClob(buffer); } catch (SQLException &e) { throw(std::runtime_error("ODLaserConfig::fetchData(): "+e.getMessage())); } }
int ODLaserConfig::fetchID | ( | ) | throw (std::runtime_error) [private] |
Definition at line 514 of file ODLaserConfig.cc.
References alignCSCRings::e.
{ // Return from memory if available if (m_ID!=0) { return m_ID; } this->checkConnection(); try { Statement* stmt = m_conn->createStatement(); stmt->setSQL("SELECT laser_configuration_id FROM ecal_laser_configuration " "WHERE laser_tag=:laser_tag "); stmt->setString(1, getLaserTag()); ResultSet* rset = stmt->executeQuery(); if (rset->next()) { m_ID = rset->getInt(1); } else { m_ID = 0; } m_conn->terminateStatement(stmt); } catch (SQLException &e) { throw(std::runtime_error("ODLaserConfig::fetchID: "+e.getMessage())); } fetchData(this); return m_ID; }
int ODLaserConfig::fetchNextId | ( | ) | throw (std::runtime_error) |
Definition at line 195 of file ODLaserConfig.cc.
References alignCSCRings::e, and query::result.
{ int result=0; try { this->checkConnection(); m_readStmt = m_conn->createStatement(); m_readStmt->setSQL("select ecal_laser_config_sq.NextVal from dual"); ResultSet* rset = m_readStmt->executeQuery(); while (rset->next ()){ result= rset->getInt(1); } m_conn->terminateStatement(m_readStmt); return result; } catch (SQLException &e) { throw(std::runtime_error("ODLaserConfig::fetchNextId(): "+e.getMessage())); } }
int ODLaserConfig::getBlueLaserLogAttenuator | ( | ) | const [inline] |
Definition at line 175 of file ODLaserConfig.h.
References m_blue_laser_log_attenuator.
{ return m_blue_laser_log_attenuator; }
int ODLaserConfig::getBlueLedMonAmpl | ( | ) | const [inline] |
Definition at line 151 of file ODLaserConfig.h.
References m_blue_led_mon_ampl.
{ return m_blue_led_mon_ampl; }
int ODLaserConfig::getChannelMask | ( | ) | const [inline] |
int ODLaserConfig::getDebug | ( | ) | const [inline] |
int ODLaserConfig::getDummy | ( | ) | const [inline] |
int ODLaserConfig::getEMTCNone | ( | ) | const [inline] |
int ODLaserConfig::getEMTCSlotId | ( | ) | const [inline] |
int ODLaserConfig::getEMTCTTCIn | ( | ) | const [inline] |
int ODLaserConfig::getFilter | ( | ) | const [inline] |
int ODLaserConfig::getFPMode | ( | ) | const [inline] |
int ODLaserConfig::getGreenLaserLogAttenuator | ( | ) | const [inline] |
Definition at line 181 of file ODLaserConfig.h.
References m_green_laser_log_attenuator.
{ return m_green_laser_log_attenuator; }
int ODLaserConfig::getGreenLaserPower | ( | ) | const [inline] |
Definition at line 169 of file ODLaserConfig.h.
References m_green_laser_power.
{ return m_green_laser_power; }
std::string ODLaserConfig::getHalAddressTableFile | ( | ) | const [inline] |
Definition at line 63 of file ODLaserConfig.h.
References m_hal_add_file.
{ return m_hal_add_file; }
std::string ODLaserConfig::getHalModuleFile | ( | ) | const [inline] |
Definition at line 56 of file ODLaserConfig.h.
References m_hal_mod_file.
{ return m_hal_mod_file; }
std::string ODLaserConfig::getHalStaticTableFile | ( | ) | const [inline] |
Definition at line 66 of file ODLaserConfig.h.
References m_hal_tab_file.
{ return m_hal_tab_file; }
int ODLaserConfig::getId | ( | ) | const [inline] |
int ODLaserConfig::getIRLaserLogAttenuator | ( | ) | const [inline] |
Definition at line 178 of file ODLaserConfig.h.
References m_ir_laser_log_attenuator.
{ return m_ir_laser_log_attenuator; }
int ODLaserConfig::getIRLaserPower | ( | ) | const [inline] |
Definition at line 166 of file ODLaserConfig.h.
References m_ir_laser_power.
{ return m_ir_laser_power; }
unsigned char* ODLaserConfig::getLaserClob | ( | ) | const [inline] |
std::string ODLaserConfig::getLaserConfigFile | ( | ) | const [inline] |
Definition at line 187 of file ODLaserConfig.h.
References m_laser_config_file.
{ return m_laser_config_file ; }
std::string ODLaserConfig::getLaserControlHost | ( | ) | const [inline] |
int ODLaserConfig::getLaserControlOn | ( | ) | const [inline] |
int ODLaserConfig::getLaserControlPort | ( | ) | const [inline] |
int ODLaserConfig::getLaserPhase | ( | ) | const [inline] |
std::string ODLaserConfig::getLaserTag | ( | ) | const [inline] |
int ODLaserConfig::getLed1ON | ( | ) | const [inline] |
int ODLaserConfig::getLed2ON | ( | ) | const [inline] |
int ODLaserConfig::getLed3ON | ( | ) | const [inline] |
int ODLaserConfig::getLed4ON | ( | ) | const [inline] |
std::string ODLaserConfig::getLedControlHost | ( | ) | const [inline] |
Definition at line 160 of file ODLaserConfig.h.
References m_led_control_host.
{ return m_led_control_host; }
int ODLaserConfig::getLedControlON | ( | ) | const [inline] |
Definition at line 157 of file ODLaserConfig.h.
References m_led_control_on.
{ return m_led_control_on; }
int ODLaserConfig::getLedControlPort | ( | ) | const [inline] |
Definition at line 163 of file ODLaserConfig.h.
References m_led_control_port.
{ return m_led_control_port; }
std::string ODLaserConfig::getLocalOutputFile | ( | ) | const [inline] |
std::string ODLaserConfig::getMatacqAcquisitionMode | ( | ) | const [inline] |
int ODLaserConfig::getMatacqBaseAddress | ( | ) | const [inline] |
int ODLaserConfig::getMatacqFedId | ( | ) | const [inline] |
std::string ODLaserConfig::getMatacqMode | ( | ) | const [inline] |
int ODLaserConfig::getMatacqNone | ( | ) | const [inline] |
std::string ODLaserConfig::getMatacqSerialNumber | ( | ) | const [inline] |
int ODLaserConfig::getMatacqVernierMax | ( | ) | [inline] |
Definition at line 58 of file ODLaserConfig.h.
References m_matacq_vernier_max.
{ return m_matacq_vernier_max; }
int ODLaserConfig::getMatacqVernierMin | ( | ) | [inline] |
Definition at line 60 of file ODLaserConfig.h.
References m_matacq_vernier_min.
{ return m_matacq_vernier_min; }
std::string ODLaserConfig::getMaxSamplesForDaq | ( | ) | const [inline] |
int ODLaserConfig::getOpticalSwitch | ( | ) | const [inline] |
int ODLaserConfig::getOrangeLedMonAmpl | ( | ) | const [inline] |
Definition at line 148 of file ODLaserConfig.h.
References m_orange_led_mon_ampl.
{ return m_orange_led_mon_ampl; }
std::string ODLaserConfig::getPedestalFile | ( | ) | const [inline] |
int ODLaserConfig::getPedestalRunEventCount | ( | ) | const [inline] |
int ODLaserConfig::getPostTrig | ( | ) | const [inline] |
int ODLaserConfig::getPower | ( | ) | const [inline] |
int ODLaserConfig::getRawDataMode | ( | ) | const [inline] |
int ODLaserConfig::getRedLaserLogAttenuator | ( | ) | const [inline] |
Definition at line 184 of file ODLaserConfig.h.
References m_red_laser_log_attenuator.
{ return m_red_laser_log_attenuator; }
int ODLaserConfig::getRedLaserPower | ( | ) | const [inline] |
Definition at line 172 of file ODLaserConfig.h.
References m_red_laser_power.
{ return m_red_laser_power; }
unsigned int ODLaserConfig::getSize | ( | ) | const [inline] |
std::string ODLaserConfig::getTable | ( | ) | [inline, virtual] |
Implements IODConfig.
Definition at line 22 of file ODLaserConfig.h.
{ return "ECAL_Laser_CONFIGURATION"; }
std::string ODLaserConfig::getTrigLogFile | ( | ) | const [inline] |
Definition at line 154 of file ODLaserConfig.h.
References m_trig_log_file.
{ return m_trig_log_file; }
int ODLaserConfig::getUseBuffer | ( | ) | const [inline] |
int ODLaserConfig::getVinj | ( | ) | const [inline] |
int ODLaserConfig::getWaveLength | ( | ) | const [inline] |
int ODLaserConfig::getWTE2LaserDelay | ( | ) | const [inline] |
int ODLaserConfig::getWTE2LedDelay | ( | ) | const [inline] |
Definition at line 130 of file ODLaserConfig.h.
References m_wte_2_led_delay.
{ return m_wte_2_led_delay; }
void ODLaserConfig::prepareWrite | ( | ) | throw (std::runtime_error) [private, virtual] |
Implements IODConfig.
Definition at line 217 of file ODLaserConfig.cc.
References alignCSCRings::e.
{ this->checkConnection(); int next_id=fetchNextId(); try { m_writeStmt = m_conn->createStatement(); m_writeStmt->setSQL("INSERT INTO ECAL_Laser_CONFIGURATION ( laser_configuration_id, laser_tag " ", laser_DEBUG " ", DUMMY " ", MATACQ_BASE_ADDRESS " ", MATACQ_NONE " ", matacq_mode " ", channel_Mask " ", max_Samples_For_Daq " ", maTACQ_FED_ID " ", pedestal_File " ", use_Buffer " ", postTrig " ", fp_Mode " ", hal_Module_File " ", hal_Address_Table_File " ", hal_Static_Table_File " ", matacq_Serial_Number " ", pedestal_Run_Event_Count " ", raw_Data_Mode " ", ACQUISITION_MODE " ", LOCAL_OUTPUT_FILE " ", emtc_none " ", wte2_laser_delay " ", laser_phase " ", emtc_ttc_in " ", emtc_slot_id " ", WAVELENGTH " ", POWER_SETTING " ", OPTICAL_SWITCH " ", FILTER " ", LASER_CONTROL_ON " ", LASER_CONTROL_HOST " ", LASER_CONTROL_PORT " ", LASER_TAG2 " ", MATACQ_VERNIER_MIN " ", MATACQ_VERNIER_MAX " " , wte_2_led_delay " " , led1_on " " , led2_on " " , led3_on " " , led4_on " " , VINJ " " , orange_led_mon_ampl" " , blue_led_mon_ampl " " , trig_log_file " " , led_control_on " " , led_control_host " " , led_control_port " " , ir_laser_power " " , green_laser_power" " , red_laser_power " " , blue_laser_log_attenuator " " , IR_LASER_LOG_ATTENUATOR " " , GREEN_LASER_LOG_ATTENUATOR" " , RED_LASER_LOG_ATTENUATOR " " , LASER_CONFIG_FILE " " , laser_configuration ) " " VALUES ( :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, " ":11, :12, :13, :14, :15, :16, :17, :18, :19, :20, " ":21, :22, :23, :24, :25, :26, :27, :28, :29, :30, " ":31, :32, :33, :34, :35, :36, :37, " " :38, :39, :40, :41, :42, :43, :44, :45, :46, :47, :48, :49, :50, :51, :52, :53, :54, :55, :56, :57, :58 )"); m_writeStmt->setInt(1, next_id); m_ID=next_id; } catch (SQLException &e) { throw(std::runtime_error("ODLaserConfig::prepareWrite(): "+e.getMessage())); } }
void ODLaserConfig::setBlueLaserLogAttenuator | ( | int | x | ) | [inline] |
Definition at line 174 of file ODLaserConfig.h.
References m_blue_laser_log_attenuator, and x.
{ m_blue_laser_log_attenuator = x; }
void ODLaserConfig::setBlueLedMonAmpl | ( | int | x | ) | [inline] |
Definition at line 150 of file ODLaserConfig.h.
References m_blue_led_mon_ampl, and x.
{ m_blue_led_mon_ampl = x; }
void ODLaserConfig::setChannelMask | ( | int | x | ) | [inline] |
void ODLaserConfig::setDebug | ( | int | x | ) | [inline] |
void ODLaserConfig::setDummy | ( | int | x | ) | [inline] |
void ODLaserConfig::setEMTCNone | ( | int | x | ) | [inline] |
void ODLaserConfig::setEMTCSlotId | ( | int | x | ) | [inline] |
void ODLaserConfig::setEMTCTTCIn | ( | int | x | ) | [inline] |
void ODLaserConfig::setFilter | ( | int | x | ) | [inline] |
void ODLaserConfig::setFPMode | ( | int | x | ) | [inline] |
void ODLaserConfig::setGreenLaserLogAttenuator | ( | int | x | ) | [inline] |
Definition at line 180 of file ODLaserConfig.h.
References m_green_laser_log_attenuator, and x.
{ m_green_laser_log_attenuator = x; }
void ODLaserConfig::setGreenLaserPower | ( | int | x | ) | [inline] |
Definition at line 168 of file ODLaserConfig.h.
References m_green_laser_power, and x.
{ m_green_laser_power = x; }
void ODLaserConfig::setHalAddressTableFile | ( | std::string | x | ) | [inline] |
Definition at line 62 of file ODLaserConfig.h.
References m_hal_add_file, and x.
{ m_hal_add_file = x; }
void ODLaserConfig::setHalModuleFile | ( | std::string | x | ) | [inline] |
Definition at line 55 of file ODLaserConfig.h.
References m_hal_mod_file, and x.
{ m_hal_mod_file = x; }
void ODLaserConfig::setHalStaticTableFile | ( | std::string | x | ) | [inline] |
Definition at line 65 of file ODLaserConfig.h.
References m_hal_tab_file, and x.
{ m_hal_tab_file = x; }
void ODLaserConfig::setId | ( | int | id | ) | [inline] |
Definition at line 24 of file ODLaserConfig.h.
References errorMatrix2Lands_multiChannel::id, and m_ID.
void ODLaserConfig::setIRLaserLogAttenuator | ( | int | x | ) | [inline] |
Definition at line 177 of file ODLaserConfig.h.
References m_ir_laser_log_attenuator, and x.
{ m_ir_laser_log_attenuator = x; }
void ODLaserConfig::setIRLaserPower | ( | int | x | ) | [inline] |
Definition at line 165 of file ODLaserConfig.h.
References m_ir_laser_power, and x.
{ m_ir_laser_power = x; }
void ODLaserConfig::setLaserClob | ( | unsigned char * | x | ) | [inline] |
Definition at line 189 of file ODLaserConfig.h.
References m_laser_clob, and x.
{ m_laser_clob = x; }
void ODLaserConfig::setLaserConfigFile | ( | std::string | x | ) | [inline] |
Definition at line 186 of file ODLaserConfig.h.
References m_laser_config_file, and x.
{ m_laser_config_file = x; }
void ODLaserConfig::setLaserControlHost | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setLaserControlOn | ( | int | x | ) | [inline] |
void ODLaserConfig::setLaserControlPort | ( | int | x | ) | [inline] |
void ODLaserConfig::setLaserPhase | ( | int | x | ) | [inline] |
void ODLaserConfig::setLaserTag | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setLed1ON | ( | int | x | ) | [inline] |
void ODLaserConfig::setLed2ON | ( | int | x | ) | [inline] |
void ODLaserConfig::setLed3ON | ( | int | x | ) | [inline] |
void ODLaserConfig::setLed4ON | ( | int | x | ) | [inline] |
void ODLaserConfig::setLedControlHost | ( | std::string | x | ) | [inline] |
Definition at line 159 of file ODLaserConfig.h.
References m_led_control_host, and x.
{ m_led_control_host = x; }
void ODLaserConfig::setLedControlON | ( | int | x | ) | [inline] |
Definition at line 156 of file ODLaserConfig.h.
References m_led_control_on, and x.
{ m_led_control_on = x; }
void ODLaserConfig::setLedControlPort | ( | int | x | ) | [inline] |
Definition at line 162 of file ODLaserConfig.h.
References m_led_control_port, and x.
{ m_led_control_port = x; }
void ODLaserConfig::setLocalOutputFile | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setMatacqAcquisitionMode | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setMatacqBaseAddress | ( | int | x | ) | [inline] |
void ODLaserConfig::setMatacqFedId | ( | int | x | ) | [inline] |
void ODLaserConfig::setMatacqMode | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setMatacqNone | ( | int | x | ) | [inline] |
void ODLaserConfig::setMatacqSerialNumber | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setMatacqVernierMax | ( | int | x | ) | [inline] |
Definition at line 57 of file ODLaserConfig.h.
References m_matacq_vernier_max, and x.
{ m_matacq_vernier_max = x; }
void ODLaserConfig::setMatacqVernierMin | ( | int | x | ) | [inline] |
Definition at line 59 of file ODLaserConfig.h.
References m_matacq_vernier_min, and x.
{ m_matacq_vernier_min = x; }
void ODLaserConfig::setMaxSamplesForDaq | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setOpticalSwitch | ( | int | x | ) | [inline] |
void ODLaserConfig::setOrangeLedMonAmpl | ( | int | x | ) | [inline] |
Definition at line 147 of file ODLaserConfig.h.
References m_orange_led_mon_ampl, and x.
{ m_orange_led_mon_ampl = x; }
void ODLaserConfig::setParameters | ( | std::map< std::string, std::string > | my_keys_map | ) |
void ODLaserConfig::setPedestalFile | ( | std::string | x | ) | [inline] |
void ODLaserConfig::setPedestalRunEventCount | ( | int | x | ) | [inline] |
void ODLaserConfig::setPostTrig | ( | int | x | ) | [inline] |
void ODLaserConfig::setPower | ( | int | x | ) | [inline] |
void ODLaserConfig::setRawDataMode | ( | int | x | ) | [inline] |
void ODLaserConfig::setRedLaserLogAttenuator | ( | int | x | ) | [inline] |
Definition at line 183 of file ODLaserConfig.h.
References m_red_laser_log_attenuator, and x.
{ m_red_laser_log_attenuator = x; }
void ODLaserConfig::setRedLaserPower | ( | int | x | ) | [inline] |
Definition at line 171 of file ODLaserConfig.h.
References m_red_laser_power, and x.
{ m_red_laser_power = x; }
void ODLaserConfig::setSize | ( | unsigned int | id | ) | [inline] |
Definition at line 26 of file ODLaserConfig.h.
References errorMatrix2Lands_multiChannel::id, and m_size.
void ODLaserConfig::setTrigLogFile | ( | std::string | x | ) | [inline] |
Definition at line 153 of file ODLaserConfig.h.
References m_trig_log_file, and x.
{ m_trig_log_file = x; }
void ODLaserConfig::setUseBuffer | ( | int | x | ) | [inline] |
Definition at line 49 of file ODLaserConfig.h.
References m_use_buffer, and x.
{ m_use_buffer = x; }
void ODLaserConfig::setVinj | ( | int | x | ) | [inline] |
void ODLaserConfig::setWaveLength | ( | int | x | ) | [inline] |
void ODLaserConfig::setWTE2LaserDelay | ( | int | x | ) | [inline] |
void ODLaserConfig::setWTE2LedDelay | ( | int | x | ) | [inline] |
Definition at line 129 of file ODLaserConfig.h.
References m_wte_2_led_delay, and x.
{ m_wte_2_led_delay = x; }
void ODLaserConfig::writeDB | ( | ) | throw (std::runtime_error) [private] |
Definition at line 297 of file ODLaserConfig.cc.
References gather_cfg::cout, and alignCSCRings::e.
{ this->checkConnection(); this->checkPrepare(); try { // 1 is the id 2 is the tag m_writeStmt->setString(2, this->getConfigTag()); m_writeStmt->setInt( 3, this->getDebug()); m_writeStmt->setInt( 4, this->getDummy()); m_writeStmt->setInt( 5, this->getMatacqBaseAddress()); m_writeStmt->setInt( 6, this->getMatacqNone()); m_writeStmt->setString(7, this->getMatacqMode()); m_writeStmt->setInt( 8, this->getChannelMask()); m_writeStmt->setString(9, this->getMaxSamplesForDaq()); m_writeStmt->setInt( 10, this->getMatacqFedId()); m_writeStmt->setString(11, this->getPedestalFile()); m_writeStmt->setInt( 12, this->getUseBuffer()); m_writeStmt->setInt( 13, this->getPostTrig()); m_writeStmt->setInt( 14, this->getFPMode()); m_writeStmt->setString(15, this->getHalModuleFile() ); m_writeStmt->setString(16, this->getHalAddressTableFile() ); m_writeStmt->setString(17, this->getHalStaticTableFile() ); m_writeStmt->setString(18, this->getMatacqSerialNumber() ); m_writeStmt->setInt( 19, this->getPedestalRunEventCount() ); m_writeStmt->setInt( 20, this->getRawDataMode()); m_writeStmt->setString(21, this->getMatacqAcquisitionMode()); m_writeStmt->setString(22, this->getLocalOutputFile()); m_writeStmt->setInt( 23, this->getEMTCNone()); m_writeStmt->setInt( 24, this->getWTE2LaserDelay()); m_writeStmt->setInt( 25, this->getLaserPhase()); m_writeStmt->setInt( 26, this->getEMTCTTCIn()); m_writeStmt->setInt( 27, this->getEMTCSlotId()); // laser m_writeStmt->setInt(28, this->getWaveLength()); m_writeStmt->setInt(29, this->getPower()); m_writeStmt->setInt(30, this->getOpticalSwitch()); m_writeStmt->setInt(31, this->getFilter()); m_writeStmt->setInt(32, this->getLaserControlOn()); m_writeStmt->setString(33, this->getLaserControlHost() ); m_writeStmt->setInt( 34, this->getLaserControlPort()); m_writeStmt->setString( 35, this->getLaserTag()); m_writeStmt->setInt( 36, this->getMatacqVernierMin()); m_writeStmt->setInt( 37, this->getMatacqVernierMax()); // here goes the led and the new parameters m_writeStmt->setInt( 38, this->getWTE2LedDelay()); m_writeStmt->setInt( 39, this->getLed1ON()); m_writeStmt->setInt( 40, this->getLed2ON()); m_writeStmt->setInt( 41, this->getLed3ON()); m_writeStmt->setInt( 42, this->getLed4ON()); m_writeStmt->setInt( 43, this->getVinj()); m_writeStmt->setInt( 44, this->getOrangeLedMonAmpl()); m_writeStmt->setInt( 45, this->getBlueLedMonAmpl()); m_writeStmt->setString( 46, this->getTrigLogFile()); m_writeStmt->setInt( 47, this->getLedControlON()); m_writeStmt->setString( 48, this->getLedControlHost()); m_writeStmt->setInt( 49, this->getLedControlPort()); m_writeStmt->setInt( 50, this->getIRLaserPower()); m_writeStmt->setInt( 51, this->getGreenLaserPower()); m_writeStmt->setInt( 52, this->getRedLaserPower()); m_writeStmt->setInt( 53, this->getBlueLaserLogAttenuator()); m_writeStmt->setInt( 54, this->getIRLaserLogAttenuator()); m_writeStmt->setInt( 55, this->getGreenLaserLogAttenuator()); m_writeStmt->setInt( 56, this->getRedLaserLogAttenuator()); m_writeStmt->setString( 57, this->getLaserConfigFile()); // and now the clob oracle::occi::Clob clob(m_conn); clob.setEmpty(); m_writeStmt->setClob(58,clob); m_writeStmt->executeUpdate (); m_conn->terminateStatement(m_writeStmt); // now we read and update it m_writeStmt = m_conn->createStatement(); m_writeStmt->setSQL ("SELECT laser_configuration FROM "+getTable()+" WHERE" " laser_configuration_id=:1 FOR UPDATE"); std::cout<<"updating the laser clob "<<std::endl; m_writeStmt->setInt(1, m_ID); ResultSet* rset = m_writeStmt->executeQuery(); rset->next (); oracle::occi::Clob clob_to_write = rset->getClob (1); cout << "Opening the clob in read write mode" << endl; populateClob (clob_to_write, getLaserConfigFile(), m_size); int clobLength=clob_to_write.length (); cout << "Length of the clob is: " << clobLength << endl; m_writeStmt->executeUpdate(); m_writeStmt->closeResultSet (rset); } catch (SQLException &e) { throw(std::runtime_error("ODLaserConfig::writeDB(): "+e.getMessage())); } // Now get the ID if (!this->fetchID()) { throw(std::runtime_error("ODLaserConfig::writeDB: Failed to write")); } }
friend class EcalCondDBInterface [friend] |
Reimplemented from IDBObject.
Definition at line 17 of file ODLaserConfig.h.
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.
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.
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.
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().