|
Last change
on this file since 426 was 420, checked in by harald, 26 years ago |
|
add the member function SetZeroLevel().
|
|
File size:
1.7 KB
|
| 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 nZeroLevel ;
|
|---|
| 25 | Short_t nFirstLevel ; // Number of First Level Trigger in this Event
|
|---|
| 26 | Short_t nSecondLevel ; // Number of Second Level Trigger in this Event
|
|---|
| 27 |
|
|---|
| 28 | Float_t timeFirst; // Time when it triggers
|
|---|
| 29 | Int_t pixelFirst; // Pixel which triggers
|
|---|
| 30 |
|
|---|
| 31 | public:
|
|---|
| 32 | MMcTrig() ;
|
|---|
| 33 |
|
|---|
| 34 | ~MMcTrig();
|
|---|
| 35 |
|
|---|
| 36 | void Clear();
|
|---|
| 37 |
|
|---|
| 38 | void Print(Option_t *);
|
|---|
| 39 |
|
|---|
| 40 | void SetTopology(Short_t nTop) {
|
|---|
| 41 | topology=nTop;
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | void SetMultiplicity(Short_t nMul) {
|
|---|
| 45 | multiplicity=nMul;
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | void SetThreshold(Float_t fthr[]){
|
|---|
| 49 | int i;
|
|---|
| 50 | for(i=0;i<TRIGGER_PIXELS;i++){
|
|---|
| 51 | threshold[i]=fthr[i];
|
|---|
| 52 | }
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | void SetZeroLevel (Short_t nTr) {
|
|---|
| 56 | nZeroLevel = nTr ;
|
|---|
| 57 | }
|
|---|
| 58 |
|
|---|
| 59 | void SetFirstLevel ( Short_t nTr ) {
|
|---|
| 60 | nFirstLevel = nTr ;
|
|---|
| 61 | }
|
|---|
| 62 | void SetSecondLevel ( Short_t nTr ) {
|
|---|
| 63 | nSecondLevel = nTr ;
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | void SetTime( Float_t t){
|
|---|
| 67 | timeFirst=t;
|
|---|
| 68 | }
|
|---|
| 69 |
|
|---|
| 70 | void SetPixel( Int_t iPix){
|
|---|
| 71 | pixelFirst=iPix;
|
|---|
| 72 | }
|
|---|
| 73 |
|
|---|
| 74 | int GetFirstLevel() {
|
|---|
| 75 | return ( nFirstLevel );
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
| 78 | ClassDef(MMcTrig, 1) //Stores Montecarlo Information
|
|---|
| 79 |
|
|---|
| 80 | };
|
|---|
| 81 |
|
|---|
| 82 | #endif
|
|---|
| 83 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.