![]() |
|
|||
File indexing completed on 2025-02-23 09:22:21
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 /// \file optical/LXe/src/LXeHistoManager.cc 0027 /// \brief Implementation of the LXeHistoManager class 0028 // 0029 // 0030 // 0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0033 0034 #include "LXeHistoManager.hh" 0035 0036 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0037 0038 LXeHistoManager::LXeHistoManager() : fFileName("lxe") 0039 { 0040 Book(); 0041 } 0042 0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0044 0045 void LXeHistoManager::Book() 0046 { 0047 // Create or get analysis manager 0048 G4AnalysisManager* analysisManager = G4AnalysisManager::Instance(); 0049 analysisManager->SetDefaultFileType("root"); 0050 analysisManager->SetFileName(fFileName); 0051 analysisManager->SetVerboseLevel(1); 0052 analysisManager->SetActivation(true); // enable inactivation of histograms 0053 0054 // Define histogram indices, titles 0055 0056 // Default values (to be reset via /analysis/h1/set command) 0057 G4int nbins = 100; 0058 G4double vmin = 0.; 0059 G4double vmax = 100.; 0060 0061 // 0 0062 analysisManager->CreateH1("0", "dummy", nbins, vmin, vmax); 0063 // 1 0064 analysisManager->CreateH1("hits per event", "hits per event", nbins, vmin, vmax); 0065 // 2 0066 analysisManager->CreateH1("hits above threshold", "hits per event above threshold", nbins, vmin, 0067 vmax); 0068 // 3 0069 analysisManager->CreateH1("scintillation", "scintillation photons per event", nbins, vmin, vmax); 0070 // 4 0071 analysisManager->CreateH1("Cerenkov", "Cerenkov photons per event", nbins, vmin, vmax); 0072 // 5 0073 analysisManager->CreateH1("absorbed", "absorbed photons per event", nbins, vmin, vmax); 0074 // 6 0075 analysisManager->CreateH1("boundary absorbed", "photons absorbed at boundary per event", nbins, 0076 vmin, vmax); 0077 // 7 0078 analysisManager->CreateH1("E dep", "energy deposition in scintillator per event", nbins, vmin, 0079 vmax); 0080 0081 // Create all histograms as inactivated 0082 for (G4int i = 0; i < analysisManager->GetNofH1s(); ++i) { 0083 analysisManager->SetH1Activation(i, false); 0084 } 0085 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |