| 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 |