00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef CRYGEN_H
00012 #define CRYGEN_H
00013
00014 #include <vector>
00015 namespace sim { class MCTruth; }
00016 namespace geo { class Geometry; }
00017 class CRYSetup;
00018 class CRYGenerator;
00019 class CRYParticle;
00020
00021 namespace evgen {
00023 class CRYGen {
00024 public:
00025 CRYGen(int which, int runno);
00026
00027 void ConfigureDetector(int which, int runno);
00028 void Sample(sim::MCTruth& mctruth, double* w);
00029
00030 private:
00031 CRYSetup* fSetup;
00032 CRYGenerator* fGen;
00033 std::vector<CRYParticle*>* fEvt;
00034 geo::Geometry& fGeom;
00035 double fSampleTime;
00036 double fToffset;
00037 double fEthresh;
00038 };
00039 }
00040 #endif // CRYGEN_H
00041