Changeset 1782 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 02/21/03 15:55:35 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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.