CMS 3D CMS Logo

List of all members | Public Member Functions
CaloJetMETcorrInputProducer_namespace::InputTypeCheckerT< pat::Jet > Class Template Reference

Public Member Functions

bool isPatJet (const pat::Jet &jet) const
 
void operator() (const pat::Jet &jet) const
 

Detailed Description

template<>
class CaloJetMETcorrInputProducer_namespace::InputTypeCheckerT< pat::Jet >

Definition at line 12 of file PATCaloJetMETcorrInputProducer.cc.

Member Function Documentation

bool CaloJetMETcorrInputProducer_namespace::InputTypeCheckerT< pat::Jet >::isPatJet ( const pat::Jet jet) const
inline

Definition at line 23 of file PATCaloJetMETcorrInputProducer.cc.

23  {
24  return true;
25  }
void CaloJetMETcorrInputProducer_namespace::InputTypeCheckerT< pat::Jet >::operator() ( const pat::Jet jet) const
inline

Definition at line 16 of file PATCaloJetMETcorrInputProducer.cc.

References pat::Jet::isCaloJet().

17  {
18  // check that pat::Jet is of Calo-type
19  if ( !jet.isCaloJet() )
20  throw cms::Exception("InvalidInput")
21  << "Input pat::Jet is not of Calo-type !!\n";
22  }
bool isCaloJet() const
check to see if the jet is a reco::CaloJet
Definition: Jet.h:254