// $Id: PhPRootFileLightToEuso.hh,v 1.3 2005/04/14 12:43:23 moreggia Exp $ // Author: Alessandro Thea 2005/02/14 /***************************************************************************** * ESAF: Euso Simulation and Analysis Framework * * * * Id: PhPRootFileLightToEuso * * Package: * * Coordinator: * * * *****************************************************************************/ #ifndef __PHPROOTFILELIGHTTOEUSO_HH__ #define __PHPROOTFILELIGHTTOEUSO_HH__ #include "euso.hh" #include "LightToEuso.hh" class TFile; class TTree; class TClonesArray; class ETruth; class MCTruth; class ListPhotonsOnPupil; //////////////////////////////////////////////////////////////////////////////// // // // PhPRootFileLightToEuso // // // // // // // //////////////////////////////////////////////////////////////////////////////// class PhPRootFileLightToEuso : public LightToEuso { public: PhPRootFileLightToEuso(); virtual ~PhPRootFileLightToEuso(); // returns the photons on the pupil virtual PhotonsOnPupil *Get(const DetectorGeometry*); // configure virtual void Configure() { return; } // get ready for next event virtual void Reset() {}; // get pointer to MonteCarlo Truth virtual MCTruth* GetTruth() { return fMCTruth; } // get pointer to shower object virtual PhysicsData* GetPhysics() { return 0; }; // change the input file name when meaningful virtual void ReplaceInputFile( const char* ) {}; private: void Init(); string fFileName; TFile *fFile; MCTruth* fMCTruth; ETruth* fTruth; TTree *fTree; Int_t fNumPhotons; TClonesArray* fPhotons; ListPhotonsOnPupil *fPhotonsOnPupil; Long64_t fFirstEvent; Long64_t fEvCounter; EsafConfigClass(LightToEuso,PhPRootFileLightToEuso) ClassDef(PhPRootFileLightToEuso,0) }; #endif /* __PHPROOTFILELIGHTTOEUSO_HH__ */