CMS 3D CMS Logo

Typedefs | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/HLTrigger/HLTanalyzers/src/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::HandleBase::clear(), edm::HandleBase::isValid(), and TrackValidation_HighPurity_cff::valid.

Referenced by HLTAnalyzer::analyze().

{
    event.getByLabel(name, handle);
    bool valid = handle.isValid();
    if (not valid) {
        missing.push_back( std::make_pair(description, & name) );
        handle.clear();
        //      std::cout << "not valid "<< description << " " << name << std::endl;
    }
    return valid;
}