CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
ESClient Class Reference

#include <ESClient.h>

Inheritance diagram for ESClient:
ESIntegrityClient ESPedestalClient ESSummaryClient

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

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 12 of file ESClient.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 14 of file ESClient.h.

◆ MonitorElement

Definition at line 15 of file ESClient.h.

Constructor & Destructor Documentation

◆ ESClient()

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:31
bool cloneME_
Definition: ESClient.h:33
std::string prefixME_
Definition: ESClient.h:32
bool debug_
Definition: ESClient.h:35
bool verbose_
Definition: ESClient.h:34

◆ ~ESClient()

virtual ESClient::~ESClient ( )
inlinevirtual

Definition at line 18 of file ESClient.h.

18 {}

Member Function Documentation

◆ book()

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

Reimplemented in ESIntegrityClient, ESPedestalClient, and ESSummaryClient.

Definition at line 29 of file ESClient.h.

Referenced by setup().

29 {}

◆ endJobAnalyze()

virtual void ESClient::endJobAnalyze ( DQMStore::IGetter )
inlinevirtual

Reimplemented in ESPedestalClient, and ESSummaryClient.

Definition at line 21 of file ESClient.h.

21 {}

◆ endLumiAnalyze()

virtual void ESClient::endLumiAnalyze ( DQMStore::IGetter )
inlinevirtual

Reimplemented in ESIntegrityClient, and ESSummaryClient.

Definition at line 20 of file ESClient.h.

20 {}

◆ getHisto()

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

Definition at line 39 of file ESClient.h.

References dqm::impl::MonitorElement::getName(), dqm::legacy::MonitorElement::getRootObject(), and getGTfromDQMFile::obj.

Referenced by ESIntegrityClient::endLumiAnalyze().

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

◆ setup()

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:31
virtual void book(DQMStore::IBooker &)
Definition: ESClient.h:29

Member Data Documentation

◆ cloneME_

bool ESClient::cloneME_
protected

Definition at line 33 of file ESClient.h.

Referenced by ESIntegrityClient::endLumiAnalyze().

◆ debug_

bool ESClient::debug_
protected

Definition at line 35 of file ESClient.h.

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

◆ initialized_

bool ESClient::initialized_
protected

Definition at line 31 of file ESClient.h.

Referenced by setup().

◆ prefixME_

std::string ESClient::prefixME_
protected

◆ verbose_

bool ESClient::verbose_
protected

Definition at line 34 of file ESClient.h.

Referenced by ESPedestalClient::endJobAnalyze().