Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
SimG4Core
PhysicsLists
src
CMSTrackingCutModel.cc
Go to the documentation of this file.
1
#include "
SimG4Core/PhysicsLists/interface/CMSTrackingCutModel.h
"
2
3
#include "G4ParticleDefinition.hh"
4
#include "G4Electron.hh"
5
#include "G4Positron.hh"
6
#include "G4PhysicalConstants.hh"
7
#include "Randomize.hh"
8
9
CMSTrackingCutModel::CMSTrackingCutModel
(
const
G4ParticleDefinition*
part
)
10
: particle_(part), deltaE_(0.0), factor_(0.0), rms_(0.0) {
11
if
(part == G4Positron::Positron()) {
12
deltaE_
= 2 * CLHEP::electron_mass_c2;
13
}
14
}
15
16
CMSTrackingCutModel::~CMSTrackingCutModel
() {}
17
18
G4double
CMSTrackingCutModel::SampleEnergyDepositEcal
(G4double kinEnergy) {
19
G4double edep = kinEnergy *
factor_
;
20
if
(
rms_
> 0.) {
21
edep *= G4RandGauss::shoot(1.0,
rms_
);
22
}
23
return
edep +
deltaE_
;
24
}
CMSTrackingCutModel::deltaE_
G4double deltaE_
Definition:
CMSTrackingCutModel.h:26
CMSTrackingCutModel::factor_
G4double factor_
Definition:
CMSTrackingCutModel.h:27
CMSTrackingCutModel::rms_
G4double rms_
Definition:
CMSTrackingCutModel.h:28
CMSTrackingCutModel::CMSTrackingCutModel
CMSTrackingCutModel(const G4ParticleDefinition *)
Definition:
CMSTrackingCutModel.cc:9
CMSTrackingCutModel::SampleEnergyDepositEcal
virtual G4double SampleEnergyDepositEcal(G4double kinEnergy)
Definition:
CMSTrackingCutModel.cc:18
part
part
Definition:
HCALResponse.h:20
CMSTrackingCutModel::~CMSTrackingCutModel
virtual ~CMSTrackingCutModel()
Definition:
CMSTrackingCutModel.cc:16
CMSTrackingCutModel.h
Generated for CMSSW Reference Manual by
1.8.5