CMS 3D CMS Logo

pat::xxxEventHypothesis Class Reference

#include <FWCore/Skeletons/scripts/mkTemplates/EventHypothesis/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.

00047 {}

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

Definition at line 48 of file xxxEventHypothesis.h.

00048 {}


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

bool xxxEventHypothesis::getIsVector ( int  i = 0  )  const [virtual]

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 41 of file xxxEventHypothesis.h.

References N_ROLES.

00041 { return N_ROLES; }

int xxxEventHypothesis::getSize ( int  i = 0  )  const [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 }


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

pat::xxxEventHypothesis::PutMyEventHypothesisDataMembersHere [protected]

Definition at line 61 of file xxxEventHypothesis.h.

pat::xxxEventHypothesis::PutMyEventHypothesisInterfaceHere

Definition at line 51 of file xxxEventHypothesis.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:49:53 2009 for CMSSW by  doxygen 1.5.4