CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
CMSTrackingCutModel Class Reference

#include <CMSTrackingCutModel.h>

Public Member Functions

 CMSTrackingCutModel (const G4ParticleDefinition *)
 
void InitialiseForStep (G4double fac, G4double rms)
 
virtual G4double SampleEnergyDepositEcal (G4double kinEnergy)
 
virtual ~CMSTrackingCutModel ()
 

Protected Attributes

G4double deltaE_
 
G4double factor_
 
const G4ParticleDefinition * particle_
 
G4double rms_
 

Detailed Description

Definition at line 14 of file CMSTrackingCutModel.h.

Constructor & Destructor Documentation

CMSTrackingCutModel::CMSTrackingCutModel ( const G4ParticleDefinition *  part)
explicit

Definition at line 9 of file CMSTrackingCutModel.cc.

References deltaE_.

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 }
const G4ParticleDefinition * particle_
part
Definition: HCALResponse.h:20
CMSTrackingCutModel::~CMSTrackingCutModel ( )
virtual

Definition at line 16 of file CMSTrackingCutModel.cc.

16 {}

Member Function Documentation

void CMSTrackingCutModel::InitialiseForStep ( G4double  fac,
G4double  rms 
)
inline
G4double CMSTrackingCutModel::SampleEnergyDepositEcal ( G4double  kinEnergy)
virtual

Definition at line 18 of file CMSTrackingCutModel.cc.

References deltaE_, factor_, and rms_.

Referenced by ElectronLimiter::PostStepDoIt().

18  {
19  G4double edep = kinEnergy * factor_;
20  if (rms_ > 0.) {
21  edep *= G4RandGauss::shoot(1.0, rms_);
22  }
23  return edep + deltaE_;
24 }

Member Data Documentation

G4double CMSTrackingCutModel::deltaE_
protected

Definition at line 26 of file CMSTrackingCutModel.h.

Referenced by CMSTrackingCutModel(), and SampleEnergyDepositEcal().

G4double CMSTrackingCutModel::factor_
protected

Definition at line 27 of file CMSTrackingCutModel.h.

Referenced by InitialiseForStep(), and SampleEnergyDepositEcal().

const G4ParticleDefinition* CMSTrackingCutModel::particle_
protected

Definition at line 24 of file CMSTrackingCutModel.h.

G4double CMSTrackingCutModel::rms_
protected

Definition at line 28 of file CMSTrackingCutModel.h.

Referenced by InitialiseForStep(), and SampleEnergyDepositEcal().