CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
27 
30 
34 
35 //
36 // constants, enums and typedefs
37 //
38 
39 //
40 // static data member definitions
41 //
42 
43 //
44 // constructors and destructor
45 //
47 {
48  //now do what ever initialization is needed
49  tPixelCalibDigi = consumes <edm::DetSetVector<SiPixelCalibDigi>>(edm::InputTag("SiPixelCalibDigiProducer"));
50 
51 }
52 
53 
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
70 {
71  using namespace edm;
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
84 {
85 }
86 
87 // ------------ method called once each job just after ending the event loop ------------
88 void
90 }
91 
92 // -- define this as a plug-in
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > tPixelCalibDigi
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:230
virtual bool filter(edm::Event &, const edm::EventSetup &)
SiPixelCalibDigiFilter(const edm::ParameterSet &)