CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

5  :
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"))
11 {
12 }
bool initialized_
Definition: ESClient.h:30
bool cloneME_
Definition: ESClient.h:32
std::string prefixME_
Definition: ESClient.h:31
bool debug_
Definition: ESClient.h:34
bool verbose_
Definition: ESClient.h:33
virtual ESClient::~ESClient ( )
inlinevirtual

Definition at line 18 of file ESClient.h.

18 {}

Member Function Documentation

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

Reimplemented in ESIntegrityClient, ESPedestalClient, and ESSummaryClient.

Definition at line 28 of file ESClient.h.

Referenced by setup().

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

Reimplemented in ESPedestalClient, and ESSummaryClient.

Definition at line 21 of file ESClient.h.

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

Reimplemented in ESIntegrityClient, and ESSummaryClient.

Definition at line 20 of file ESClient.h.

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

Definition at line 40 of file ESClient.h.

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

Referenced by ESIntegrityClient::endLumiAnalyze().

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

Definition at line 15 of file ESClient.cc.

References book(), and initialized_.

16 {
17  if(initialized_) return;
18  book(_ibooker);
19  initialized_ = true;
20 }
bool initialized_
Definition: ESClient.h:30
virtual void book(DQMStore::IBooker &)
Definition: ESClient.h:28

Member Data Documentation

bool ESClient::cloneME_
protected

Definition at line 32 of file ESClient.h.

Referenced by ESIntegrityClient::endLumiAnalyze().

bool ESClient::debug_
protected

Definition at line 34 of file ESClient.h.

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

bool ESClient::initialized_
protected

Definition at line 30 of file ESClient.h.

Referenced by setup().

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

Definition at line 33 of file ESClient.h.

Referenced by ESPedestalClient::endJobAnalyze().