Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:22

0001 #ifndef Neutron_EDMNeutronWriter_h
0002 #define Neutron_EDMNeutronWriter_h
0003 
0004 /** Writes an event made of neutron hits
0005 */
0006 
0007 #include "SimMuon/Neutron/src/NeutronWriter.h"
0008 
0009 class EDMNeutronWriter : public NeutronWriter {
0010 public:
0011   EDMNeutronWriter();
0012   ~EDMNeutronWriter() override;
0013 
0014   ///  writes out a list of SimHits.
0015   void writeCluster(int detType, const edm::PSimHitContainer& simHits) override;
0016   void beginEvent(edm::Event& e, const edm::EventSetup& es) override;
0017   void endEvent() override;
0018   void initialize(int detType) override {}
0019 
0020 private:
0021   edm::Event* theEvent;
0022   std::unique_ptr<edm::PSimHitContainer> theHits;
0023 };
0024 
0025 #endif