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::xxxEventHypothesis Class Reference

#include <xxxEventHypothesis.h>

Inheritance diagram for pat::xxxEventHypothesis:
pat::HardEventHypothesis

Public Member Functions

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
 
 xxxEventHypothesis ()
 
virtual ~xxxEventHypothesis ()
 
- 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 34 of file xxxEventHypothesis.h.

Constructor & Destructor Documentation

pat::xxxEventHypothesis::xxxEventHypothesis ( )
inline

Definition at line 47 of file xxxEventHypothesis.h.

47 {}
virtual pat::xxxEventHypothesis::~xxxEventHypothesis ( )
inlinevirtual

Definition at line 48 of file xxxEventHypothesis.h.

48 {}

Member Function Documentation

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

Implements pat::HardEventHypothesis.

Definition at line 35 of file xxxEventHypothesis.cc.

References dtNoiseDBValidation_cfg::cerr.

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

Implements pat::HardEventHypothesis.

Definition at line 25 of file xxxEventHypothesis.cc.

References candidateRoles, dtNoiseDBValidation_cfg::cerr, i, and N_ROLES.

26 {
27  if ( i >= 0 && i < N_ROLES ) {
28  return candidateRoles[i];
29  } else {
30  std::cerr << "xxxEventHypothesis: 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]
bool xxxEventHypothesis::getIsVector ( int  i = 0) const
virtual

Implements pat::HardEventHypothesis.

Definition at line 15 of file xxxEventHypothesis.cc.

References dtNoiseDBValidation_cfg::cerr, i, isVector, and N_ROLES.

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

Definition at line 41 of file xxxEventHypothesis.h.

References N_ROLES.

41 { return N_ROLES; }
int xxxEventHypothesis::getSize ( int  i = 0) const
virtual

Definition at line 44 of file xxxEventHypothesis.cc.

References candidateRoles, dtNoiseDBValidation_cfg::cerr, and mergeVDriftHistosByStation::name.

45 {
46 
47  std::string name( candidateRoles[i] );
48 
49 PutMySizesHere;
50 
51  std::cerr << "xxxEventHypothesis: 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 * xxxEventHypothesis::candidateRoles
static
Initial value:
= {
PutMyListOfCandidateRolesHere
}

Definition at line 39 of file xxxEventHypothesis.h.

Referenced by getCandidateRole(), and getSize().

const bool xxxEventHypothesis::isVector
static
Initial value:
= {
PutMyListOfVectorBoolsHere
}

Definition at line 40 of file xxxEventHypothesis.h.

Referenced by getIsVector().

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

Definition at line 38 of file xxxEventHypothesis.h.

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

pat::xxxEventHypothesis::PutMyEventHypothesisDataMembersHere
protected

Definition at line 61 of file xxxEventHypothesis.h.

pat::xxxEventHypothesis::PutMyEventHypothesisInterfaceHere

Definition at line 51 of file xxxEventHypothesis.h.