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 // $Id: SiStripCommissioningRunTypeFilter.cc,v 1.2 2008/04/12 20:06:27 delaer Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <algorithm>
24 
25 // user include files
27 
28 //
29 // constructors and destructor
30 //
32 {
33  //now do what ever initialization is needed
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 &)
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:243
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356