Changeset 1179 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/15/02 09:05:50 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
r1167 r1179 25 25 ///////////////////////////////////////////////////////////////////////////// 26 26 // // 27 // MBlindPixelCalc // 28 // // 29 // This is the specific image cleaning for a list of pixels.This task // 30 // remove from the analysis the pixels taht are listed in fPixelsID. // 27 // MBlindPixelCalc // 28 // // 29 // This is the specific image cleaning for a list of pixels. This task // 30 // sets the pixels listed in fPixelsID to unused so they should not be // 31 // used for analysis (eg calculation of hillas parameters). // 32 // // 33 // If you specify an array of pixel IDs this pixels are disabled. // 34 // In all other cases the task tries to determin the starfield from the // 35 // MMcRunHeader and disables pixels correspoding to the starfield. // 36 // // 37 // Implemented star fields: // 38 // - Crab: 400, 401, 402, 437, 438, 439 // 31 39 // // 32 40 // Input Containers: // … … 34 42 // // 35 43 // Output Containers: // 36 // MBlindPixels 44 // MBlindPixels // 37 45 // // 38 46 ///////////////////////////////////////////////////////////////////////////// … … 63 71 // -------------------------------------------------------------------------- 64 72 // 65 // check if there are blind pixels if not skip this task from task list. 66 // check if MCerPhotEvt exists in the Parameter list if not the analysis 67 // stops. 73 // - Try to find or create MBlindPixels in parameter list. 74 // - get the MCerPhotEvt from the parlist (abort if missing) 75 // - if no pixels are given by the user try to determin the starfield 76 // from the monte carlo run header. 68 77 // 69 78 Bool_t MBlindPixelCalc::PreProcess (MParList *pList) … … 97 106 UShort_t numids = fPixelsID.GetSize(); 98 107 99 cout<<"HOLA "<<numids<<endl;100 101 108 for(Int_t i = 0; i<numids; i++) 102 109 fPixels->SetPixelBlind(fPixelsID[i]); … … 118 125 // (set them to 'unused' state) 119 126 // 120 for (UShort_t i=0; i<entries; i++ 127 for (UShort_t i=0; i<entries; i++) 121 128 { 122 129 MCerPhotPix &pix = (*fEvt)[i]; … … 142 149 } 143 150 151 // -------------------------------------------------------------------------- 152 // 153 // - Check whether pixels to disable are available. If pixels are 154 // given by the user nothing more is done. 155 // - Otherwise try to determin the blind pixels from the starfield 156 // given in MMcRunHeader. 157 // 144 158 Bool_t MBlindPixelCalc::ReInit(MParList *pList) 145 159 { -
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h
r1149 r1179 19 19 MBlindPixels *fPixels; //! 20 20 21 TArrayS fPixelsID; // Pixel IDs for blind pixels, which 22 // are entered by the user. 21 TArrayS fPixelsID; // Pixel IDs for blind pixels, which are entered by the user. 22 23 23 public: 24 24 MBlindPixelCalc(const char *name=NULL, const char *title=NULL); … … 30 30 virtual Bool_t ReInit(MParList *pList); 31 31 32 ClassDef(MBlindPixelCalc, 0) // task removing from analysis some pixels32 ClassDef(MBlindPixelCalc, 0) // task to disable given pixels for analysis 33 33 }; 34 34
Note:
See TracChangeset
for help on using the changeset viewer.