CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes
pat::__class__ Class Reference

#include <EventHypothesis.h>

Inheritance diagram for pat::__class__:
pat::HardEventHypothesis

Public Member Functions

 __class__ ()
 
virtual const char * getCandidateRole (int i=0) const
 
virtual bool getIsVector (int i=0) const
 
virtual int getNCandidateRoles () const
 
virtual int getSize (int i=0) const
 
virtual ~__class__ ()
 
- Public Member Functions inherited from pat::HardEventHypothesis
float getQuality () const
 
void setQuality (float q)
 

Public Attributes

 PutMyEventHypothesisInterfaceHere
 

Static Public Attributes

static const char * candidateRoles [N_ROLES]
 
static const bool isVector [N_ROLES]
 
static const int N_ROLES = 0
 

Protected Member Functions

virtual Candidate & getCandidate (std::string name, int index=-1)
 

Protected Attributes

 PutMyEventHypothesisDataMembersHere
 
- Protected Attributes inherited from pat::HardEventHypothesis
float quality_
 

Detailed Description

Definition at line 32 of file EventHypothesis.h.

Constructor & Destructor Documentation

pat::__class__::__class__ ( )
inline
virtual pat::__class__::~__class__ ( )
inlinevirtual

Definition at line 46 of file EventHypothesis.h.

46 {}

Member Function Documentation

Candidate & __class__< T >::getCandidate ( std::string  name,
int  index = -1 
)
protectedvirtual

Implements pat::HardEventHypothesis.

Definition at line 35 of file EventHypothesis.cc.

References ecal_dqm_sourceclient-live_cfg::cerr.

36 {
37 
38 PutMyRoleSwitchHere;
39 
40  std::cerr << "__class__: Unknown role " << name << ", returning first member" << std::endl;
41  return PutMyDefaultReturnHere;
42 }
const char * __class__< T >::getCandidateRole ( int  i = 0) const
virtual

Implements pat::HardEventHypothesis.

Definition at line 25 of file EventHypothesis.cc.

References candidateRoles, ecal_dqm_sourceclient-live_cfg::cerr, i, and N_ROLES.

26 {
27  if ( i >= 0 && i < N_ROLES ) {
28  return candidateRoles[i];
29  } else {
30  std::cerr << "__class__: index out of bounds for roles: " << i << std::endl;
31  return 0;
32  }
33 }
int i
Definition: DBlmapReader.cc:9
static const char * candidateRoles[N_ROLES]
static const int N_ROLES
bool __class__< T >::getIsVector ( int  i = 0) const
virtual

Implements pat::HardEventHypothesis.

Definition at line 15 of file EventHypothesis.cc.

References ecal_dqm_sourceclient-live_cfg::cerr, i, isVector, and N_ROLES.

16 {
17  if ( i >= 0 && i < N_ROLES ) {
18  return isVector[i];
19  } else {
20  std::cerr << "__class__: index out of bounds for roles: " << i << std::endl;
21  return false;
22  }
23 }
int i
Definition: DBlmapReader.cc:9
static const int N_ROLES
static const bool isVector[N_ROLES]
virtual int pat::__class__::getNCandidateRoles ( ) const
inlinevirtual

Definition at line 39 of file EventHypothesis.h.

References N_ROLES.

39 { return N_ROLES; }
static const int N_ROLES
int __class__< T >::getSize ( int  i = 0) const
virtual

Definition at line 44 of file EventHypothesis.cc.

References candidateRoles, ecal_dqm_sourceclient-live_cfg::cerr, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

45 {
46 
48 
49 PutMySizesHere;
50 
51  std::cerr << "__class__: Unknown role " << name << ", returning first member" << std::endl;
52  return -1;
53 }
int i
Definition: DBlmapReader.cc:9
static const char * candidateRoles[N_ROLES]

Member Data Documentation

const char * __class__< T >::candidateRoles
static
Initial value:
= {
PutMyListOfCandidateRolesHere
}

Definition at line 37 of file EventHypothesis.h.

Referenced by getCandidateRole(), and getSize().

const bool __class__< T >::isVector
static
Initial value:
= {
PutMyListOfVectorBoolsHere
}

Definition at line 38 of file EventHypothesis.h.

Referenced by getIsVector().

const int pat::__class__::N_ROLES = 0
static

Definition at line 36 of file EventHypothesis.h.

Referenced by getCandidateRole(), getIsVector(), and getNCandidateRoles().

pat::__class__::PutMyEventHypothesisDataMembersHere
protected

Definition at line 59 of file EventHypothesis.h.

pat::__class__::PutMyEventHypothesisInterfaceHere

Definition at line 49 of file EventHypothesis.h.