Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef SimG4CMS_TkSimHitPrinter_H
0002 #define SimG4CMS_TkSimHitPrinter_H
0003 
0004 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0005 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0006 
0007 #include <string>
0008 #include <fstream>
0009 
0010 class G4Track;
0011 
0012 class TkSimHitPrinter {
0013 public:
0014   TkSimHitPrinter(const std::string&);
0015   ~TkSimHitPrinter();
0016   void startNewSimHit(const std::string&, const std::string&, int, int, int, int);
0017   void printLocal(const Local3DPoint&, const Local3DPoint&) const;
0018   void printGlobal(const Local3DPoint&, const Local3DPoint&) const;
0019   void printHitData(const std::string&, float, float, float) const;
0020   void printGlobalMomentum(float, float, float) const;
0021 
0022 private:
0023   static std::ofstream* theFile;
0024 };
0025 
0026 #endif