CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/SimG4CMS/Tracker/interface/TkSimHitPrinter.h

Go to the documentation of this file.
00001 #ifndef SimG4CMS_TkSimHitPrinter_H
00002 #define SimG4CMS_TkSimHitPrinter_H
00003 
00004 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
00005 #include "DataFormats/GeometryVector/interface/LocalVector.h"
00006 
00007 #include <string>
00008 #include <fstream>
00009 
00010 class G4Track;
00011 
00012 class TkSimHitPrinter 
00013 {
00014 public:
00015     TkSimHitPrinter(std::string);
00016     ~TkSimHitPrinter();
00017     void startNewSimHit(std::string,std::string,int,int,int);
00018     void printLocal(Local3DPoint,Local3DPoint) const;
00019     void printGlobal(Local3DPoint,Local3DPoint) const;
00020     void printHitData(float, float) const;
00021     void printMomentumOfTrack(float, std::string, int sign) const;
00022     int getPropagationSign(Local3DPoint ,Local3DPoint);
00023     void printGlobalMomentum(float,float,float)const ;
00024 private:
00025     int eventno;
00026     static std::ofstream * theFile;
00027 };
00028 
00029 #endif
00030