CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
ESClient Class Reference

#include <ESClient.h>

Inheritance diagram for ESClient:
ESIntegrityClient ESPedestalClient ESSummaryClient

Public Member Functions

virtual void endJobAnalyze (DQMStore::IGetter &)
 
virtual void endLumiAnalyze (DQMStore::IGetter &)
 
 ESClient (edm::ParameterSet const &)
 
template<typename T >
TgetHisto (MonitorElement *, bool=false, T *=0) const
 
void setup (DQMStore::IBooker &)
 
virtual ~ESClient ()
 

Protected Member Functions

virtual void book (DQMStore::IBooker &)
 

Protected Attributes

bool cloneME_
 
bool debug_
 
bool initialized_
 
std::string prefixME_
 
bool verbose_
 

Detailed Description

Definition at line 13 of file ESClient.h.

Constructor & Destructor Documentation

ESClient::ESClient ( edm::ParameterSet const &  _ps)

Definition at line 5 of file ESClient.cc.

6  : initialized_(false),
7  prefixME_(_ps.getUntrackedParameter<std::string>("prefixME")),
8  cloneME_(_ps.getUntrackedParameter<bool>("cloneME")),
9  verbose_(_ps.getUntrackedParameter<bool>("verbose")),
10  debug_(_ps.getUntrackedParameter<bool>("debug")) {}
bool initialized_
Definition: ESClient.h:29
bool cloneME_
Definition: ESClient.h:31
std::string prefixME_
Definition: ESClient.h:30
bool debug_
Definition: ESClient.h:33
bool verbose_
Definition: ESClient.h:32
virtual ESClient::~ESClient ( )
inlinevirtual

Definition at line 16 of file ESClient.h.

16 {}

Member Function Documentation

virtual void ESClient::book ( DQMStore::IBooker )
inlineprotectedvirtual

Reimplemented in ESIntegrityClient, ESPedestalClient, and ESSummaryClient.

Definition at line 27 of file ESClient.h.

Referenced by setup().

27 {}
virtual void ESClient::endJobAnalyze ( DQMStore::IGetter )
inlinevirtual

Reimplemented in ESPedestalClient, and ESSummaryClient.

Definition at line 19 of file ESClient.h.

References GeneralSetup::setup().

19 {}
virtual void ESClient::endLumiAnalyze ( DQMStore::IGetter )
inlinevirtual

Reimplemented in ESIntegrityClient, and ESSummaryClient.

Definition at line 18 of file ESClient.h.

18 {}
template<typename T >
T * ESClient::getHisto ( MonitorElement _me,
bool  _clone = false,
T _current = 0 
) const

Definition at line 37 of file ESClient.h.

References MonitorElement::getName(), MonitorElement::getRootObject(), and hgcalPlots::obj.

Referenced by ESIntegrityClient::endLumiAnalyze().

37  {
38  if (!_me) {
39  if (_clone)
40  return _current;
41  else
42  return nullptr;
43  }
44 
45  TObject *obj(_me->getRootObject());
46 
47  if (!obj)
48  return nullptr;
49 
50  if (_clone) {
51  delete _current;
52  _current = dynamic_cast<T *>(obj->Clone(("ME " + _me->getName()).c_str()));
53  if (_current)
54  _current->SetDirectory(nullptr);
55  return _current;
56  } else
57  return dynamic_cast<T *>(obj);
58 }
TObject * getRootObject() const
const std::string & getName() const
get name of ME
long double T
void ESClient::setup ( DQMStore::IBooker _ibooker)

Definition at line 12 of file ESClient.cc.

References book(), and initialized_.

12  {
13  if (initialized_)
14  return;
15  book(_ibooker);
16  initialized_ = true;
17 }
bool initialized_
Definition: ESClient.h:29
virtual void book(DQMStore::IBooker &)
Definition: ESClient.h:27

Member Data Documentation

bool ESClient::cloneME_
protected

Definition at line 31 of file ESClient.h.

Referenced by ESIntegrityClient::endLumiAnalyze().

bool ESClient::debug_
protected

Definition at line 33 of file ESClient.h.

Referenced by ESSummaryClient::book(), and ESPedestalClient::endJobAnalyze().

bool ESClient::initialized_
protected

Definition at line 29 of file ESClient.h.

Referenced by setup().

std::string ESClient::prefixME_
protected
bool ESClient::verbose_
protected

Definition at line 32 of file ESClient.h.

Referenced by ESPedestalClient::endJobAnalyze().