Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CalibTracker
SiPixelTools
plugins
SiPixelCalibDigiFilter.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiPixelCalibDigiFilter
4
// Class: SiPixelCalibDigiFilter
5
//
13
//
14
// Original Author: Evan Klose Friis
15
// Created: Tue Nov 6 16:59:50 CET 2007
16
// $Id: SiPixelCalibDigiFilter.cc,v 1.4 2010/08/10 09:06:13 ursl Exp $
17
//
18
//
19
20
#include "
SiPixelCalibDigiFilter.h
"
21
22
// system include files
23
#include <memory>
24
25
// user include files
26
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
27
#include "
FWCore/Framework/interface/EDFilter.h
"
28
29
#include "
FWCore/Framework/interface/Event.h
"
30
#include "
FWCore/Framework/interface/MakerMacros.h
"
31
32
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
33
#include "
DataFormats/Common/interface/DetSetVector.h
"
34
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigi.h
"
35
36
//
37
// constants, enums and typedefs
38
//
39
40
//
41
// static data member definitions
42
//
43
44
//
45
// constructors and destructor
46
//
47
SiPixelCalibDigiFilter::SiPixelCalibDigiFilter
(
const
edm::ParameterSet
& iConfig)
48
{
49
//now do what ever initialization is needed
50
51
}
52
53
54
SiPixelCalibDigiFilter::~SiPixelCalibDigiFilter
()
55
{
56
57
// do anything here that needs to be done at desctruction time
58
// (e.g. close files, deallocate resources etc.)
59
60
}
61
62
63
//
64
// member functions
65
//
66
67
// ------------ method called on each new Event ------------
68
bool
69
SiPixelCalibDigiFilter::filter
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
70
{
71
using namespace
edm;
72
Handle<DetSetVector<SiPixelCalibDigi>
> listOfDetIds;
73
iEvent.
getByLabel
(
"SiPixelCalibDigiProducer"
, listOfDetIds);
74
75
if
(listOfDetIds->size() == 0)
76
return
false
;
77
else
78
return
true
;
79
}
80
81
// ------------ method called once each job just before starting event loop ------------
82
void
83
SiPixelCalibDigiFilter::beginJob
()
84
{
85
}
86
87
// ------------ method called once each job just after ending the event loop ------------
88
void
89
SiPixelCalibDigiFilter::endJob
() {
90
}
91
92
// -- define this as a plug-in
93
DEFINE_FWK_MODULE
(
SiPixelCalibDigiFilter
);
SiPixelCalibDigiFilter.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
SiPixelCalibDigi.h
Event.h
MakerMacros.h
edm::Handle
Definition:
AssociativeIterator.h:48
Frameworkfwd.h
DetSetVector.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:243
EDFilter.h
SiPixelCalibDigiFilter::filter
virtual bool filter(edm::Event &, const edm::EventSetup &)
Definition:
SiPixelCalibDigiFilter.cc:69
SiPixelCalibDigiFilter::~SiPixelCalibDigiFilter
~SiPixelCalibDigiFilter()
Definition:
SiPixelCalibDigiFilter.cc:54
edm::EventSetup
Definition:
EventSetup.h:44
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:356
SiPixelCalibDigiFilter::endJob
virtual void endJob()
Definition:
SiPixelCalibDigiFilter.cc:89
SiPixelCalibDigiFilter
Definition:
SiPixelCalibDigiFilter.h:39
edm::ParameterSet
Definition:
ParameterSet.h:35
SiPixelCalibDigiFilter::beginJob
virtual void beginJob()
Definition:
SiPixelCalibDigiFilter.cc:83
edm::Event
Definition:
Event.h:50
SiPixelCalibDigiFilter::SiPixelCalibDigiFilter
SiPixelCalibDigiFilter(const edm::ParameterSet &)
Definition:
SiPixelCalibDigiFilter.cc:47
Generated for CMSSW Reference Manual by
1.8.5