Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
CastorMonitor
src
CastorBaseMonitor.cc
Go to the documentation of this file.
1
#include "
DQM/CastorMonitor/interface/CastorBaseMonitor.h
"
2
#include "
DQMServices/Core/interface/DQMStore.h
"
3
4
//***************************************************//
5
//********** CastorBaseMonitor: *********************//
6
//********** Author: Dmytro Volyanskyy ************//
7
//********** Date : 20.08.2008 (first version) *****//
8
//***************************************************//
10
11
//==================================================================//
12
//======================= Constructor ==============================//
13
//==================================================================//
14
CastorBaseMonitor::CastorBaseMonitor
() {
16
fVerbosity
= 0;
17
// hotCells_.clear();
19
rootFolder_
=
"Castor"
;
20
baseFolder_
=
"BaseMonitor"
;
21
}
22
23
//==================================================================//
24
//======================= Destructor ===============================//
25
//==================================================================//
26
CastorBaseMonitor::~CastorBaseMonitor
() {}
27
28
void
CastorBaseMonitor::setup
(
const
edm::ParameterSet
& ps,
DQMStore
* dbe){
29
30
if
(
fVerbosity
>0)
std::cout
<<
"CastorBaseMonitor::setup (start)"
<< std::endl;
31
32
m_dbe
=
NULL
;
33
if
(dbe !=
NULL
)
m_dbe
= dbe;
34
35
//hotCells_ = ps.getUntrackedParameter<std::vector<std::string> >( "HotCells" );
36
38
std::string
subsystemname = ps.
getUntrackedParameter
<
std::string
>(
"subSystemFolder"
,
"Castor"
) ;
39
rootFolder_
= subsystemname +
"/"
;
40
41
fVerbosity
= ps.
getUntrackedParameter
<
int
>(
"debug"
,0);
42
makeDiagnostics
=ps.
getUntrackedParameter
<
bool
>(
"makeDiagnosticPlots"
,
false
);
43
showTiming
= ps.
getUntrackedParameter
<
bool
>(
"showTiming"
,
false
);
44
45
if
(
fVerbosity
>0)
std::cout
<<
"CastorBaseMonitor::setup (end)"
<< std::endl;
46
47
return
;
48
}
49
50
//==================================================================//
51
//============================ done ===============================//
52
//==================================================================//
53
void
CastorBaseMonitor::done
(){}
54
55
56
//==================================================================//
57
//=========================== clearME ==============================//
58
//==================================================================//
59
void
CastorBaseMonitor::clearME
(){
60
61
if
(
m_dbe
){
62
m_dbe
->
setCurrentFolder
(
baseFolder_
);
63
m_dbe
->
removeContents
();
64
}
65
return
;
66
}
67
68
69
//==================================================================//
70
//=========================== vetoCell =============================//
71
//==================================================================//
72
bool
CastorBaseMonitor::vetoCell
(
HcalCastorDetId
id
){
73
/*
74
if(hotCells_.size()==0) return false;
75
76
for(unsigned int i = 0; i< hotCells_.size(); i++){
77
unsigned int badc = atoi(hotCells_[i].c_str());
78
if(id.rawId() == badc) return true;
79
}
80
*/
81
return
false
;
82
}
CastorBaseMonitor::~CastorBaseMonitor
virtual ~CastorBaseMonitor()
Definition:
CastorBaseMonitor.cc:26
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
CastorBaseMonitor::setup
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)
Definition:
CastorBaseMonitor.cc:28
CastorBaseMonitor::clearME
virtual void clearME()
Definition:
CastorBaseMonitor.cc:59
NULL
#define NULL
Definition:
scimark2.h:8
CastorBaseMonitor::fVerbosity
int fVerbosity
Definition:
CastorBaseMonitor.h:48
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
CastorBaseMonitor::makeDiagnostics
bool makeDiagnostics
Definition:
CastorBaseMonitor.h:52
HcalCastorDetId
Definition:
HcalCastorDetId.h:23
CastorBaseMonitor::showTiming
bool showTiming
Definition:
CastorBaseMonitor.h:49
CastorBaseMonitor::vetoCell
bool vetoCell(HcalCastorDetId id)
Definition:
CastorBaseMonitor.cc:72
DQMStore
Definition:
DQMStore.h:67
DQMStore::removeContents
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
Definition:
DQMStore.cc:2569
CastorBaseMonitor::baseFolder_
std::string baseFolder_
Definition:
CastorBaseMonitor.h:57
DQMStore.h
CastorBaseMonitor::m_dbe
DQMStore * m_dbe
Definition:
CastorBaseMonitor.h:54
CastorBaseMonitor::CastorBaseMonitor
CastorBaseMonitor()
Definition:
CastorBaseMonitor.cc:14
CastorBaseMonitor::rootFolder_
std::string rootFolder_
Definition:
CastorBaseMonitor.h:56
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
CastorBaseMonitor::done
virtual void done()
Definition:
CastorBaseMonitor.cc:53
CastorBaseMonitor.h
DQMStore::setCurrentFolder
void setCurrentFolder(const std::string &fullpath)
Definition:
DQMStore.cc:434
Generated for CMSSW Reference Manual by
1.8.5