CMS 3D CMS Logo

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

List of all members.

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 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

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.

{}
virtual pat::xxxEventHypothesis::~xxxEventHypothesis ( ) [inline, virtual]

Definition at line 48 of file xxxEventHypothesis.h.

{}

Member Function Documentation

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

Implements pat::HardEventHypothesis.

Definition at line 35 of file xxxEventHypothesis.cc.

References benchmark_cfg::cerr.

{

PutMyRoleSwitchHere;

 std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl;
 return PutMyDefaultReturnHere;
}
const char * xxxEventHypothesis::getCandidateRole ( int  i = 0) const [virtual]

Implements pat::HardEventHypothesis.

Definition at line 25 of file xxxEventHypothesis.cc.

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

{
  if ( i >= 0 && i < N_ROLES ) {
    return candidateRoles[i];
  } else {
    std::cerr << "xxxEventHypothesis: index out of bounds for roles: " << i << std::endl;
    return 0; 
  }
}
bool xxxEventHypothesis::getIsVector ( int  i = 0) const [virtual]

Implements pat::HardEventHypothesis.

Definition at line 15 of file xxxEventHypothesis.cc.

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

{
  if ( i >= 0 && i < N_ROLES ) {
    return isVector[i];
  } else {
    std::cerr << "xxxEventHypothesis: index out of bounds for roles: " << i << std::endl;
    return false; 
  }
}
virtual int pat::xxxEventHypothesis::getNCandidateRoles ( ) const [inline, virtual]

Definition at line 41 of file xxxEventHypothesis.h.

References N_ROLES.

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

Definition at line 44 of file xxxEventHypothesis.cc.

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

{

  std::string name( candidateRoles[i] );

PutMySizesHere;

 std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl;
 return -1;
}

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().

Definition at line 61 of file xxxEventHypothesis.h.

Definition at line 51 of file xxxEventHypothesis.h.