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

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