Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:56

0001 // -*- C++ -*-
0002 //
0003 // Package:    IsTBH4Type
0004 // Class:      IsTBH4Type
0005 //
0006 /**\class IsTBH4Type IsTBH4Type.cc RecoTBCalo/IsTBH4Type/src/IsTBH4Type.cc
0007 
0008  Description: tag a given type of run
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  Pietro Govoni
0015 //         Created:  Thu Aug 10 16:21:22 CEST 2006
0016 //
0017 //
0018 
0019 // system include files
0020 #include <memory>
0021 
0022 // user include files
0023 #include "FWCore/Framework/interface/Frameworkfwd.h"
0024 #include "FWCore/Framework/interface/global/EDFilter.h"
0025 
0026 #include "FWCore/Framework/interface/Event.h"
0027 #include "FWCore/Framework/interface/MakerMacros.h"
0028 
0029 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0030 
0031 //
0032 // class declaration
0033 //
0034 
0035 class IsTBH4Type : public edm::global::EDFilter<> {
0036 public:
0037   explicit IsTBH4Type(const edm::ParameterSet&);
0038 
0039   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0040 
0041 private:
0042   // ----------member data ---------------------------
0043 
0044   //! collection of the event header
0045   std::string eventHeaderCollection_;
0046   //! producer of the event header
0047   std::string eventHeaderProducer_;
0048   //! type of run to flag
0049   std::string typeToFlag_;
0050   //! what to return in case no header is found
0051   bool notFound_;
0052 };