source: trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.h@ 1999

Last change on this file since 1999 was 1998, checked in by stamerra, 23 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MMcTriggerLvl2
2#define MARS_MMcTriggerLvl2
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MMcTrig;
9
10class MCamDisplay;
11class MGeomCamMagic;
12
13class MGeomCam;
14class MGeomPix;
15
16class MCluster;
17
18class MMcTriggerLvl2 : public MParContainer
19{
20
21 private:
22
23 Int_t fPixels[36][19]; // Array with flag for triggered pixels. 1st idx:pixels in trigger cell; 2nd idx:trigger cell number
24
25 Int_t fFiredPixel[397]; // Array with flag for triggered pixel. idx: pixel id
26
27 static const Int_t gsPixelsInCell[36][19];
28 static const Int_t gsPixelsInLut[3][12];
29
30 Int_t fLutPseudoSize; // number of compact pixels in one lut
31 Int_t fPseudoSize; // Multiplicity of the cluster identified by the L2T
32 Int_t fSizeBiggerCell; // Number of fired pixel in bigger cell
33
34 Int_t fCompactNN; //Number of NN pixels that define a compact pixel
35
36 Int_t fCompactPixel[397]; //Array with flag for compact pixels
37
38 Int_t fCluster_pix[397]; //Array with pixel in cluster
39
40 MMcTrig *fMcTrig;
41 MGeomCam *fGeomCam;
42 MCamDisplay *fCam;
43 // MCluster *fClust;
44
45 Int_t CalcBiggerFiredCell();
46 Int_t CalcBiggerLutPseudoSize();
47 void CalcPseudoSize();
48
49 void SetNewCamera(MGeomCam *geom) {fGeomCam = geom;}
50
51 public:
52
53 MMcTriggerLvl2(const char* name = NULL, const char* title = NULL);
54 ~MMcTriggerLvl2();
55
56 void DrawCell(Int_t cell);
57 void DrawLv1();
58
59 virtual void Calc();
60
61 virtual void Print(Option_t *opt="") const;
62
63 void SetLv1(MMcTrig *trig = NULL);
64 void SetPixelFired(Int_t pixel, Int_t fired=1);
65
66 void SetCompactNN(Int_t neighpix) {fCompactNN=neighpix;}
67
68 Int_t GetPseudoSize() const {return fPseudoSize;}
69 Int_t GetLutPseudoSize() const {return fLutPseudoSize;}
70 Int_t GetSizeBiggerCell() const {return fSizeBiggerCell;}
71 Int_t GetCompactNN() const {return fCompactNN;}
72
73 Int_t GetCellNumberFired(int cell);
74 Int_t GetLutCompactPixel(int cell, int lut);
75
76 void CalcCompactPixels(MGeomCam *fCam);
77
78
79 ClassDef(MMcTriggerLvl2,0) // Container for 2nd Level Trigger selection parameters
80};
81
82#endif
83
84
85
86
87
Note: See TracBrowser for help on using the repository browser.