File indexing completed on 2024-04-06 12:03:12
0001 #ifndef CondTools_L1Trigger_DataManager_h
0002 #define CondTools_L1Trigger_DataManager_h
0003
0004 #include "FWCore/Framework/interface/DataKeyTags.h"
0005 #include "CondCore/CondDB/interface/Session.h"
0006
0007 #include <string>
0008
0009 namespace l1t {
0010
0011
0012
0013
0014
0015
0016
0017 class DataManager {
0018 public:
0019 DataManager();
0020 explicit DataManager(const std::string& connectString, const std::string& authenticationPath, bool isOMDS = false);
0021 virtual ~DataManager();
0022
0023 void connect(const std::string& connectString, const std::string& authenticationPath, bool isOMDS = false);
0024 void setDebug(bool debug);
0025
0026 cond::persistency::Session dbSession() { return session; }
0027
0028 protected:
0029
0030 edm::eventsetup::TypeTag findType(const std::string& type);
0031
0032
0033 cond::persistency::Session session;
0034
0035 private:
0036 bool debugFlag = false;
0037 };
0038
0039 }
0040
0041 #endif