Changeset 1782
- Timestamp:
- 02/21/03 15:55:35 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1781 r1782 1 1 2 2 -*-*- END -*-*- 3 2003/02/21: Antonio Stamerra 4 5 * manalysis/MMcTriggerLvl2.[cc|h] 6 - new data member fCompactNN needed to define a compact pixels 7 - new inline functions SetCompactNN and GetCompactNN 8 - Method Calc(int neighpix) -> Calc(). The value of neighpix 9 is read from fCompactNN 10 11 * manalysis/MMcTriggerLvl2Calc.[cc|h] 12 - Check on fCompactNN added in the PreProcess 13 14 * macros/triglvl2.C 15 - Set of fCompactNN added 16 3 17 4 18 2003/02/21: Wolfgang Wittek -
trunk/MagicSoft/Mars/macros/triglvl2.C
r1777 r1782 4 4 // Filters to select events using these parameter are also created. 5 5 // 6 // Inputs: 7 // - filename name of data file 8 // - CompactNN number of NN to define a compact pixel 9 // - fValue comparision value for the filter 10 // 6 11 void triglvl2(char *filename = "Gamma.root") 12 // USER: Data File Name ---^ 7 13 { 8 14 // … … 19 25 parlist.AddToList(&cell); 20 26 27 // Set the number of Next Neighbourhoods that define a compact pixel 28 // 29 cell.SetCompactNN(3); 30 // USER: --^ 21 31 // 22 32 // A filter to select events using the L2T parameters is created … … 24 34 // MF lvl2filter("MMcTriggerLvl2.fLutPseudoSize > 6"); 25 35 MF lvl2filter("MMcTriggerLvl2.fSizeBiggerCell > 16"); 36 // 26 37 // A second filter is created using the class MFTriggerLvl2 27 MFTriggerLvl2 fTrig1("MMcTriggerLvl2", '>', 6); 28 // this is the value to be compared --^ 38 // 39 MFTriggerLvl2 fTrig1("MMcTriggerLvl2", '>', 8); 40 // USER: fValue to be compared --^ 29 41 30 42 // … … 38 50 // 39 51 MFilterList flist; 40 flist.AddToList(&energyfilter);41 flist.AddToList(&lvl2filter);42 flist.AddToList(&selector);52 // flist.AddToList(&energyfilter); 53 // flist.AddToList(&lvl2filter); 54 // flist.AddToList(&selector); 43 55 flist.AddToList(&fTrig1); 44 56 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc
r1776 r1782 29 29 // Storage container for the 2nd level trigger selection parameters // 30 30 // as part of the 2nd level trigger simulation // 31 // // 32 // input parameter: // 33 // fCompactNN number of next neighboors that define a compact pixel // 31 34 // // 32 35 // // … … 236 239 // 237 240 // 238 void MMcTriggerLvl2::Calc(int neighpix) 239 { 241 void MMcTriggerLvl2::Calc() 242 { 243 // Reads the number of NN that define a compact pixel 244 int neighpix=(*this).fCompactNN; 245 240 246 // Find the Lut and cell with the higher LutPseudoSize. 241 247 int lutcell = CalcBiggerLutPseudoSize(neighpix); … … 402 408 int lut=-1; 403 409 404 // only cases neighpix=2,3 (2NN,3NN) are considered405 if (neighpix >3 || neighpix < 2) return(-1);406 407 410 for(int j=0; j<19; j++) 408 411 { … … 430 433 // (=number of compact pixels in one LUT) 431 434 // neighpix is the number of Next-Neighbors which defines the compact pixel 432 // topology. 435 // topology. 433 436 // Up to now only 2NN or 3NN are considered 434 // if changed: change also GetBiggerLutPseudoSize437 // <!if changed: change check made by Preprocess in MMcTriggerLvl2Calc> 435 438 // 436 439 // Returns: -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.h
r1776 r1782 24 24 Int_t fSizeBiggerCell; // Number of fired pixel in bigger cell 25 25 26 Int_t fCompactNN; //Number of NN pixels that define a compact pixel 27 26 28 MMcTrig *fMcTrig; 27 29 MGeomCamMagic *fGeomcam; … … 40 42 void DrawLv1(); 41 43 42 virtual void Calc( int neighpix=2);44 virtual void Calc(); 43 45 44 46 virtual void Print(Option_t *opt="") const; … … 47 49 void SetPixelFired(Int_t pixel, Int_t fired=1); 48 50 51 void SetCompactNN(Int_t neighpix) {fCompactNN=neighpix;} 52 49 53 Int_t GetPseudoSize() {return fPseudoSize;} 50 54 Int_t GetLutPseudoSize() {return fLutPseudoSize;} 51 55 Int_t GetSizeBiggerCell() {return fSizeBiggerCell;} 56 Int_t GetCompactNN() {return fCompactNN;} 52 57 53 58 Int_t GetCellNumberFired(int cell); 54 Int_t GetLutCompactPixel(int cell, int lut, int neighpix =2);59 Int_t GetLutCompactPixel(int cell, int lut, int neighpix); 55 60 56 61 ClassDef(MMcTriggerLvl2,0) // Container for 2nd Level Trigger selection parameters … … 60 65 61 66 67 68 69 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc
r1776 r1782 66 66 67 67 68 // 68 // h1 = new TH1F("h1","h1",30,0,30); 69 69 } 70 70 … … 100 100 } 101 101 102 // Check if the variable fCompactNN has been correctly set; 103 // accepted values for fCompactNN are (up to now) 2 and 3. 104 if (fMMcTriggerLvl2->GetCompactNN()<2 || fMMcTriggerLvl2->GetCompactNN()>3) 105 { 106 *fLog << err << dbginf << "fCompactNN is not correctly set ("<<fMMcTriggerLvl2->GetCompactNN() <<") ... exit" <<endl; 107 return kFALSE; 108 } 109 else 110 *fLog << "Compact pixel is set with at least "<<fMMcTriggerLvl2->GetCompactNN() << " NN" <<endl; 111 112 102 113 return kTRUE; 103 114 } … … 120 131 //fMMcTriggerLvl2->Print(); 121 132 122 // h1->Fill( fMMcTriggerLvl2->GetCellNumberFired(fMMcTriggerLvl2->GetBiggerFiredCell()) );133 // h1->Fill(fMMcTriggerLvl2->GetLutPseudoSize() ); 123 134 124 135 -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.h
r1776 r1782 30 30 Bool_t PostProcess(); 31 31 32 // TH1F *h1; 33 32 34 ClassDef(MMcTriggerLvl2Calc, 0) // Task to calculate the MMcTriggerLvl2 Parameters 33 35 };
Note:
See TracChangeset
for help on using the changeset viewer.