Classes | |
struct | beamData |
struct | LumiSource |
struct | PerBXData |
struct | PerLumiData |
Public Types | |
typedef std::vector< PerLumiData > | LumiResult |
Public Member Functions | |
const std::string | dataType () const override |
bool | hasStableBeam (lumi::Lumi2DB::LumiResult::iterator lumiBeg, lumi::Lumi2DB::LumiResult::iterator lumiEnd) |
Lumi2DB (const std::string &dest) | |
unsigned long long | retrieveData (unsigned int) override |
const std::string | sourceType () const override |
~Lumi2DB () override | |
Public Member Functions inherited from lumi::DataPipe | |
DataPipe (const std::string &) | |
std::string | getAuthPath () const |
std::string | getMode () const |
float | getNorm () const |
std::string | getSource () const |
void | setAuthPath (const std::string &authpath) |
void | setMode (const std::string &mode) |
void | setNoCheckingStableBeam () |
void | setNorm (float norm) |
void | setNoValidate () |
void | setSource (const std::string &source) |
virtual | ~DataPipe () |
Static Public Attributes | |
static const unsigned int | COMMITLSINTERVAL =500 |
Private Member Functions | |
float | applyCalibration (float varToCalibrate) const |
void | cleanTemporaryMemory (lumi::Lumi2DB::LumiResult::iterator lumiBeg, lumi::Lumi2DB::LumiResult::iterator lumiEnd) |
bool | isLumiDataValid (LumiResult::iterator lumiBeg, LumiResult::iterator lumiEnd) |
void | parseSourceString (lumi::Lumi2DB::LumiSource &result) const |
void | retrieveBeamIntensity (HCAL_HLX::DIP_COMBINED_DATA *dataPtr, Lumi2DB::beamData &b) const |
void | writeAllLumiData (coral::ISessionProxy *session, unsigned int irunnumber, const std::string &ilumiversion, LumiResult::iterator lumiBeg, LumiResult::iterator lumiEnd) |
unsigned int | writeAllLumiDataToSchema2 (coral::ISessionProxy *session, const std::string &source, unsigned int runnumber, float bgev, unsigned int ncollidingbunches, LumiResult::iterator lumiBeg, LumiResult::iterator lumiEnd) |
void | writeBeamIntensityOnly (coral::ISessionProxy *session, unsigned int irunnumber, const std::string &ilumiversion, LumiResult::iterator lumiBeg, LumiResult::iterator lumiEnd) |
Additional Inherited Members | |
Protected Attributes inherited from lumi::DataPipe | |
std::string | m_authpath |
std::string | m_dest |
std::string | m_mode |
bool | m_nocheckingstablebeam |
float | m_norm |
bool | m_novalidate |
std::string | m_source |
Definition at line 33 of file Lumi2DB.cc.
typedef std::vector<PerLumiData> lumi::Lumi2DB::LumiResult |
Definition at line 84 of file Lumi2DB.cc.
lumi::Lumi2DB::Lumi2DB | ( | const std::string & | dest | ) |
Definition at line 662 of file Lumi2DB.cc.
|
override |
|
private |
Definition at line 102 of file Lumi2DB.cc.
References objects.autophobj::float, and lumi::DataPipe::m_norm.
Referenced by writeAllLumiData().
|
private |
Definition at line 652 of file Lumi2DB.cc.
Referenced by retrieveData().
|
overridevirtual |
Implements lumi::DataPipe.
Definition at line 974 of file Lumi2DB.cc.
bool lumi::Lumi2DB::hasStableBeam | ( | lumi::Lumi2DB::LumiResult::iterator | lumiBeg, |
lumi::Lumi2DB::LumiResult::iterator | lumiEnd | ||
) |
|
private |
Definition at line 123 of file Lumi2DB.cc.
References SoftLeptonByDistance_cfi::distance.
Referenced by retrieveData().
|
private |
Definition at line 664 of file Lumi2DB.cc.
References lumi::Lumi2DB::LumiSource::datestr, Exception, lumi::Lumi2DB::LumiSource::firstsection, lumi::DataPipe::m_source, csvLumiCalc::pieces, lumi::Lumi2DB::LumiSource::run, AlCaHLTBitMon_QueryRunRegistry::string, and lumi::Lumi2DB::LumiSource::version.
Referenced by retrieveData().
|
private |
Definition at line 692 of file Lumi2DB.cc.
References a, HCAL_HLX::BEAM_INFO::averageBunchIntensities, HCAL_HLX::DIP_COMBINED_DATA::Beam, lumi::Lumi2DB::beamData::beamintensity_1, lumi::Lumi2DB::beamData::beamintensity_2, lumi::Lumi2DB::beamData::bxindex, gather_cfg::cout, mps_fire::i, lumi::N_BX, and lumi::Lumi2DB::beamData::nlivebx.
Referenced by retrieveData().
|
overridevirtual |
retrieve lumi per ls data from root file
if(bOCC1.lumivalue*6.370>1.0e-04){ if(i!=0){ std::cout<<i<<" detail "<<(i-1)*10+1<<" "<<(timestp-1262300400)<<" "<<bOCC1.lumivalue*6.37<<" "<<bOCC1.lumierr*6.37<<std::endl; } }
Implements lumi::DataPipe.
Definition at line 732 of file Lumi2DB.cc.
References b, HCAL_HLX::LUMI_SECTION_HEADER::bCMSLive, lumi::Lumi2DB::PerLumiData::beamenergy, lumi::Lumi2DB::PerLumiData::beamintensity_1, lumi::Lumi2DB::PerLumiData::beamintensity_2, lumi::Lumi2DB::PerLumiData::beammode, lumi::Lumi2DB::PerLumiData::bxET, lumi::Lumi2DB::PerLumiData::bxindex, lumi::Lumi2DB::PerLumiData::bxOCC1, lumi::Lumi2DB::PerLumiData::bxOCC2, cleanTemporaryMemory(), lumi::Lumi2DB::PerLumiData::cmsalive, lumi::Lumi2DB::PerLumiData::cmslsnr, gather_cfg::cout, HCAL_HLX::LUMI_SUMMARY::DeadTimeNormalization, lumi::Lumi2DB::PerLumiData::dtnorm, lumi::Lumi2DB::beamData::energy, HCAL_HLX::LUMI_DETAIL::ETLumi, HCAL_HLX::LUMI_DETAIL::ETLumiErr, HCAL_HLX::LUMI_DETAIL::ETLumiQlty, Exception, h, hasStableBeam(), mps_fire::i, HCAL_HLX::LUMI_SUMMARY::InstantLumi, HCAL_HLX::LUMI_SUMMARY::InstantLumiErr, HCAL_HLX::LUMI_SUMMARY::InstantLumiQlty, lumi::Lumi2DB::PerLumiData::instlumi, lumi::Lumi2DB::PerLumiData::instlumierror, isLumiDataValid(), lumi::Lumi2DB::PerLumiData::lhcnorm, HCAL_HLX::LUMI_SUMMARY::LHCNormalization, dataDML::lumidataid, lumi::Lumi2DB::PerBXData::lumierr, tablePrinter::lumiheader, lumi::Lumi2DB::PerLumiData::lumilsnr, lumi::Lumi2DB::PerBXData::lumiquality, lumi::Lumi2DB::PerLumiData::lumisectionquality, lumi::Lumi2DB::PerBXData::lumivalue, lumi::DataPipe::m_authpath, lumi::DataPipe::m_dest, lumi::DataPipe::m_mode, lumi::DataPipe::m_nocheckingstablebeam, lumi::DataPipe::m_novalidate, lumi::DataPipe::m_source, lumi::Lumi2DB::beamData::mode, lumi::N_BX, lumi::Lumi2DB::PerLumiData::nlivebx, HCAL_HLX::LUMI_SECTION_HEADER::numBunches, lumi::Lumi2DB::PerLumiData::numorbit, HCAL_HLX::LUMI_SECTION_HEADER::numOrbits, HCAL_HLX::LUMI_DETAIL::OccLumi, HCAL_HLX::LUMI_DETAIL::OccLumiErr, HCAL_HLX::LUMI_DETAIL::OccLumiQlty, parseSourceString(), retrieveBeamIntensity(), lumi::Lumi2DB::LumiSource::run, HCAL_HLX::LUMI_SECTION_HEADER::sectionNumber, dataDML::session, lumi::DBConfig::setAuthentication(), source, lumi::Lumi2DB::PerLumiData::startorbit, HCAL_HLX::LUMI_SECTION_HEADER::startOrbit, AlCaHLTBitMon_QueryRunRegistry::string, dataDML::svc, lumi::Lumi2DB::LumiSource::version, lumi::Exception::what(), writeAllLumiData(), writeAllLumiDataToSchema2(), and writeBeamIntensityOnly().
|
overridevirtual |
|
private |
Definition at line 217 of file Lumi2DB.cc.
References estimatePileup2::algoname, applyCalibration(), lumiCalc2::beamenergy, estimatePileup2::beamstatus, COMMITLSINTERVAL, gather_cfg::cout, SoftLeptonByDistance_cfi::distance, lumi::idDealer::generateNextIDForTable(), gen::k, lumi::LumiNames::lumidetailTableName(), lumi::LumiNames::lumisummaryTableName(), estimatePileup::lumiversion, lumi::N_BX, lumi::N_LUMIALGO, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by retrieveData().
|
private |
Definition at line 421 of file Lumi2DB.cc.
References lumi::RevisionDML::addEntry(), lumi::RevisionDML::addRevision(), lumiCalc2::beamenergy, estimatePileup2::beamstatus, lumi::RevisionDML::LumiEntry::bgev, lumi::RevisionDML::bookNewEntry(), lumi::RevisionDML::bookNewRevision(), lumiNorm::branch_id, COMMITLSINTERVAL, gather_cfg::cout, lumi::RevisionDML::Entry::data_id, revisionDML::data_id, SoftLeptonByDistance_cfi::distance, lumi::RevisionDML::Entry::entry_id, lumi::RevisionDML::Entry::entry_name, lumi::RevisionDML::getEntryInBranchByName(), lumi::RevisionDML::insertLumiRunData(), gen::k, lumi::LumiNames::lumidataTableName(), dataDML::lumirundata, lumi::LumiNames::lumisummaryv2TableName(), lumi::N_BX, lumi::N_LUMIALGO, lumi::RevisionDML::LumiEntry::ncollidingbunches, lumi::RevisionDML::Entry::revision_id, lumi::RevisionDML::LumiEntry::runnumber, lumi::RevisionDML::LumiEntry::source, source, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by retrieveData().
|
private |
Definition at line 141 of file Lumi2DB.cc.
References COMMITLSINTERVAL, gather_cfg::cout, SoftLeptonByDistance_cfi::distance, idDealer::inputData, lumi::LumiNames::lumisummaryTableName(), estimatePileup::lumiversion, cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by retrieveData().
|
static |
Definition at line 35 of file Lumi2DB.cc.
Referenced by writeAllLumiData(), writeAllLumiDataToSchema2(), and writeBeamIntensityOnly().