Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:29

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DDG4/Geant4TrackInformation.h>
0016 
0017 using namespace dd4hep::sim;
0018 
0019 /// Default constructor
0020 Geant4TrackInformation::Geant4TrackInformation()
0021   : G4VUserTrackInformation(), m_flags(0) {
0022 }
0023 
0024 /// Standard destructor
0025 Geant4TrackInformation::~Geant4TrackInformation() {
0026 }
0027 
0028 /// Access flag if track should be stored
0029 Geant4TrackInformation& Geant4TrackInformation::storeTrack(bool value) {
0030   value ? m_flags |= STORE : m_flags &= ~STORE;
0031   return *this;
0032 }