Ignore:
Timestamp:
01/26/04 16:10:29 (21 years ago)
Author:
galante
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.h

    r2446 r2918  
    77
    88class MMcTrig;
    9 
    109class MMcEvt;
    11 
    1210class MGeomCamMagic;
    13 
    1411class MGeomCam;
    1512class MGeomPix;
     
    1714class MMcTriggerLvl2 : public MParContainer
    1815{
     16 private:
     17 
     18  // Global trigger variables related to the geometry and trigger structures are here defined. 
     19  // FIXME!  this is a temporary solution: these variables should be defined in a GeomTrg class   
    1920
    20  private:
     21  static const Int_t fNumPixCell = 36; // Number of pixels in one cell
    2122
    22   Int_t fPixels[36][19];  // Array with flag for triggered pixels. 1st idx:pixels in trigger cell; 2nd idx:trigger cell number 
     23  static const Int_t gsNCells = 19;   
     24  static const Int_t gsNTrigPixels = 397;   
     25  static const Int_t gsNPixInCell = 36; 
     26  static const Int_t gsNLutInCell = 3; 
     27  static const Int_t gsNPixInLut = 12;
     28  Int_t fPixels[gsNPixInCell][gsNCells]; 
     29 
     30  // Array with flag for triggered pixels. 1st idx:pixels in trigger cell; 2nd idx:trigger cell number     
    2331
    24   Int_t fFiredPixel[397]; // Array with flag for triggered pixel. idx: pixel id
     32  Int_t fFiredPixel[gsNTrigPixels]; // Array with flag for triggered pixel. idx: pixel id   
     33  static const Int_t gsPixelsInCell[gsNPixInCell][gsNCells];   
     34  static const Int_t gsPixelsInLut[gsNLutInCell][gsNPixInLut];     
    2535
    26   static const Int_t gsPixelsInCell[36][19];
    27   static const Int_t gsPixelsInLut[3][12];
     36  Int_t fMaxCell;  // Cell with maximum number of fired pixels
    2837
    29   Int_t fLutPseudoSize;  // number of compact pixels in one lut
    30   Int_t fPseudoSize;  // Multiplicity of the cluster identified by the L2T
    31   Int_t fSizeBiggerCell; // Number of fired pixel in bigger cell
     38  Int_t fLutPseudoSize;   // number of compact pixels in one lut   
     39  Int_t fPseudoSize;   // Multiplicity of the cluster identified by the L2T   
     40  Int_t fSizeBiggerCell; // Number of fired pixel in bigger cell   
     41  Int_t fCompactNN;    //Number of NN pixels that define a compact pixel   
     42  Int_t fCompactPixel[gsNTrigPixels]; //Array with flag for compact pixels   
     43  Int_t fCluster_pix[gsNTrigPixels]; //Array with pixel in cluster   
     44  Double_t fEnergy;  // Energy of the shower   
     45  Int_t fTriggerPattern; // x-NN compact trigger pattern;   
     46  Int_t fCellPseudoSize; // number of compact pixels in one cell   
     47  //  Int_t fCellCompactPixels[fNumPixCell]; // Array with compact pixels in cell
    3248
    33   Int_t fCompactNN;  //Number of NN pixels that define a compact pixel
    34 
    35   Int_t fCompactPixel[397]; //Array with flag for compact pixels
    36 
    37   Int_t fCluster_pix[397]; //Array with pixel in cluster
    38 
    39   Double_t fEnergy;  // Energy of the shower
    40 
    41   Int_t fTriggerPattern; // x-NN compact trigger pattern;
    42 
    43   MMcTrig *fMcTrig;
    44   MGeomCam *fGeomCam; 
    45 
    46   Int_t CalcBiggerFiredCell();
    47   Int_t CalcBiggerLutPseudoSize();
    48   void CalcPseudoSize();
    49    
    50   void SetNewCamera(MGeomCam *geom) {fGeomCam = geom;}
    51 
    52  public:
    53 
    54   MMcTriggerLvl2(const char* name = NULL, const char* title = NULL);
    55   ~MMcTriggerLvl2(); 
    56  
    57 
    58   virtual void Calc();
    59 
    60   virtual void Print(Option_t *opt="") const;
    61 
    62   void SetLv1(MMcTrig *trig = NULL);
    63   void SetPixelFired(Int_t pixel, Int_t fired=1);
    64  
    65   void SetCompactNN(Int_t neighpix)     {fCompactNN=neighpix;}
    66 
    67   Int_t GetPseudoSize() const     {return fPseudoSize;}
    68   Int_t GetLutPseudoSize() const  {return fLutPseudoSize;}
    69   Int_t GetSizeBiggerCell() const {return fSizeBiggerCell;}
    70   Int_t GetCompactNN() const      {return fCompactNN;}
    71 
    72   Int_t GetCellNumberFired(int cell);
    73   Int_t GetLutCompactPixel(int cell, int lut);
     49  MMcTrig *fMcTrig;   
     50  MGeomCam *fGeomCam;     
    7451
    7552  void CalcCompactPixels(MGeomCam *fCam);
     53  void CalcTriggerPattern(MGeomCam *fCam);   
     54  Int_t CalcBiggerFiredCell();   
     55  Int_t CalcBiggerLutPseudoSize();   
     56  void CalcPseudoSize();   
     57  Int_t CalcCellPseudoSize();   
     58  Int_t CalcBiggerCellPseudoSize();   
     59  Int_t GetCellCompactPixel(int cell, MGeomCam *fCam);
    7660
    77   void GetEnergy(MMcEvt *fMcEvt = NULL);
     61  void SetNewCamera(MGeomCam *geom) {fGeomCam = geom;}   
    7862
    79   Double_t GetEnergy() const    {return fEnergy;}
    80  
    81   void CalcTriggerPattern(MGeomCam *fCam);
    82   Int_t GetTriggerPattern() const {return fTriggerPattern;}
     63 public:     
    8364
     65  MMcTriggerLvl2(const char* name = NULL, const char* title = NULL);   
     66  ~MMcTriggerLvl2();     
    8467
    85   ClassDef(MMcTriggerLvl2,0) // Container for 2nd Level Trigger selection parameters
    86 };
     68  virtual void Calc();   
     69  virtual void Print(Option_t *opt="") const;   
    8770
    88 #endif
     71  void SetLv1(MMcTrig *trig = NULL);   
     72  void SetPixelFired(Int_t pixel, Int_t fired=1);     
     73  void SetCompactNN(Int_t neighpix)     {fCompactNN=neighpix;}   
    8974
     75  Int_t GetPseudoSize() const     {return fPseudoSize;}   
     76  Int_t GetLutPseudoSize() const  {return fLutPseudoSize;}   
     77  Int_t GetSizeBiggerCell() const {return fSizeBiggerCell;}   
     78  Int_t GetCompactNN() const      {return fCompactNN;}   
     79  Int_t GetCellPseudoSize() const {return fCellPseudoSize;}
     80  Int_t GetMaxCell() const        {return (fMaxCell+1);} // Returns
     81                     // cell with maximum number of compact pixels
     82  Int_t GetCellNumberFired(int cell);   
     83  Int_t GetLutCompactPixel(int cell, int lut);   
     84   
     85  Int_t GetTriggerPattern() const {return fTriggerPattern;}   
    9086
     87  void GetEnergy(MMcEvt *fMcEvt = NULL);   
     88  Double_t GetEnergy() const    {return fEnergy;}     
    9189
     90  Bool_t IsPixelInCell(Int_t pixel, Int_t cell);   
    9291
    93 
     92  ClassDef(MMcTriggerLvl2,0) // Container for 2nd Level Trigger selection parameters
     93    }; 
     94   
     95#endif     
     96   
Note: See TracChangeset for help on using the changeset viewer.