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
//
17
//
18
19
#include "
SiPixelCalibDigiFilter.h
"
20
21
// system include files
22
#include <memory>
23
24
// user include files
25
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
26
#include "
FWCore/Framework/interface/EDFilter.h
"
27
28
#include "
FWCore/Framework/interface/Event.h
"
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
31
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
32
#include "
DataFormats/Common/interface/DetSetVector.h
"
33
#include "
DataFormats/SiPixelDigi/interface/SiPixelCalibDigi.h
"
34
35
//
36
// constants, enums and typedefs
37
//
38
39
//
40
// static data member definitions
41
//
42
43
//
44
// constructors and destructor
45
//
46
SiPixelCalibDigiFilter::SiPixelCalibDigiFilter
(
const
edm::ParameterSet
& iConfig)
47
{
48
//now do what ever initialization is needed
49
tPixelCalibDigi
= consumes <edm::DetSetVector<SiPixelCalibDigi>>(
edm::InputTag
(
"SiPixelCalibDigiProducer"
));
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.
getByToken
(
tPixelCalibDigi
, 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
SiPixelCalibDigiFilter::tPixelCalibDigi
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > tPixelCalibDigi
Definition:
SiPixelCalibDigiFilter.h:49
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition:
Event.h:464
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
SiPixelCalibDigi.h
Event.h
MakerMacros.h
edm::Handle
Definition:
AssociativeIterator.h:47
HLT_25ns14e33_v1_cff.InputTag
tuple InputTag
Definition:
HLT_25ns14e33_v1_cff.py:45333
Frameworkfwd.h
DetSetVector.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
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:45
SiPixelCalibDigiFilter::endJob
virtual void endJob()
Definition:
SiPixelCalibDigiFilter.cc:89
SiPixelCalibDigiFilter
Definition:
SiPixelCalibDigiFilter.h:38
edm::ParameterSet
Definition:
ParameterSet.h:36
SiPixelCalibDigiFilter::beginJob
virtual void beginJob()
Definition:
SiPixelCalibDigiFilter.cc:83
edm::Event
Definition:
Event.h:64
SiPixelCalibDigiFilter::SiPixelCalibDigiFilter
SiPixelCalibDigiFilter(const edm::ParameterSet &)
Definition:
SiPixelCalibDigiFilter.cc:46
Generated for CMSSW Reference Manual by
1.8.5