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

Last change on this file since 1248 was 1247, checked in by blanch, 24 years ago
Changes needed to put the actual size of the trigger zone. Actually, now information about all pixels are saved, just that the ones out of the trigger zone will have a very large discriminator threshold. Header file for MMcTrigHeader.cxx v 1.3
File size: 2.1 KB
Line 
1#ifndef __MMcTrigHeader__
2#define __MMcTrigHeader__
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#include "MTriggerDefine.h"
9#include "Mdefine.h"
10
11class MMcTrigHeader : public MParContainer{
12 private:
13
14 Short_t fTopology ; // Topology of the trigger
15 // 0 = N-1 neighbours of one pixel
16 // 1 = N neighbours
17 // 2 = N closed pack
18 Short_t fMultiplicity ; // Pixel multiplicity of trigger configuration
19 Float_t fThreshold[CAMERA_PIXELS] ; // Threshold for trigger
20 UInt_t fTrigPattern[2]; // Used to inddentify with
21 // RawEvt::Trigger Pattern identification
22 Float_t fTrigShape ; // a number that indicate the shape type of
23 // the signal
24 // = 0 --> a gaussian
25 Float_t fAmplTrig ; // the amplitude of the trigger in mV
26 Float_t fFwhmTrig ; // the width of the signal in nsec
27 Float_t fOverlapingTime;// Minimum coincidence time
28 Float_t fGateLeng; // the length of the digital signal if analog signal is above threshold
29
30 public:
31 MMcTrigHeader() ;
32
33 ~MMcTrigHeader();
34
35 void Print(Option_t *opt=NULL) const;
36
37 void SetTopology(Short_t nTop) {
38 fTopology=nTop;
39 }
40
41 void SetMultiplicity(Short_t nMul) {
42 fMultiplicity=nMul;
43 }
44
45 void SetThreshold(Float_t fthr[]){
46 int i;
47 for(i=0;i<CAMERA_PIXELS;i++){
48 fThreshold[i]=fthr[i];
49 }
50 }
51
52 void SetTrigPattern (UInt_t upi, UInt_t loi){
53
54 if (upi==loi==0) {
55 fTrigPattern[0]= (UInt_t) fThreshold[0];
56 fTrigPattern[1]= (UInt_t) (100*fMultiplicity+fTopology);
57 }
58 else {
59 fTrigPattern[0]=upi;
60 fTrigPattern[1]=loi;
61 }
62 }
63
64 void SetShape(Float_t shape){
65 fTrigShape=shape;
66 }
67
68 void SetAmplitud(Float_t amp){
69 fAmplTrig=amp;
70 }
71
72 void SetFwhm(Float_t fwhm){
73 fFwhmTrig=fwhm;
74 }
75
76 void SetOverlap(Float_t overlap){
77 fOverlapingTime=overlap;
78 }
79
80 void SetGate(Float_t gate){
81 fGateLeng=gate;
82 }
83
84 ClassDef(MMcTrigHeader, 2) //Stores Montecarlo Information which describes the used trigger
85
86};
87
88#endif
89
Note: See TracBrowser for help on using the repository browser.