| 1 |
nikolas |
1.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():PamVMCDigitizer("ND"){; } |
| 35 |
|
|
|
| 36 |
|
|
|
| 37 |
|
|
virtual ~PamVMCNDDig(){ ;} |
| 38 |
|
|
|
| 39 |
|
|
|
| 40 |
|
|
void Digitize(); |
| 41 |
|
|
|
| 42 |
|
|
|
| 43 |
|
|
ClassDef(PamVMCNDDig,1) |
| 44 |
|
|
}; |
| 45 |
|
|
|
| 46 |
|
|
|
| 47 |
|
|
|
| 48 |
|
|
|
| 49 |
|
|
#endif //PAMVMC_ND_DIG_H |