CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
xxxEventHypothesis.cc
Go to the documentation of this file.
1 #include "skelsubsys/xxxEventHypothesis/interface/xxxEventHypothesis.h"
2 
3 #include <iostream>
4 
5 using namespace pat;
6 
7 const char * xxxEventHypothesis::candidateRoles[] = {
8 PutMyListOfCandidateRolesHere
9 };
10 
11 const bool xxxEventHypothesis::isVector[] = {
12 PutMyListOfVectorBoolsHere
13 };
14 
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 }
24 
25 const char * xxxEventHypothesis::getCandidateRole( int i ) const
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 }
34 
36 {
37 
38 PutMyRoleSwitchHere;
39 
40  std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl;
41  return PutMyDefaultReturnHere;
42 }
43 
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]
virtual int getSize(int i=0) const
virtual Candidate & getCandidate(std::string name, int index=-1)
virtual const char * getCandidateRole(int i=0) const
static const bool isVector[N_ROLES]
virtual bool getIsVector(int i=0) const