CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
l1t::DataManager Class Reference

#include <DataManager.h>

Inheritance diagram for l1t::DataManager:
l1t::OMDSReader

Public Member Functions

void connect (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
 
 DataManager ()
 
 DataManager (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
 
cond::persistency::Session dbSession ()
 
void setDebug (bool debug)
 
virtual ~DataManager ()
 

Protected Member Functions

edm::eventsetup::TypeTag findType (const std::string &type)
 

Protected Attributes

cond::persistency::Session session
 

Private Attributes

bool debugFlag = false
 

Detailed Description

Definition at line 17 of file DataManager.h.

Constructor & Destructor Documentation

◆ DataManager() [1/2]

l1t::DataManager::DataManager ( )

Definition at line 8 of file DataManager.cc.

8 : session(nullptr) {}

◆ DataManager() [2/2]

l1t::DataManager::DataManager ( const std::string &  connectString,
const std::string &  authenticationPath,
bool  isOMDS = false 
)
explicit

Definition at line 10 of file DataManager.cc.

10  {
11  connect(connectString, authenticationPath, isOMDS);
12  }

References writeEcalDQMStatus::authenticationPath, and connect().

◆ ~DataManager()

l1t::DataManager::~DataManager ( )
virtual

Definition at line 27 of file DataManager.cc.

27  {
28  // delete all in reverse direction
29  session.close();
30  }

References cond::persistency::Session::close(), and session.

Member Function Documentation

◆ connect()

void l1t::DataManager::connect ( const std::string &  connectString,
const std::string &  authenticationPath,
bool  isOMDS = false 
)

◆ dbSession()

cond::persistency::Session l1t::DataManager::dbSession ( )
inline

Definition at line 26 of file DataManager.h.

26 { return session; }

References session.

Referenced by L1CaloHcalScaleConfigOnlineProd::newObject().

◆ findType()

edm::eventsetup::TypeTag l1t::DataManager::findType ( const std::string &  type)
protected

Definition at line 32 of file DataManager.cc.

32  {
33  static edm::eventsetup::TypeTag defaultType;
35 
36  if (typeTag == defaultType)
37  //throw cond::Exception ("l1t::DataManager::findType")
38  edm::LogError("L1TriggerDB") << "DataManager::findType() : " << type << " was not found";
39 
40  return typeTag;
41  }

References edm::eventsetup::heterocontainer::HCTypeTag::findType().

◆ setDebug()

void l1t::DataManager::setDebug ( bool  debug)

Definition at line 43 of file DataManager.cc.

43 { debugFlag = debug; }

References debug, and debugFlag.

Referenced by connect().

Member Data Documentation

◆ debugFlag

bool l1t::DataManager::debugFlag = false
private

Definition at line 36 of file DataManager.h.

Referenced by connect(), and setDebug().

◆ session

cond::persistency::Session l1t::DataManager::session
protected
edm::eventsetup::heterocontainer::HCTypeTag::findType
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:121
l1t::DataManager::session
cond::persistency::Session session
Definition: DataManager.h:33
l1t::DataManager::setDebug
void setDebug(bool debug)
Definition: DataManager.cc:43
cond::persistency::Session::close
void close()
Definition: Session.cc:50
cond::persistency::ConnectionPool::createSession
Session createSession(const std::string &connectionString, bool writeCapable=false)
Definition: ConnectionPool.cc:158
Debug
const bool Debug
Definition: CosmicMuonParameters.h:12
debug
#define debug
Definition: HDRShower.cc:19
l1t::DataManager::debugFlag
bool debugFlag
Definition: DataManager.h:36
cond::persistency::ConnectionPool
Definition: ConnectionPool.h:35
cond::persistency::ConnectionPool::setMessageVerbosity
void setMessageVerbosity(coral::MsgLevel level)
Definition: ConnectionPool.cc:172
edm::LogError
Definition: MessageLogger.h:183
edm::eventsetup::heterocontainer::HCTypeTag
Definition: HCTypeTag.h:38
leef::Error
edm::ErrorSummaryEntry Error
Definition: LogErrorEventFilter.cc:29
cond::persistency::ConnectionPool::setAuthenticationPath
void setAuthenticationPath(const std::string &p)
Definition: ConnectionPool.cc:31
cond::persistency::ConnectionPool::configure
void configure()
Definition: ConnectionPool.cc:125
writeEcalDQMStatus.authenticationPath
authenticationPath
Definition: writeEcalDQMStatus.py:19
l1t::DataManager::connect
void connect(const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false)
Definition: DataManager.cc:14
type
type
Definition: HCALResponse.h:21