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
29
//==================================================================//
30
//======================= Setup ====================================//
31
//==================================================================//
32
void
CastorBaseMonitor::setup
(
const
edm::ParameterSet
& ps,
DQMStore
* dbe)
33
{
34
//get configuration parameters
35
fVerbosity
= ps.
getUntrackedParameter
<
int
>(
"debug"
,0);
36
makeDiagnostics
=ps.
getUntrackedParameter
<
bool
>(
"makeDiagnosticPlots"
,
false
);
37
showTiming
= ps.
getUntrackedParameter
<
bool
>(
"showTiming"
,
false
);
38
39
if
(
fVerbosity
>0)
std::cout
<<
"CastorBaseMonitor::setup (start)"
<< std::endl;
40
41
//hotCells_ = ps.getUntrackedParameter<std::vector<std::string> >( "HotCells" );
42
43
m_dbe
=
NULL
;
44
if
(dbe !=
NULL
)
m_dbe
= dbe;
45
47
std::string
subsystemname = ps.
getUntrackedParameter
<
std::string
>(
"subSystemFolder"
,
"Castor"
) ;
48
rootFolder_
= subsystemname +
"/"
;
49
50
if
(
fVerbosity
>0)
std::cout
<<
"CastorBaseMonitor::setup (end)"
<< std::endl;
51
52
return
;
53
}
54
55
//==================================================================//
56
//============================ done ===============================//
57
//==================================================================//
58
void
CastorBaseMonitor::done
(){}
59
60
61
//==================================================================//
62
//=========================== clearME ==============================//
63
//==================================================================//
64
void
CastorBaseMonitor::clearME
(){
65
66
if
(
m_dbe
){
67
m_dbe
->
setCurrentFolder
(
baseFolder_
);
68
m_dbe
->
removeContents
();
69
}
70
return
;
71
}
72
73
74
//==================================================================//
75
//=========================== vetoCell =============================//
76
//==================================================================//
77
bool
CastorBaseMonitor::vetoCell
(
HcalCastorDetId
id
){
78
/*
79
if(hotCells_.size()==0) return false;
80
81
for(unsigned int i = 0; i< hotCells_.size(); i++){
82
unsigned int badc = atoi(hotCells_[i].c_str());
83
if(id.rawId() == badc) return true;
84
}
85
*/
86
return
false
;
87
}
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:32
CastorBaseMonitor::clearME
virtual void clearME()
Definition:
CastorBaseMonitor.cc:64
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:77
DQMStore
Definition:
DQMStore.h:70
DQMStore::removeContents
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
Definition:
DQMStore.cc:2764
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:58
CastorBaseMonitor.h
DQMStore::setCurrentFolder
void setCurrentFolder(const std::string &fullpath)
Definition:
DQMStore.cc:584
Generated for CMSSW Reference Manual by
1.8.5