- Timestamp:
- 11/15/01 12:06:46 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mars.cc
r1058 r1082 1 1 #include <TROOT.h> 2 2 #include <TApplication.h> 3 4 #include "MAGIC.h" 5 6 #include "MLog.h" 7 #include "MLogManip.h" 3 8 4 9 #include "MMars.h" … … 15 20 // started by h. kornmayer january, 3rd 2001 16 21 22 void Usage() 23 { 24 gLog << "Sorry the usage is:" << endl; 25 gLog << " mars [-vn]" << endl << endl; 26 gLog << " -v0: verbosity level: as less as possible" << endl; 27 gLog << " -v1: errors only" << endl; 28 gLog << " -v2: errors and warnings <default>" << endl; 29 gLog << " -v3: errors, warnings and infos" << endl; 30 } 31 17 32 int main(int argc, char **argv ) 18 33 { 34 gLog << all; 35 36 // 1 2 3 4 5 37 // 12345678901234567890123456789012345678901234567890 38 gLog << "==================================================" << endl; 39 gLog << " MARS v0.5 " << endl; 40 gLog << " Magic Analysis and Reconstruction Software " << endl; 41 gLog << " Compiled on <" << __DATE__ << ">" << endl; 42 gLog << " Using ROOT v" << ROOTVER << endl; 43 gLog << "==================================================" << endl; 44 gLog << endl; 45 46 // 47 // check for the right usage of the program 48 // 49 if (argc<1 || argc>2) 50 { 51 Usage(); 52 return -1; 53 } 54 55 if (argc==2) 56 { 57 if (argv[1][0]!='-' || argv[1][1]!='v') 58 { 59 Usage(); 60 return -1; 61 } 62 63 switch (argv[1][2]) 64 { 65 case '0': 66 gLog.SetDebugLevel(0); 67 break; 68 case '1': 69 gLog.SetDebugLevel(1); 70 break; 71 case '2': 72 gLog.SetDebugLevel(2); 73 break; 74 case '3': 75 gLog.SetDebugLevel(3); 76 break; 77 default: 78 Usage(); 79 return -1; 80 } 81 } 82 else 83 gLog.SetDebugLevel(2); 84 85 // 86 // Swtich of TObjectStreamer in our base classes derived from TObject 87 // 19 88 MArray::Class()->IgnoreTObjectStreamer(); 20 89 MParContainer::Class()->IgnoreTObjectStreamer(); -
trunk/MagicSoft/Mars/merpp.cc
r1058 r1082 54 54 return -1; 55 55 } 56 57 // 58 // Set verbosity to highest level. 59 // 60 gLog.SetDebugLevel(2); 56 61 57 62 // -
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1023 r1082 36 36 // Construct all hexagons. Use new-operator with placement 37 37 // 38 39 // root 3.02 40 // * base/inc/TObject.h: 41 // register BIT(8) as kNoContextMenu. If an object has this bit set it will 42 // not get an automatic context menu when clicked with the right mouse button. 43 38 44 fPixels = new TClonesArray("MHexagon", fNumPixels); 39 45 for (UInt_t i=0; i<fNumPixels; i++) -
trunk/MagicSoft/Mars/mgui/MGeomCam.cc
r1048 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 37 37 38 38 #include "MLog.h" 39 #include "MLogManip.h" 40 39 41 #include "MGeomPix.h" 40 42 #include "MHexagon.h" … … 105 107 // Print Information about the Geometry of the camera 106 108 // 107 *fLog << " Number of Pixels (" << GetTitle() << "): " << fNumPixels << endl;109 *fLog << all << " Number of Pixels (" << GetTitle() << "): " << fNumPixels << endl; 108 110 109 111 for (UInt_t i=0; i<fNumPixels; i++) -
trunk/MagicSoft/Mars/mgui/MGeomCamCT1.cc
r977 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 42 42 43 43 #include "MLog.h" 44 #include "MLogManip.h" 45 44 46 #include "MGeomPix.h" 45 47 … … 208 210 // fill the geometry class with the coordinates of the CT1 camera 209 211 // 210 *fLog << " Create CT1 geometry " << endl;212 *fLog << inf << " Create CT1 geometry " << endl; 211 213 212 214 // -
trunk/MagicSoft/Mars/mgui/MGeomCamMagic.cc
r977 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 38 38 39 39 #include "MLog.h" 40 #include "MLogManip.h" 41 40 42 #include "MGeomPix.h" 41 43 … … 63 65 // fill the geometry class with the coordinates of the MAGIC camera 64 66 // 65 *fLog << " Creating Magic geometry " << endl ;67 *fLog << inf << " Creating Magic geometry " << endl ; 66 68 67 69 // -
trunk/MagicSoft/Mars/mgui/MGeomPix.cc
r986 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 36 36 37 37 #include "MLog.h" 38 #include "MLogManip.h" 38 39 39 40 ClassImp(MGeomPix); … … 80 81 { 81 82 // information about a pixel 82 gLog<< "MPixGeom: x= " << fX83 *fLog << all << "MPixGeom: x= " << fX 83 84 << " y= " << fY 84 85 << " r= " << fR -
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r1076 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r1076 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 07/2001 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 07/2001 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 44 44 // yourself, using MReadTree::EnableBranch() // 45 45 // // 46 // Checkout the Warning in MTaskList. // 47 // // 46 48 // Input Containers: // 47 49 // A parameter container // … … 88 90 Init(name, title); 89 91 92 fHName = hist; 90 93 fParContainerName = par; 91 fHName = hist;92 94 } 93 95 … … 105 107 Init(name, title); 106 108 109 fHName = hist; 107 110 fParContainer = par; 108 f HName = hist;111 fParContainerName = par->GetName(); 109 112 } 110 113 … … 122 125 Init(name, title); 123 126 127 fH = hist; 128 fHName = hist->GetName(); 124 129 fParContainerName = par; 125 fH = hist;126 130 } 127 131 … … 139 143 Init(name, title); 140 144 145 fH = hist; 146 fHName = hist->GetName(); 141 147 fParContainer = par; 142 f H = hist;148 fParContainerName = par->GetName(); 143 149 } 144 150 … … 158 164 if (!fParContainer) 159 165 { 160 *fLog << dbginf << fParContainerName << " [MParContainer] not found... aborting." << endl;166 *fLog << err << dbginf << fParContainerName << " [MParContainer] not found... aborting." << endl; 161 167 return kFALSE; 162 168 } … … 172 178 if (!fH->InheritsFrom("MH")) 173 179 { 174 *fLog << dbginf << fH->GetDescriptor() << " ";180 *fLog << err << dbginf << fH->GetDescriptor() << " "; 175 181 *fLog << "doesn't inherit from MH - cannot be used for MFillH... aborting." << endl; 176 182 return kFALSE; -
trunk/MagicSoft/Mars/mhist/MH.cc
r1077 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 07/2001 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 07/2001 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r1077 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 44 44 // creates an a list of histograms for all pixels and both gain channels 45 45 // 46 #include <iostream.h>47 46 MHFadcCam::MHFadcCam(const char *name, const char *title) 48 47 { -
trunk/MagicSoft/Mars/mhist/MHFadcPix.cc
r1030 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r1077 r1082 1 /* ======================================================================== *\ 2 ! 3 ! * 4 ! * This file is part of MARS, the MAGIC Analysis and Reconstruction 5 ! * Software. It is distributed to you in the hope that it can be a useful 6 ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes. 7 ! * It is distributed WITHOUT ANY WARRANTY. 8 ! * 9 ! * Permission to use, copy, modify and distribute this software and its 10 ! * documentation for any purpose is hereby granted without fee, 11 ! * provided that the above copyright notice appear in all copies and 12 ! * that both that copyright notice and this permission notice appear 13 ! * in supporting documentation. It is provided "as is" without express 14 ! * or implied warranty. 15 ! * 16 ! 17 ! 18 ! Author(s): Thomas Bretz 2001 <mailto:tbretz@uni-sw.gwdg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2001 21 ! 22 ! 23 \* ======================================================================== */ 24 1 25 /////////////////////////////////////////////////////////////////////// 2 26 // -
trunk/MagicSoft/Mars/mhist/MHMcCollectionArea.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mhist/MHMcEnergy.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Javier Lopez 05/2001 (jlopez@ifae.es) 18 ! Author(s): Javier Lopez 05/2001 <mailto:jlopez@ifae.es> 19 ! Author(s): Thomas Bretz 05/2001 <mailto:tbretz@uni-sw.gwdg.de> 19 20 ! 20 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 42 43 43 44 #include "MH.h" 45 46 #include "MLog.h" 47 #include "MLogManip.h" 44 48 45 49 ClassImp(MHMcEnergy); … … 210 214 void MHMcEnergy::Print(Option_t*) const 211 215 { 212 cout<< "Threshold: " << fThreshold << " +- " << fThresholdErr << endl;216 *fLog << all << "Threshold: " << fThreshold << " +- " << fThresholdErr << endl; 213 217 } 214 218 -
trunk/MagicSoft/Mars/mhist/MHMcRate.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 196 196 void MHMcRate::Print(Option_t *) const 197 197 { 198 *fLog << "Incident rate " << fShowerRate << " Hz " << endl;198 *fLog << all << "Incident rate " << fShowerRate << " Hz " << endl; 199 199 *fLog << "Trigger Rate " << fTriggerRate << " +- " << fTriggerRateError << " Hz" << endl; 200 200 } … … 206 206 void MHMcRate::Draw(Option_t *) 207 207 { 208 *fLog << dbginf << "To be iplemented" << endl;208 *fLog << all << dbginf << " - MHMcRate::Draw: To be iplemented" << endl; 209 209 } 210 210 211 211 TObject *MHMcRate::DrawClone(Option_t *) const 212 212 { 213 *fLog << dbginf << "To be iplemented" << endl;213 *fLog << all << dbginf << " - MHMcRate::DrawClone: To be iplemented" << endl; 214 214 return NULL; 215 215 } -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r1076 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 9/2001 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 9/2001 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r1052 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MCameraDisplay.cc
r959 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MDataCheck.cc
r1030 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MEvtDisp.cc
r947 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MMars.cc
r1052 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r1057 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r1007 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 66 66 if (!fMcEvt) 67 67 { 68 *fLog << dbginf << "MMcEvt not found... exit." << endl;68 *fLog << err << dbginf << "MMcEvt not found... exit." << endl; 69 69 return kFALSE; 70 70 } … … 73 73 if (!fMcTrig) 74 74 { 75 *fLog << dbginf << fObjName << " [MMcTrig] not found... exit." << endl;75 *fLog << err << dbginf << fObjName << " [MMcTrig] not found... exit." << endl; 76 76 return kFALSE; 77 77 } -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
r1007 r1082 16 16 ! 17 17 ! 18 ! Author(s): Javier Lopez 05/2001 (jlopez@ifae.es)19 ! Thomas Bretz 06/2001 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Javier Lopez 05/2001 <mailto:jlopez@ifae.es> 19 ! Author(s): Thomas Bretz 06/2001 <mailto:tbretz@uni-sw.gwdg.de> 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 107 107 if (!fMcEvt) 108 108 { 109 *fLog << dbginf << "MMcEvt not found... aborting." << endl;109 *fLog << err << dbginf << "MMcEvt not found... aborting." << endl; 110 110 return kFALSE; 111 111 } … … 117 117 if (num != fNum) 118 118 { 119 *fLog << dbginf << fNum << " MMcTrig objects requested, ";119 *fLog << err << dbginf << fNum << " MMcTrig objects requested, "; 120 120 *fLog << num << " are available... aborting." << endl; 121 121 return kFALSE; … … 126 126 if (num != fNum) 127 127 { 128 *fLog << dbginf << fNum << " MHMcEnergy objects requested, ";128 *fLog << err << dbginf << fNum << " MHMcEnergy objects requested, "; 129 129 *fLog << num << " are available... aborting." << endl; 130 130 return kFALSE; -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r1007 r1082 16 16 ! 17 17 ! 18 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 131 131 if (!fMcEvt) 132 132 { 133 *fLog << dbginf << "MMcEvt not found... aborting." << endl;133 *fLog << err << dbginf << "MMcEvt not found... aborting." << endl; 134 134 return kFALSE; 135 135 } … … 141 141 if (num != fNum) 142 142 { 143 *fLog << dbginf << fNum << " MMcTrig objects requested, ";143 *fLog << err << dbginf << fNum << " MMcTrig objects requested, "; 144 144 *fLog << num << " are available... aborting." << endl; 145 145 return kFALSE; … … 150 150 if (num != fNum) 151 151 { 152 *fLog << dbginf << fNum << " MHMcRate objects requested, ";152 *fLog << err << dbginf << fNum << " MHMcRate objects requested, "; 153 153 *fLog << num << " are available... aborting." << endl; 154 154 return kFALSE; -
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r1031 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 -
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r987 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 39 39 40 40 #include "MLog.h" 41 #include "MLogManip.h" 41 42 42 43 ClassImp(MRawCrateData); … … 64 65 void MRawCrateData::Print(Option_t *t) const 65 66 { 66 gLog << "Crate Number " << fDAQCrateNumber << ": "; 67 gLog << "FADCEventNr=" << fFADCEvtNumber << " "; 68 gLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl; 67 *fLog << all; 68 *fLog << "Crate Number " << fDAQCrateNumber << ": "; 69 *fLog << "FADCEventNr=" << fFADCEvtNumber << " "; 70 *fLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl; 69 71 } -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r1076 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 49 49 50 50 #include "MRawEvtData.h" 51 52 #include <iomanip.h>53 51 54 52 #include <fstream.h> … … 155 153 fLog->unsetf(ios::showbase); 156 154 157 *fLog << dec ;155 *fLog << dec << all; 158 156 *fLog << "HiGain: " << nHiPix << " Pixels with " << (Int_t)nHiSamp << " Samples" << endl; 159 157 *fLog << "LoGain: " << nLoPix << " Pixels with " << (Int_t)nLoSamp << " Samples";; … … 213 211 if (GetNumPixels()==0) 214 212 { 215 *fLog << "Sorry, no pixel to draw!" << endl;213 *fLog << warn << "Sorry, no pixel to draw!" << endl; 216 214 return; 217 215 } … … 229 227 num= GetNumPixels(); 230 228 231 *fLog << "Drawing Graph: Pixel #" << num << " of " << (int)GetNumPixels() << endl;229 *fLog << inf << "Drawing Graph: Pixel #" << num << " of " << (int)GetNumPixels() << endl; 232 230 233 231 const Int_t n = GetNumHiGainSamples(); … … 288 286 } 289 287 290 *fLog << dbginf << "Warning - You must specify either 'GRAPH' or 'HIST'" << endl;288 *fLog << warn << dbginf << "Warning - You must specify either 'GRAPH' or 'HIST'" << endl; 291 289 } 292 290 … … 375 373 if (nSamp && ns!=nSamp) 376 374 { 377 *fLog << "RawEvtData::AddPixel: Error, number of samples in ";375 *fLog << err << "RawEvtData::AddPixel: Error, number of samples in "; 378 376 *fLog << "TArrayC doesn't match actual number" << endl; 379 377 return; -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 99 99 100 100 #include "MLog.h" 101 #include "MLogManip.h" 102 101 103 #include "MTime.h" 102 104 #include "MArrayB.h" … … 117 119 // set all member to zero, init the pointer to ClonesArray, 118 120 // 119 120 121 fPixLoGainOn = new MArrayB; 121 122 … … 180 181 void MRawEvtHeader::Print(Option_t *o) const 181 182 { 183 *fLog << all; 182 184 *fLog << "DAQEvtNr: " << dec << fDAQEvtNumber << " ("; 183 185 *fLog << "Trigger: "; … … 214 216 215 217 *fLog << endl; 216 217 218 *fLog << endl; 218 219 219 } 220 220 -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r1052 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 143 143 void MRawEvtPixelIter::Draw(Option_t *t) 144 144 { 145 char *txt = new char[6+strlen(t)]; 146 sprintf(txt, "%s%d", t, *fHiGainId); 147 fData->Draw(txt); 148 delete txt; 145 fData->Draw(Form("%s%d", t, *fHiGainId)); 149 146 } 150 147 -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r1037 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 44 44 45 45 #include "MLog.h" 46 #include "MLogManip.h" 47 46 48 #include "MTime.h" 47 49 #include "MParList.h" … … 92 94 // 93 95 MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title) 94 : fFileName(fname) 96 : fFileName(fname), fIn(NULL) 95 97 { 96 98 fName = name ? name : "MRawFileRead"; 97 99 fTitle = title ? title : "Read task to read DAQ binary files"; 98 100 99 // 100 // open the input stream 101 // 102 fFileName = fname; 103 fIn = new ifstream(fname); 101 fIn = new ifstream; 104 102 } 105 103 … … 132 130 { 133 131 // 132 // open the input stream 134 133 // first of all check if opening the file in the constructor was 135 134 // successfull 136 135 // 136 fIn->open(fFileName); 137 137 if (!(*fIn)) 138 138 { 139 *fLog << "Error: Cannot open file '" << fFileName << "'" << endl;139 *fLog << err << "Error: Cannot open file '" << fFileName << "'" << endl; 140 140 return kFALSE; 141 141 } … … 231 231 // -------------------------------------------------------------------------- 232 232 // 233 // C hecks whether the number of read events differs from the number the234 // file should containe (MRawRunHeader). Prints a warning if it doesn't235 // match.233 // Close the file. Check whether the number of read events differs from 234 // the number the file should containe (MRawRunHeader). Prints a warning 235 // if it doesn't match. 236 236 // 237 237 Bool_t MRawFileRead::PostProcess() 238 238 { 239 // 240 // Sanity check for the number of events 241 // 239 242 if (fRawRunHeader->GetNumEvents() == GetNumExecutions()-1) 240 243 return kTRUE; 241 244 242 *fLog << "WARNING- number of read events (" << GetNumExecutions()-1;245 *fLog << warn << "Warning - number of read events (" << GetNumExecutions()-1; 243 246 *fLog << ") doesn't match number in run header ("; 244 247 *fLog << fRawRunHeader->GetNumEvents() << ")." << endl; -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r1031 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 130 130 if (!fRawEvtHeader) 131 131 { 132 *fLog << dbginf << "MRawEvtHeader not found... aborting." << endl;132 *fLog << err << dbginf << "MRawEvtHeader not found... aborting." << endl; 133 133 return kFALSE; 134 134 } … … 137 137 if (!fRawEvtData) 138 138 { 139 *fLog << dbginf << "MRawEvtData not found... aborting." << endl;139 *fLog << err << dbginf << "MRawEvtData not found... aborting." << endl; 140 140 return kFALSE; 141 141 } … … 144 144 if (!fRawCrateArray) 145 145 { 146 *fLog << dbginf << "MRawCrateArray not found... aborting." << endl;146 *fLog << err << dbginf << "MRawCrateArray not found... aborting." << endl; 147 147 return kFALSE; 148 148 } … … 151 151 if (!fRawEvtTime) 152 152 { 153 *fLog << dbginf << "MRawEvtTime not found... aborting." << endl;153 *fLog << err << dbginf << "MRawEvtTime not found... aborting." << endl; 154 154 return kFALSE; 155 155 } … … 158 158 if (!fRawRunHeader) 159 159 { 160 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;160 *fLog << err << dbginf << "MRawRunHeader not found... aborting." << endl; 161 161 return kFALSE; 162 162 } … … 254 254 } 255 255 256 *fLog << dbginf << "Got wrong number for the trigger type: " << type;257 *fLog << " - skipping" << endl;256 *fLog << warn << dbginf << "Got wrong number for the trigger type: " << type; 257 *fLog << " - skipped" << endl; 258 258 259 259 return kCONTINUE; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r1004 r1082 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 37 37 38 38 #include "MLog.h" 39 #include "MLogManip.h" 40 39 41 #include "MArrayS.h" 40 42 … … 79 81 if (fMagicNumber != kMagicNumber) 80 82 { 81 *fLog << "Error: Wrong Magic Number: Not a Magic File!" << endl;83 *fLog << err << "Error: Wrong Magic Number: Not a Magic File!" << endl; 82 84 return; 83 85 } … … 122 124 void MRawRunHeader::Print(Option_t *t) const 123 125 { 124 *fLog << endl;126 *fLog << all << endl; 125 127 *fLog << "MagicNumber: 0x" << hex << fMagicNumber << " - " << (fMagicNumber==kMagicNumber?"OK":"Wrong!") << endl; 126 128 *fLog << "Version: " << dec << "Format=" << fFormatVersion << " ";
Note:
See TracChangeset
for help on using the changeset viewer.