source: trunk/examples/advanced/Rich/include/PadHpdPhotoElectricEffect.hh@ 1158

Last change on this file since 1158 was 807, checked in by garnier, 17 years ago

update

File size: 3.8 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// Rich advanced example for Geant4
27// PadHpdPhotoElectricEffect.hh for Rich of LHCb
28// History:
29// Created: Sajan Easo (Sajan.Easo@cern.ch)
30// Revision and changes: Patricia Mendez (Patricia.Mendez@cern.ch)
31/////////////////////////////////////////////////////////////////////////////
32#ifndef PadHpdPhotoElectricEffect_h
33#define PadHpdPhotoElectricEffect_h 1
34#include "G4ios.hh"
35#include "globals.hh"
36#include "Randomize.hh"
37#include "G4VDiscreteProcess.hh"
38#include "G4PhotoElectricEffect.hh"
39#include "G4DynamicParticle.hh"
40#include "G4OpticalPhoton.hh"
41#include "G4Electron.hh"
42#include "G4Step.hh"
43#include "RichTbMaterialParameters.hh"
44class RichTbAnalysisManager;
45class RichTbRunConfig;
46
47class PadHpdPhotoElectricEffect : public G4VDiscreteProcess {
48public:
49
50 PadHpdPhotoElectricEffect(const G4String&,RichTbRunConfig* );
51 virtual ~PadHpdPhotoElectricEffect();
52
53 G4bool IsApplicable(const G4ParticleDefinition& );
54 // is applicable for optical photon only
55
56 G4double GetMeanFreePath(const G4Track& ,
57 G4double ,
58 G4ForceCondition* condition);
59 //returns infinity (max integer possible) . This means the process does
60 // not limit the step, but sets the Forced condition for the DoIt to be
61 // invoked at every step. But only at the boundary between Hpd quartz
62 // window and the Hpd photocathode any action be taken.
63
64 G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
65 const G4Step& aStep);
66 //The method for implementing the HpdPhotoelectric effect.
67
68
69 G4double getHpdQEff(G4int, G4double);
70 // To interpolate the QE from QE data.
71 G4double getHpdPhElectronKE()
72 {return HpdPhElectronKE; }
73 G4double getPhCathodeToSilDetDist()
74 {return PhCathodeToSilDetDist; }
75 G4double getHpdDemag(G4int hpdnum) {return DemagnificationFactor[hpdnum]; }
76 private:
77 // RichTbAnalysisManager* rAnalysisPhy;
78 RichTbRunConfig* rConfig;
79 G4String PrePhotoElectricVolName;
80 G4String PostPhotoElectricVolName;
81 G4double HpdPhElectronKE;
82 G4double PhCathodeToSilDetDist;
83 G4double PSFsigma;
84 std::vector<G4double>DemagnificationFactor;
85 std::vector<G4double>DemagnificationQuadFactor;
86 std::vector<std::vector<G4double> >HpdQE;
87 std::vector<std::vector<G4double> >HpdWabin;
88
89};
90
91#endif
Note: See TracBrowser for help on using the repository browser.