|
|
|||
File indexing completed on 2026-09-20 08:30:55
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 LXeUserTrackInformation.hh 0027 /// \brief Definition of the LXeUserTrackInformation class 0028 0029 #include "G4VUserTrackInformation.hh" 0030 #include "globals.hh" 0031 0032 #ifndef LXeUserTrackInformation_h 0033 # define LXeUserTrackInformation_h 1 0034 0035 enum LXeTrackStatus 0036 { 0037 active = 1, 0038 hitPMT = 2, 0039 absorbed = 4, 0040 boundaryAbsorbed = 8, 0041 hitSphere = 16, 0042 inactive = 14 0043 }; 0044 0045 /*LXeTrackStatus: 0046 active: still being tracked 0047 hitPMT: stopped by being detected in a PMT 0048 absorbed: stopped by being absorbed with G4OpAbsorbtion 0049 boundaryAbsorbed: stopped by being aborbed with G4OpAbsorbtion 0050 hitSphere: track hit the sphere at some point 0051 inactive: track is stopped for some reason 0052 -This is the sum of all stopped flags so can be used to remove stopped flags 0053 0054 */ 0055 0056 class LXeUserTrackInformation : public G4VUserTrackInformation 0057 { 0058 public: 0059 LXeUserTrackInformation() = default; 0060 ~LXeUserTrackInformation() override = default; 0061 0062 // Sets the track status to s (does not check validity of flags) 0063 void SetTrackStatusFlags(int s) { fStatus = s; } 0064 // Does a smart add of track status flags (disabling old flags that conflict) 0065 // If s conflicts with itself it will not be detected 0066 void AddTrackStatusFlag(int s); 0067 0068 int GetTrackStatus() const { return fStatus; } 0069 0070 void IncReflections() { ++fReflections; } 0071 G4int GetReflectionCount() const { return fReflections; } 0072 0073 void SetForceDrawTrajectory(G4bool b) { fForcedraw = b; } 0074 G4bool GetForceDrawTrajectory() { return fForcedraw; } 0075 0076 inline virtual void Print() const override {}; 0077 0078 private: 0079 int fStatus = active; 0080 G4int fReflections = 0; 0081 G4bool fForcedraw = false; 0082 }; 0083 0084 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|