CMS 3D CMS Logo

Typedefs | Functions
HLTBitAnalyzer.cc File Reference
#include <boost/foreach.hpp>
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "HLTMessages.h"
#include "HLTBitAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Typedefs

typedef std::pair< const char *, const edm::InputTag * > MissingCollectionInfo
 

Functions

template<class T >
static bool getCollection (const edm::Event &event, std::vector< MissingCollectionInfo > &missing, edm::Handle< T > &handle, const edm::InputTag &name, const edm::EDGetTokenT< T > token, const char *description)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< HLTBitAnalyzer > > s_filler__LINE__ ("HLTBitAnalyzer")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< HLTBitAnalyzer > > s_maker__LINE__ ("HLTBitAnalyzer")
 

Typedef Documentation

typedef std::pair<const char *, const edm::InputTag *> MissingCollectionInfo

Definition at line 13 of file HLTBitAnalyzer.cc.

Function Documentation

template<class T >
static bool getCollection ( const edm::Event event,
std::vector< MissingCollectionInfo > &  missing,
edm::Handle< T > &  handle,
const edm::InputTag name,
const edm::EDGetTokenT< T token,
const char *  description 
)
inlinestatic

Definition at line 17 of file HLTBitAnalyzer.cc.

References edm::HandleBase::clear(), and edm::HandleBase::isValid().

Referenced by HLTBitAnalyzer::analyze(), EgammaHLTMulti5x5ClusterProducer::counterExceeded(), and EgammaHLTIslandClusterProducer::counterExceeded().

18 {
19  event.getByToken(token, handle);
20  bool valid = handle.isValid();
21  if (not valid) {
22  missing.push_back( std::make_pair(description, & name) );
23  handle.clear();
24  // std::cout << "not valid "<< description << " " << name << std::endl;
25  }
26  return valid;
27 }
bool isValid() const
Definition: HandleBase.h:74
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< HLTBitAnalyzer > > s_filler__LINE__ ( "HLTBitAnalyzer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< HLTBitAnalyzer > > s_maker__LINE__ ( "HLTBitAnalyzer"  )
static