Changeset 887
- Timestamp:
- 07/19/01 16:46:47 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r882 r887 1 1 -*-*- END -*-*- 2 2001/07/19: Thomas Bretz 3 4 * mbase/MEvtLoop.cc: 5 - added comments 6 7 * mbase/MTaskList.cc: 8 - changed the wrong 'break' for kCONTINUE into 'return kTRUE' 9 10 * mhist/HistLinkDef.h: 11 - added MH 12 - added MFillH 13 14 * mhist/MFillHFadc.cc: 15 - moved source for filling to corresponding histogram class 16 17 * mhist/MFillHHillas.cc: 18 - included MHillas.h 19 20 * mhist/MHFadcCam.[cc, h]: 21 - added Fill 22 - made FillHi, FillLo private 23 24 * mhist/MHHillas.[cc, h], mhist/MHStarMap.[h,cc]: 25 - changed Fill function to new style 26 - derived class from MH 27 28 * mhist/Makefile: 29 - added MH.cc 30 - added MFillH.cc 31 32 33 2 34 2001/07/18: Oscar Blanch 3 35 4 36 * macros/getRate.C: 5 37 - Macro to compute the trigger rate from a MonteCarlo file … … 11 43 * mmontecarlo/MMcTriggerRateCalc.[h,cc]: 12 44 - Task to compute trigger rate 45 46 13 47 14 48 2001/07/13: Thomas Bretz -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r867 r887 61 61 ClassImp(MEvtLoop); 62 62 63 64 //! 65 //! Maybe we can add a static parameter list to MEvtLoop 66 //! Also we can derive MEvtLoop from MTaskList to have a static tasklist, too 67 //! 68 63 69 // -------------------------------------------------------------------------- 64 70 // -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r867 r887 270 270 // something occured: skip the rest of the tasks for this event 271 271 // 272 break;272 return kTRUE; 273 273 } 274 274 } -
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r876 r887 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class MH; 7 8 #pragma link C++ class MHFadcCam; 8 9 #pragma link C++ class MHFadcPix; … … 14 15 #pragma link C++ class MHMcRate; 15 16 17 #pragma link C++ class MFillH; 16 18 #pragma link C++ class MFillHFadc; 17 19 #pragma link C++ class MFillHHillas; -
trunk/MagicSoft/Mars/mhist/MFillHFadc.cc
r859 r887 93 93 { 94 94 // loop over the pixels and fill the values in the histograms 95 96 MRawEvtPixelIter pixel(fRawEvtData); 97 98 const Int_t nhisamples = fRawEvtData->GetNumHiGainSamples() ; 99 const Int_t nlosamples = fRawEvtData->GetNumLoGainSamples() ; 100 101 while ( pixel.Next() ) 102 { 103 const UInt_t id = pixel.GetPixelId(); 104 105 for (Int_t i=0; i<nhisamples; i++) 106 fHistos->FillHi(id, pixel.GetHiGainFadcSamples()[i]); 107 108 if (!pixel.HasLoGain()) 109 continue; 110 111 for (Int_t i=0; i<nlosamples; i++) 112 fHistos->FillLo(id, pixel.GetLoGainFadcSamples()[i]); 113 } 114 95 fHistos->Fill(fRawEvtData); 115 96 return kTRUE; 116 97 } -
trunk/MagicSoft/Mars/mhist/MFillHHillas.cc
r859 r887 42 42 #include "MLog.h" 43 43 #include "MLogManip.h" 44 45 #include "MHillas.h" 44 46 #include "MHHillas.h" 45 47 #include "MParList.h" -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r859 r887 36 36 #include <TH1.h> 37 37 38 #include "MRawEvtData.h" 39 #include "MRawEvtPixelIter.h" 40 38 41 ClassImp(MHFadcCam); 39 42 … … 69 72 } 70 73 74 void MHFadcCam::Fill(const MParContainer *par) 75 { 76 MRawEvtData *evt = (MRawEvtData*)par; 77 78 MRawEvtPixelIter pixel(evt); 79 80 const Int_t nhisamples = evt->GetNumHiGainSamples(); 81 const Int_t nlosamples = evt->GetNumLoGainSamples(); 82 83 while (pixel.Next()) 84 { 85 const UInt_t id = pixel.GetPixelId(); 86 87 for (Int_t i=0; i<nhisamples; i++) 88 FillHi(id, pixel.GetHiGainFadcSamples()[i]); 89 90 if (!pixel.HasLoGain()) 91 continue; 92 93 for (Int_t i=0; i<nlosamples; i++) 94 FillLo(id, pixel.GetLoGainFadcSamples()[i]); 95 } 96 97 } 71 98 /*void MHFadcCam::SaveHist(char *name) 72 99 { -
trunk/MagicSoft/Mars/mhist/MHFadcCam.h
r713 r887 10 10 #endif 11 11 12 #ifndef M PARCONTAINER_H13 #include "M ParContainer.h"12 #ifndef MH_H 13 #include "MH.h" 14 14 #endif 15 15 #ifndef MHFADCPIX_H … … 19 19 class TH1F; 20 20 21 class MHFadcCam : public M ParContainer21 class MHFadcCam : public MH 22 22 { 23 23 private: 24 24 TObjArray *fArray; // List of Lo/Hi gain Histograms 25 25 26 void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); } 27 void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); } 28 26 29 public: 27 30 MHFadcCam(const char *name=NULL, const char *title=NULL); 28 31 ~MHFadcCam(); 29 30 void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); }31 void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); }32 32 33 33 // void SaveHist(char *name); … … 37 37 TH1F *GetHistHi(UInt_t i) { return (*this)[i]->GetHistHi(); } 38 38 TH1F *GetHistLo(UInt_t i) { return (*this)[i]->GetHistLo(); } 39 40 void Fill(const MParContainer *par); 39 41 40 42 // -
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r859 r887 55 55 } 56 56 57 void MHHillas::Fill(const M Hillas*par)57 void MHHillas::Fill(const MParContainer *par) 58 58 { 59 fAlpha ->Fill(fabs(par->GetAlpha())); 60 fWidth ->Fill(par->GetWidth()); 61 fLength->Fill(par->GetLength()); 62 fDist ->Fill(par->GetDist()); 59 MHillas &h = *(MHillas*)par; 60 61 fAlpha ->Fill(fabs(h.GetAlpha())); 62 fWidth ->Fill(h.GetWidth()); 63 fLength->Fill(h.GetLength()); 64 fDist ->Fill(h.GetDist()); 63 65 } 64 66 -
trunk/MagicSoft/Mars/mhist/MHHillas.h
r859 r887 6 6 #endif 7 7 8 #ifndef M PARCONTAINER_H9 #include "M ParContainer.h"8 #ifndef MH_H 9 #include "MH.h" 10 10 #endif 11 11 … … 13 13 class MHillas; 14 14 15 class MHHillas : public M ParContainer15 class MHHillas : public MH 16 16 { 17 17 private: … … 25 25 ~MHHillas(); 26 26 27 void Fill(const M Hillas*par);27 void Fill(const MParContainer *par); 28 28 29 29 TH1F *GetHistAlpha() { return fAlpha; } -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r859 r887 133 133 } 134 134 135 void MHStarMap::Fill(const M Hillas*par)135 void MHStarMap::Fill(const MParContainer *par) 136 136 { 137 const float dist = par->GetDist(); 138 const float theta = par->GetTheta(); 139 const float alpha = par->GetAlpha()/kRad2Deg; 137 const MHillas &h = *(MHillas*)par; 138 139 const float dist = h.GetDist(); 140 const float theta = h.GetTheta(); 141 const float alpha = h.GetAlpha()/kRad2Deg; 140 142 141 143 const float m = tan(theta+alpha-kPI); -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r859 r887 6 6 #endif 7 7 8 #ifndef M PARCONTAINER_H9 #include "M ParContainer.h"8 #ifndef MH_H 9 #include "MH.h" 10 10 #endif 11 11 … … 18 18 class MHillas; 19 19 20 class MHStarMap : public M ParContainer20 class MHStarMap : public MH 21 21 { 22 22 private: … … 27 27 ~MHStarMap(); 28 28 29 void Fill(const M Hillas*par);29 void Fill(const MParContainer *par); 30 30 31 31 TH2F *GetHist() { return fStarMap; } -
trunk/MagicSoft/Mars/mhist/Makefile
r875 r887 28 28 .SUFFIXES: .c .cc .cxx .h .hxx .o 29 29 30 SRCFILES = MFillHFadc.cc \ 30 SRCFILES = MFillH.cc \ 31 MFillHFadc.cc \ 31 32 MFillHHillas.cc \ 32 33 MFillHStarMap.cc \ 34 MH.cc \ 33 35 MHFadcPix.cc \ 34 36 MHFadcCam.cc \
Note:
See TracChangeset
for help on using the changeset viewer.