CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/L1TriggerConfig/L1GeometryProducers/src/L1CaloGeometryDump.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    L1CaloGeometryDump
00004 // Class:      L1CaloGeometryDump
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Mon Sep 28 22:17:24 CEST 2009
00016 // $Id: L1CaloGeometryDump.cc,v 1.1 2009/09/28 23:01:25 wsun Exp $
00017 //
00018 //
00019 
00020 
00021 // system include files
00022 #include <memory>
00023 
00024 // user include files
00025 #include "FWCore/Framework/interface/Frameworkfwd.h"
00026 #include "FWCore/Framework/interface/EDAnalyzer.h"
00027 
00028 #include "FWCore/Framework/interface/Event.h"
00029 #include "FWCore/Framework/interface/MakerMacros.h"
00030 
00031 #include "FWCore/Framework/interface/EventSetup.h"
00032 #include "FWCore/Framework/interface/ESHandle.h"
00033 
00034 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00035 
00036 #include "CondFormats/L1TObjects/interface/L1CaloGeometry.h"
00037 #include "CondFormats/DataRecord/interface/L1CaloGeometryRecord.h"
00038 
00039 //
00040 // class decleration
00041 //
00042 
00043 class L1CaloGeometryDump : public edm::EDAnalyzer {
00044    public:
00045       explicit L1CaloGeometryDump(const edm::ParameterSet&);
00046       ~L1CaloGeometryDump();
00047 
00048 
00049    private:
00050       virtual void beginJob() ;
00051       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00052       virtual void endJob() ;
00053 
00054       // ----------member data ---------------------------
00055 };
00056 
00057 //
00058 // constants, enums and typedefs
00059 //
00060 
00061 //
00062 // static data member definitions
00063 //
00064 
00065 //
00066 // constructors and destructor
00067 //
00068 L1CaloGeometryDump::L1CaloGeometryDump(const edm::ParameterSet& iConfig)
00069 
00070 {
00071    //now do what ever initialization is needed
00072 
00073 }
00074 
00075 
00076 L1CaloGeometryDump::~L1CaloGeometryDump()
00077 {
00078  
00079    // do anything here that needs to be done at desctruction time
00080    // (e.g. close files, deallocate resources etc.)
00081 
00082 }
00083 
00084 
00085 //
00086 // member functions
00087 //
00088 
00089 // ------------ method called to for each event  ------------
00090 void
00091 L1CaloGeometryDump::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
00092 {
00093    using namespace edm;
00094 
00095    ESHandle< L1CaloGeometry > pGeom ;
00096    iSetup.get< L1CaloGeometryRecord >().get( pGeom ) ;
00097 
00098    LogDebug( "L1CaloGeometryDump" ) << *pGeom << std::endl ;
00099 }
00100 
00101 
00102 // ------------ method called once each job just before starting event loop  ------------
00103 void 
00104 L1CaloGeometryDump::beginJob()
00105 {
00106 }
00107 
00108 // ------------ method called once each job just after ending the event loop  ------------
00109 void 
00110 L1CaloGeometryDump::endJob() {
00111 }
00112 
00113 //define this as a plug-in
00114 DEFINE_FWK_MODULE(L1CaloGeometryDump);