#include "AliColour.h"
#include <G4Colour.hh>
+//_____________________________________________________________________________
AliColour::AliColour()
: fName (""),
fRed(0.),
//
}
+//_____________________________________________________________________________
AliColour::AliColour(G4String name, G4double red, G4double blue, G4double green)
: fName(name),
fRed(red),
//
}
+//_____________________________________________________________________________
AliColour::AliColour(const AliColour& right) {
//
// copy stuff
*this = right;
}
+//_____________________________________________________________________________
AliColour::~AliColour() {
//
}
// operators
+//_____________________________________________________________________________
AliColour& AliColour::operator=(const AliColour& right)
{
// check assignement to self
return *this;
}
+//_____________________________________________________________________________
G4int AliColour::operator==(const AliColour& right) const
{
//
return returnValue;
}
+//_____________________________________________________________________________
G4int AliColour::operator!=(const AliColour& right) const
{
//
// static data members
+//_____________________________________________________________________________
AliColourStore* AliColourStore::fgInstance = 0;
// lifecycle
+//_____________________________________________________________________________
AliColourStore::AliColourStore() {
//
fColours.insert(AliColour("White", 1.0, 1.0, 1.0));
fColours.insert(AliColour("GrayClair", 0.6, 0.6, 0.6));
}
+//_____________________________________________________________________________
AliColourStore::AliColourStore(const AliColourStore& right) {
//
AliGlobals::Exception(
"Attempt to copy AliColourStore singleton.");
}
+//_____________________________________________________________________________
AliColourStore::~AliColourStore() {
//
}
// operators
+//_____________________________________________________________________________
AliColourStore& AliColourStore::operator=(const AliColourStore& right)
{
// check assignement to self
// static methods
+//_____________________________________________________________________________
AliColourStore* AliColourStore::Instance()
{
// Returns the singleton instance.
// public methods
+//_____________________________________________________________________________
G4Colour AliColourStore::GetColour(G4String name) const
{
// Retrieves the colour by name.
return 0;
}
+//_____________________________________________________________________________
G4String AliColourStore::GetColoursList() const
{
// Returns the list of all defined colours names.
return list;
}
+//_____________________________________________________________________________
G4String AliColourStore::GetColoursListWithCommas() const
{
// Returns the list of all defined colours names
#include "AliRun.h"
#include "AliModule.h"
+//_____________________________________________________________________________
AliDetConstruction::AliDetConstruction()
: fTopVolumeName("ALIC")
{
AddDetSwitch(detSwitch);
}
+//_____________________________________________________________________________
AliDetConstruction::AliDetConstruction(const AliDetConstruction& right)
: AliModulesComposition(right)
{
// AliModuleComposition is protected from copying
}
+//_____________________________________________________________________________
AliDetConstruction::~AliDetConstruction() {
//
}
// operators
+//_____________________________________________________________________________
AliDetConstruction&
AliDetConstruction::operator=(const AliDetConstruction& right)
{
// private methods
+//_____________________________________________________________________________
void AliDetConstruction::BuildDetectors()
{
// Create module constructions for AliModules
SetProcessConfigToModules(false);
}
+//_____________________________________________________________________________
void AliDetConstruction::CreateDetectors()
{
// Creates AliModules and their module constructions
}
}
+//_____________________________________________________________________________
void AliDetConstruction::CheckDetDependencies()
{
// Checks modules dependencies.
// public methods
+//_____________________________________________________________________________
G4VPhysicalVolume* AliDetConstruction::Construct()
{
// Constructs geometry.
#include "AliDetSwitch.h"
#include "AliGlobals.h"
+//_____________________________________________________________________________
AliDetSwitch::AliDetSwitch(G4String detName, G4int nofVersions,
G4int defaultVersion, G4int pprVersion,
AliModuleType modType, G4bool isStandalone)
//
}
+//_____________________________________________________________________________
AliDetSwitch::AliDetSwitch(const AliDetSwitch& right) {
//
// copy stuff
*this = right;
}
+//_____________________________________________________________________________
AliDetSwitch::~AliDetSwitch(){
//
}
// operators
+
+//_____________________________________________________________________________
AliDetSwitch& AliDetSwitch::operator=(const AliDetSwitch& right)
{
// check assignement to self
return *this;
}
+//_____________________________________________________________________________
G4int AliDetSwitch::operator==(const AliDetSwitch& right) const
{
//
return returnValue;
}
+//_____________________________________________________________________________
G4int AliDetSwitch::operator!=(const AliDetSwitch& right) const
{
//
// public methods
+//_____________________________________________________________________________
void AliDetSwitch::SwitchOn(G4int iVersion)
{
// Switchs on the iVersion version.
fSwitchedVersion = iVersion;
}
+//_____________________________________________________________________________
void AliDetSwitch::SwitchOnDefault()
{
// Switchs on the default version.
fSwitchedVersion = fDefaultVersion;
}
+//_____________________________________________________________________________
void AliDetSwitch::SwitchOnPPR()
{
// Switchs on the default version.
fSwitchedVersion = fPPRVersion;
}
+//_____________________________________________________________________________
void AliDetSwitch::SwitchOff()
{
// No version is switched on.
#include <G4Geantino.hh>
#include <G4ChargedGeantino.hh>
+//_____________________________________________________________________________
AliEmptyPhysicsList::AliEmptyPhysicsList() {
//
defaultCutValue = AliGlobals::DefaultCut();
SetVerboseLevel(1);
}
+//_____________________________________________________________________________
AliEmptyPhysicsList::~AliEmptyPhysicsList() {
//
}
// public methods
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructParticle()
{
// In this method, static member functions should be called
ConstructBarions();
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructBosons()
{
// Constructs pseudo-particles only.
G4ChargedGeantino::ChargedGeantinoDefinition();
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructLeptons()
{
// no leptons
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructMesons()
{
// no mesons
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructBarions()
{
// no barions
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructProcess()
{
// Constructs physics processes.
ConstructGeneral();
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructEM()
{
// no EM
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::ConstructGeneral()
{
// no Decay Process
}
+//_____________________________________________________________________________
void AliEmptyPhysicsList::SetCuts()
{
// Sets the default range cut values for all defined particles.
#include <G4VVisManager.hh>
#include <G4UImanager.hh>
+//_____________________________________________________________________________
AliEventAction::AliEventAction()
: fVerboseLevel(1),
fDrawFlag("CHARGED")
fTimer = new G4Timer();
}
+//_____________________________________________________________________________
AliEventAction::AliEventAction(const AliEventAction& right) {
//
AliGlobals::Exception("AliEventAction is protected from copying.");
}
+//_____________________________________________________________________________
AliEventAction::~AliEventAction() {
//
delete fMessenger;
// operators
+//_____________________________________________________________________________
AliEventAction& AliEventAction::operator=(const AliEventAction &right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
void AliEventAction::DisplayEvent(const G4Event* event) const
{
// Draws trajectories.
// public methods
+//_____________________________________________________________________________
void AliEventAction::BeginOfEventAction(const G4Event* event)
{
// Called by G4 kernel at the beginning of event.
fTimer->Start();
}
+//_____________________________________________________________________________
void AliEventAction::EndOfEventAction(const G4Event* event)
{
// Called by G4 kernel at the end of event.
#include <G4UIcmdWithAString.hh>
#include <G4UIcmdWithAnInteger.hh>
+//_____________________________________________________________________________
AliEventActionMessenger::AliEventActionMessenger(AliEventAction* eventAction)
:fEventAction(eventAction)
{
fVerboseCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
AliEventActionMessenger::AliEventActionMessenger(){
//
}
+//_____________________________________________________________________________
AliEventActionMessenger::AliEventActionMessenger(
const AliEventActionMessenger& right) {
//
AliGlobals::Exception("AliEventActionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliEventActionMessenger::~AliEventActionMessenger() {
//
delete fEventDirectory;
// operators
+//_____________________________________________________________________________
AliEventActionMessenger&
AliEventActionMessenger::operator=(const AliEventActionMessenger &right)
{
// public methods
+//_____________________________________________________________________________
void AliEventActionMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{
// static data members
const G4double AliGlobals::fgkDefaultCut = 2.0*mm;
+//_____________________________________________________________________________
AliGlobals::AliGlobals() {
//
}
+//_____________________________________________________________________________
AliGlobals::~AliGlobals() {
//
}
// static methods
+//_____________________________________________________________________________
void AliGlobals::Exception(const char* s)
{
// Prints error message end exits the program.
exit(1);
}
+//_____________________________________________________________________________
void AliGlobals::Warning(const char* s)
{
// Prints warning message.
}
#ifdef G4USE_STL
+//_____________________________________________________________________________
void AliGlobals::Exception(G4std::string s) {
//
AliGlobals::Exception(s.c_str());
}
+//_____________________________________________________________________________
void AliGlobals::Exception(G4String s) {
//
AliGlobals::Exception(s.c_str());
}
+//_____________________________________________________________________________
void AliGlobals::Warning(G4std::string s) {
//
AliGlobals::Warning(s.c_str());
}
+//_____________________________________________________________________________
void AliGlobals::Warning(G4String s) {
//
AliGlobals::Warning(s.c_str());
}
#endif
+//_____________________________________________________________________________
void AliGlobals::AppendNumberToString(G4String& s, G4int a)
{
// Appends number to string.
TG4Globals::AppendNumberToString(s, a);
}
+//_____________________________________________________________________________
G4int AliGlobals::StringToInt(G4String s)
{
// Converts one char string to integer number.
#include <G4ParticleDefinition.hh>
+//_____________________________________________________________________________
AliGunParticle::AliGunParticle()
: fParticleDefinition(0),
fParticleMomentum(G4ThreeVector(0., 0., 1.)),
//
}
+//_____________________________________________________________________________
AliGunParticle::AliGunParticle(G4ParticleDefinition* particleDef,
G4ParticleMomentum momentum, G4ThreeVector position,
G4double time, G4ThreeVector polarization )
//
}
+//_____________________________________________________________________________
AliGunParticle::AliGunParticle( G4ParticleDefinition* particleDef,
G4ParticleMomentum momentumDir, G4double kinEnergy,
G4ThreeVector position, G4double time,
fParticleMomentum = pmag*momentumDir;
}
+//_____________________________________________________________________________
AliGunParticle::AliGunParticle(const AliGunParticle& right) {
//
// copy stuff
*this = right;
}
+//_____________________________________________________________________________
AliGunParticle::~AliGunParticle() {
//
}
// operators
+//_____________________________________________________________________________
AliGunParticle& AliGunParticle::operator=(const AliGunParticle& right)
{
// check assignement to self
return *this;
}
+//_____________________________________________________________________________
G4int AliGunParticle::operator==(const AliGunParticle& right) const
{
//
return returnValue;
}
+//_____________________________________________________________________________
G4int AliGunParticle::operator!=(const AliGunParticle& right) const
{
//
// public methods
+//_____________________________________________________________________________
void AliGunParticle::Print() const
{
// Prints particle properties.
G4cout << fPolarization << G4endl;
}
+//_____________________________________________________________________________
void AliGunParticle::SetKineticEnergy(G4double kinEnergy)
{
// Sets kinetic energy.
fParticleMomentum.setMag(pmag);
}
+//_____________________________________________________________________________
G4double AliGunParticle::GetKineticEnergy() const
{
// Gets kinetic energy.
= sqrt(fParticleMomentum.mag()*fParticleMomentum.mag() + mass*mass);
return energy - mass;
}
-
-
-
-
-
-
-
-
#endif //ALICE_VISUALIZE
#include <G4LogicalVolume.hh>
+//_____________________________________________________________________________
AliLVStructure::AliLVStructure(G4String path)
: fPathName(path),
fDirName(path),
}
}
+//_____________________________________________________________________________
AliLVStructure::AliLVStructure(const AliLVStructure& right)
{
// copy stuff
*this = right;
}
+//_____________________________________________________________________________
AliLVStructure::AliLVStructure() {
//
}
+//_____________________________________________________________________________
AliLVStructure::~AliLVStructure() {
//
fStructures.clearAndDestroy();
// operators
+//_____________________________________________________________________________
AliLVStructure& AliLVStructure::operator=(const AliLVStructure &right)
{
// check assignement to self
return *this;
}
+//_____________________________________________________________________________
G4int AliLVStructure::operator==(const AliLVStructure &right) const
{
// check == to self
// private methods
+//_____________________________________________________________________________
AliLVStructure* AliLVStructure::FindSubDirectory(G4String subDir)
{
// Finds the subdirectory.
return 0;
}
+//_____________________________________________________________________________
G4String AliLVStructure::ExtractDirName(G4String name)
{
// Extracts the directory name from the path.
// public methods
+//_____________________________________________________________________________
void AliLVStructure::AddNewVolume(G4LogicalVolume* lv,
G4String treeStructure)
{
}
}
+//_____________________________________________________________________________
G4LogicalVolume* AliLVStructure::GetVolume(G4String lvName)
{
// Returns logical volume of lvName if present in the structure,
return 0;
}
+//_____________________________________________________________________________
G4LogicalVolume* AliLVStructure::FindVolume(G4String name)
{
// Finds logical volume of given name in all structure tree.
}
}
+//_____________________________________________________________________________
void AliLVStructure::ListTree() const
{
// Prints LV tree structure.
}
}
+//_____________________________________________________________________________
void AliLVStructure::ListTreeLong() const
{
// Prints LV tree structure with number of
}
}
+//_____________________________________________________________________________
void AliLVStructure::SetVerboseLevel(G4int verbose)
{
// Sets verbose level.
}
#ifdef ALICE_VISUALIZE
+//_____________________________________________________________________________
void AliLVStructure::SetTreeVisibility(G4bool visibility)
{
// Sets visibility to all logical volumes in the structure
}
}
+//_____________________________________________________________________________
void AliLVStructure::SetTreeColour(G4String colName)
{
// Sets colour specified by name to all logical volumes
// Constructors
+//_____________________________________________________________________________
AliMagneticField::AliMagneticField()
: G4UniformMagField(G4ThreeVector())
{
GetGlobalFieldManager()->CreateChordFinder(this);
}
+//_____________________________________________________________________________
AliMagneticField::AliMagneticField(G4ThreeVector fieldVector)
: G4UniformMagField(fieldVector)
{
GetGlobalFieldManager()->CreateChordFinder(this);
}
+//_____________________________________________________________________________
AliMagneticField::AliMagneticField(const AliMagneticField& right)
: G4UniformMagField(right)
{
GetGlobalFieldManager()->CreateChordFinder(this);
}
+//_____________________________________________________________________________
AliMagneticField::~AliMagneticField() {
//
}
// operators
+//_____________________________________________________________________________
AliMagneticField&
AliMagneticField::operator=(const AliMagneticField& right)
{
// public methods
+//_____________________________________________________________________________
void AliMagneticField::SetFieldValue(G4double fieldValue)
{
// Sets the value of the Global Field to fieldValue along Z.
G4UniformMagField::SetFieldValue(G4ThreeVector(0,0,fieldValue));
}
+//_____________________________________________________________________________
void AliMagneticField::SetFieldValue(G4ThreeVector fieldVector)
{
// Sets the value of the Global Field.
}
}
+//_____________________________________________________________________________
G4FieldManager* AliMagneticField::GetGlobalFieldManager()
{
-// Utility method/
+// Utility method
// ---
return G4TransportationManager::GetTransportationManager()
#include <G4LogicalVolumeStore.hh>
#include <G4LogicalVolume.hh>
+//_____________________________________________________________________________
AliModuleConstruction::AliModuleConstruction(G4String moduleName)
: fModuleName(moduleName),
fModuleFrameName(moduleName),
fMessenger = new AliModuleConstructionMessenger(this, moduleName);
}
+//_____________________________________________________________________________
AliModuleConstruction::AliModuleConstruction(const AliModuleConstruction& right)
{
//
*this = right;
}
+//_____________________________________________________________________________
AliModuleConstruction::AliModuleConstruction()
: fModuleName(""),
fModuleFrameName(""),
//
}
+//_____________________________________________________________________________
AliModuleConstruction::~AliModuleConstruction()
{
//
// operators
+//_____________________________________________________________________________
AliModuleConstruction&
AliModuleConstruction::operator=(const AliModuleConstruction& right)
{
return *this;
}
+//_____________________________________________________________________________
G4int
AliModuleConstruction::operator==(const AliModuleConstruction& right) const
{
return 0;
}
+//_____________________________________________________________________________
G4int
AliModuleConstruction::operator!=(const AliModuleConstruction& right) const
{
// protected methods
+//_____________________________________________________________________________
void AliModuleConstruction::RegisterLogicalVolume(G4LogicalVolume* lv,
G4String path, AliLVStructure& lvStructure)
{
// public methods
+//_____________________________________________________________________________
void AliModuleConstruction::SetDetFrame(G4bool warn)
{
// The logical volume with name identical with
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetDetFrame(G4String frameName, G4bool warn)
{
// The logical volume with frameName
SetDetFrame(warn);
}
+//_____________________________________________________________________________
void AliModuleConstruction::ListAllLVTree()
{
// Lists all logical volumes tree if the frame logical volume
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::ListAllLVTreeLong()
{
// Lists all logical volume tree if the frame logical volume
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::ListLVTree(G4String lvName)
{
// Lists logical volumes tree (daughters) of the logical volume
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::ListLVTreeLong(G4String lvName)
{
// Lists logical volumes tree (daughters) of the logical volume
}
}
+//_____________________________________________________________________________
G4LogicalVolume* AliModuleConstruction::FindLogicalVolume(
G4String name, G4bool silent) const
{
#ifdef ALICE_VISUALIZE
+//_____________________________________________________________________________
void AliModuleConstruction::SetDetVisibility(G4bool visibility)
{
// Sets visibility to all detector logical volumes if
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetLVTreeVisibility(G4LogicalVolume* lv,
G4bool visibility)
{
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetVolumeVisibility(G4LogicalVolume* lv,
G4bool visibility)
{
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetDetColour(G4String colName)
{
// Sets colour to all detector logical volumes if
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetLVTreeColour(G4LogicalVolume* lv,
G4String colName)
{
}
}
+//_____________________________________________________________________________
void AliModuleConstruction::SetVolumeColour(G4LogicalVolume* lv,
G4String colName)
{
#include <G4UIcmdWithAString.hh>
#include <G4UIcmdWithoutParameter.hh>
+//_____________________________________________________________________________
AliModuleConstructionMessenger::AliModuleConstructionMessenger(
AliModuleConstruction* moduleConstruction, G4String moduleName)
: fModuleConstruction(moduleConstruction)
#endif //ALICE_VISUALIZE
}
+//_____________________________________________________________________________
AliModuleConstructionMessenger::AliModuleConstructionMessenger() {
//
}
+//_____________________________________________________________________________
AliModuleConstructionMessenger::AliModuleConstructionMessenger(
const AliModuleConstructionMessenger& right)
{
"AliModuleConstructionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliModuleConstructionMessenger::~AliModuleConstructionMessenger()
{
//
// operators
+//_____________________________________________________________________________
AliModuleConstructionMessenger&
AliModuleConstructionMessenger::operator=(
const AliModuleConstructionMessenger& right)
// public methods
+//_____________________________________________________________________________
void AliModuleConstructionMessenger::SetNewValue(G4UIcommand* command,
G4String newValues)
{
#include <G4PrimaryVertex.hh>
#include <G4Event.hh>
+//_____________________________________________________________________________
AliParticleGun::AliParticleGun() {
//
fMessenger = new AliParticleGunMessenger(this);
}
+//_____________________________________________________________________________
AliParticleGun::AliParticleGun(const AliParticleGun& right)
: G4VPrimaryGenerator(right)
{
*this = right;
}
+//_____________________________________________________________________________
AliParticleGun::~AliParticleGun() {
//
fGunParticlesVector.clearAndDestroy();
// operators
+//_____________________________________________________________________________
AliParticleGun& AliParticleGun::operator=(const AliParticleGun& right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
void AliParticleGun::AddParticle(AliGunParticle* particle)
{
// Adds particle.
fGunParticlesVector.insert(particle);
}
+//_____________________________________________________________________________
void AliParticleGun::RemoveParticle(G4int iParticle)
{
// Removes particle.
delete particle;
}
+//_____________________________________________________________________________
void AliParticleGun::GeneratePrimaryVertex(G4Event* event)
{
// Generates primary vertices.
<< " " << nofGunParticles << " of primary particles " << G4endl;
}
+//_____________________________________________________________________________
void AliParticleGun::Reset()
{
// Resets the particle gun.
fGunParticlesVector.clearAndDestroy();
}
+//_____________________________________________________________________________
void AliParticleGun::List()
{
// Lists the particle gun.
#include <G4UIcmdWith3Vector.hh>
#include <G4UIcmdWith3VectorAndUnit.hh>
+//_____________________________________________________________________________
AliParticleGunMessenger::AliParticleGunMessenger(AliParticleGun* gun)
:fGun(gun)
{
fParticle->SetPolarization(G4ThreeVector(0.0*cm, 0.0*cm, 0.0*cm));
}
+//_____________________________________________________________________________
AliParticleGunMessenger::AliParticleGunMessenger() {
//
}
+//_____________________________________________________________________________
AliParticleGunMessenger::AliParticleGunMessenger(
const AliParticleGunMessenger& right) {
//
AliGlobals::Exception("AliParticleGunMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliParticleGunMessenger::~AliParticleGunMessenger() {
//
delete fListAvailableCmd;
// public methods
+//_____________________________________________________________________________
void AliParticleGunMessenger::SetNewValue(G4UIcommand * command,
G4String newValues)
{
}
}
+//_____________________________________________________________________________
G4String AliParticleGunMessenger::GetCurrentValue(G4UIcommand * command)
{
// Returns current command parameters as string.
#include <TParticle.h>
+//_____________________________________________________________________________
AliPrimaryGeneratorAction::AliPrimaryGeneratorAction()
: fGenerator(kAliGenerator),
fNofGunParticles(1),
fMessenger = new AliPrimaryGeneratorMessenger(this);
}
+//_____________________________________________________________________________
AliPrimaryGeneratorAction::AliPrimaryGeneratorAction(
const AliPrimaryGeneratorAction& right) {
//
"AliPrimaryGeneratorAction is protected from copying.");
}
+//_____________________________________________________________________________
AliPrimaryGeneratorAction::~AliPrimaryGeneratorAction() {
//
delete fMessenger;
// operators
+//_____________________________________________________________________________
AliPrimaryGeneratorAction&
AliPrimaryGeneratorAction::operator=(const AliPrimaryGeneratorAction &right)
{
// private methods
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::ConstructGenerator()
{
// Constructs selected generator.
}
}
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::ConstructGeantinoGenerator(G4bool isCharged)
{
// Geantino with random momentum direction
}
}
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::ConstructAliGenerator()
{
// Generator from AliRoot
generator->Generate();
}
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::GenerateAliGeneratorPrimaries(G4Event* event)
{
// Creates a new G4PrimaryVertex objects for each TParticle
// public methods
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::GeneratePrimaries(G4Event* event)
{
// Generates primary particles by the selected generator.
}
}
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::SetGenerator(AliPrimaryGenerator generator)
{
// Sets generator.
fGenerator = generator;
}
+//_____________________________________________________________________________
void AliPrimaryGeneratorAction::SetNofGunParticles(G4int nofParticles)
{
// Sets number of primary particles.
fNofGunParticles = nofParticles;
}
-
-
-
-
-
-
#include <G4UIcmdWithAString.hh>
#include <G4UIcmdWithAnInteger.hh>
+//_____________________________________________________________________________
AliPrimaryGeneratorMessenger::AliPrimaryGeneratorMessenger(
AliPrimaryGeneratorAction* primaryGenAction)
: fPrimaryGenAction(primaryGenAction)
fVerboseCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
AliPrimaryGeneratorMessenger::AliPrimaryGeneratorMessenger() {
//
}
+//_____________________________________________________________________________
AliPrimaryGeneratorMessenger::AliPrimaryGeneratorMessenger(
const AliPrimaryGeneratorMessenger& right) {
//
"AliPrimaryGeneratorMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliPrimaryGeneratorMessenger::~AliPrimaryGeneratorMessenger() {
//
delete fPrimariesDirectory;
// operators
+//_____________________________________________________________________________
AliPrimaryGeneratorMessenger&
AliPrimaryGeneratorMessenger::operator=(
const AliPrimaryGeneratorMessenger &right)
// public methods
+//_____________________________________________________________________________
void AliPrimaryGeneratorMessenger::SetNewValue(G4UIcommand * command,
G4String newValue)
{
#include <G4UIdirectory.hh>
#include <G4UIcmdWithAnInteger.hh>
+//_____________________________________________________________________________
AliRunActionMessenger::AliRunActionMessenger(AliRunAction* runAction)
: fRunAction(runAction)
{
fVerboseCmd->AvailableForStates(PreInit, Init, Idle, GeomClosed, EventProc);
}
+//_____________________________________________________________________________
AliRunActionMessenger::AliRunActionMessenger() {
//
}
+//_____________________________________________________________________________
AliRunActionMessenger::AliRunActionMessenger(const AliRunActionMessenger& right)
{
//
AliGlobals::Exception("AliRunActionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliRunActionMessenger::~AliRunActionMessenger() {
//
delete fRunActionDirectory;
// operators
+//_____________________________________________________________________________
AliRunActionMessenger&
AliRunActionMessenger::operator=(const AliRunActionMessenger &right)
{
// public methods
+//_____________________________________________________________________________
void AliRunActionMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{
#include <G4UIcmdWithoutParameter.hh>
#include <G4UIcmdWithAString.hh>
-
+//_____________________________________________________________________________
AliRunMessenger::AliRunMessenger()
{
//
fLegoCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
AliRunMessenger::AliRunMessenger(const AliRunMessenger& right) {
//
AliGlobals::Exception("AliRunMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliRunMessenger::~AliRunMessenger() {
//
delete fRunDirectory;
// operators
+//_____________________________________________________________________________
AliRunMessenger& AliRunMessenger::operator=(const AliRunMessenger &right)
{
// check assignement to self
// public methods
+//_____________________________________________________________________________
void AliRunMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{
AliSDManager* AliSDManager::fgInstance = 0;
+//_____________________________________________________________________________
AliSDManager* AliSDManager::Instance()
{
// Returns the singleton instance.
return fgInstance;
}
+//_____________________________________________________________________________
AliSDManager::AliSDManager()
: fNofLVWithSD(0)
{
fgInstance = this;
}
+//_____________________________________________________________________________
AliSDManager::AliSDManager(const AliSDManager& right) {
//
AliGlobals::Exception(
"Singleton AliSDManager is protected from copying.");
}
+//_____________________________________________________________________________
AliSDManager::~AliSDManager()
{
//delete fMessenger;
// operators
+//_____________________________________________________________________________
AliSDManager& AliSDManager::operator=(const AliSDManager& right)
{
// check assignement to self
// private methods
+//_____________________________________________________________________________
void AliSDManager::CreateLegoSD(G4LogicalVolume* lv, AliLego* lego) const
{
// Replaces the existing sensitive detector of the logical volume
lv->SetSensitiveDetector(legoVSD);
}
+//_____________________________________________________________________________
void AliSDManager::UnsetLegoSD(G4LogicalVolume* lv) const
{
// Replace the lego sensitive detector of the logical volume
// public methods
+//_____________________________________________________________________________
void AliSDManager::CreateSD(G4LogicalVolume* lv, AliModule* module) const
{
// Creates/retrieves a sensitive detector for the logical volume.
lv->SetSensitiveDetector(sd);
}
+//_____________________________________________________________________________
AliModule* AliSDManager::FindAliModule(G4LogicalVolume* lv) const
{
// Finds the module containing specified logical volume.
return module;
}
+//_____________________________________________________________________________
void AliSDManager::SetLego(AliLego* lego) const
{
// Replaces the existing sensitive detectors
}
}
+//_____________________________________________________________________________
void AliSDManager::UnsetLego() const
{
// Replace the lego sensitive detectors
#include <G4AntiNeutrinoMu.hh>
#include <G4AntiNeutrinoTau.hh>
+//_____________________________________________________________________________
AliStackingAction::AliStackingAction()
: fStage(0),
fVerboseLevel(0),
fMessenger = new AliStackingActionMessenger(this);
}
+//_____________________________________________________________________________
AliStackingAction::AliStackingAction(const AliStackingAction& right) {
//
AliGlobals::Exception("AliStackingAction is protected from copying.");
}
+//_____________________________________________________________________________
AliStackingAction::~AliStackingAction() {
//
delete fPrimaryStack;
// operators
+//_____________________________________________________________________________
AliStackingAction&
AliStackingAction::operator=(const AliStackingAction &right)
{
// public methods
+//_____________________________________________________________________________
G4ClassificationOfNewTrack
AliStackingAction::ClassifyNewTrack(const G4Track* track)
{
return classification;
}
+//_____________________________________________________________________________
void AliStackingAction::NewStage()
{
// Called by G4 kernel at the new stage of stacking.
}
}
+//_____________________________________________________________________________
void AliStackingAction::PrepareNewEvent()
{
// Called by G4 kernel at the beginning of event.
#include <G4UIcmdWithAnInteger.hh>
#include <G4UIcmdWithoutParameter.hh>
+//_____________________________________________________________________________
AliStackingActionMessenger::AliStackingActionMessenger(
AliStackingAction* stackingAction)
:fStackingAction(stackingAction)
fVerboseCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
AliStackingActionMessenger::AliStackingActionMessenger() {
//
}
+//_____________________________________________________________________________
AliStackingActionMessenger::AliStackingActionMessenger(
const AliStackingActionMessenger& right) {
//
AliGlobals::Exception("AliStackingActionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliStackingActionMessenger::~AliStackingActionMessenger() {
//
delete fStackingDirectory;
// operators
+//_____________________________________________________________________________
AliStackingActionMessenger&
AliStackingActionMessenger::operator=(const AliStackingActionMessenger &right)
{
// public methods
+//_____________________________________________________________________________
void AliStackingActionMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{
const G4double AliSteppingAction::fgkTolerance = 1e-6*mm;
+//_____________________________________________________________________________
AliSteppingAction::AliSteppingAction()
: fKeptStepPoint(G4ThreeVector())
{
fMessenger = new AliSteppingActionMessenger(this);
}
+//_____________________________________________________________________________
AliSteppingAction::AliSteppingAction(const AliSteppingAction& right) {
//
AliGlobals::Exception("AliSteppingAction is protected from copying.");
}
+//_____________________________________________________________________________
AliSteppingAction::~AliSteppingAction() {
//
delete fMessenger;
// operators
+//_____________________________________________________________________________
AliSteppingAction&
AliSteppingAction::operator=(const AliSteppingAction &right)
{
// public methods
+//_____________________________________________________________________________
void AliSteppingAction::SteppingAction(const G4Step* step)
{
// After processing the given number of steps (kCheckNofSteps)
#include <G4UIcmdWithAnInteger.hh>
+//_____________________________________________________________________________
AliSteppingActionMessenger::AliSteppingActionMessenger(
AliSteppingAction* trackingAction)
:fSteppingAction(trackingAction)
fMaxNofStepsCmd->AvailableForStates(Idle);
}
+//_____________________________________________________________________________
AliSteppingActionMessenger::AliSteppingActionMessenger() {
//
}
+//_____________________________________________________________________________
AliSteppingActionMessenger::AliSteppingActionMessenger(
const AliSteppingActionMessenger& right) {
//
"AliSteppingActionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliSteppingActionMessenger::~AliSteppingActionMessenger() {
//
delete fLoopVerboseCmd;
// operators
+//_____________________________________________________________________________
AliSteppingActionMessenger&
AliSteppingActionMessenger::operator=(const AliSteppingActionMessenger &right)
{
// public methods
+//_____________________________________________________________________________
void AliSteppingActionMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{
G4Allocator<AliTrackInformation> gAliTrackInfoAllocator;
+//_____________________________________________________________________________
AliTrackInformation::AliTrackInformation()
: G4VUserTrackInformation(),
fTrackParticleID(-1),
//
}
+//_____________________________________________________________________________
AliTrackInformation::AliTrackInformation(G4int trackParticleID)
: G4VUserTrackInformation(),
fTrackParticleID(trackParticleID),
//
}
+//_____________________________________________________________________________
AliTrackInformation::AliTrackInformation(G4int trackParticleID,
G4int parentParticleID)
: G4VUserTrackInformation(),
//
}
+//_____________________________________________________________________________
AliTrackInformation::~AliTrackInformation(){
//
}
// public methods
+//_____________________________________________________________________________
void AliTrackInformation::Print() const
{
// Prints track information.
#include <G4VUserTrackInformation.hh>
#include <G4TrackingManager.hh>
#include <G4SteppingManager.hh>
+#include <G4UImanager.hh>
// static data members
AliTrackingAction* AliTrackingAction::fgInstance = 0;
+//_____________________________________________________________________________
AliTrackingAction::AliTrackingAction()
: fPrimaryTrackID(0),
fVerboseLevel(2),
fgInstance = this;
}
+//_____________________________________________________________________________
AliTrackingAction::AliTrackingAction(const AliTrackingAction& right) {
//
AliGlobals::Exception("AliTrackingAction is protected from copying.");
}
+//_____________________________________________________________________________
AliTrackingAction::~AliTrackingAction() {
//
delete fMessenger;
// operators
+//_____________________________________________________________________________
AliTrackingAction&
AliTrackingAction::operator=(const AliTrackingAction &right)
{
// private methods
+//_____________________________________________________________________________
AliTrackInformation* AliTrackingAction::GetTrackInformation(
const G4Track* track,
const G4String& method) const
// public methods
+//_____________________________________________________________________________
void AliTrackingAction::PrepareNewEvent()
{
// Called by G4 kernel at the beginning of event.
stepManager->SetSteppingManager(fpTrackingManager->GetSteppingManager());
}
-#include <G4UImanager.hh>
+//_____________________________________________________________________________
void AliTrackingAction::PreTrackingAction(const G4Track* aTrack)
{
// Called by G4 kernel before starting tracking.
gAlice->PreTrack();
}
+//_____________________________________________________________________________
void AliTrackingAction::PostTrackingAction(const G4Track* aTrack)
{
// Called by G4 kernel after finishing tracking.
gAlice->PostTrack();
}
+//_____________________________________________________________________________
void AliTrackingAction::FinishPrimaryTrack()
{
// Calls AliRun::PurifyKine and fills trees of hits
fPrimaryTrackID = 0;
}
+//_____________________________________________________________________________
void AliTrackingAction::SaveTrack(const G4Track* track)
{
// Get all needed parameters from G4track and pass them
}
+//_____________________________________________________________________________
void AliTrackingAction::SetNewVerboseLevel(G4int level)
{
// Set the new verbose level that will be set when the track with
fNewVerboseLevel = level;
}
+//_____________________________________________________________________________
void AliTrackingAction::SetNewVerboseTrackID(G4int trackID)
{
// Set the trackID for which the new verbose level (fNewVerboseLevel)
#include <G4UIdirectory.hh>
#include <G4UIcmdWithAnInteger.hh>
+//_____________________________________________________________________________
AliTrackingActionMessenger::AliTrackingActionMessenger(
AliTrackingAction* trackingAction)
:fTrackingAction(trackingAction)
fNewVerboseTrackCmd->AvailableForStates(PreInit, Init, Idle);
}
+//_____________________________________________________________________________
AliTrackingActionMessenger::AliTrackingActionMessenger() {
//
}
+//_____________________________________________________________________________
AliTrackingActionMessenger::AliTrackingActionMessenger(
const AliTrackingActionMessenger& right) {
//
"AliTrackingActionMessenger is protected from copying.");
}
+//_____________________________________________________________________________
AliTrackingActionMessenger::~AliTrackingActionMessenger() {
//
delete fTrackingDirectory;
// operators
+//_____________________________________________________________________________
AliTrackingActionMessenger&
AliTrackingActionMessenger::operator=(const AliTrackingActionMessenger &right)
{
// public methods
+//_____________________________________________________________________________
void AliTrackingActionMessenger::SetNewValue(G4UIcommand* command,
G4String newValue)
{