// ESAF : Euso Simulation and Analysis Framework // $Id: PixelMapBuilder.hh,v 1.10 2005/02/21 18:42:28 thea Exp $ // A.Thea created Apr, 15 2004 #ifndef __PIXELMAPBUILDER_HH_ #define __PIXELMAPBUILDER_HH_ #include "euso.hh" #include "DiffusePhotonsOnPupil.hh" #include "EsafConfigurable.hh" #include "EsafMsgSource.hh" #include "TFile.h" class EusoDetector; class DetectorTransportManager; class EusoElectronics; class TTree; class OAPxBunch; class PixelMapBuilder: public EsafConfigurable, public EsafMsgSource { public: // ctor PixelMapBuilder(); // dtor virtual ~PixelMapBuilder(); // build the map void Go(); EsafConfigClass(Tools,PixelMapBuilder) Bool_t OpenRoot(); // open rootfile Bool_t CloseRoot(); // close rootfile void InitPxTree(); // create tree and branches void FillPxTree(); // fills fTree void ClosePxTree(); // write tree, delete event private: DiffusePhotonsOnPupil fPupil; // ohotons generator EusoDetector *fDetector; // detector DetectorTransportManager *fDetectorTransporter; // photons transporter EusoElectronics *fElectronics; // electronics string fRootFileName; // output filename TFile *fRootFile; // output file TTree *fTree; // ttree containing the hits on the pixels OAPxBunch *fBunch; // basic hits container Long_t fNumPhotons; // total number of photons Long_t fPhPerBunch; // size of the bunch Int_t fNumPixels; // number of pixels ClassDef(PixelMapBuilder,0) }; #endif /* __PIXELMAPBUILDER_HH_ */