/[PAMELA software]/PamVMC/trk/include/PamVMCTrkHit.h
ViewVC logotype

Contents of /PamVMC/trk/include/PamVMCTrkHit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 12 18:39:49 2009 UTC (15 years, 5 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
- Introduced user-defined names of output files and random seeds number.
Users can do it use options of PamVMCApplication constructor:
PamVMCApplication(const char* name,  const char *title, const char*
filename="pamtest", Int_t seed=0).
The Random object that I use is TRandom3 object which has astronomical
large period (in case of default initialization 0). All random generators
in the code use this object by calling of gRandom singleton which keeps
it.

- Corrected TOF digitization routine. No problems with TDC hits due to
hadronic interactions anymore.

- Some small changes was done to compile code under Root 5.23. +
geant4_vmc v. 2.6 without any warnings

- Some classes of PamG4RunConfiguartion was changed for geant4_vmc v.
2.6.Some obsolete classes was deleted as soon as developers implemented
regions.

- Navigation was changed from "geomRootToGeant4" to "geomRoot", because on
VMC web page written that as soon as Geant4 has no option ONLY/MANY
translation of overlapped geometry to Geant4 through VGM could be wrong.
I'd like to stay with Root navigation:
http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default
option.

- New Tracker digitization routine written by Sergio was implemented

- PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20.
 The problem was that ROOT developers introduced in TVirtualMC class a new
method SetMagField and new base class:TVirtualMagField from which
user-defined classes shoukd be derived

1 #ifndef PAMVMC_TRK_HIT_H
2 #define PAMVMC_TRK_HIT_H
3 #include <cmath>
4 #include <iostream>
5
6 #include <TObject.h>
7 #include <TVirtualMC.h>
8 #include <TParticle.h>
9
10 #include "PamVMCGeoID.h"
11 #include "PamVMCDetectorHit.h"
12
13 using std::sqrt;
14 using std::cout;
15 using std::endl;
16
17 class pTrkHitData: public TObject {
18
19 public:
20 Int_t fNXMULT;
21 Int_t fNYMULT; //Particle PDG
22 Float_t fXAVESPE; //PATH length in specific SD in (cm)
23 Float_t fYAVESPE;
24 Float_t fZAVESPE;
25
26 pTrkHitData(): fNXMULT(0), fNYMULT(0),
27 fXAVESPE(0.), fYAVESPE(0.), fZAVESPE(0.) { };
28
29
30 // Kept for back-compatibility
31 void Clean() {
32 fNXMULT = fNYMULT = 0;
33 fXAVESPE = fYAVESPE = fZAVESPE = 0.;
34 }
35
36 void Clear( Option_t * = "") { Clean(); }
37
38 void Print(Option_t * ="" ) const
39 { cout << "pTRKHitData: "<<endl
40 <<"NXMULT: "<<fNXMULT<<endl
41 <<"NYMULT: "<<fNYMULT<<endl
42 <<"XAVESPE: "<<fXAVESPE<<endl
43 <<"YAVESPE: "<<fYAVESPE<<endl
44 <<"ZAVESPE: "<<fZAVESPE<<endl; }
45
46 ClassDef(pTrkHitData,1)
47
48 };
49
50
51 pTrkHitData & operator+=( pTrkHitData &a, const pTrkHitData & p);
52
53
54 class PamVMCTrkHit : public PamVMCDetectorHit
55 {
56 public:
57 PamVMCTrkHit();
58 virtual ~PamVMCTrkHit();
59
60 //Set and Add methods
61
62 virtual void CleanHit(){
63 PamVMCDetectorHit::CleanHit();
64 ftrkhitdata.Clean();
65 }
66
67
68 pTrkHitData * GenTrkHit() { return new pTrkHitData(ftrkhitdata);}
69
70
71 void operator = (const PamVMCTrkHit & );
72
73 void SetNXMULT (Int_t xmult) { ftrkhitdata.fNXMULT = xmult; }
74 void SetNYMULT (Int_t ymult) { ftrkhitdata.fNYMULT = ymult; }
75 void SetXAVESPE (Float_t xave) { ftrkhitdata.fXAVESPE = xave; }
76 void SetYAVESPE (Float_t yave) { ftrkhitdata.fYAVESPE = yave; }
77 void SetZAVESPE (Float_t zave) { ftrkhitdata.fZAVESPE = zave; }
78 //void Reset();
79
80 // Get methods
81
82 const pTrkHitData *GetTrkHit() {return &ftrkhitdata;}
83 Int_t GetNXMULT() { return ftrkhitdata.fNXMULT; };
84 Int_t GetNYMULT() { return ftrkhitdata.fNYMULT; };
85 Float_t GetXAVESPE() { return ftrkhitdata.fXAVESPE; };
86 Float_t GetYAVESPE() { return ftrkhitdata.fYAVESPE; };
87 Float_t GetZAVESPE() { return ftrkhitdata.fZAVESPE; };
88
89
90 protected:
91
92 pTrkHitData ftrkhitdata;
93
94 ClassDef(PamVMCTrkHit,1) //PamVMCTrkHit
95 };
96
97 #endif //PAMVMC_TRK_HIT_H

  ViewVC Help
Powered by ViewVC 1.1.23