HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TpcSimIonisationChamber.h
Go to the documentation of this file.
1 #ifndef TPCSIMIONISATIONCHAMBER_H
2 #define TPCSIMIONISATIONCHAMBER_H
3 
4 
6 //
7 // TpcSimIonisationChamber
8 //
9 // Simulation representation of the gas chamber
10 // Provides gas and field information
11 // (Efield, diffusion, absorption, drift velocity)
12 // Drift electrons
13 //
15 
16 #include "TObject.h"
17 #include "TClonesArray.h"
18 
19 #include "TpcSimGeometry.h"
20 #include "TpcSimMCEvent.h"
21 #include "TpcSimIonisationTrack.h"
22 
23 #include <iostream>
24 #include <fstream>
25 
26 class TpcSimIonisationChamber : public TObject {
27 
28  public:
30  virtual ~TpcSimIonisationChamber();
31 
32  /* Double_t GetDiffX() { return fDiffX;} */
33  /* Double_t GetDiffY() { return fDiffX;} */
34  /* Double_t GetDiffZ() { return fDiffX;} */
35  /* void SetDiff(Double_t dx, Double_t dy, Double_t dz) { */
36  /* fDiffX = dx; */
37  /* fDiffY = dy; */
38  /* fDiffZ = dz; */
39  /* } */
40 
41  /* Double_t GetVdrift() {return fVdrift;} */
42  /* void SetVdrift(Double_t v) {fVdrift = v;} */
43 
44  /* Double_t GetEcapture() {return fEcapture;} */
45  /* void SetEcapture(Double_t ecapt) {fEcapture =ecapt;} */
46 
47  Double_t GetEloss();
48  Int_t GetNe(Double_t eloss);
49 
51 
53  TpcSimIonisationTrack* GenerateTrackFromText(std::ifstream *str);
54 
55  private:
56 
58  /* Double_t fDiffX; // Diffusion constant in X */
59  /* Double_t fDiffY; // Diffusion constant in Y */
60  /* Double_t fDiffZ; // Diffusion constant in Z */
61 
62  /* Double_t fVdrift; // Drift velocity in mm/us */
63 
64  /* Double_t fEcapture; // Electron capture probability (/mm) */
65 
66  Double_t fMfp;
67 
68  Double_t fW;
69  Double_t fIpot;
70  Double_t fFano;
71 
72  Int_t fModuleX;
73  Int_t fModuleY;
74  Int_t fModuleZ;
75 
77 };
78 
79 #endif
ClassDef(TpcSimIonisationChamber, 1)
TpcSimIonisationTrack * GenerateTrack(TpcSimMCTrack *tr)
TpcSimIonisationTrack * GenerateTrackFromText(std::ifstream *str)