CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/FWCore/Skeletons/scripts/mkTemplates/EventHypothesis/xxxEventHypothesis.cc

Go to the documentation of this file.
00001 #include "skelsubsys/xxxEventHypothesis/interface/xxxEventHypothesis.h"
00002 
00003 #include <iostream>
00004 
00005 using namespace pat;
00006 
00007 const char * xxxEventHypothesis::candidateRoles[] = {
00008 PutMyListOfCandidateRolesHere
00009 };
00010 
00011 const bool xxxEventHypothesis::isVector[] = {
00012 PutMyListOfVectorBoolsHere
00013 };
00014 
00015 bool xxxEventHypothesis::getIsVector( int i ) const
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 }
00024 
00025 const char *  xxxEventHypothesis::getCandidateRole( int i ) const
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 }
00034 
00035 Candidate & xxxEventHypothesis::getCandidate(std::string name, int index )
00036 {
00037 
00038 PutMyRoleSwitchHere;
00039 
00040  std::cerr << "xxxEventHypothesis: Unknown role " << name << ", returning first member" << std::endl;
00041  return PutMyDefaultReturnHere;
00042 }
00043 
00044 int xxxEventHypothesis::getSize(int i) const
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 }