VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
ExGarfield
geant4
include
GarfieldG4FastSimulationModel.h
Go to the documentation of this file.
1
#ifndef GARFIELDG4FASTSIMULATIONMODEL_H_
2
#define GARFIELDG4FASTSIMULATIONMODEL_H_
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2007 - 2016 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
13
/// \file ExGarfield/geant4/include/GarfieldG4FastSimulationModel.h
14
/// \brief Definition of the GarfieldG4FastSimulationModel class
15
///
16
/// Garfield garfieldpp example adapted to Virtual Monte Carlo.
17
/// This class is imported from garfieldpp example.
18
/// There is disabled WriteGeometryToGDML function in order to avoid
19
/// requiring Geant4 optional library.
20
///
21
/// \date 28/10/2015
22
/// \author D. Pheiffer, CERN
23
24
/*
25
* GarfieldModel.h
26
*
27
* Created on: Apr 9, 2014
28
* Author: dpfeiffe
29
*/
30
31
#include "G4VFastSimulationModel.hh"
32
#include "
GarfieldPhysics.h
"
33
34
class
G4VPhysicalVolume;
35
36
class
GarfieldG4FastSimulationModel
:
public
G4VFastSimulationModel
37
{
38
public
:
39
//-------------------------
40
// Constructor, destructor
41
//-------------------------
42
GarfieldG4FastSimulationModel
(G4String, G4Region*);
43
GarfieldG4FastSimulationModel
(G4String);
44
~GarfieldG4FastSimulationModel
();
45
46
void
SetPhysics
(
GarfieldPhysics
*
fGarfieldPhysics
);
47
// I.H. make this optional
48
// void WriteGeometryToGDML(G4VPhysicalVolume* physicalVolume);
49
50
virtual
G4bool
IsApplicable
(
const
G4ParticleDefinition&);
51
virtual
G4bool
ModelTrigger
(
const
G4FastTrack&);
52
virtual
void
DoIt
(
const
G4FastTrack&, G4FastStep&);
53
54
private
:
55
GarfieldPhysics
*
fGarfieldPhysics
;
56
};
57
58
#endif
/* GARFIELDMODEL_H_ */
GarfieldPhysics.h
Definition of the GarfieldPhysics class.
G4VFastSimulationModel
GarfieldG4FastSimulationModel::ModelTrigger
virtual G4bool ModelTrigger(const G4FastTrack &)
Definition
GarfieldG4FastSimulationModel.cxx:78
GarfieldG4FastSimulationModel::~GarfieldG4FastSimulationModel
~GarfieldG4FastSimulationModel()
Definition
GarfieldG4FastSimulationModel.cxx:54
GarfieldG4FastSimulationModel::DoIt
virtual void DoIt(const G4FastTrack &, G4FastStep &)
Definition
GarfieldG4FastSimulationModel.cxx:89
GarfieldG4FastSimulationModel::SetPhysics
void SetPhysics(GarfieldPhysics *fGarfieldPhysics)
GarfieldG4FastSimulationModel::fGarfieldPhysics
GarfieldPhysics * fGarfieldPhysics
Definition
GarfieldG4FastSimulationModel.h:55
GarfieldG4FastSimulationModel::GarfieldG4FastSimulationModel
GarfieldG4FastSimulationModel(G4String, G4Region *)
Definition
GarfieldG4FastSimulationModel.cxx:38
GarfieldG4FastSimulationModel::IsApplicable
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition
GarfieldG4FastSimulationModel.cxx:66
GarfieldPhysics
Definition
GarfieldPhysics.h:81
Generated on
for VMC Examples by
1.17.0