/[PAMELA software]/trieste/pamVMC/nd/include/PamVMCNDDig.h
ViewVC logotype

Contents of /trieste/pamVMC/nd/include/PamVMCNDDig.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 24 14:04:02 2009 UTC (15 years, 11 months ago) by pizzolot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -2 lines
File MIME type: text/plain
setting of random seed; new distribution for primary generation

1 #ifndef PAMVMC_ND_DIG_H
2 #define PAMVMC_ND_DIG_H
3
4 #include "PamVMCDigitizer.h"
5
6 #define NTUBES 36
7
8
9 typedef vector <PamVMCDetectorHit*> pHits;
10
11 using std::cout;
12 using std::endl;
13
14 class PamVMCNDDig : public PamVMCDigitizer {
15
16 pHits fpHits; //hits, sorted by time
17 vector <Double_t> tauHits [NTUBES]; //array of vectors, conains tau for hits
18 pHits tubeHits [NTUBES]; //hits, sorted by time and by tubes
19
20
21 Bool_t IsInsideVector(PamVMCDetectorHit* phit){
22 pHits::const_iterator p = fpHits.begin();
23 while( p!=fpHits.end() )
24 {
25 if (phit==(*p)) return kTRUE;
26 p++;
27 }
28 return kFALSE;
29 }
30
31
32 public:
33
34 PamVMCNDDig(UInt_t seed):PamVMCDigitizer("ND"){
35 rnd = new TRandom3(seed);
36 }
37
38
39 virtual ~PamVMCNDDig(){ ;}
40
41
42 void Digitize();
43
44
45 ClassDef(PamVMCNDDig,2)
46 };
47
48
49
50
51 #endif //PAMVMC_ND_DIG_H

  ViewVC Help
Powered by ViewVC 1.1.23