Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:13

0001 #ifndef L1GCTANALYZER_TIMINGANALYZER_H
0002 #define L1GCTANALYZER_TIMINGANALYZER_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    GctTimingAnalyzer
0007 // Class:      GctTimingAnalyzer
0008 //
0009 /**\class GctTimingAnalyzer GctTimingAnalyzer.cc L1Trigger/L1GctAnalzyer/interface/GctTimingAnalyzer.h
0010 
0011 Description: Analyse the timing of all of the GCT pipelines
0012 
0013 */
0014 //
0015 // Original Author:  Alex Tapper
0016 //         Created:  Mon Apr 21 14:21:06 CEST 2008
0017 //
0018 //
0019 
0020 // user include files
0021 #include "FWCore/Framework/interface/Frameworkfwd.h"
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023 
0024 #include "FWCore/Framework/interface/Event.h"
0025 #include "FWCore/Framework/interface/MakerMacros.h"
0026 
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028 
0029 // Data formats
0030 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0031 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h"
0032 
0033 #include <iostream>
0034 #include <fstream>
0035 
0036 class GctTimingAnalyzer : public edm::one::EDAnalyzer<> {
0037 public:
0038   explicit GctTimingAnalyzer(const edm::ParameterSet&);
0039   ~GctTimingAnalyzer() override;
0040 
0041 private:
0042   void analyze(const edm::Event&, const edm::EventSetup&) override;
0043 
0044   std::string m_outputFileName;  // Output file
0045   std::ofstream m_outputFile;
0046 
0047   edm::InputTag m_gctSource;  // General source label
0048   edm::InputTag m_isoEmSource;
0049   edm::InputTag m_nonIsoEmSource;
0050   edm::InputTag m_cenJetsSource;
0051   edm::InputTag m_forJetsSource;
0052   edm::InputTag m_tauJetsSource;
0053 
0054   bool m_doInternal;  // Do internal pipelines
0055   bool m_doElectrons;
0056   bool m_doJets;
0057   bool m_doHFRings;
0058   bool m_doESums;
0059 
0060   unsigned m_evtNum;
0061 };
0062 
0063 #endif