source: trunk/MagicSoft/include-Classes/MMcFormat/MHeaderTrig.hxx@ 617

Last change on this file since 617 was 584, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef __MHeaderTrig__
2#define __MHeaderTrig__
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 "MTriggerDefine.h"
14
15class MHeaderTrig : public TObject {
16 private:
17
18 Short_t topology ; // Topology of the trigger
19 // 0 = N-1 neighbours of one pixel
20 // 1 = N neighbours
21 // 2 = N closed pack
22 Short_t multiplicity ; // Pixel multiplicity of trigger configuration
23 Float_t threshold[TRIGGER_PIXELS] ; // Threshold for trigger
24 UInt_t TriggerPattern[2]; // Used to inddentify with
25 // RawEvt::Trigger Pattern identification
26
27 public:
28 MHeaderTrig() ;
29
30 ~MHeaderTrig();
31
32 void Print(Option_t *);
33
34 void SetTopology(Short_t nTop) {
35 topology=nTop;
36 }
37
38 void SetMultiplicity(Short_t nMul) {
39 multiplicity=nMul;
40 }
41
42 void SetThreshold(Float_t fthr[]){
43 int i;
44 for(i=0;i<TRIGGER_PIXELS;i++){
45 threshold[i]=fthr[i];
46 }
47 }
48
49 void SetTriggerPattern (UInt_t upi, UInt_t loi){
50
51 if (upi==loi==0) {
52 TriggerPattern[0]= (UInt_t) threshold[0];
53 TriggerPattern[1]= (UInt_t) (100*multiplicity+topology);
54 }
55 else {
56 TriggerPattern[0]=upi;
57 TriggerPattern[1]=loi;
58 }
59 }
60
61 ClassDef(MHeaderTrig, 1) //Stores Montecarlo Information
62
63};
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.