Files
geant4/source/processes/hadronic/util/include/G4HadFinalState.hh
T
2016-06-09 10:41:53 +02:00

72 lines
2.8 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
#ifndef G4HadFinalState_hh
#define G4HadFinalState_hh
#include "G4ThreeVector.hh"
#include "G4DynamicParticle.hh"
#include "globals.hh"
#include <vector>
#include "G4HadSecondary.hh"
#include "G4LorentzRotation.hh"
enum G4HadFinalStateStatus{isAlive, stopAndKill, suspend};
class G4HadFinalState
{
public:
G4HadFinalState();
G4int GetNumberOfSecondaries();
void SetEnergyChange(G4double anEnergy);
G4double GetEnergyChange();
void SetMomentumChange(G4ThreeVector aV);
void SetMomentumChange(G4double x, G4double y, G4double z) ;
G4ThreeVector GetMomentumChange();
void AddSecondary(G4DynamicParticle * aP);
void AddSecondary(G4HadSecondary * aP);
void SetStatusChange(G4HadFinalStateStatus aS);
G4HadFinalStateStatus GetStatusChange();
void Clear();
G4LorentzRotation & GetTrafoToLab();
void SetTrafoToLab(G4LorentzRotation & aT);
void SetWeightChange(G4double aW);
G4double GetWeightChange();
G4HadSecondary * GetSecondary(size_t i);
void SetLocalEnergyDeposit(G4double aE);
G4double GetLocalEnergyDeposit();
void SecondariesAreStale();
void ClearSecondaries();
private:
G4ThreeVector theDirection;
G4double theEnergy;
std::vector<G4HadSecondary *> theSecs;
G4HadFinalStateStatus theStat;
G4LorentzRotation theT;
G4double theW;
G4double theEDep;
G4bool hasStaleSecondaries;
};
#endif