source: trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.hxx@ 770

Last change on this file since 770 was 612, checked in by magicsol, 24 years ago
It comes from MHeaderTrig. There has been a change in the naming convention and some new members, which describes the trigger properties, have been added.
File size: 2.2 KB
Line 
1#ifndef __MMcTrigHeader__
2#define __MMcTrigHeader__
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 "MParContainer.h"
12
13#include "MTriggerDefine.h"
14
15class MMcTrigHeader : public MParContainer{
16 private:
17
18 Short_t fTopology ; // Topology of the trigger
19 // 0 = N-1 neighbours of one pixel
20 // 1 = N neighbours
21 // 2 = N closed pack
22 Short_t fMultiplicity ; // Pixel multiplicity of trigger configuration
23 Float_t fThreshold[TRIGGER_PIXELS] ; // Threshold for trigger
24 UInt_t fTrigPattern[2]; // Used to inddentify with
25 // RawEvt::Trigger Pattern identification
26 Float_t fTrigShape ; // a number that indicate the shape type of
27 // the signal
28 // = 0 --> a gaussian
29 Float_t fAmplTrig ; // the amplitude of the trigger in mV
30 Float_t fFwhmTrig ; // the width of the signal in nsec
31 Float_t fOverlapingTime;// Minimum coincidence time
32 Float_t fGateLeng; // the length of the digital signal if analog signal is above threshold
33
34 public:
35 MMcTrigHeader() ;
36
37 ~MMcTrigHeader();
38
39 void Print(Option_t *);
40
41 void SetTopology(Short_t nTop) {
42 fTopology=nTop;
43 }
44
45 void SetMultiplicity(Short_t nMul) {
46 fMultiplicity=nMul;
47 }
48
49 void SetThreshold(Float_t fthr[]){
50 int i;
51 for(i=0;i<TRIGGER_PIXELS;i++){
52 fThreshold[i]=fthr[i];
53 }
54 }
55
56 void SetTrigPattern (UInt_t upi, UInt_t loi){
57
58 if (upi==loi==0) {
59 fTrigPattern[0]= (UInt_t) fThreshold[0];
60 fTrigPattern[1]= (UInt_t) (100*fMultiplicity+fTopology);
61 }
62 else {
63 fTrigPattern[0]=upi;
64 fTrigPattern[1]=loi;
65 }
66 }
67
68 void SetShape(Float_t shape){
69 fTrigShape=shape;
70 }
71
72 void SetAmplitud(Float_t amp){
73 fAmplTrig=amp;
74 }
75
76 void SetFwhm(Float_t fwhm){
77 fFwhmTrig=fwhm;
78 }
79
80 void SetOverlap(Float_t overlap){
81 fOverlapingTime=overlap;
82 }
83
84 void SetGate(Float_t gate){
85 fGateLeng=gate;
86 }
87
88 ClassDef(MMcTrigHeader, 1) //Stores Montecarlo Information
89
90};
91
92#endif
93
Note: See TracBrowser for help on using the repository browser.