CMS 3D CMS Logo

Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes

pat::__class__ Class Reference

#include <EventHypothesis.h>

Inheritance diagram for pat::__class__:
pat::HardEventHypothesis

List of all members.

Public Member Functions

 __class__ ()
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
virtual ~__class__ ()

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 33 of file EventHypothesis.h.


Constructor & Destructor Documentation

pat::__class__::__class__ ( ) [inline]

Definition at line 46 of file EventHypothesis.h.

{}
virtual pat::__class__::~__class__ ( ) [inline, virtual]

Definition at line 47 of file EventHypothesis.h.

{}

Member Function Documentation

Candidate & __class__< T >::getCandidate ( std::string  name,
int  index = -1 
) [protected, virtual]

Implements pat::HardEventHypothesis.

Definition at line 35 of file EventHypothesis.cc.

References dtNoiseDBValidation_cfg::cerr.

{

PutMyRoleSwitchHere;

 std::cerr << "__class__: Unknown role " << name << ", returning first member" << std::endl;
 return PutMyDefaultReturnHere;
}
const char * __class__< T >::getCandidateRole ( int  i = 0) const [virtual]

Implements pat::HardEventHypothesis.

Definition at line 25 of file EventHypothesis.cc.

References candidateRoles, dtNoiseDBValidation_cfg::cerr, i, and N_ROLES.

{
  if ( i >= 0 && i < N_ROLES ) {
    return candidateRoles[i];
  } else {
    std::cerr << "__class__: index out of bounds for roles: " << i << std::endl;
    return 0; 
  }
}
bool __class__< T >::getIsVector ( int  i = 0) const [virtual]

Implements pat::HardEventHypothesis.

Definition at line 15 of file EventHypothesis.cc.

References dtNoiseDBValidation_cfg::cerr, i, isVector, and N_ROLES.

{
  if ( i >= 0 && i < N_ROLES ) {
    return isVector[i];
  } else {
    std::cerr << "__class__: index out of bounds for roles: " << i << std::endl;
    return false; 
  }
}
virtual int pat::__class__::getNCandidateRoles ( ) const [inline, virtual]

Definition at line 40 of file EventHypothesis.h.

References N_ROLES.

{ return N_ROLES; }
int __class__< T >::getSize ( int  i = 0) const [virtual]

Definition at line 44 of file EventHypothesis.cc.

References candidateRoles, dtNoiseDBValidation_cfg::cerr, mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

{

  std::string name( candidateRoles[i] );

PutMySizesHere;

 std::cerr << "__class__: Unknown role " << name << ", returning first member" << std::endl;
 return -1;
}

Member Data Documentation

const char * __class__< T >::candidateRoles [static]
Initial value:
 {
PutMyListOfCandidateRolesHere
}

Definition at line 38 of file EventHypothesis.h.

Referenced by getCandidateRole(), and getSize().

const bool __class__< T >::isVector [static]
Initial value:
 {
PutMyListOfVectorBoolsHere
}

Definition at line 39 of file EventHypothesis.h.

Referenced by getIsVector().

const int pat::__class__::N_ROLES = 0 [static]

Definition at line 37 of file EventHypothesis.h.

Referenced by getCandidateRole(), getIsVector(), and getNCandidateRoles().

Definition at line 60 of file EventHypothesis.h.

Definition at line 50 of file EventHypothesis.h.