CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
HLTBitAnalyzer.cc File Reference
#include <boost/foreach.hpp>
#include "HLTrigger/HLTanalyzers/interface/HLTBitAnalyzer.h"
#include "HLTMessages.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 char *description)
 

Typedef Documentation

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

Definition at line 10 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 char *  description 
)
inlinestatic

Definition at line 14 of file HLTBitAnalyzer.cc.

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

Referenced by HLTBitAnalyzer::analyze().

15 {
16  event.getByLabel(name, handle);
17  bool valid = handle.isValid();
18  if (not valid) {
19  missing.push_back( std::make_pair(description, & name) );
20  handle.clear();
21  }
22  return valid;
23 }
dictionary missing
Definition: combine.py:4
bool isValid() const
Definition: HandleBase.h:76
tuple description
Definition: idDealer.py:66