#ifndef HFRPCDIGITIZER_H #define HFRPCDIGITIZER_H #include "frpcdef.h" #include "hlocation.h" #include "hreconstructor.h" class HCategory; class HFRpcDigiPar; class HFRpcGeomPar; class HFRpcGeomPar; class HGeomVector; class HFRpcDigitizer : public HReconstructor { private: HCategory* pGeantFRpcCat; HCategory* pStartHitCat; // StartHit data category HCategory* pCalCat; HFRpcDigiPar* pDigiPar; HFRpcGeomPar* pGeomPar; //! strips geometry struct GeantFields { Int_t trackNumber; // geant track number Float_t xHit; // geant x of hit (in mm) in cell coord. system Float_t yHit; // geant y of hit (in mm) in cell coord. system Float_t zHit; // geant z of hit (in mm) in cell coord. system Float_t pxHit; // geant x component of hit momentum (in MeV/c) Float_t pyHit; // geant y component of hit momentum (in MeV/c) Float_t pzHit; // geant z component of hit momentum (in MeV/c) Float_t tofHit; // geant time of flight of hit (in ns) Float_t trackLength; // geant track length (in mm) Float_t eHit; // geant energy deposited (in MeV) Float_t lab_x; // x, y, z lab coordinates Float_t lab_y; Float_t lab_z; }; Float_t sina[FRPC_MAX_SECTORS]; Float_t cosa[FRPC_MAX_SECTORS]; HGeomVector* frpcCellsLab[FRPC_MAX_SECTORS][FRPC_MAX_STRIPS]; // Centre of the strip [mm] HLocation fLoc; public: HFRpcDigitizer(); HFRpcDigitizer(const Text_t* name, const Text_t* title); void initVariables(); Bool_t init(); Bool_t reinit(); Int_t execute(); Bool_t finalize() { return kTRUE; } ClassDef(HFRpcDigitizer, 0) }; #endif /* !HFRPCDIGITIZER_H */