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

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