Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:01

0001 #ifndef TESTECALTPGSCALE_H
0002 #define TESTECALTPGSCALE_H
0003 
0004 //Author: Pascal Paganini - LLR
0005 //Date: 2006/07/10 15:58:06 $
0006 
0007 // system include files
0008 #include <memory>
0009 
0010 // user include files
0011 #include "FWCore/Framework/interface/Frameworkfwd.h"
0012 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0013 #include "FWCore/Framework/interface/Event.h"
0014 #include "FWCore/Framework/interface/MakerMacros.h"
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/Framework/interface/EventSetup.h"
0017 #include "FWCore/Framework/interface/ESHandle.h"
0018 #include "FWCore/Utilities/interface/ESGetToken.h"
0019 #include "CalibCalorimetry/EcalTPGTools/interface/EcalTPGScale.h"
0020 
0021 #include "Geometry/CaloTopology/interface/EcalTrigTowerConstituentsMap.h"
0022 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
0023 #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
0024 #include "Geometry/Records/interface/CaloGeometryRecord.h"
0025 #include "Geometry/Records/interface/EcalEndcapGeometryRecord.h"
0026 #include "Geometry/Records/interface/EcalBarrelGeometryRecord.h"
0027 #include "Geometry/Records/interface/IdealGeometryRecord.h"
0028 
0029 class CaloSubdetectorGeometry;
0030 
0031 class testEcalTPGScale : public edm::one::EDAnalyzer<> {
0032 public:
0033   explicit testEcalTPGScale(edm::ParameterSet const& pSet);
0034   void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
0035   void beginJob() override;
0036 
0037 private:
0038   const CaloSubdetectorGeometry* theEndcapGeometry_;
0039   const CaloSubdetectorGeometry* theBarrelGeometry_;
0040   edm::ESGetToken<CaloGeometry, CaloGeometryRecord> geomToken_;
0041   edm::ESGetToken<CaloSubdetectorGeometry, EcalEndcapGeometryRecord> endcapGeomToken_;
0042   edm::ESGetToken<CaloSubdetectorGeometry, EcalBarrelGeometryRecord> barrelGeomToken_;
0043   edm::ESGetToken<EcalTrigTowerConstituentsMap, IdealGeometryRecord> eTTmapToken_;
0044   EcalTPGScale::Tokens tokens_;
0045 };
0046 #endif