// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // #ifndef exrdmAnalysisManager_h #define exrdmAnalysisManager_h 1 //--------------------------------------------------------------------------- // // ClassName: exrdmAnalysisManager // // Description: Singleton class to hold analysis parameters and build histograms. // User cannot access to the constructor. // The pointer of the only existing object can be got via // exrdmAnalysisManager::GetInstance() static method. // The first invokation of this static method makes // the singleton object. // //---------------------------------------------------------------------------- // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... #include "globals.hh" #include "exrdmEnergyDeposition.hh" #include //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... class exrdmHisto; class exrdmAnalysisManager { public: // With description static exrdmAnalysisManager* getInstance(); private: exrdmAnalysisManager(); public: // Without description ~exrdmAnalysisManager(); void bookHisto(); void BeginOfRun(); void EndOfRun(); void BeginOfEvent(); void EndOfEvent(); // void AddParticle(G4double particleName, G4double energy, G4double weight, G4double time ); // void AddIsotope(G4double particleName, G4double weight, G4double time ); void AddParticle(G4String particleName, G4double energy, G4double weight, G4double time ); void AddIsotope(G4String particleName, G4double weight, G4double time ); void AddEnergy(G4double edep, G4double weight, G4double time); void SetVerbose(G4int val) {verbose = val;}; G4int GetVerbose() const {return verbose;}; // void SetHistoNumber(G4int val) {nHisto = val;}; // void SetNtuple(G4bool val) {nTuple = val;}; void SetFirstEventToDebug(G4int val) {nEvt1 = val;}; G4int FirstEventToDebug() const {return nEvt1;}; void SetLastEventToDebug(G4int val) {nEvt2 = val;}; G4int LastEventToDebug() const {return nEvt2;}; void SetMaxEnergyforHisto(G4double val) {histEMax = val;}; G4double GetMaxEnergyforHisto() const {return histEMax;}; void SetMinEnergyforHisto(G4double val) {histEMin = val;}; G4double GetMinEnergyforHisto() const {return histEMin;}; void SetNumBinforHisto(G4int val) {histNBin = val;}; G4int GeNumBinforHisto() const {return histNBin;}; void SetThresholdEnergyforTarget(G4double val) {targetThresE = val;}; G4double GetThresholdEnergyforTarget () const {return targetThresE;}; void SetThresholdEnergyforDetector(G4double val) {detectorThresE = val;}; G4double GetThresholdEnergyforDetector () const {return detectorThresE;}; void SetPulseWidth(G4double val) {pulseWidth = val;}; G4double GetPulseWidth () const {return pulseWidth;}; private: // MEMBERS static exrdmAnalysisManager* fManager; G4int verbose; G4int nEvt1; G4int nEvt2; G4double histEMax; G4double histEMin; G4int histNBin; /* G4bool histTarget; G4bool histDetector; G4bool histCoin; G4bool histAntiCD; G4bool histAntiCT; G4bool histEmission; G4bool ntupleEmission; G4bool ntupleIsotope; */ G4double targetThresE; G4double detectorThresE; G4double pulseWidth; // energy depositions for an event std::vector Edepo; // exrdmHisto* histo; }; #endif