Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:45

0001 #ifndef DTLVStatusHandler_H
0002 #define DTLVStatusHandler_H
0003 /** \class DTLVStatusHandler
0004  *
0005  *  Description: Class to copy CCB DCS-status via PopCon
0006  *
0007  *
0008  *  $Date: 2010/07/21 16:06:53 $
0009  *  $Revision: 1.2 $
0010  *  \author Paolo Ronchese INFN Padova
0011  *
0012  */
0013 
0014 //----------------------
0015 // Base Class Headers --
0016 //----------------------
0017 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0018 
0019 //------------------------------------
0020 // Collaborating Class Declarations --
0021 //------------------------------------
0022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0023 #include "CondCore/CondDB/interface/Session.h"
0024 #include "CondFormats/DTObjects/interface/DTLVStatus.h"
0025 #include <string>
0026 
0027 //---------------
0028 // C++ Headers --
0029 //---------------
0030 
0031 //              ---------------------
0032 //              -- Class Interface --
0033 //              ---------------------
0034 
0035 class DTLVStatusHandler : public popcon::PopConSourceHandler<DTLVStatus> {
0036 public:
0037   /** Constructor
0038    */
0039   DTLVStatusHandler(const edm::ParameterSet& ps);
0040 
0041   /** Destructor
0042    */
0043   ~DTLVStatusHandler() override;
0044 
0045   /** Operations
0046    */
0047   ///
0048   void getNewObjects() override;
0049   std::string id() const override;
0050 
0051 private:
0052   std::string dataTag;
0053   std::string onlineConnect;
0054   std::string onlineAuthentication;
0055   std::string bufferConnect;
0056   DTLVStatus* ccbStatus;
0057 
0058   cond::persistency::Session omds_session;
0059   cond::persistency::Session buff_session;
0060 };
0061 
0062 #endif  // DTLVStatusHandler_H