// $Id: PhPToRootFileDetector.hh,v 1.2 2005/03/21 19:22:41 thea Exp $ // Author: Alessandro Thea 2005/02/13 /***************************************************************************** * ESAF: Euso Simulation and Analysis Framework * * * * Id: PhPToRootFileDetector * * Package: * * Coordinator: * * * *****************************************************************************/ #ifndef __PHPTOROOTFILEDETECTOR_HH__ #define __PHPTOROOTFILEDETECTOR_HH__ #include "euso.hh" #include "Detector.hh" class TFile; class TTree; class ETruth; class TClonesArray; //////////////////////////////////////////////////////////////////////////////// // // // PhPToRootFileDetector // // // // // // // //////////////////////////////////////////////////////////////////////////////// class PhPToRootFileDetector : public Detector, public EsafConfigurable, public EsafMsgSource { public: PhPToRootFileDetector(); virtual ~PhPToRootFileDetector(); virtual void Reset(); virtual Telemetry* Get( PhotonsOnPupil* ); // do the complete simulation of one event protected: virtual void Initialize(); virtual void Finalize(); string fFileName; TFile *fFile; TTree *fTree; ETruth *fTruth; TClonesArray *fPhotons; Int_t fNumPhotons; EsafConfigClass(Electronics,PhPToRootFileDetector) ClassDef(PhPToRootFileDetector,0) }; #endif /* __PHPTOROOTFILEDETECTOR_HH__ */