#include <L1TriggerScalerHandler.h>
Public Member Functions | |
void | getNewObjects () |
std::string | id () const |
L1TriggerScalerHandler (const edm::ParameterSet &pset) | |
~L1TriggerScalerHandler () | |
Private Attributes | |
std::string | m_authpath |
std::string | m_connectionString |
std::string | m_host |
std::string | m_name |
std::string | m_pass |
int | m_port |
std::string | m_sid |
unsigned long long | m_since |
std::string | m_user |
Definition at line 9 of file L1TriggerScalerHandler.h.
L1TriggerScalerHandler::~L1TriggerScalerHandler | ( | ) |
Definition at line 23 of file L1TriggerScalerHandler.cc.
{ }
L1TriggerScalerHandler::L1TriggerScalerHandler | ( | const edm::ParameterSet & | pset | ) |
Definition at line 8 of file L1TriggerScalerHandler.cc.
References m_connectionString.
: m_name(pset.getUntrackedParameter<std::string>("name","L1TriggerScalerHandler")), // m_connect(pset.getUntrackedParameter<std::string>("OnlineConn","")), //m_authpath(pset.getUntrackedParameter<std::string>("OnlineAuthPath",".")), //m_host(pset.getUntrackedParameter<std::string>("OnlineDBHost","cmsor1-v.cern.ch")), // m_sid(pset.getUntrackedParameter<std::string>("OnlineDBSID","omds")), m_user(pset.getUntrackedParameter<std::string>("OnlineDBUser","CMS_RUNINFO")), m_pass(pset.getUntrackedParameter<std::string>("OnlineDBPass","XXXXXXX")) // m_port(pset.getUntrackedParameter<int>("OnlineDBPort",10121)) { m_connectionString= "oracle://cms_omds_lb/CMS_RUNINFO"; }
void L1TriggerScalerHandler::getNewObjects | ( | ) | [virtual] |
... understand how to know in advise the lumisection_number
Implements popcon::PopConSourceHandler< L1TriggerScaler >.
Definition at line 28 of file L1TriggerScalerHandler.cc.
References benchmark_cfg::cerr, gather_cfg::cout, cond::TagInfo::lastInterval, popcon::PopConSourceHandler< L1TriggerScaler >::lastPayload(), cond::TagInfo::lastPayloadToken, m_connectionString, m_name, m_pass, L1TriggerScaler::m_run, popcon::PopConSourceHandler< L1TriggerScaler >::m_to_transfer, m_user, popcon::PopConSourceHandler< L1TriggerScaler >::m_userTextLog, cond::TagInfo::name, csvReporter::r, L1TriggerScalerRead::readData(), findQualityFiles::size, cond::TagInfo::size, and popcon::PopConSourceHandler< L1TriggerScaler >::tagInfo().
{ edm::LogInfo ("L1TriggerScalerHandler") << "------- " << m_name << " - > getNewObjects\n" << //check whats already inside of database "got offlineInfo"<< tagInfo().name << ", size " << tagInfo().size << ", last object valid since " << tagInfo().lastInterval.first << " token " << tagInfo().lastPayloadToken << std::endl; if (tagInfo().size>0) { Ref payload = lastPayload(); edm::LogInfo ("L1TriggerScalerHandler")<<"size of last payload "<< payload->m_run.size()<<std::endl; } int snc; std::cerr << "Source implementation test ::getNewObjects : enter runnumber as a first since ! \n"; std::cin >> snc; std::cout<<"runnumber/first since = "<< snc <<std::endl; L1TriggerScaler * r = new L1TriggerScaler(); // reading from omds L1TriggerScalerRead rn( m_connectionString, m_user, m_pass); std::vector<L1TriggerScaler::Lumi> l1lumiscaler_array; l1lumiscaler_array = rn.readData((int)snc ); L1TriggerScaler::Lumi rnfill; std::vector<L1TriggerScaler::Lumi>::iterator Iit; for(Iit = l1lumiscaler_array.begin() ; Iit != l1lumiscaler_array.end(); Iit++) { rnfill = *(Iit); r->m_run.push_back(rnfill); } m_to_transfer.push_back(std::make_pair((L1TriggerScaler*)r,snc)); std::ostringstream ss; ss << "since =" << snc; m_userTextLog = ss.str()+";"; edm::LogInfo ("L1TriggerScalerHandler") << "------- " << m_name << " - > getNewObjects" << std::endl; }
std::string L1TriggerScalerHandler::id | ( | void | ) | const [inline, virtual] |
Implements popcon::PopConSourceHandler< L1TriggerScaler >.
Definition at line 12 of file L1TriggerScalerHandler.h.
References m_name.
{ return m_name;}
std::string L1TriggerScalerHandler::m_authpath [private] |
Definition at line 23 of file L1TriggerScalerHandler.h.
std::string L1TriggerScalerHandler::m_connectionString [private] |
Definition at line 21 of file L1TriggerScalerHandler.h.
Referenced by getNewObjects(), and L1TriggerScalerHandler().
std::string L1TriggerScalerHandler::m_host [private] |
Definition at line 24 of file L1TriggerScalerHandler.h.
std::string L1TriggerScalerHandler::m_name [private] |
Definition at line 16 of file L1TriggerScalerHandler.h.
Referenced by getNewObjects(), and id().
std::string L1TriggerScalerHandler::m_pass [private] |
Definition at line 27 of file L1TriggerScalerHandler.h.
Referenced by getNewObjects().
int L1TriggerScalerHandler::m_port [private] |
Definition at line 28 of file L1TriggerScalerHandler.h.
std::string L1TriggerScalerHandler::m_sid [private] |
Definition at line 25 of file L1TriggerScalerHandler.h.
unsigned long long L1TriggerScalerHandler::m_since [private] |
Definition at line 17 of file L1TriggerScalerHandler.h.
std::string L1TriggerScalerHandler::m_user [private] |
Definition at line 26 of file L1TriggerScalerHandler.h.
Referenced by getNewObjects().