Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:19

0001 #ifndef SimG4Core_CustomPhysics_RHStopDump_H
0002 #define SimG4Core_CustomPhysics_RHStopDump_H
0003 //
0004 // Dump stopping points from the Event into ASCII file
0005 // F.Ratnikov, Apr. 8, 2010
0006 //
0007 
0008 #include <fstream>
0009 
0010 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0011 
0012 class RHStopDump : public edm::one::EDAnalyzer<edm::one::SharedResources> {
0013 public:
0014   explicit RHStopDump(const edm::ParameterSet&);
0015   ~RHStopDump() override = default;
0016   void analyze(const edm::Event&, const edm::EventSetup&) override;
0017 
0018 private:
0019   std::ofstream mStream;
0020   const std::string mProducer;
0021   const edm::EDGetTokenT<std::vector<std::string> > tokNames_;
0022   const edm::EDGetTokenT<std::vector<float> > tokenXs_;
0023   const edm::EDGetTokenT<std::vector<float> > tokenYs_;
0024   const edm::EDGetTokenT<std::vector<float> > tokenZs_;
0025   const edm::EDGetTokenT<std::vector<float> > tokenTs_;
0026   const edm::EDGetTokenT<std::vector<int> > tokenIds_;
0027   const edm::EDGetTokenT<std::vector<float> > tokenMasses_;
0028   const edm::EDGetTokenT<std::vector<float> > tokenCharges_;
0029 };
0030 
0031 #endif