CMS 3D CMS Logo

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