- Timestamp:
- 10/16/01 16:18:29 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/BUGS
r949 r967 4 4 ------------------- 5 5 6 - if you try to use the constructor MFillH(const char *, ...)7 in a precompiled program, the program will fail.8 MFillH(MParContainer *, ...) works -
trunk/MagicSoft/Mars/Changelog
r961 r967 1 1 -*-*- END -*-*- 2 3 2001/10/05: Thomas Bretz 4 5 * mbase/MReadTree.[h,cc]: 6 - added some output statements 7 - added comments 8 - added UseLeaf 9 - changed AddFile to Int_t 10 - simplified GetEntry call 11 12 * mgui/MGeomCam.[h,cc], MGeomCamCT1.[h,cc], MGeomCamMagic.[h,cc]: 13 - added come comments 14 - removed Draw-function 15 16 * mars.cc: 17 - Changed name of TROOT object to 'mars' 18 19 * merpp.cc: 20 - changed name of TROOT object to 'merpp' 21 - added some more ouput 22 23 * mbase/MBaseLinkDef.h: 24 - added MRootFileBranch 25 - added MRootFileTree 26 27 * mgui/MGeomPix.cc, mbase/MClone.cc, mraw/MRawRunHeader.cc: 28 - added comments 29 30 * mbase/MEvtLoop.cc: 31 - added missing include 32 - added another time output 33 34 * mbase/MWriteRootFile.cc: 35 - added ClassImp 36 37 * mhist/MFillH.cc, mmontecarlo/MMcCollectionAreaCalc.cc: 38 - changed output 39 40 * mhist/MHMcCollectionArea.cc: 41 - small fixes 42 - changed error calculation according to Ciro 43 44 * macros/CT1Hillas.C: 45 - fixes some bugs (typos) 46 47 2 48 3 49 2001/10/05: Thomas Bretz -
trunk/MagicSoft/Mars/macros/CT1Hillas.C
r948 r967 83 83 // 84 84 MEvtLoop evtloop; 85 if (!evtloop.SetParList(&plist)) 86 return; 85 evtloop.SetParList(&plist) 87 86 88 87 // 89 88 // Execute your analysis 90 89 // 91 evtloop.Eventloop(); 90 if (!evtloop.Eventloop()) 91 return; 92 92 93 93 // -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r938 r967 11 11 12 12 Int_t fPixId; // the pixel Id 13 13 14 Bool_t fIsUsed; // the pixel is used for calculations --> kTRUE 14 15 Bool_t fIsCore; // the pixel is a Core pixel --> kTRUE 16 15 17 Float_t fPhot; // The number of Cerenkov photons 16 18 Float_t fErrPhot; // the error of fPhot 19 20 // FIXME: arrival time t, and it's error sigma t 17 21 18 22 public: -
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r959 r967 34 34 35 35 #pragma link C++ class MReadTree; 36 37 #pragma link C++ class MRootFileBranch; 38 #pragma link C++ class MRootFileTree; 39 36 40 #pragma link C++ class MWriteFile; 37 41 #pragma link C++ class MWriteAsciiFile; -
trunk/MagicSoft/Mars/mbase/MClone.cc
r961 r967 39 39 // The object does only exist until a new object is cloned. It is deleted // 40 40 // in the destructor. // 41 // // 42 // To use MClone you must make sure, that TObject::Clone is correctly // 43 // working for this class (maybe you have to overload it) // 41 44 // // 42 45 // Input Containers: // -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r962 r967 195 195 clock.Print(); 196 196 197 *fLog << dec << endl 197 *fLog << dec << endl << "CPU - " 198 198 << "Time: " << clock.CpuTime() << "s" 199 199 << " for " << (maxcnt<0?dummy:maxcnt) << " Events" 200 200 << " --> " << (maxcnt<0?dummy:maxcnt)/clock.CpuTime() << " Events/s" 201 << endl; 202 *fLog << "Total - " 203 << "Time: " << clock.RealTime() << "s" 204 << " for " << (maxcnt<0?dummy:maxcnt) << " Events" 205 << " --> " << (maxcnt<0?dummy:maxcnt)/clock.RealTime() << " Events/s" 201 206 << endl << endl; 202 207 } -
trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc
r858 r967 43 43 #include "MParList.h" 44 44 45 ClassImp(MRootFileBranch); 46 ClassImp(MRootFileTree); 47 45 48 ClassImp(MWriteRootFile); 46 49 -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r953 r967 150 150 if (!fParContainer) 151 151 { 152 *fLog << dbginf << fParContainerName << " not found... aborting." << endl;152 *fLog << dbginf << fParContainerName << " [MParContainer] not found... aborting." << endl; 153 153 return kFALSE; 154 154 } -
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
r959 r967 52 52 53 53 54 fHistAll = new TH2D("All 54 fHistAll = new TH2D("AllEvents", "All showers - Radius vs log(E) distribution", 55 55 50, 0., 5., 56 56 50, 0., 500.); … … 60 60 fHistAll->SetZTitle("N"); 61 61 62 fHistSel = new TH2D("Selected 62 fHistSel = new TH2D("SelectedEvents", "Selected showers - Radius vs log(E) distribution", 63 63 50, 0., 5., 64 64 50, 0., 500.); … … 68 68 fHistSel->SetYTitle("N"); 69 69 70 fHistCol = new TH1D(" Area", "Collection Area vs. log(E)",70 fHistCol = new TH1D("CollectionArea", "Collection Area vs. log(E)", 71 71 50, 0., 5.); 72 72 73 73 fHistCol->SetXTitle("log(E/GeV)"); 74 fHistCol->SetYTitle("A/m^ 2");74 fHistCol->SetYTitle("A/m^{2}"); 75 75 } 76 76 … … 204 204 for (Int_t iy=1; iy<=nbiny; iy++) 205 205 { 206 const Float_t Ns = fHistSel->GetCellContent(ix, iy);207 206 const Float_t Na = fHistAll->GetCellContent(ix, iy); 208 207 … … 210 209 continue; 211 210 211 const Float_t Ns = fHistSel->GetCellContent(ix, iy); 212 212 213 const Double_t eff = Ns/Na; 213 const Double_t err = sqrt(Na + Na*Ns - Ns*Ns - Ns) / (Na*Na); 214 const Double_t err = sqrt((1.-eff)*Ns)/Na; 215 216 // old calculation from Harald: 217 // const Double_t eff = Ns/Na; 218 // const Double_t err = sqrt(Na + Na*Ns - Ns*Ns - Ns) / (Na*Na); 214 219 215 220 fHistSel->SetCellContent(ix, iy, eff); … … 229 234 for (Int_t iy=1; iy<=nbiny; iy++) 230 235 { 231 const Double_t r1 = fHistSel->GetYaxis()->GetBinLowEdge(iy); 232 const Double_t r2 = fHistSel->GetYaxis()->GetBinLowEdge(iy+1); 236 TAxis *yaxis = fHistSel->GetYaxis(); 237 238 const Double_t r1 = yaxis->GetBinLowEdge(iy); 239 const Double_t r2 = yaxis->GetBinLowEdge(iy+1); 233 240 234 241 const Double_t A = TMath::Pi() * (r2*r2 - r1*r1); -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r867 r967 61 61 if (!fMcTrig) 62 62 { 63 *fLog << dbginf << fObjName << " not found... exit." << endl;63 *fLog << dbginf << fObjName << " [MMcTrig] not found... exit." << endl; 64 64 return kFALSE; 65 65 } -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r867 r967 94 94 fin.read((Byte_t*)&fProjectName, 22); 95 95 fin.read((Byte_t*)&fSourceName, 12); 96 fin.read((Byte_t*)dummy, 4); // was RA 97 fin.read((Byte_t*)dummy, 4); // was DEC 96 fin.read((Byte_t*)dummy, 4); // was RA (moved to tracking system) 97 fin.read((Byte_t*)dummy, 4); // was DEC (moved to tracking system) 98 98 fin.read((Byte_t*)&fSourceEpochChar, 2); 99 99 fin.read((Byte_t*)&fSourceEpochDate, 2);
Note:
See TracChangeset
for help on using the changeset viewer.