source: trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.hxx@ 1062

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