Changeset 859
- Timestamp:
- 07/06/01 14:48:54 (23 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r855 r859 1 1 -*-*- END -*-*- 2 2001/07/06: Thomas Bretz 3 4 * mfilter/FilterIncl.h, mfilter/FilterLinkDef.h, 5 mfilter/MFTriggerLvl1.[h,cc], mfilter/mfilter/Makefile: 6 - added 7 8 * Makefile 9 - mfilter added 10 11 * Makefile.conf.linux-gnu: 12 - added some warning options 13 14 * Makefile.conf.osf1: 15 - enhanced warnings 16 17 * manalysis/MCerPhotEvt.cc: 18 - removed a small buf from the constructor 19 20 * BaseLinkDef.h: 21 - added MFilter 22 - added MFilterList 23 24 * mbase/MLog.[h,cc]: 25 - added a non-empty copy constructor to make cxx happy 26 27 * mbase/MParList.[h,cc]: 28 - added second overload-function FindObject 29 30 * mbase/MTask.h: 31 - added all Filter stuff 32 33 * mbase/MTaskList.cc: 34 - changed debug output 35 - added filter-stuff to Process 36 37 * mbase/MTaskList.h: 38 - changed Print default option from NULL to "" 39 40 * mbase/Makefile: 41 - added MFilter 42 - added MFilterList 43 44 * mhist/MFillHFadc.cc: 45 removed a small bug in the PreProcessing 46 47 * manalysis/MCerPhotEvt.h, manalysis/MHillas.cc, manalysis/MHillas.h, 48 manalysis/MImgCleanStd.cc, manalysis/MPedestalCam.h, mgui/MGeomCam.h, 49 mhist/MFillHHillas.h, manalysis/MHillasCalc.h, manalysis/MCerPhotCalc.h, 50 manalysis/MImgCleanStd.h, mhist/MFillHStarMap.h, mhist/MHHillas.cc, 51 mhist/MHHillas.h, mhist/MHStarMap.cc, mhist/MHStarMap.h, 52 mmc/MMcFadcHeader.hxx, mmc/MMcFadcHeader.hxx, mmc/MMcTrig.hxx, 53 mmontecarlo/MMcThresholdCalc.h: 54 - made more const-correct 55 56 * manalysis/MCT1ReadAscii.cc, manalysis/MCerPhotCalc.cc, 57 manalysis/MHillasCalc.cc, manalysis/MImgCleanStd.cc, 58 manalysis/MMcPedestalCopy.cc, manalysis/MPedCalcPedRun.cc, 59 mhist/MFillHFadc.cc, mhist/MFillHHillas.cc, mhist/MFillHStarMap.cc, 60 mmontecarlo/MMcThresholdCalc.cc, mraw/MRawFileRead.cc, 61 mraw/MRawFileWrite.cc: 62 - added comments 63 64 * manalysis/MCT1ReadAscii.cc, manalysis/MCerPhotCalc.cc, 65 manalysis/MCerPhotPix.cc, manalysis/MHillas.cc, 66 manalysis/MHillasCalc.cc, manalysis/MImgCleanStd.cc, 67 manalysis/MMcPedestalCopy.cc, manalysis/MMcPedestalCopy.h, 68 manalysis/MPedCalcPedRun.cc, manalysis/MPedestalCam.cc, 69 manalysis/MPedestalPix.cc, 70 mbase/MArray.cc, mbase/MArrayB.cc, mbase/MArrayS.cc, mbase/MEvtLoop.cc, 71 mbase/MLog.cc, mbase/MParList.cc, mbase/MReadTree.cc, mbase/MTask.cc, 72 mbase/MTime.cc, mbase/MWriteAsciiFile.cc, mbase/MWriteFile.cc, 73 mbase/MWriteRootFile.cc, 74 mhist/MFillHFadc.cc, mhist/MFillHFadc.cc, mhist/MFillHHillas.cc, 75 mhist/MFillHStarMap.cc, mhist/MHFadcCam.cc, mhist/MHFadcPix.cc, 76 mhist/MHHillas.cc, mhist/MHMcCollectionArea.cc, mhist/MHMcEnergies.cc, 77 mhist/MHMcEnergy.cc, mhist/MHStarMap.cc, mraw/MRawCrateArray.cc, 78 mraw/MRawCrateData.cc, mraw/MRawEvtData.cc, mraw/MRawEvtHeader.cc, 79 mraw/MRawEvtPixelIter.cc, mraw/MRawFileRead.cc, 80 mraw/MRawFileWrite.cc, mraw/MRawRunHeader.cc: 81 - added semicolon after ClassImp to make my editor happy 82 83 * mmain/MEvtDisp.cc: 84 - removed a wrong comma in the enumerations 85 86 * mmontecarlo/MMcThresholdCalc.cc: 87 - made compile on osf by removing brackets in new steatement (constructor) 88 89 2 90 3 91 2001/07/05: Thomas Bretz -
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r695 r859 86 86 // if no canvas is yet existing to draw into, create a new one 87 87 // 88 if ( !gPad ) new TCanvas("display", "MAGIC display", 0, 0, 650, 500);88 if (!gPad) new TCanvas("display", "MAGIC display", 0, 0, 650, 500); 89 89 90 90 // 91 91 // draw all pixels of the camera 92 92 // 93 for (UInt_t i=0; i< 93 for (UInt_t i=0; i<fNumPixels; i++) 94 94 (*this)[i].Draw(); 95 95 … … 97 97 // draw legend 98 98 // 99 for (Int_t i=0; i< 99 for (Int_t i=0; i<kITEMS_LEGEND; i++) 100 100 { 101 101 GetBox(i)->Draw(); -
trunk/MagicSoft/Mars/mgui/MGeomCam.h
r695 r859 31 31 UInt_t GetNumPixels() const { return fNumPixels; } 32 32 33 MGeomPix &operator[](Int_t i) { return *(MGeomPix*)fPixels->At(i); } 33 MGeomPix &operator[](Int_t i) { return *(MGeomPix*)fPixels->At(i); } 34 MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->At(i); } 34 35 35 36 virtual void Print(Option_t *opt=NULL); -
trunk/MagicSoft/Mars/mhist/MFillHFadc.cc
r855 r859 25 25 26 26 ////////////////////////////////////////////////////////////////////////////// 27 // 28 // MFillHFadc 29 // 30 // This task fill the n time slices from all pixels 31 // (stored in a MRawEvtData container) into histograms. 32 // This histograms (one per pixel) are stored in MHFadcCam, MHFadcPix 33 // 27 // // 28 // MFillHFadc // 29 // // 30 // This task fill the n time slices from all pixels // 31 // (stored in a MRawEvtData container) into histograms. // 32 // This histograms (one per pixel) are stored in MHFadcCam, MHFadcPix // 33 // // 34 // Input Containers: // 35 // MRawEvtData // 36 // // 37 // Output Containers: // 38 // MHFadcCam // 39 // // 34 40 ////////////////////////////////////////////////////////////////////////////// 35 41 … … 43 49 #include "MRawEvtPixelIter.h" 44 50 45 ClassImp(MFillHFadc) 51 ClassImp(MFillHFadc); 46 52 47 53 // -------------------------------------------------------------------------- … … 62 68 // check if all necessary input containers are existing 63 69 // 64 fRawEvtData = (MRawEvtData*)pList->Find CreateObj("MRawEvtData");70 fRawEvtData = (MRawEvtData*)pList->FindObject("MRawEvtData"); 65 71 if (!fRawEvtData) 66 72 { 67 *fLog << dbginf << " Error:MRawEvtData not found... exit." << endl;73 *fLog << dbginf << "MRawEvtData not found... exit." << endl; 68 74 return kFALSE; 69 75 } -
trunk/MagicSoft/Mars/mhist/MFillHHillas.cc
r855 r859 24 24 \* ======================================================================== */ 25 25 26 //////////////////////////////////////////////////////////////////////// 27 // 28 // MFillHHillas 29 // 30 // This task fills the hillas parameter from MHillas into 31 // histograms (MHHillas) 32 // 33 //////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////// 27 // // 28 // MFillHHillas // 29 // // 30 // This task fills the hillas parameter from MHillas into // 31 // histograms (MHHillas) // 32 // // 33 // Input Containers: // 34 // MHillas // 35 // // 36 // Output Containers: // 37 // MHHillas // 38 // // 39 ////////////////////////////////////////////////////////////////////////////// 34 40 #include "MFillHHillas.h" 35 41 … … 39 45 #include "MParList.h" 40 46 41 ClassImp(MFillHHillas) 47 ClassImp(MFillHHillas); 42 48 43 49 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MFillHHillas.h
r852 r859 16 16 class MFillHHillas : public MTask { 17 17 private: 18 MHillas*fEvt;18 const MHillas *fEvt; 19 19 MHHillas *fHistos ; 20 20 -
trunk/MagicSoft/Mars/mhist/MFillHStarMap.cc
r855 r859 23 23 \* ======================================================================== */ 24 24 25 //////////////////////////////////////////////////////////////////////// 26 // 27 // MFillHStarMap 28 // 29 // This task fills a star map (a 2D histogram, MHStarMap) 30 // from the calculated hillas parameter (MHillas). 31 // The algorithm for this can be found in MHStarMap::Fill 32 // 33 //////////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////////////// 26 // // 27 // MFillHStarMap // 28 // // 29 // This task fills a star map (a 2D histogram, MHStarMap) // 30 // from the calculated hillas parameter (MHillas). // 31 // The algorithm for this can be found in MHStarMap::Fill // 32 // // 33 // Input Containers: // 34 // MHillas // 35 // // 36 // Output Containers: // 37 // MHStarMap // 38 // // 39 ////////////////////////////////////////////////////////////////////////////// 34 40 #include "MFillHStarMap.h" 35 41 … … 40 46 #include "MParList.h" 41 47 42 ClassImp(MFillHStarMap) 48 ClassImp(MFillHStarMap); 43 49 44 50 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MFillHStarMap.h
r852 r859 14 14 class MHillas; 15 15 16 class MFillHStarMap : public MTask { 17 private: 18 MHillas *fEvt; 19 MHStarMap *fHistos ; 16 class MFillHStarMap : public MTask 17 { 18 private: 19 const MHillas *fEvt; 20 MHStarMap *fHistos ; 20 21 21 public: 22 MFillHStarMap(const char *name=NULL, const char *title=NULL);22 public: 23 MFillHStarMap(const char *name=NULL, const char *title=NULL); 23 24 24 Bool_t PreProcess(MParList *pList); 25 Bool_t Process(); 26 Bool_t PostProcess(); 27 28 ClassDef(MFillHStarMap, 0) // Task to fill a 2-dim histogram by the Hillas parameters 25 Bool_t PreProcess(MParList *pList); 26 Bool_t Process(); 27 Bool_t PostProcess(); 29 28 29 ClassDef(MFillHStarMap, 0) // Task to fill a 2-dim histogram by the Hillas parameters 30 30 }; 31 31 32 32 #endif 33 33 -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r765 r859 36 36 #include <TH1.h> 37 37 38 ClassImp(MHFadcCam) 38 ClassImp(MHFadcCam); 39 39 40 40 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHFadcPix.cc
r765 r859 37 37 #include <TPad.h> 38 38 39 ClassImp(MHFadcPix) 39 ClassImp(MHFadcPix); 40 40 41 41 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r852 r859 17 17 #include "MHillas.h" 18 18 19 ClassImp(MHHillas) 19 ClassImp(MHHillas); 20 20 21 21 MHHillas::MHHillas (const char *name, const char *title) … … 55 55 } 56 56 57 void MHHillas::Fill( MHillas *par)57 void MHHillas::Fill(const MHillas *par) 58 58 { 59 59 fAlpha ->Fill(fabs(par->GetAlpha())); -
trunk/MagicSoft/Mars/mhist/MHHillas.h
r712 r859 25 25 ~MHHillas(); 26 26 27 void Fill( MHillas *par);27 void Fill(const MHillas *par); 28 28 29 29 TH1F *GetHistAlpha() { return fAlpha; } -
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
r853 r859 29 29 #include <TH2.h> 30 30 31 ClassImp(MHMcCollectionArea) 31 ClassImp(MHMcCollectionArea); 32 32 33 33 MHMcCollectionArea::MHMcCollectionArea(const char *name, const char *title) -
trunk/MagicSoft/Mars/mhist/MHMcEnergies.cc
r851 r859 28 28 #include "MHMcEnergy.h" 29 29 30 ClassImp(MHMcEnergies) 30 ClassImp(MHMcEnergies); 31 31 32 32 MHMcEnergies::MHMcEnergies(const UInt_t count, const char *name, const char *title) -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc
r855 r859 32 32 #include <TPaveLabel.h> 33 33 34 ClassImp(MHMcEnergy) 34 ClassImp(MHMcEnergy); 35 35 36 36 MHMcEnergy::MHMcEnergy(const UInt_t idx, const char *name, const char *title) -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r749 r859 42 42 #include "MHillas.h" 43 43 44 ClassImp(MHStarMap) 44 ClassImp(MHStarMap); 45 45 46 46 MHStarMap::MHStarMap (const char *name, const char *title) … … 133 133 } 134 134 135 void MHStarMap::Fill( MHillas *par)135 void MHStarMap::Fill(const MHillas *par) 136 136 { 137 137 const float dist = par->GetDist(); -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r712 r859 27 27 ~MHStarMap(); 28 28 29 void Fill( MHillas *par);29 void Fill(const MHillas *par); 30 30 31 31 TH2F *GetHist() { return fStarMap; } -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
r855 r859 28 28 // MMcThresholdCalc // 29 29 // // 30 // Input Containers: // 31 // MMcEvt // 32 // // 33 // Output Containers: // 34 // MMcTrig;*, MHMcEnergy;* // 35 // // 30 36 ///////////////////////////////////////////////////////////////////////////// 31 37 … … 52 58 *fTitle = title ? title : "Task to calculate the energy threshold from Monte Carlo"; 53 59 54 fMcTrig = new (MMcTrig*)[fDimension];55 fHMcEnergy = new (MHMcEnergy*)[fDimension];60 fMcTrig = new MMcTrig*[fDimension]; 61 fHMcEnergy = new MHMcEnergy*[fDimension]; 56 62 fMustDelete = new Bool_t[fDimension]; 57 63 … … 75 81 // connect Monte Carlo data with this task 76 82 77 char auxname[15]="MMcTrig"; // string to write container names78 79 83 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); 80 84 if (!fMcEvt) … … 83 87 return kFALSE; 84 88 } 89 90 char auxname[15]="MMcTrig"; // string to write container names 85 91 86 92 for (unsigned int i=0; i<fDimension; i++) -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h
r846 r859 23 23 UInt_t fDimension; 24 24 25 MMcEvt*fMcEvt; // Container with Monte Carlo information26 MMcTrig **fMcTrig; // Container with Monte Carlo trigger information27 MHMcEnergy **fHMcEnergy; // Container where we save the energy (threshold)25 const MMcEvt *fMcEvt; // Container with Monte Carlo information 26 MMcTrig **fMcTrig; // Container with Monte Carlo trigger information 27 MHMcEnergy **fHMcEnergy; // Container where we save the energy (threshold) 28 28 29 Bool_t *fMustDelete; // delete indicator for selfcreated energy hists29 Bool_t *fMustDelete; // delete indicator for selfcreated energy hists 30 30 31 31 public: -
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r765 r859 42 42 #include "MLog.h" 43 43 44 ClassImp(MRawCrateArray) 44 ClassImp(MRawCrateArray); 45 45 46 46 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r765 r859 40 40 #include "MLog.h" 41 41 42 ClassImp(MRawCrateData) 42 ClassImp(MRawCrateData); 43 43 44 44 MRawCrateData::MRawCrateData() : fDAQCrateNumber(0), fFADCEvtNumber(0), fFADCClockTick(0) -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r851 r859 63 63 #include "MRawRunHeader.h" 64 64 65 ClassImp(MRawEvtData) 65 ClassImp(MRawEvtData); 66 66 67 67 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r761 r859 103 103 #include "MRawRunHeader.h" 104 104 105 ClassImp(MRawEvtHeader) 105 ClassImp(MRawEvtHeader); 106 106 107 107 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r761 r859 54 54 #include "MArrayB.h" 55 55 56 ClassImp(MRawEvtPixelIter) 56 ClassImp(MRawEvtPixelIter); 57 57 58 58 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r762 r859 31 31 // either retrieved from the parameter list or created and added. 32 32 // 33 // Input Containers: 34 // -/- 35 // 36 // Output Containers: 37 // MRawRunHeader, MRawEvtHeader, MRawEvtData, MRawCrateArray, MRawEvtTime 38 // 33 39 //////////////////////////////////////////////////////////////////////// 34 40 … … 46 52 #include "MRawCrateArray.h" 47 53 48 ClassImp(MRawFileRead) 54 ClassImp(MRawFileRead); 49 55 50 56 -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r852 r859 30 30 // root binary file to a root file. See also MRawFileRead 31 31 // 32 // Input Containers: 33 // MRawRunHeader, MRawEvtHeader, MRawEvtData, MRawCrateArray, MRawEvtTime 34 // 35 // Output Containers: 36 // -/- 37 // 32 38 //////////////////////////////////////////////////////////////////////// 33 39 … … 47 53 #include "MRawCrateArray.h" 48 54 49 ClassImp(MRawFileWrite) 55 ClassImp(MRawFileWrite); 50 56 51 57 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r764 r859 39 39 #include "MArrayS.h" 40 40 41 ClassImp(MRawRunHeader) 41 ClassImp(MRawRunHeader); 42 42 43 43 // -------------------------------------------------------------------------- -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r847 r859 60 60 Float_t GetPedestalRms(UInt_t i) const { return fElecNoise[i]; } 61 61 62 constUInt_t GetNumPixel() const { return MFADC_CHANNELS; }62 UInt_t GetNumPixel() const { return MFADC_CHANNELS; } 63 63 64 64 ClassDef(MMcFadcHeader, 1) //Stores Montecarlo Information describing the FADC behaviour -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.hxx
r847 r859 62 62 } 63 63 64 Int_t GetFirstLevel() {64 Int_t GetFirstLevel() const { 65 65 return ( fNumFirstLevel ); 66 66 }
Note:
See TracChangeset
for help on using the changeset viewer.