#include <DQMEventConsumerRegistrationInfo.h>
Public Member Functions | |
virtual void | do_appendToPSet (edm::ParameterSet &) const |
virtual void | do_eventType (std::ostream &) const |
virtual void | do_registerMe (EventDistributor *) |
DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const std::string &remoteHost=toolbox::net::getHostName()) | |
DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const EventServingParams &eventServingParams, const std::string &remoteHost=toolbox::net::getHostName()) | |
uint32 | eventCode () const |
uint32 | eventRequestCode () const |
std::string | eventURL () const |
bool | operator!= (const DQMEventConsumerRegistrationInfo &) const |
bool | operator< (const DQMEventConsumerRegistrationInfo &) const |
bool | operator== (const DQMEventConsumerRegistrationInfo &) const |
std::string | registerURL () const |
const std::string & | topLevelFolderName () const |
std::ostream & | write (std::ostream &os) const |
~DQMEventConsumerRegistrationInfo () | |
Private Member Functions | |
void | parsePSet (const edm::ParameterSet &) |
Private Attributes | |
std::string | topLevelFolderName_ |
Holds the registration information for a DQM event consumer.
Definition at line 33 of file DQMEventConsumerRegistrationInfo.h.
stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo | ( | const edm::ParameterSet & | pset, |
const EventServingParams & | eventServingParams, | ||
const std::string & | remoteHost = toolbox::net::getHostName() |
||
) |
Constructs an instance from the specified registration information.
Definition at line 14 of file DQMEventConsumerRegistrationInfo.cc.
: RegistrationInfoBase(pset, remoteHost, eventServingParams, true) { parsePSet(pset); }
stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo | ( | const edm::ParameterSet & | pset, |
const std::string & | remoteHost = toolbox::net::getHostName() |
||
) |
Definition at line 25 of file DQMEventConsumerRegistrationInfo.cc.
: RegistrationInfoBase(pset, remoteHost, EventServingParams(), false) { parsePSet(pset); }
stor::DQMEventConsumerRegistrationInfo::~DQMEventConsumerRegistrationInfo | ( | ) | [inline] |
Definition at line 56 of file DQMEventConsumerRegistrationInfo.h.
{};
void stor::DQMEventConsumerRegistrationInfo::do_appendToPSet | ( | edm::ParameterSet & | pset | ) | const [virtual] |
Implements stor::RegistrationInfoBase.
Definition at line 41 of file DQMEventConsumerRegistrationInfo.cc.
References edm::ParameterSet::addUntrackedParameter(), and topLevelFolderName_.
{ if ( topLevelFolderName_ != "*" ) pset.addUntrackedParameter<std::string>("topLevelFolderName", topLevelFolderName_); }
void stor::DQMEventConsumerRegistrationInfo::do_eventType | ( | std::ostream & | os | ) | const [virtual] |
Implements stor::RegistrationInfoBase.
Definition at line 54 of file DQMEventConsumerRegistrationInfo.cc.
References stor::RegistrationInfoBase::queueInfo(), and topLevelFolderName_.
{ os << "Top level folder: " << topLevelFolderName_ << "\n"; queueInfo(os); }
void stor::DQMEventConsumerRegistrationInfo::do_registerMe | ( | EventDistributor * | evtDist | ) | [virtual] |
Implements stor::RegistrationInfoBase.
Definition at line 48 of file DQMEventConsumerRegistrationInfo.cc.
References stor::EventDistributor::registerDQMEventConsumer().
{ evtDist->registerDQMEventConsumer(shared_from_this()); }
uint32 stor::DQMEventConsumerRegistrationInfo::eventCode | ( | ) | const [inline] |
Definition at line 61 of file DQMEventConsumerRegistrationInfo.h.
References Header::DQM_EVENT.
{ return Header::DQM_EVENT; }
uint32 stor::DQMEventConsumerRegistrationInfo::eventRequestCode | ( | ) | const [inline] |
Definition at line 60 of file DQMEventConsumerRegistrationInfo.h.
References Header::DQMEVENT_REQUEST.
{ return Header::DQMEVENT_REQUEST; }
std::string stor::DQMEventConsumerRegistrationInfo::eventURL | ( | ) | const [inline] |
Definition at line 62 of file DQMEventConsumerRegistrationInfo.h.
References stor::RegistrationInfoBase::sourceURL().
{ return sourceURL() + "/getDQMeventdata"; }
bool stor::DQMEventConsumerRegistrationInfo::operator!= | ( | const DQMEventConsumerRegistrationInfo & | other | ) | const |
Definition at line 78 of file DQMEventConsumerRegistrationInfo.cc.
{ return ! ( *this == other ); }
bool stor::DQMEventConsumerRegistrationInfo::operator< | ( | const DQMEventConsumerRegistrationInfo & | other | ) | const |
Definition at line 61 of file DQMEventConsumerRegistrationInfo.cc.
References topLevelFolderName().
{ if ( topLevelFolderName() != other.topLevelFolderName() ) return ( topLevelFolderName() < other.topLevelFolderName() ); return RegistrationInfoBase::operator<(other); }
bool stor::DQMEventConsumerRegistrationInfo::operator== | ( | const DQMEventConsumerRegistrationInfo & | other | ) | const |
Definition at line 69 of file DQMEventConsumerRegistrationInfo.cc.
References topLevelFolderName().
{ return ( topLevelFolderName() == other.topLevelFolderName() && RegistrationInfoBase::operator==(other) ); }
void stor::DQMEventConsumerRegistrationInfo::parsePSet | ( | const edm::ParameterSet & | pset | ) | [private] |
Definition at line 35 of file DQMEventConsumerRegistrationInfo.cc.
References edm::ParameterSet::getUntrackedParameter(), and topLevelFolderName_.
{ topLevelFolderName_ = pset.getUntrackedParameter<std::string>("topLevelFolderName", "*"); }
std::string stor::DQMEventConsumerRegistrationInfo::registerURL | ( | ) | const [inline] |
Definition at line 63 of file DQMEventConsumerRegistrationInfo.h.
References stor::RegistrationInfoBase::sourceURL().
{ return sourceURL() + "/registerDQMConsumer"; }
const std::string& stor::DQMEventConsumerRegistrationInfo::topLevelFolderName | ( | ) | const [inline] |
Definition at line 59 of file DQMEventConsumerRegistrationInfo.h.
References topLevelFolderName_.
Referenced by operator<(), and operator==().
{ return topLevelFolderName_; }
std::ostream& stor::DQMEventConsumerRegistrationInfo::write | ( | std::ostream & | os | ) | const |
std::string stor::DQMEventConsumerRegistrationInfo::topLevelFolderName_ [private] |
Definition at line 82 of file DQMEventConsumerRegistrationInfo.h.
Referenced by do_appendToPSet(), do_eventType(), parsePSet(), and topLevelFolderName().