Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-16 00:28:51

0001 #ifndef ECALTRIGPRIMRECPRODUCERTEST_H
0002 #define ECALTRIGPRIMRECPRODUCERTEST_H
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0008 
0009 /** \class EcalCompactTrigPrimProducerTest
0010  *
0011  *  $Id:
0012  *  $Date:
0013  *  $Revision:
0014  *  \author Ph. Gras CEA/IRFU Saclay
0015  *
0016  **/
0017 
0018 class EcalCompactTrigPrimProducerTest : public edm::one::EDAnalyzer<> {
0019 public:
0020   /// Constructor
0021   EcalCompactTrigPrimProducerTest(const edm::ParameterSet& ps)
0022       : tpDigiToken_(consumes<EcalTrigPrimDigiCollection>(ps.getParameter<edm::InputTag>("tpDigiColl"))),
0023         tpRecToken_(consumes<EcalTrigPrimCompactColl>(ps.getParameter<edm::InputTag>("tpRecColl"))),
0024         tpSkimToken_(consumes<EcalTrigPrimDigiCollection>(ps.getParameter<edm::InputTag>("tpSkimColl"))),
0025         nCompressEt_(0),
0026         nFineGrain_(0),
0027         nTTF_(0),
0028         nL1aSpike_(0),
0029         err_(false) {}
0030 
0031   /// Destructor
0032   ~EcalCompactTrigPrimProducerTest();
0033 
0034 protected:
0035   /// Analyzes the event.
0036   void analyze(edm::Event const& e, edm::EventSetup const& c) override;
0037 
0038 private:
0039   std::ostream& err(const char* mess);
0040 
0041 private:
0042   const edm::EDGetTokenT<EcalTrigPrimDigiCollection> tpDigiToken_;
0043   const edm::EDGetTokenT<EcalTrigPrimCompactColl> tpRecToken_;
0044   const edm::EDGetTokenT<EcalTrigPrimDigiCollection> tpSkimToken_;
0045   int nCompressEt_;
0046   int nFineGrain_;
0047   int nTTF_;
0048   int nL1aSpike_;
0049   bool err_;
0050 };
0051 #endif  //ECALTRIGPRIMRECPRODUCERTEST_H not defined