Changeset 695 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 03/20/01 17:25:33 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 8 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/AnalysisIncl.h
r597 r695 1 1 #ifndef __CINT__ 2 3 2 4 3 #include <TClonesArray.h> -
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r653 r695 11 11 #pragma link C++ class MCT1Pedestals; 12 12 13 #pragma link C++ class MPedestalPix; 14 #pragma link C++ class MPedestalCam; 15 16 #pragma link C++ class MHillas; 17 #pragma link C++ class MHillasCalc; 18 13 19 #endif -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r653 r695 8 8 9 9 #include "MLog.h" 10 #include "MGeomCam.h"11 10 #include "MCamNeighbor.h" 12 11 #include "MCamDisplay.h" … … 15 14 ClassImp(MCerPhotEvt) 16 15 17 MCerPhotEvt::MCerPhotEvt(const char *name, const char *title ) : fType(0), fNbPixels(0)16 MCerPhotEvt::MCerPhotEvt(const char *name, const char *title) : fNumPixels(0) 18 17 { 19 18 // the default constructor … … 31 30 } 32 31 32 #include "MGeomCamMagic.h" 33 #include "MGeomCamCT1.h" 34 33 35 void MCerPhotEvt::Draw(Option_t* option) 34 36 { 35 // FIXME!!! 36 // 37 38 MCamDisplay *disp = new MCamDisplay(fType) ; 39 40 disp->DrawPhotNum(this) ; 41 } 42 43 Int_t MCerPhotEvt::GetNbPixels() 44 { 45 return fNbPixels; 37 // 38 // FIXME!!! Here the Draw function of the CamDisplay 39 // should be called to add the CamDisplay to the Pad. 40 // The drawing should be done in MCamDisplay::Paint 41 // 42 43 // MGeomCam *geom = fType ? new MGeomCamMagic : new MGeomCamCT1; 44 // MCamDisplay *disp = new MCamDisplay(geom); 45 // delete geom; 46 // disp->DrawPhotNum(this); 47 } 48 49 Int_t MCerPhotEvt::GetNumPixels() 50 { 51 return fNumPixels; 46 52 } 47 53 … … 52 58 // of valid pixels in the list by one 53 59 // 54 (*fPixels)[fN bPixels++] = new MCerPhotPix( id, nph, err);60 (*fPixels)[fNumPixels++] = new MCerPhotPix( id, nph, err); 55 61 } 56 62 … … 60 66 // reset counter and delete netries in list. 61 67 // 62 fN bPixels = 0 ;68 fNumPixels = 0 ; 63 69 fPixels->Clear() ; 64 70 } … … 69 75 70 76 *fLog << "MCerPhotEvt::Print()" << endl 71 << "Number of Pixels: " << fN bPixels77 << "Number of Pixels: " << fNumPixels 72 78 << "(" << entries << ")" 73 79 << endl ; … … 276 282 } 277 283 278 Float_t MCerPhotEvt::Get MinNumPhotons()284 Float_t MCerPhotEvt::GetNumPhotonsMin() 279 285 { 280 286 // 281 287 // get the minimum number of photons of all valid pixels in the list 282 288 // 283 if (fN bPixels <= 0)289 if (fNumPixels <= 0) 284 290 return -5. ; 285 291 … … 287 293 288 294 Float_t testval; 289 for (Int_t i=1 ; i<fN bPixels; i++ )295 for (Int_t i=1 ; i<fNumPixels; i++ ) 290 296 { 291 297 testval = (*this)[i].GetNumPhotons(); … … 298 304 } 299 305 300 Float_t MCerPhotEvt::Get MaxNumPhotons()306 Float_t MCerPhotEvt::GetNumPhotonsMax() 301 307 { 302 308 // 303 309 // get the maximum number of photons of all valid pixels in the list 304 310 // 305 if (fN bPixels <= 0)311 if (fNumPixels <= 0) 306 312 return 50.; 307 313 … … 309 315 310 316 Float_t testval; 311 for (Int_t i=1; i<fN bPixels; i++)317 for (Int_t i=1; i<fNumPixels; i++) 312 318 { 313 319 testval = (*this)[i].GetNumPhotons(); -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r653 r695 21 21 private: 22 22 23 Int_t fType; 24 Int_t fNbPixels; 23 Int_t fNumPixels; 25 24 TClonesArray *fPixels; 26 25 … … 32 31 void Draw(Option_t* option = "" ) ; 33 32 34 Int_t GetN bPixels() ;33 Int_t GetNumPixels() ; 35 34 36 35 void AddPixel(Int_t id, Float_t nph, Float_t err ); … … 48 47 Bool_t IsPixelCore ( Int_t id ) ; 49 48 50 Float_t Get MinNumPhotons();51 Float_t Get MaxNumPhotons();49 Float_t GetNumPhotonsMin(); 50 Float_t GetNumPhotonsMax(); 52 51 53 52 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); } -
trunk/MagicSoft/Mars/manalysis/Makefile
r665 r695 30 30 SRCFILES = MCT1Pedestals.cc \ 31 31 MCT1ReadAscii.cc \ 32 MPedestalCam.cc \ 33 MPedestalPix.cc \ 34 MHillas.cc \ 35 MHillasCalc.cc \ 32 36 MCerPhotEvt.cc \ 33 37 MCerPhotPix.cc
Note:
See TracChangeset
for help on using the changeset viewer.