00001 #ifndef FakeTBHodoscopeRawInfoProducer_H 00002 #define FakeTBHodoscopeRawInfoProducer_H 00003 /* 00004 * \file FakeTBHodoscopeRawInfoProducer.h 00005 * 00006 * $Id: FakeTBHodoscopeRawInfoProducer.h,v 1.3 2007/03/07 10:48:54 fabiocos Exp $ 00007 * 00008 * Mimic the hodoscope raw information using 00009 * the generated vertex of the test beam simulation 00010 * 00011 */ 00012 00013 00014 #include "FWCore/Framework/interface/EDProducer.h" 00015 #include "DataFormats/Common/interface/EDProduct.h" 00016 #include "FWCore/Framework/interface/Event.h" 00017 #include "DataFormats/Common/interface/Handle.h" 00018 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00019 #include "FWCore/Framework/interface/ESHandle.h" 00020 #include "FWCore/Framework/interface/EventSetup.h" 00021 #include "FWCore/Framework/interface/MakerMacros.h" 00022 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00023 00024 #include "SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h" 00025 #include "TBDataFormats/EcalTBObjects/interface/EcalTBHodoscopePlaneRawHits.h" 00026 #include "TBDataFormats/EcalTBObjects/interface/EcalTBHodoscopeRawInfo.h" 00027 #include "Geometry/EcalTestBeam/interface/EcalTBHodoscopeGeometry.h" 00028 00029 class FakeTBHodoscopeRawInfoProducer: public edm::EDProducer{ 00030 00031 00032 public: 00033 00035 FakeTBHodoscopeRawInfoProducer(const edm::ParameterSet& ps); 00036 00038 virtual ~FakeTBHodoscopeRawInfoProducer(); 00039 00041 void produce(edm::Event & event, const edm::EventSetup& eventSetup); 00042 00043 // BeginJob 00044 //void beginJob(const edm::EventSetup& c); 00045 00046 // EndJob 00047 //void endJob(void); 00048 00049 00050 private: 00051 00052 EcalTBHodoscopeGeometry * theTBHodoGeom_; 00053 00054 std::string ecalTBInfoLabel_; 00055 00056 }; 00057 00058 #endif