[807] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // $Id: FCALAnalysisManager.hh |
---|
| 27 | // GEANT4 tag $Name: xray_fluo-V04-01-03 |
---|
| 28 | // |
---|
| 29 | // Author: Patricia Mendez (patricia.mendez@cern.ch) |
---|
| 30 | // |
---|
| 31 | // History: |
---|
| 32 | // ----------- |
---|
| 33 | // 12 Feb 2003 Patricia Mendez created based on XrayFluoAnalysisManager. |
---|
| 34 | // ------------------------------------------------------------------- |
---|
| 35 | |
---|
| 36 | #ifndef G4PROCESSTESTANALYSIS_HH |
---|
| 37 | #define G4PROCESSTESTANALYSIS_HH |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | #include "globals.hh" |
---|
| 41 | #include <vector> |
---|
| 42 | #include "G4ThreeVector.hh" |
---|
| 43 | #ifdef G4ANALYSIS_USE |
---|
| 44 | #include "AIDA/AIDA.h" |
---|
| 45 | #endif |
---|
| 46 | #include "FCALAnalysisMessenger.hh" |
---|
| 47 | |
---|
| 48 | class G4Step; |
---|
| 49 | #ifdef G4ANALYSIS_USE |
---|
| 50 | namespace AIDA { |
---|
| 51 | class IAnalysisFactory; |
---|
| 52 | class IHistogramFactory; |
---|
| 53 | class ITree; |
---|
| 54 | class ITupleFactory; |
---|
| 55 | class ITuple; |
---|
| 56 | }; |
---|
| 57 | #endif |
---|
| 58 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 59 | |
---|
| 60 | class FCALAnalysisManager |
---|
| 61 | { |
---|
| 62 | public: |
---|
| 63 | |
---|
| 64 | virtual ~FCALAnalysisManager(); |
---|
| 65 | |
---|
| 66 | #ifdef G4ANALYSIS_USE |
---|
| 67 | |
---|
| 68 | void book(); |
---|
| 69 | |
---|
| 70 | void finish(); |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | //fill histograms with data from FCALTBEventAction |
---|
| 74 | void analyseEnergyDep(G4double eDep); |
---|
| 75 | |
---|
| 76 | //method to call to create an instance of this class |
---|
| 77 | static FCALAnalysisManager* getInstance(); |
---|
| 78 | |
---|
| 79 | //method intended to chenge the name of the hbook output file |
---|
| 80 | void SetOutputFileName(G4String); |
---|
| 81 | #endif |
---|
| 82 | |
---|
| 83 | public: |
---|
| 84 | //private constructor in order to create a singleton |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | FCALAnalysisManager(); |
---|
| 88 | |
---|
| 89 | G4String outputFileName; |
---|
| 90 | |
---|
| 91 | // G4double OutOfWorld, Secondary, EmEdep, HadEdep; |
---|
| 92 | |
---|
| 93 | static FCALAnalysisManager* instance; |
---|
| 94 | |
---|
| 95 | #ifdef G4ANALYSIS_USE |
---|
| 96 | //pointer to the analysis messenger |
---|
| 97 | FCALAnalysisMessenger* analisysMessenger; |
---|
| 98 | |
---|
| 99 | AIDA::IAnalysisFactory* analysisFactory; |
---|
| 100 | AIDA::ITree* tree; |
---|
| 101 | |
---|
| 102 | AIDA::IHistogramFactory *histogramFactory; |
---|
| 103 | AIDA:: ITupleFactory* tupleFactory; |
---|
| 104 | |
---|
| 105 | AIDA::ITuple* ntuple_1; |
---|
| 106 | AIDA::ITuple* ntuple_2; |
---|
| 107 | AIDA::ITuple* ntuple_3; |
---|
| 108 | |
---|
| 109 | AIDA::IHistogram1D* getfhisto_1() {return histo_1;} |
---|
| 110 | AIDA::IHistogram1D* getfhisto_2() {return histo_2;} |
---|
| 111 | AIDA::IHistogram1D* getfhisto_3() {return histo_3;} |
---|
| 112 | AIDA::IHistogram1D* getfhisto_4() {return histo_4;} |
---|
| 113 | |
---|
| 114 | AIDA::IHistogram1D* histo_1; |
---|
| 115 | AIDA::IHistogram1D* histo_2; |
---|
| 116 | AIDA::IHistogram1D* histo_3; |
---|
| 117 | AIDA::IHistogram1D* histo_4; |
---|
| 118 | |
---|
| 119 | #endif |
---|
| 120 | }; |
---|
| 121 | |
---|
| 122 | #endif |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | |
---|