Line | |
---|
1 | #ifndef __MMcTrig__
|
---|
2 | #define __MMcTrig__
|
---|
3 |
|
---|
4 | #include <stdlib.h>
|
---|
5 | #include <stdio.h>
|
---|
6 | #include <string.h>
|
---|
7 | #include <unistd.h>
|
---|
8 | #include <fcntl.h>
|
---|
9 |
|
---|
10 | #include <iostream.h>
|
---|
11 | #include "TObject.h"
|
---|
12 |
|
---|
13 | #include "../Simulation/Detector/include-MTrigger/MTriggerDefine.h"
|
---|
14 |
|
---|
15 | class MMcTrig : public TObject {
|
---|
16 | private:
|
---|
17 | Short_t topology ; // Topology of the trigger
|
---|
18 | // 0 = N-1 neighbours of one pixel
|
---|
19 | // 1 = N neighbours
|
---|
20 | // 2 = N closed pack
|
---|
21 | Short_t multiplicity ; // Pixel multiplicity of trigger configuration
|
---|
22 | Float_t threshold[TRIGGER_PIXELS] ; // Threshold for trigger
|
---|
23 |
|
---|
24 | Short_t nFirstLevel ; // Number of First Level Trigger in this Event
|
---|
25 | Short_t nSecondLevel ; // Number of Second Level Trigger in this Event
|
---|
26 |
|
---|
27 | Float_t timeFirst; // Time when it triggers
|
---|
28 | Int_t pixelFirst; // Pixel which triggers
|
---|
29 |
|
---|
30 | public:
|
---|
31 | MMcTrig() ;
|
---|
32 |
|
---|
33 | ~MMcTrig();
|
---|
34 |
|
---|
35 | void Clear();
|
---|
36 |
|
---|
37 | void Print(Option_t *);
|
---|
38 |
|
---|
39 | void SetTopology(Short_t nTop) {
|
---|
40 | topology=nTop;
|
---|
41 | }
|
---|
42 |
|
---|
43 | void SetMultiplicity(Short_t nMul) {
|
---|
44 | multiplicity=nMul;
|
---|
45 | }
|
---|
46 |
|
---|
47 | void SetThreshold(Float_t fthr[]){
|
---|
48 | int i;
|
---|
49 | for(i=0;i<TRIGGER_PIXELS;i++){
|
---|
50 | threshold[i]=fthr[i];
|
---|
51 | }
|
---|
52 | }
|
---|
53 |
|
---|
54 | void SetFirstLevel ( Short_t nTr ) {
|
---|
55 | nFirstLevel = nTr ;
|
---|
56 | }
|
---|
57 | void SetSecondLevel ( Short_t nTr ) {
|
---|
58 | nSecondLevel = nTr ;
|
---|
59 | }
|
---|
60 |
|
---|
61 | void SetTime( Float_t t){
|
---|
62 | timeFirst=t;
|
---|
63 | }
|
---|
64 |
|
---|
65 | void SetPixel( Int_t iPix){
|
---|
66 | pixelFirst=iPix;
|
---|
67 | }
|
---|
68 |
|
---|
69 | int GetFirstLevel() {
|
---|
70 | return ( nFirstLevel );
|
---|
71 | }
|
---|
72 |
|
---|
73 | ClassDef(MMcTrig, 1) //Stores Montecarlo Information
|
---|
74 |
|
---|
75 | };
|
---|
76 |
|
---|
77 | #endif
|
---|
78 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.