Main Page
Namespaces
Classes
Package Documentation
CondTools
Ecal
interface
EcalDCSHandler.h
Go to the documentation of this file.
1
#ifndef ECAL_DCS_HANDLER_H
2
#define ECAL_DCS_HANDLER_H
3
4
#include <vector>
5
#include <typeinfo>
6
#include <string>
7
#include <map>
8
#include <iostream>
9
#include <time.h>
10
11
#include "
CondCore/PopCon/interface/PopConSourceHandler.h
"
12
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
13
14
15
#include "
FWCore/ServiceRegistry/interface/Service.h
"
16
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
22
#include "
DataFormats/Common/interface/Handle.h
"
23
#include "
FWCore/Framework/interface/EventSetup.h
"
24
#include "
FWCore/Framework/interface/EventSetupRecordKey.h
"
25
26
27
#include "
OnlineDB/EcalCondDB/interface/RunDCSHVDat.h
"
28
#include "
OnlineDB/EcalCondDB/interface/RunDCSLVDat.h
"
29
#include "
CondFormats/EcalObjects/interface/EcalDCSTowerStatus.h
"
30
#include "
CondFormats/DataRecord/interface/EcalDCSTowerStatusRcd.h
"
31
32
#include "
OnlineDB/EcalCondDB/interface/all_monitoring_types.h
"
33
#include "
OnlineDB/Oracle/interface/Oracle.h
"
34
#include "
OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h
"
35
36
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
37
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
38
#include "
DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h
"
39
#include "
DataFormats/EcalDetId/interface/EcalScDetId.h
"
40
#include "
DataFormats/Provenance/interface/Timestamp.h
"
41
42
namespace
edm
{
43
class
ParameterSet
;
44
class
Event
;
45
class
EventSetup
;
46
}
47
48
namespace
popcon
49
{
50
51
52
class
EcalDCSHandler
:
public
popcon::PopConSourceHandler
<EcalDCSTowerStatus>
53
{
54
55
public
:
56
EcalDCSHandler
(
edm::ParameterSet
const
& );
57
~
EcalDCSHandler
();
58
void
printHVDataSet(
const
std::map<EcalLogicID, RunDCSHVDat>*
dataset
,
int
)
const
;
59
void
printLVDataSet(
const
std::map<EcalLogicID, RunDCSLVDat>* dataset,
int
)
const
;
60
uint16_t updateHV(
RunDCSHVDat
*
hv
, uint16_t dbStatus,
int
modo=0)
const
;
61
uint16_t updateLV(
RunDCSLVDat
* lv, uint16_t dbStatus)
const
;
62
bool
insertHVDataSetToOffline(
const
std::map<EcalLogicID, RunDCSHVDat>* dataset,
EcalDCSTowerStatus
* dcs_temp )
const
;
63
bool
insertLVDataSetToOffline(
const
std::map<EcalLogicID, RunDCSLVDat>* dataset,
EcalDCSTowerStatus
* dcs_temp,
const
std::vector<EcalLogicID>& )
const
;
64
65
void
getNewObjects();
66
std::string
id
()
const
{
return
m_name;}
67
EcalCondDBInterface
*
econn
;
68
69
int
* HVLogicIDToDetID(
int
,
int
)
const
;
70
int
* HVEELogicIDToDetID(
int
,
int
)
const
;
71
int
* LVLogicIDToDetID(
int
,
int
)
const
;
72
73
int
detIDToLogicID(
int
,
int
,
int
);
74
uint16_t OffDBStatus( uint16_t dbStatus ,
int
pos
) ;
75
76
private
:
77
78
unsigned
long
m_firstRun
;
79
unsigned
long
m_lastRun
;
80
81
std::string
m_sid
;
82
std::string
m_user
;
83
std::string
m_pass
;
84
std::string
m_name
;
85
86
};
87
}
88
#endif
89
MessageLogger.h
EcalCondDBInterface.h
EcalCondDBInterface
Definition:
EcalCondDBInterface.h:38
popcon::EcalDCSHandler::econn
EcalCondDBInterface * econn
Definition:
EcalDCSHandler.h:67
popcon::EcalDCSHandler::m_pass
std::string m_pass
Definition:
EcalDCSHandler.h:83
popcon::EcalDCSHandler::m_sid
std::string m_sid
Definition:
EcalDCSHandler.h:81
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
EcalCondTowerObjectContainer< EcalChannelStatusCode >
Event.h
MakerMacros.h
EventSetup.h
RunDCSLVDat.h
popcon
Definition:
Exception.h:6
AnalysisDataFormats_SUSYBSMObjects::hv
susybsm::HSCParticleRefVector hv
Definition:
classes.h:28
RunDCSLVDat
Definition:
RunDCSLVDat.h:14
dataset
Definition:
dataset.py:1
EcalDCSTowerStatus.h
ParameterSetfwd.h
popcon::EcalDCSHandler
Definition:
EcalDCSHandler.h:52
Oracle.h
ParameterSet.h
RunDCSHVDat.h
EventSetup
EcalDCSTowerStatusRcd.h
EventSetupRecordKey.h
popcon::PopConSourceHandler
Definition:
PopConSourceHandler.h:32
PoolDBOutputService.h
popcon::EcalDCSHandler::m_user
std::string m_user
Definition:
EcalDCSHandler.h:82
ESHandle.h
Service.h
Timestamp.h
pos
Definition:
PixelAliasList.h:14
popcon::EcalDCSHandler::m_name
std::string m_name
Definition:
EcalDCSHandler.h:84
popcon::EcalDCSHandler::m_firstRun
unsigned long m_firstRun
Definition:
EcalDCSHandler.h:78
PopConSourceHandler.h
RunDCSHVDat
Definition:
RunDCSHVDat.h:15
EcalScDetId.h
popcon::EcalDCSHandler::m_lastRun
unsigned long m_lastRun
Definition:
EcalDCSHandler.h:79
Event
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
EBDetId.h
popcon::EcalDCSHandler::id
std::string id() const
Definition:
EcalDCSHandler.h:66
EEDetId.h
EcalTrigTowerDetId.h
Handle.h
all_monitoring_types.h
Generated for CMSSW Reference Manual by
1.8.11