CMS 3D CMS Logo

HLTAnalyzer.cc File Reference

#include <boost/foreach.hpp>
#include "HLTrigger/HLTanalyzers/interface/HLTAnalyzer.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 HLTAnalyzer.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 
) [inline, static]

Definition at line 14 of file HLTAnalyzer.cc.

References edm::Handle< T >::clear(), edm::Handle< T >::isValid(), and TrackValidation_HighPurity_cff::valid.

Referenced by HLTAnalyzer::analyze().

00015 {
00016   event.getByLabel(name, handle);
00017   bool valid = handle.isValid();
00018   if (not valid) {
00019     missing.push_back( std::make_pair(description, & name) );
00020     handle.clear();
00021   }
00022   return valid;
00023 }


Generated on Tue Jun 9 17:53:50 2009 for CMSSW by  doxygen 1.5.4