Skip to content

Commit

Permalink
Revert "Cleanup of dependencies from CondDBv1 code by moving to CondD…
Browse files Browse the repository at this point in the history
…Bv2, and new interface for logging and FronTier security"
  • Loading branch information
davidlange6 committed Jan 24, 2016
1 parent 2c149ba commit 4550dd0
Show file tree
Hide file tree
Showing 342 changed files with 15,746 additions and 1,178 deletions.
3 changes: 3 additions & 0 deletions Alignment/CocoaApplication/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<use name="clhep"/>
<use name="root"/>
<use name="DetectorDescription/Core"/>
<use name="CondCore/IOVService"/>
<use name="CondCore/MetaDataService"/>
<use name="FWCore/Framework"/>
<use name="FWCore/ParameterSet"/>
<use name="Geometry/Records"/>
Expand All @@ -12,5 +14,6 @@
<use name="Alignment/CocoaFit"/>
<use name="meschach"/>
<use name="Alignment/CocoaDaq"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<flags EDM_PLUGIN="1"/>
1 change: 1 addition & 0 deletions Alignment/CocoaApplication/src/CocoaAnalyzer.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
Expand Down
1 change: 1 addition & 0 deletions Alignment/CocoaFit/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<use name="CondFormats/DataRecord"/>
<use name="CondFormats/Alignment"/>
<use name="CondFormats/AlignmentRecord"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<export>
<lib name="1"/>
Expand Down
1 change: 1 addition & 0 deletions Alignment/CocoaFit/src/CocoaDBMgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "CondFormats/Alignment/interface/AlignTransformErrorExtended.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Trajectory;
// class TsosVectorCollection;
// class TkFittedLasBeamCollection;
// class AliClusterValueMap;
#include "CondCore/CondDB/interface/Time.h"
#include "CondCore/DBCommon/interface/Time.h"
#include "Alignment/LaserAlignment/interface/TsosVectorCollection.h"
#include "DataFormats/Alignment/interface/TkFittedLasBeamCollectionFwd.h"
#include "DataFormats/Alignment/interface/AliClusterValueMapFwd.h"
Expand Down
1 change: 1 addition & 0 deletions Alignment/MuonAlignment/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<use name="DataFormats/DetId"/>
<use name="FWCore/Framework"/>
<use name="FWCore/Concurrency"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<use name="CondFormats/Alignment"/>
<use name="DataFormats/MuonDetId"/>
Expand Down
1 change: 1 addition & 0 deletions CalibCalorimetry/CaloMiscalibTools/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<use name="DataFormats/EcalRecHit"/>
<use name="DataFormats/HcalRecHit"/>
<use name="Geometry/CaloTopology"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<use name="xerces-c"/>
<export>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CondCore/CondDB/interface/Time.h"
#include "CondCore/DBCommon/interface/Time.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"

Expand Down
1 change: 1 addition & 0 deletions CalibCalorimetry/EcalTPGTools/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<use name="SimCalorimetry/EcalSimAlgos"/>
<use name="FWCore/Framework"/>
<use name="FWCore/Utilities"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<export>
<lib name="1"/>
Expand Down
2 changes: 1 addition & 1 deletion CalibCalorimetry/EcalTPGTools/plugins/EcalTPGDBCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define ECALTPGDBCOPY_H

#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "CondCore/CondDB/interface/Exception.h"
#include "CondCore/DBCommon/interface/Exception.h"

#include "FWCore/Framework/interface/IOVSyncValue.h"

Expand Down
1 change: 1 addition & 0 deletions CalibMuon/CSCCalibration/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<use name="CondFormats/DataRecord"/>
<use name="CondCore/PopCon"/>
<use name="CondFormats/CSCObjects"/>
<use name="CondCore/DBCommon"/>
<library name="CSCCrosstalkPopConAnalyzer" file="stubs/CSCCrosstalkHandler.cc,stubs/CSCCrosstalkPopConAnalyzer.cc">
<flags EDM_PLUGIN="1"/>
</library>
Expand Down
3 changes: 3 additions & 0 deletions CalibTracker/SiPixelConnectivity/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<use name="CondFormats/DataRecord"/>
<use name="DataFormats/SiPixelDetId"/>
<use name="Geometry/CommonDetUnit"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/IOVService"/>
<use name="CondCore/MetaDataService"/>
<use name="boost"/>
<export>
<lib name="1"/>
Expand Down
1 change: 1 addition & 0 deletions CalibTracker/SiStripDCS/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<use name="Geometry/TrackerGeometryBuilder"/>
<use name="CondCore/DBOutputService"/>
<use name="DataFormats/SiStripDetId"/>
<use name="CondCore/DBCommon"/>
<use name="CoralCommon"/>
<use name="CondCore/PopCon"/>
<use name="OnlineDB/SiStripConfigDb"/>
Expand Down
13 changes: 8 additions & 5 deletions CalibTracker/SiStripDCS/interface/SiStripCoralIface.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef SISTRIPCORALIFACE_H
#define SISTRIPCORALIFACE_H
#include "CondCore/CondDB/interface/Session.h"
#include "CondCore/CondDB/interface/Exception.h"
#include "CondCore/DBCommon/interface/DbSession.h"
#include "CondCore/DBCommon/interface/DbConnection.h"
#include "CondCore/DBCommon/interface/DbScopedTransaction.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CoralBase/TimeStamp.h"

#include <iterator>
Expand Down Expand Up @@ -34,12 +36,13 @@ class SiStripCoralIface

/* member variables*/
std::string m_connectionString;
std::string m_authPath;
std::map<std::string,unsigned int> m_id_map;
cond::persistency::Session m_session;
std::auto_ptr<cond::persistency::TransactionScope> m_transaction;
// cond::DBSession* session;
cond::DbConnection m_connection;
cond::DbSession m_session;
// cond::CoralTransaction* m_coraldb;
// cond::Connection* con;
std::auto_ptr<cond::DbScopedTransaction> m_transaction;

bool debug_;
};
Expand Down
2 changes: 2 additions & 0 deletions CalibTracker/SiStripDCS/interface/SiStripDetVOffHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/Service.h"

#include "CondCore/DBCommon/interface/TagInfo.h"

#include "CondFormats/SiStripObjects/interface/SiStripDetVOff.h"
#include "CondFormats/DataRecord/interface/SiStripCondDataRecords.h"

Expand Down
1 change: 1 addition & 0 deletions CalibTracker/SiStripDCS/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<use name="FWCore/MessageLogger"/>
<use name="FWCore/ParameterSet"/>
<use name="CondCore/PopCon"/>
<use name="CondCore/DBCommon"/>
<use name="CondCore/DBOutputService"/>
<use name="CondFormats/DataRecord"/>
<use name="CondFormats/SiStripObjects"/>
Expand Down
20 changes: 10 additions & 10 deletions CalibTracker/SiStripDCS/src/SiStripCoralIface.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "CalibTracker/SiStripDCS/interface/SiStripCoralIface.h"
#include "CondCore/CondDB/interface/ConnectionPool.h"

#include "RelationalAccess/ISessionProxy.h"
#include "RelationalAccess/ISchema.h"
#include "RelationalAccess/ITable.h"
Expand All @@ -18,9 +18,11 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"

// constructor
SiStripCoralIface::SiStripCoralIface( std::string connectionString , std::string authenticationPath, const bool debug) : m_connectionString(connectionString), m_authPath( authenticationPath ), m_session(), debug_(debug)
SiStripCoralIface::SiStripCoralIface( std::string connectionString , std::string authenticationPath, const bool debug) : m_connectionString(connectionString), m_session(), debug_(debug)
{
std::cout << "Building coral interface" << std::endl;
m_connection.configuration().setAuthenticationPath(authenticationPath);
m_connection.configure();
initialize();
}

Expand All @@ -32,12 +34,10 @@ SiStripCoralIface::~SiStripCoralIface() {

// open DB connection
void SiStripCoralIface::initialize() {
cond::persistency::ConnectionPool connection;
connection.setAuthenticationPath(m_authPath);
connection.configure();
m_session = connection.createSession(m_connectionString);
m_session = m_connection.createSession();
m_session.open(m_connectionString);
try {
m_transaction.reset( new cond::persistency::TransactionScope(m_session.transaction()) );
m_transaction.reset( new cond::DbScopedTransaction(m_session) );
m_transaction->start(true);
LogTrace("SiStripCoralIface") << "[SiStripCoralIface::" << __func__ << "] Database connection opened";
}
Expand All @@ -51,7 +51,7 @@ void SiStripCoralIface::initialize() {
void SiStripCoralIface::doQuery(std::string queryType, const coral::TimeStamp& startTime, const coral::TimeStamp& endTime, std::vector<coral::TimeStamp> &vec_changedate,
std::vector<float> &vec_actualValue, std::vector<std::string> &vec_dpname)
{
std::auto_ptr<coral::IQuery> query( m_session.coralSession().schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
std::auto_ptr<coral::IQuery> query( m_session.schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
std::string condition;

LogTrace("SiStripCoralIface") << "[SiStripCoralIface::" << __func__ << "] table to be accessed: " << queryType;
Expand Down Expand Up @@ -118,7 +118,7 @@ void SiStripCoralIface::doQuery(std::string queryType, const coral::TimeStamp& s
void SiStripCoralIface::doSettingsQuery(const coral::TimeStamp& startTime, const coral::TimeStamp& endTime, std::vector<coral::TimeStamp> &vec_changedate,
std::vector<float> &vec_settings, std::vector<std::string> &vec_dpname, std::vector<uint32_t> &vec_dpid)
{
std::auto_ptr<coral::IQuery> query( m_session.coralSession().schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
std::auto_ptr<coral::IQuery> query( m_session.schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
query->addToOutputList("FWCAENCHANNEL.CHANGE_DATE","CHANGE_DATE");
query->addToOutputList("FWCAENCHANNEL.SETTINGS_V0","VSET");
query->addToOutputList("FWCAENCHANNEL.DPID","DPID");
Expand Down Expand Up @@ -157,7 +157,7 @@ void SiStripCoralIface::doSettingsQuery(const coral::TimeStamp& startTime, const

void SiStripCoralIface::doNameQuery(std::vector<std::string> &vec_dpname, std::vector<uint32_t> &vec_dpid)
{
std::auto_ptr<coral::IQuery> query( m_session.coralSession().schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
std::auto_ptr<coral::IQuery> query( m_session.schema(std::string("CMS_TRK_DCS_PVSS_COND")).newQuery());
query->addToOutputList("DP_NAME2ID.DPNAME","DPNAME");
query->addToOutputList("DP_NAME2ID.ID","DPID");
query->addToTableList("DP_NAME2ID");
Expand Down
1 change: 1 addition & 0 deletions CalibTracker/SiStripESProducers/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<library file="fake/*.cc" name="CalibTrackerSiStripFakeESProducersPlugins">
<use name="CalibTracker/SiStripESProducers"/>
<use name="CondCore/DBOutputService"/>
<use name="CondCore/DBCommon"/>
<flags EDM_PLUGIN="1"/>
</library>
<library file="real/*.cc" name="CalibTrackerSiStripRealESProducersPlugins">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "CondCore/DBCommon/interface/Time.h"

#include "FWCore/Utilities/interface/Exception.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBCommon/interface/Time.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "CondCore/DBCommon/interface/Time.h"

#include "FWCore/Utilities/interface/Exception.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SiStripApvGainBuilderFromTag_H

#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SiStripNoiseNormalizedWithApvGainBuilder_H

#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Run.h"
#include "CondCore/DBCommon/interface/Time.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down
1 change: 1 addition & 0 deletions CondCore/BeamSpotPlugins/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<use name="CondFormats/BeamSpotObjects"/>
<use name="CondFormats/DataRecord"/>
<use name="CondCore/DBCommon"/>
<use name="FWCore/PluginManager"/>
<use name="CondCore/ESSources"/>
<flags EDM_PLUGIN="1"/>
1 change: 1 addition & 0 deletions CondCore/CondDB/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<use name="CondCore/DBCommon"/>
<use name="CondFormats/Serialization"/>
<use name="CondFormats/Common"/>
<use name="FWCore/Framework"/>
Expand Down
32 changes: 0 additions & 32 deletions CondCore/CondDB/interface/Auth.h

This file was deleted.

41 changes: 0 additions & 41 deletions CondCore/CondDB/interface/Cipher.h

This file was deleted.

Loading

0 comments on commit 4550dd0

Please sign in to comment.