Changeset 4838 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 09/03/04 09:33:43 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCameraData.cc
r4716 r4838 374 374 // -------------------------------------------------------------------------- 375 375 // 376 // Function to calculate the cleaning level for all pixels in a given event. 377 // The level is the absolute number of photons times the area-ratio. 378 // 379 void MCameraData::CalcCleaningAbsolute(const MCerPhotEvt &evt, const MGeomCam &geom) 380 { 381 const Int_t n = geom.GetNumPixels(); 382 383 // Reset arrays 384 fData.Set(n); 385 fData.Reset(); 386 387 fValidity.Set(n); 388 fValidity.Reset(); 389 390 const Int_t entries = evt.GetNumPixels(); 391 392 // calculate cleaning levels 393 for (Int_t i=0; i<entries; i++) 394 { 395 const MCerPhotPix &spix = evt[i]; 396 397 const Int_t idx = spix.GetPixId(); 398 399 // Set probability 400 fData[idx] = spix.GetNumPhotons() * geom.GetPixRatio(idx); 401 fValidity[idx] = 1; 402 } 403 } 404 405 // -------------------------------------------------------------------------- 406 // 376 407 // Returns the contents of the pixel. 377 408 // -
trunk/MagicSoft/Mars/manalysis/MCameraData.h
r4716 r4838 45 45 void CalcCleaningProbability(const MCerPhotEvt &evt, const MPedPhotCam &pcam, 46 46 const MGeomCam &geom, const MArrivalTime *tcam); 47 void CalcCleaningAbsolute(const MCerPhotEvt &evt, const MGeomCam &geom); 47 48 48 49 const TArrayD &GetData() const { return fData; }
Note:
See TracChangeset
for help on using the changeset viewer.