Changeset 857 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 07/06/01 14:24:38 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc
r765 r857 31 31 // files can be found on the Magic homepage. // 32 32 // // 33 // Input Containers: // 34 // -/- // 35 // // 36 // Output Containers: // 37 // MCerPhotEvt // 38 // // 33 39 ///////////////////////////////////////////////////////////////////////////// 34 40 … … 46 52 #include "MPedestalCam.h" 47 53 48 ClassImp(MCT1ReadAscii) 54 ClassImp(MCT1ReadAscii); 49 55 50 56 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r855 r857 30 30 // time slices. At the moment it integrates simply the FADC values. // 31 31 // // 32 // Input Containers: // 33 // MRawEvtData, MPedesdtalCam // 34 // // 35 // Output Containers: // 36 // MCerPhotEvt // 37 // // 32 38 ////////////////////////////////////////////////////////////////////////////// 33 39 … … 44 50 #include "MPedestalCam.h" 45 51 46 ClassImp(MCerPhotCalc) 52 ClassImp(MCerPhotCalc); 47 53 48 54 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.h
r698 r857 21 21 class MCerPhotCalc : public MTask 22 22 { 23 MRawEvtData *fRawEvt; // raw event data (time slices)24 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera25 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation23 const MPedestalCam *fPedestals; // Pedestals of all pixels in the camera 24 MRawEvtData *fRawEvt; // raw event data (time slices) 25 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation 26 26 27 27 public: -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r764 r857 36 36 #include "MCerPhotPix.h" 37 37 38 ClassImp(MCerPhotEvt) 38 ClassImp(MCerPhotEvt); 39 39 40 40 // -------------------------------------------------------------------------- … … 46 46 47 47 *fName = name ? name : "MCerPhotEvt"; 48 *fTitle = name ? name: "(Number of Photon)-Event Information";48 *fTitle = title ? title : "(Number of Photon)-Event Information"; 49 49 50 50 fPixels = new TClonesArray ("MCerPhotPix", 577) ; -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r847 r857 21 21 22 22 public: 23 MCerPhotEvt(const char *name=NULL, const char *title=NULL) 23 MCerPhotEvt(const char *name=NULL, const char *title=NULL); 24 24 ~MCerPhotEvt() { delete fPixels; } 25 25 26 void Draw(Option_t* option = "" ) ;26 void Draw(Option_t* option = ""); 27 27 28 UInt_t GetNumPixels() const { return fNumPixels; }28 UInt_t GetNumPixels() const { return fNumPixels; } 29 29 30 void AddPixel(Int_t id, Float_t nph, Float_t err);30 void AddPixel(Int_t id, Float_t nph, Float_t err); 31 31 32 void Clear(Option_t *opt=NULL) ; 32 void Clear(Option_t *opt=NULL); 33 void Print(Option_t *opt=NULL); 33 34 34 void Print(Option_t *opt=NULL) ; 35 Bool_t IsPixelExisting( Int_t id ); 36 Bool_t IsPixelUsed ( Int_t id ); 37 Bool_t IsPixelCore ( Int_t id ); 35 38 36 // void CleanLevel1() ; 37 // void CleanLevel2() ; 38 // void CleanLevel3() ; 39 40 Bool_t IsPixelExisting( Int_t id ); 41 Bool_t IsPixelUsed ( Int_t id ); 42 Bool_t IsPixelCore ( Int_t id ); 43 44 Float_t GetNumPhotonsMin(); 45 Float_t GetNumPhotonsMax(); 39 Float_t GetNumPhotonsMin(); 40 Float_t GetNumPhotonsMax(); 46 41 47 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); } 42 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); } 43 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->At(i)); } 48 44 49 ClassDef(MCerPhotEvt, 1) // class for an event containing cerenkov photons50 }; 45 ClassDef(MCerPhotEvt, 1) // class for an event containing cerenkov photons 46 }; 51 47 52 48 #endif -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r764 r857 28 28 #include "MLog.h" 29 29 30 ClassImp(MCerPhotPix) 30 ClassImp(MCerPhotPix); 31 31 32 32 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r852 r857 46 46 #include "MLog.h" 47 47 48 ClassImp(MHillas) 48 ClassImp(MHillas); 49 49 50 50 // -------------------------------------------------------------------------- … … 160 160 // (The calcualtion is some kind of two dimentional statistics) 161 161 // 162 Bool_t MHillas::Calc( MGeomCam &geom,MCerPhotEvt &evt)162 Bool_t MHillas::Calc(const MGeomCam &geom, const MCerPhotEvt &evt) 163 163 { 164 164 const UInt_t nevt = evt.GetNumPixels(); … … 284 284 if (xmean<0) fTheta += kPI; // [rad] 285 285 286 Set HasChanged();286 SetReadyToSave(); 287 287 288 288 return kTRUE; -
trunk/MagicSoft/Mars/manalysis/MHillas.h
r842 r857 29 29 void Reset(); 30 30 31 Bool_t Calc( MGeomCam &geom,MCerPhotEvt &pix);31 Bool_t Calc(const MGeomCam &geom, const MCerPhotEvt &pix); 32 32 33 33 void Print(Option_t *opt=NULL); -
trunk/MagicSoft/Mars/manalysis/MHillasCalc.cc
r852 r857 30 30 // This is a task to calculate the Hillas parameters from each event // 31 31 // // 32 // Input Containers: // 33 // MCerPhotEvt, MGeomCam // 34 // // 35 // Output Containers: // 36 // MHillas // 37 // // 32 38 ///////////////////////////////////////////////////////////////////////////// 33 39 … … 42 48 #include "MLogManip.h" 43 49 44 ClassImp(MHillasCalc) 50 ClassImp(MHillasCalc); 45 51 46 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHillasCalc.h
r695 r857 20 20 class MHillasCalc : public MTask 21 21 { 22 MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas23 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation24 MHillas *fHillas; // ouput container to store result22 const MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas 23 const MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation 24 MHillas *fHillas; // ouput container to store result 25 25 26 26 public: -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
r765 r857 25 25 26 26 ///////////////////////////////////////////////////////////////////////////// 27 // 28 // MImgCleanStd 29 // 30 // This is the standard image cleaning. If you want to know how it works 31 // Please look at the three CleanSteps and Process 32 // 27 // // 28 // MImgCleanStd // 29 // // 30 // This is the standard image cleaning. If you want to know how it works // 31 // Please look at the three CleanSteps and Process // 32 // // 33 // Input Containers: // 34 // MGeomCam, MCerPhotEvt // 35 // // 36 // Output Containers: // 37 // -/- // 38 // // 33 39 ///////////////////////////////////////////////////////////////////////////// 34 40 #include "MImgCleanStd.h" … … 42 48 #include "MCerPhotEvt.h" 43 49 44 ClassImp(MImgCleanStd) 50 ClassImp(MImgCleanStd); 45 51 46 52 // -------------------------------------------------------------------------- … … 118 124 // state is 'used' 119 125 // 120 MGeomPix&gpix = (*fCam)[id];121 const Int_t nnmax = gpix.GetNumNeighbors();126 const MGeomPix &gpix = (*fCam)[id]; 127 const Int_t nnmax = gpix.GetNumNeighbors(); 122 128 123 129 Int_t cnt = 0; -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.h
r847 r857 15 15 { 16 16 private: 17 MGeomCam*fCam;18 MCerPhotEvt *fEvt;17 const MGeomCam *fCam; 18 MCerPhotEvt *fEvt; 19 19 20 20 Float_t fCleanLvl1; -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r749 r857 25 25 ///////////////////////////////////////////////////////////////////////////// 26 26 // // 27 // MMcPedestalCopy // 27 // MMcPedestalCopy // 28 // // 29 // Input Containers: // 30 // MMcFadcHeader // 31 // // 32 // Output Containers: // 33 // MPedestalCam // 28 34 // // 29 35 ///////////////////////////////////////////////////////////////////////////// … … 39 45 #include "MMcFadcHeader.hxx" 40 46 41 ClassImp(MMcPedestalCopy) 47 ClassImp(MMcPedestalCopy); 42 48 43 49 MMcPedestalCopy::MMcPedestalCopy(const char *name, const char *title) -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.h
r847 r857 23 23 class MMcPedestalCopy : public MTask 24 24 { 25 MMcFadcHeader *fMcPedestals; //26 MPedestalCam *fPedestals; //25 const MMcFadcHeader *fMcPedestals; // 26 MPedestalCam *fPedestals; // 27 27 28 TString *fSrc;28 TString *fSrc; 29 29 30 30 public: -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r855 r857 28 28 // MPedCalcPedRun // 29 29 // // 30 // Input Containers: // 31 // MRawEvtData // 32 // // 33 // Output Containers: // 34 // MPedestalCam // 35 // // 30 36 ///////////////////////////////////////////////////////////////////////////// 31 37 … … 43 49 #include "MPedestalCam.h" 44 50 45 ClassImp(MPedCalcPedRun) 51 ClassImp(MPedCalcPedRun); 46 52 47 53 MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title) -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r765 r857 34 34 #include "MLog.h" 35 35 36 ClassImp(MPedestalCam) 36 ClassImp(MPedestalCam); 37 37 38 38 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.h
r698 r857 25 25 void InitSize(const UInt_t i) { fArray->ExpandCreateFast(i); } 26 26 27 MPedestalPix &operator[](Int_t i) { return *(MPedestalPix*)fArray->At(i); } 27 MPedestalPix &operator[](Int_t i) { return *(MPedestalPix*)fArray->At(i); } 28 MPedestalPix &operator[](Int_t i) const { return *(MPedestalPix*)fArray->At(i); } 28 29 29 30 ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera -
trunk/MagicSoft/Mars/manalysis/MPedestalPix.cc
r765 r857 35 35 #include "MLog.h" 36 36 37 ClassImp(MPedestalPix) 37 ClassImp(MPedestalPix); 38 38 39 39 MPedestalPix::MPedestalPix()
Note:
See TracChangeset
for help on using the changeset viewer.