![]() |
![]() |
#include <FWCore/Skeletons/scripts/mkTemplates/EventHypothesis/xxxEventHypothesis.h>
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 |
Definition at line 34 of file xxxEventHypothesis.h.
pat::xxxEventHypothesis::xxxEventHypothesis | ( | ) | [inline] |
virtual pat::xxxEventHypothesis::~xxxEventHypothesis | ( | ) | [inline, virtual] |
Candidate & xxxEventHypothesis::getCandidate | ( | std::string | name, | |
int | index = -1 | |||
) | [protected, virtual] |
Implements pat::HardEventHypothesis.
Definition at line 35 of file xxxEventHypothesis.cc.
References TestMuL1L2Filter_cff::cerr, and lat::endl().
00036 { 00037 00038 PutMyRoleSwitchHere; 00039 00040 std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl; 00041 return PutMyDefaultReturnHere; 00042 }
const char * xxxEventHypothesis::getCandidateRole | ( | int | i = 0 |
) | const [virtual] |
Implements pat::HardEventHypothesis.
Definition at line 25 of file xxxEventHypothesis.cc.
References candidateRoles, TestMuL1L2Filter_cff::cerr, lat::endl(), and N_ROLES.
00026 { 00027 if ( i >= 0 && i < N_ROLES ) { 00028 return candidateRoles[i]; 00029 } else { 00030 std::cerr << "xxxEventHypothesis: index out of bounds for roles: " << i << std::endl; 00031 return 0; 00032 } 00033 }
Implements pat::HardEventHypothesis.
Definition at line 15 of file xxxEventHypothesis.cc.
References TestMuL1L2Filter_cff::cerr, lat::endl(), isVector, and N_ROLES.
00016 { 00017 if ( i >= 0 && i < N_ROLES ) { 00018 return isVector[i]; 00019 } else { 00020 std::cerr << "xxxEventHypothesis: index out of bounds for roles: " << i << std::endl; 00021 return false; 00022 } 00023 }
virtual int pat::xxxEventHypothesis::getNCandidateRoles | ( | ) | const [inline, virtual] |
Definition at line 44 of file xxxEventHypothesis.cc.
References candidateRoles, TestMuL1L2Filter_cff::cerr, lat::endl(), and name.
00045 { 00046 00047 std::string name( candidateRoles[i] ); 00048 00049 PutMySizesHere; 00050 00051 std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl; 00052 return -1; 00053 }
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.