![]() |
|
|||
File indexing completed on 2025-08-05 08:18:10
0001 // Tell emacs that this is a C++ source 0002 // -*- C++ -*-. 0003 // 0004 // ******************************************************************** 0005 // * License and Disclaimer * 0006 // * * 0007 // * The Geant4 software is copyright of the Copyright Holders of * 0008 // * the Geant4 Collaboration. It is provided under the terms and * 0009 // * conditions of the Geant4 Software License, included in the file * 0010 // * LICENSE and available at http://cern.ch/geant4/license . These * 0011 // * include a list of copyright holders. * 0012 // * * 0013 // * Neither the authors of this software system, nor their employing * 0014 // * institutes,nor the agencies providing financial support for this * 0015 // * work make any representation or warranty, express or implied, * 0016 // * regarding this software system or assume any liability for its * 0017 // * use. Please see the license in the file LICENSE and URL above * 0018 // * for the full disclaimer and the limitation of liability. * 0019 // * * 0020 // * This code implementation is the result of the scientific and * 0021 // * technical work of the GEANT4 collaboration. * 0022 // * By using, copying, modifying or distributing the software (or * 0023 // * any work based on the software) you agree to acknowledge its * 0024 // * use in resulting scientific publications, and indicate your * 0025 // * acceptance of all terms of the Geant4 Software license. * 0026 // ******************************************************************** 0027 // 0028 // 0029 // $Id: PHG4RegionInformation.h,v 1.3 2012/07/10 16:48:21 pinkenbu Exp $ 0030 // GEANT4 tag $Name: $ 0031 // 0032 0033 // Shamelessly ripped from RE01 example. We use this user data to help define 0034 // transitions from one region to the next (ie. entering/exiting the calorimeter). 0035 // 0036 0037 #ifndef G4MAIN_PHG4REGIONINFORMATION_H 0038 #define G4MAIN_PHG4REGIONINFORMATION_H 0039 0040 #include <Geant4/G4Types.hh> // for G4bool 0041 #include <Geant4/G4VUserRegionInformation.hh> 0042 0043 class PHG4RegionInformation : public G4VUserRegionInformation 0044 { 0045 public: 0046 PHG4RegionInformation(); 0047 ~PHG4RegionInformation() override {} 0048 void Print() const override; 0049 0050 private: 0051 G4bool isWorld; 0052 G4bool isTracker; 0053 G4bool isCalorimeter; 0054 0055 public: 0056 inline void SetWorld(G4bool v = true) { isWorld = v; } 0057 inline void SetTracker(G4bool v = true) { isTracker = v; } 0058 inline void SetCalorimeter(G4bool v = true) { isCalorimeter = v; } 0059 inline G4bool IsWorld() const { return isWorld; } 0060 inline G4bool IsTracker() const { return isTracker; } 0061 inline G4bool IsCalorimeter() const { return isCalorimeter; } 0062 }; 0063 0064 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |