1 | #ifndef __MMcTrig__
|
---|
2 | #define __MMcTrig__
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include "MTriggerDefine.h"
|
---|
9 | #include "Mdefine.h"
|
---|
10 |
|
---|
11 | class MMcTrig : public MParContainer {
|
---|
12 | private:
|
---|
13 |
|
---|
14 | Short_t fNumFirstLevel ; // Number of First Level Trigger in this Event
|
---|
15 | Short_t fNumSecondLevel ; // Number of Second Level Trigger in this Event
|
---|
16 |
|
---|
17 | Float_t fTimeFirst[((Int_t)(TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME))+1];
|
---|
18 | // Time when it triggers
|
---|
19 | Byte_t fPixelsFirst[((Int_t)(CAMERA_PIXELS/8))+1][((Int_t)(TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME))+1];
|
---|
20 | // Pixel which are above threshold when trigger happens
|
---|
21 | Short_t fFirstToSecond[((Int_t)(TOTAL_TRIGGER_TIME/LEVEL2_DEAD_TIME))+1];
|
---|
22 |
|
---|
23 | public:
|
---|
24 | MMcTrig(const char *name=NULL, const char *title=NULL);
|
---|
25 |
|
---|
26 | ~MMcTrig();
|
---|
27 |
|
---|
28 | void Clear(Option_t *opt=NULL);
|
---|
29 |
|
---|
30 | void Print(Option_t *opt=NULL) const;
|
---|
31 |
|
---|
32 | void SetFirstLevel ( Short_t nTr ) {
|
---|
33 | fNumFirstLevel = nTr ;
|
---|
34 | }
|
---|
35 | void SetSecondLevel ( Short_t nTr ) {
|
---|
36 | fNumSecondLevel = nTr ;
|
---|
37 | }
|
---|
38 |
|
---|
39 | void SetTime( Float_t t, Int_t i);
|
---|
40 |
|
---|
41 | void SetMapPixels(Byte_t *map,Int_t nfirst){
|
---|
42 | //
|
---|
43 | // It sets the map of pixel that are above the trheshold
|
---|
44 | //
|
---|
45 |
|
---|
46 | int i;
|
---|
47 |
|
---|
48 | for(i=0;i<((Int_t)(CAMERA_PIXELS/8))+1;i++){
|
---|
49 | fPixelsFirst[i][nfirst]=map[i];
|
---|
50 | }
|
---|
51 | }
|
---|
52 |
|
---|
53 | Int_t GetFirstLevel() const {
|
---|
54 | return ( fNumFirstLevel );
|
---|
55 | }
|
---|
56 |
|
---|
57 | Byte_t IsPixelFired(Int_t npix, Int_t nfirstlevel);
|
---|
58 |
|
---|
59 | ClassDef(MMcTrig, 2) //Stores Montecarlo Information (number of 1st, 2nd level triggers)
|
---|
60 |
|
---|
61 | };
|
---|
62 |
|
---|
63 | #endif
|
---|