| 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 | //
|
|---|
| 27 | // $Id: MedLinacAnalysisManager.hh,v 1.6 2006/06/29 16:03:31 gunter Exp $
|
|---|
| 28 | //
|
|---|
| 29 | //
|
|---|
| 30 | // Code developed by: M. Piergentili
|
|---|
| 31 | //
|
|---|
| 32 | // the class Analysis creates and managed histograms
|
|---|
| 33 | //
|
|---|
| 34 | #ifdef G4ANALYSIS_USE
|
|---|
| 35 | #ifndef G4PROCESSTESTANALYSIS_HH
|
|---|
| 36 | #define G4PROCESSTESTANALYSIS_HH
|
|---|
| 37 |
|
|---|
| 38 | #include "globals.hh"
|
|---|
| 39 | #include <vector>
|
|---|
| 40 | #include "G4ThreeVector.hh"
|
|---|
| 41 | #include "AIDA/IHistogram1D.h"
|
|---|
| 42 | #include "AIDA/IHistogram2D.h"
|
|---|
| 43 | #include "AIDA/IAnalysisFactory.h"
|
|---|
| 44 |
|
|---|
| 45 | namespace AIDA{
|
|---|
| 46 | class ITree;
|
|---|
| 47 | class IHistogramFactory;
|
|---|
| 48 | class IAnalysisFactory;
|
|---|
| 49 | class ITreeFactory;
|
|---|
| 50 | };
|
|---|
| 51 |
|
|---|
| 52 | class MedLinacAnalysisManager
|
|---|
| 53 | {
|
|---|
| 54 | private:
|
|---|
| 55 | MedLinacAnalysisManager();
|
|---|
| 56 |
|
|---|
| 57 | public:
|
|---|
| 58 |
|
|---|
| 59 | ~MedLinacAnalysisManager();
|
|---|
| 60 | static MedLinacAnalysisManager* getInstance();
|
|---|
| 61 | void book();
|
|---|
| 62 | void FillHistogram1WithEnergy(G4double,G4float);
|
|---|
| 63 | void FillHistogram2WithEnergy(G4double,G4float);
|
|---|
| 64 | void FillHistogram3WithEnergy(G4double,G4float);
|
|---|
| 65 | void FillHistogram4WithEnergy(G4double,G4float);
|
|---|
| 66 | void FillHistogram5WithEnergy(G4double,G4float);
|
|---|
| 67 | void FillHistogram6WithEnergy(G4double,G4float);
|
|---|
| 68 | void FillHistogram7WithEnergy(G4double,G4float);
|
|---|
| 69 | void FillHistogram8WithEnergy(G4double,G4float);
|
|---|
| 70 | void FillHistogram9WithEnergy(G4double,G4float);
|
|---|
| 71 | void FillHistogram10WithEnergy(G4double,G4float);
|
|---|
| 72 | void FillHistogram11WithEnergy(G4double,G4float);
|
|---|
| 73 | void FillHistogram12WithEnergy(G4double,G4float);
|
|---|
| 74 | void FillHistogram13WithEnergy(G4double,G4float);
|
|---|
| 75 | void FillHistogram14WithEnergy(G4double,G4float);
|
|---|
| 76 | void FillHistogram15WithEnergy(G4double,G4float);
|
|---|
| 77 | void finish();
|
|---|
| 78 |
|
|---|
| 79 | private:
|
|---|
| 80 |
|
|---|
| 81 | G4double xx,zz,yy;
|
|---|
| 82 | G4float en;
|
|---|
| 83 | G4double x,y,z;
|
|---|
| 84 | static MedLinacAnalysisManager* instance;
|
|---|
| 85 |
|
|---|
| 86 | private:
|
|---|
| 87 |
|
|---|
| 88 | AIDA::IAnalysisFactory* aFact;
|
|---|
| 89 | AIDA::ITree* theTree;
|
|---|
| 90 | AIDA::IHistogramFactory *histFact;
|
|---|
| 91 | AIDA::ITreeFactory *treeFact;
|
|---|
| 92 | AIDA::IHistogram1D *h1;
|
|---|
| 93 | AIDA::IHistogram1D *h2;
|
|---|
| 94 | AIDA::IHistogram1D *h3;
|
|---|
| 95 | AIDA::IHistogram1D *h4;
|
|---|
| 96 | AIDA::IHistogram1D *h5;
|
|---|
| 97 | AIDA::IHistogram1D *h6;
|
|---|
| 98 | AIDA::IHistogram1D *h7;
|
|---|
| 99 | AIDA::IHistogram1D *h8;
|
|---|
| 100 | AIDA::IHistogram1D *h9;
|
|---|
| 101 | AIDA::IHistogram1D *h10;
|
|---|
| 102 | AIDA::IHistogram1D *h11;
|
|---|
| 103 | AIDA::IHistogram1D *h12;
|
|---|
| 104 | AIDA::IHistogram1D *h13;
|
|---|
| 105 | AIDA::IHistogram1D *h14;
|
|---|
| 106 | AIDA::IHistogram1D *h15;
|
|---|
| 107 | };
|
|---|
| 108 |
|
|---|
| 109 | #endif
|
|---|
| 110 | #endif
|
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|