CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripCommissioningRunTypeFilter.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripCommissioningRunTypeFilter
4 // Class: SiStripCommissioningRunTypeFilter
5 //
13 //
14 // Original Author: Christophe DELAERE
15 // Created: Fri Jan 18 12:17:46 CET 2008
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include <algorithm>
23 
24 // user include files
26 
27 //
28 // constructors and destructor
29 //
31 {
32  //now do what ever initialization is needed
33  summaryToken_ = consumes<SiStripEventSummary>(iConfig.getParameter<edm::InputTag>( "InputModuleLabel" ) );
34  // inputModuleLabel_ = iConfig.getParameter<edm::InputTag>( "InputModuleLabel" ) ;
35  std::vector<std::string> runTypes = iConfig.getParameter<std::vector<std::string> >("runTypes");
36  for(std::vector<std::string>::const_iterator run = runTypes.begin(); run != runTypes.end(); ++run) {
38  }
39 }
40 
41 //
42 // member functions
43 //
44 
45 // ------------ method called on each new Event ------------
46 bool
48 {
49  using namespace edm;
50  // Retrieve commissioning information from "event summary"
53  return (std::find(runTypes_.begin(),runTypes_.end(),summary->runType())!=runTypes_.end());
54 }
55 
T getParameter(std::string const &) const
SiStripCommissioningRunTypeFilter(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:464
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
virtual bool filter(edm::Event &, const edm::EventSetup &)
static std::string runType(const sistrip::RunType &)
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< SiStripEventSummary > summaryToken_