Import Geant4 10.2.0 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Step.hh 68795 2013-04-05 13:24:46Z gcosmo $
|
||||
// $Id: G4Step.hh 93028 2015-09-30 16:09:00Z gcosmo $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -201,6 +201,8 @@ class G4Step
|
||||
// Secondary buckets
|
||||
public:
|
||||
// secodaries in the current step
|
||||
G4int GetNumberOfSecondariesInCurrentStep() const;
|
||||
|
||||
const std::vector<const G4Track*>* GetSecondaryInCurrentStep() const;
|
||||
|
||||
// NOTE: Secondary bucket of the Step contains
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Step.icc 79627 2014-03-10 11:20:02Z gcosmo $
|
||||
// $Id: G4Step.icc 93028 2015-09-30 16:09:00Z gcosmo $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -251,6 +251,12 @@ inline
|
||||
fpTrack->SetVelocity(fpPostStepPoint->GetVelocity());
|
||||
}
|
||||
|
||||
inline G4int G4Step::GetNumberOfSecondariesInCurrentStep() const
|
||||
{
|
||||
return fSecondary->size() - nSecondaryByLastStep;
|
||||
}
|
||||
|
||||
|
||||
inline const G4TrackVector* G4Step::GetSecondary() const
|
||||
{
|
||||
return fSecondary;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.hh 83388 2014-08-21 14:29:33Z gcosmo $
|
||||
// $Id: G4Track.hh 91231 2015-06-26 10:40:45Z gcosmo $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -68,6 +68,9 @@
|
||||
class G4Step; // Forward declaration
|
||||
class G4MaterialCutsCouple;
|
||||
class G4VelocityTable;
|
||||
class G4VAuxiliaryTrackInformation;
|
||||
|
||||
#include <map>
|
||||
|
||||
//////////////
|
||||
class G4Track
|
||||
@@ -323,6 +326,27 @@ public: // With description
|
||||
G4bool useGivenVelocity;
|
||||
// do not calclulate velocity and just use current fVelocity
|
||||
// if this flag is set
|
||||
|
||||
mutable std::map<G4int,G4VAuxiliaryTrackInformation*>* fpAuxiliaryTrackInformationMap;
|
||||
|
||||
//--------
|
||||
public:
|
||||
//--------
|
||||
|
||||
void SetAuxiliaryTrackInformation(G4int idx, G4VAuxiliaryTrackInformation* info) const;
|
||||
G4VAuxiliaryTrackInformation* GetAuxiliaryTrackInformation(G4int idx) const;
|
||||
std::map<G4int,G4VAuxiliaryTrackInformation*>* GetAuxiliaryTrackInformationMap() const
|
||||
{ return fpAuxiliaryTrackInformationMap; }
|
||||
|
||||
void RemoveAuxiliaryTrackInformation(G4int idx);
|
||||
void RemoveAuxiliaryTrackInformation(G4String& name);
|
||||
// Note: G4VAuxiliaryTrackInformation object itself is *NOT* deleted
|
||||
|
||||
//--------
|
||||
private:
|
||||
//--------
|
||||
|
||||
void ClearAuxiliaryTrackInformation();
|
||||
};
|
||||
|
||||
#include "G4Track.icc"
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VAuxiliaryTrackInformation.hh 66241 2012-12-13 18:34:42Z gunter $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
// G4VAuxiliaryTrackInformation
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Abstract class which the user can derive his/her own concrete
|
||||
// class for toring user's information associating with a G4Track
|
||||
// class object.
|
||||
//
|
||||
// It is user's responsibility
|
||||
// 1) Construct a concrete class object and set the pointer to
|
||||
// proper G4Track object
|
||||
// 2) Concrete class derived from this class is expected to use G4Allocator
|
||||
// for memory management or something equivarent for performance reason
|
||||
//
|
||||
// To set a pointer of a concrete class object to G4Track in
|
||||
// G4AuxiliaryTrackingInformation concrete implementation, given the G4Track
|
||||
// object is available only by "pointer to const", SetAuxiliaryTrackInformation()
|
||||
// method of G4TrackingManager is available.
|
||||
//
|
||||
// The concrete class object is deleted by Geant4 kernel when
|
||||
// associated G4Track object is deleted.
|
||||
|
||||
|
||||
#ifndef G4VAuxiliaryTrackInformation_H
|
||||
#define G4VAuxiliaryTrackInformation_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VAuxiliaryTrackInformation
|
||||
{
|
||||
public: // With Description
|
||||
G4VAuxiliaryTrackInformation();
|
||||
virtual ~G4VAuxiliaryTrackInformation();
|
||||
|
||||
virtual void Print() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user