Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
SiStripCommissioningSources
plugins
SiStripCommissioningSeedFilter.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiStripCommissioningSeedFilter
4
// Class: SiStripCommissioningSeedFilter
5
//
13
//
14
// Original Author: Christophe DELAERE
15
// Created: Fri Jan 18 12:17:46 CET 2008
16
// $Id: SiStripCommissioningSeedFilter.cc,v 1.1 2008/07/07 16:24:08 delaer Exp $
17
//
18
//
19
20
21
// system include files
22
#include <memory>
23
#include <algorithm>
24
25
// user include files
26
#include "
DQM/SiStripCommissioningSources/interface/SiStripCommissioningSeedFilter.h
"
27
#include "
DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h
"
28
29
30
//
31
// constructors and destructor
32
//
33
SiStripCommissioningSeedFilter::SiStripCommissioningSeedFilter
(
const
edm::ParameterSet
& iConfig)
34
{
35
//now do what ever initialization is needed
36
inputModuleLabel_
= iConfig.
getParameter
<
edm::InputTag
>(
"InputModuleLabel"
) ;
37
}
38
39
//
40
// member functions
41
//
42
43
// ------------ method called on each new Event ------------
44
bool
45
SiStripCommissioningSeedFilter::filter
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
46
{
47
using namespace
edm;
48
49
edm::Handle<TrajectorySeedCollection>
seedcoll;
50
iEvent.
getByLabel
(
inputModuleLabel_
,seedcoll);
51
bool
result
= (*seedcoll).size()>0;
52
return
result
;
53
}
54
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
SiStripCommissioningSeedFilter::SiStripCommissioningSeedFilter
SiStripCommissioningSeedFilter(const edm::ParameterSet &)
Definition:
SiStripCommissioningSeedFilter.cc:33
edm::Handle
Definition:
AssociativeIterator.h:48
iEvent
int iEvent
Definition:
GenABIO.cc:243
SiStripCommissioningSeedFilter::inputModuleLabel_
edm::InputTag inputModuleLabel_
Definition:
SiStripCommissioningSeedFilter.h:36
query.result
tuple result
Definition:
query.py:137
edm::EventSetup
Definition:
EventSetup.h:44
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:356
SiStripCommissioningSeedFilter.h
edm::InputTag
Definition:
InputTag.h:12
TrajectorySeedCollection.h
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
SiStripCommissioningSeedFilter::filter
virtual bool filter(edm::Event &, const edm::EventSetup &)
Definition:
SiStripCommissioningSeedFilter.cc:45
Generated for CMSSW Reference Manual by
1.8.5