Changeset 7749
- Timestamp:
- 05/29/06 15:58:38 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7746 r7749 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2006/05/29 Thomas Bretz 22 23 * mbase/MEnv.cc: 24 - included THashList for compatibility with root 5.10/00 25 26 * mdata/MDataArray.[h,cc]: 27 - included TVector in header for compatibility with root 5.10/00 28 29 * mgui/MHexagon.cc: 30 - changed argument of PaintFillArea from Float_t to Double_t 31 for compatibility with root 5.10/00 32 33 * mhbase/MHMatrix.[h,cc]: 34 - added some #ifdef for compatibility with root 5.10/00 35 - included TVector in the header for compatibility with 36 root 5.10/00 37 38 * mjtrain/MJTrainDisp.cc: 39 - added the possibility to set weights 40 - added new histogram to show avg psf versus energy 41 42 * mjtrain/MJTrainRanForest.cc: 43 - included TFile for compatibility with root 5.10/00 44 45 * mranforest/MRanForest.[h,cc]: 46 - included TMatrix and TVector in header for compatibilty 47 with root 5.10/00 48 49 * mtools/MHSimulatedAnnealing.[h,cc]: 50 - included TMatrix and TVector in header for compatibilty 51 with root 5.10/00 52 53 20 54 21 55 2006/05/24 -
trunk/MagicSoft/Mars/mbase/MEnv.cc
r7534 r7749 40 40 #include <TAttText.h> 41 41 #include <TAttMarker.h> 42 #include <THashList.h> // needed since root v5.10/00 (TEnv::GetTable) 42 43 43 44 #include "MLog.h" -
trunk/MagicSoft/Mars/mdata/MDataArray.cc
r7130 r7749 35 35 #include <fstream> 36 36 37 #include <TVector.h>38 39 37 #include "MLog.h" 40 38 #include "MLogManip.h" -
trunk/MagicSoft/Mars/mdata/MDataArray.h
r7169 r7749 3 3 4 4 ///////////////////////////////////////////////////////////////////////////// 5 // 6 // MDataArray 5 // 6 // MDataArray 7 7 // 8 8 ///////////////////////////////////////////////////////////////////////////// … … 15 15 #endif 16 16 17 class TVector; 17 #ifndef ROOT_TVector 18 #include <TVector.h> 19 #endif 18 20 19 21 class MData; -
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r3514 r7749 284 284 const Int_t np = 6; 285 285 286 const Float_t dx[np+1] = { .5 , 0. , -.5 , -.5 , 0. , .5 , .5 };287 const Float_t dy[np+1] = { .2886, .5772, .2886, -.2886, -.5772, -.2886, .2886 };286 const Double_t dx[np+1] = { .5 , 0. , -.5 , -.5 , 0. , .5 , .5 }; 287 const Double_t dy[np+1] = { .2886, .5772, .2886, -.2886, -.5772, -.2886, .2886 }; 288 288 289 289 // 290 290 // calculate the positions of the pixel corners 291 291 // 292 Float_t x[np+1], y[np+1];292 Double_t x[np+1], y[np+1]; 293 293 for (Int_t i=0; i<np+1; i++) 294 294 { -
trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
r7413 r7749 53 53 #include <TArrayD.h> 54 54 #include <TArrayI.h> 55 #include <TVector.h>56 55 57 56 #include <TH1.h> … … 421 420 avg /= rows; 422 421 422 #if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00) 423 TMatrixFColumn(m, x) += -avg; 424 #else 423 425 TMatrixColumn(m, x) += -avg; 426 #endif 424 427 } 425 428 … … 924 927 // 925 928 TVector v(fM.GetNrows()); 929 #if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00) 930 v = TMatrixFColumn_const(fM, refcolumn); 931 #else 926 932 v = TMatrixColumn(fM, refcolumn); 933 #endif 927 934 //v += -frombin; 928 935 //v *= 1/dbin; … … 1260 1267 for (int i=0; i<m.GetNrows(); i++) 1261 1268 { 1269 #if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00) 1270 const TMatrixFRow_const &row = TMatrixFRow_const(m, i); 1271 #else 1262 1272 const TMatrixRow &row = TMatrixRow(m, i); 1263 1273 #endif 1264 1274 // finite (-> math.h) checks for NaN as well as inf 1265 1275 int jcol; -
trunk/MagicSoft/Mars/mhbase/MHMatrix.h
r7413 r7749 9 9 #include <TMatrix.h> 10 10 #endif 11 11 12 #ifndef MARS_MH 12 13 #include "MH.h" 13 14 #endif 14 15 16 #ifndef ROOT_TVector 17 #include <TVector.h> 18 #endif 19 15 20 class TArrayI; 16 21 class TArrayF; 17 class TVector;18 22 class TH1F; 19 23 -
trunk/MagicSoft/Mars/mjtrain/MJTrainDisp.cc
r7552 r7749 115 115 MHMatrix train("Train"); 116 116 train.AddColumns(fRules); 117 if (fEnableWeights) 118 train.AddColumn("MWeight.fVal"); 117 119 train.AddColumn("MHillasSrc.fDist*MGeomCam.fConvMm2Deg"); 118 120 //train.AddColumn("TMath::Hypot(MHillasSrc.fDCA, MHillasSrc.fDist)*MGeomCam.fConvMm2Deg"); … … 126 128 fill.AddPreCuts(fPreCuts); 127 129 fill.AddPreCuts(fTrainCuts); 130 fill.AddPreTasks(fPreTasks); 131 fill.AddPostTasks(fPostTasks); 128 132 if (!fill.Process()) 129 133 return kFALSE; … … 135 139 rf.SetNumTry(fNumTry); 136 140 rf.SetNumObsoleteVariables(1); 141 rf.SetLastDataColumnHasWeights(fEnableWeights); 137 142 rf.SetDisplay(fDisplay); 138 143 rf.SetLogStream(fLog); … … 191 196 MFillH fillh(&hist, "", "FillThetaSq"); 192 197 198 // 0 = disp^2 - 2*disp*dist*cos(alpha) + dist^2 199 200 // cos^2 -1 = - sin^2 201 202 // disp = +dist* (cos(alpha) +/- sqrt(cos^2(alpha) - 1) ) 203 193 204 const char *rule = "(MHillasSrc.fDist*MGeomCam.fConvMm2Deg)^2 + (Disp.fVal)^2 - (2*MHillasSrc.fDist*MGeomCam.fConvMm2Deg*Disp.fVal*cos(MHillasSrc.fAlpha*kDeg2Rad))"; 194 205 … … 199 210 eval.SetY1("sqrt(ThetaSquared.fVal)"); 200 211 201 MH3 hdisp("MHillas.fSize", "sqrt(ThetaSquared.fVal)"); 202 hdisp.SetTitle("\\vartheta distribution vs. Size:Size [phe]:\\vartheta [\\circ]"); 203 204 MBinning binsx(100, 10, 100000, "BinningMH3X", "log"); 205 MBinning binsy(100, 0, 2, "BinningMH3Y", "lin"); 212 MH3 hdisp1("MHillas.fSize", "sqrt(ThetaSquared.fVal)"); 213 MH3 hdisp2("MMcEvt.fEnergy", "sqrt(ThetaSquared.fVal)"); 214 hdisp1.SetTitle("\\vartheta distribution vs. Size:Size [phe]:\\vartheta [\\circ]"); 215 hdisp2.SetTitle("\\vartheta distribution vs. Energy:Enerhy [GeV]:\\vartheta [\\circ]"); 216 217 MBinning binsx(50, 10, 100000, "BinningMH3X", "log"); 218 MBinning binsy(50, 0, 1, "BinningMH3Y", "lin"); 206 219 207 220 plist.AddToList(&binsx); 208 221 plist.AddToList(&binsy); 209 222 210 MFillH fillh2(&hdisp, "", "FillMH3"); 211 fillh2.SetDrawOption("blue profx"); 223 MFillH fillh2a(&hdisp1, "", "FillSize"); 224 MFillH fillh2b(&hdisp2, "", "FillEnergy"); 225 fillh2a.SetDrawOption("blue profx"); 226 fillh2b.SetDrawOption("blue profx"); 227 fillh2a.SetNameTab("Size"); 228 fillh2b.SetNameTab("Energy"); 212 229 213 230 tlist.AddToList(&readtst); … … 216 233 tlist.AddToList(&calcthetasq); 217 234 tlist.AddToList(&fillh); 218 tlist.AddToList(&fillh2); 235 tlist.AddToList(&fillh2a); 236 tlist.AddToList(&fillh2b); 219 237 tlist.AddToList(&eval); 220 238 -
trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc
r7710 r7749 18 18 ! Author(s): Thomas Bretz 11/2005 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2005 20 ! Copyright: MAGIC Software Development, 2005-2006 21 21 ! 22 22 ! … … 31 31 ///////////////////////////////////////////////////////////////////////////// 32 32 #include "MJTrainRanForest.h" 33 34 #include <TFile.h> 33 35 34 36 #include "MLog.h" -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r7724 r7749 42 42 #include "MRanForest.h" 43 43 44 #include <TVector.h>45 44 #include <TRandom.h> 46 45 -
trunk/MagicSoft/Mars/mranforest/MRanForest.h
r7693 r7749 18 18 #endif 19 19 20 class TMatrix; 21 class TVector; 20 #ifndef ROOT_TMatrix 21 #include <TMatrix.h> 22 #endif 23 24 #ifndef ROOT_TVector 25 #include <TVector.h> 26 #endif 27 22 28 class TObjArray; 23 29 -
trunk/MagicSoft/Mars/mtools/MHSimulatedAnnealing.cc
r5832 r7749 33 33 #include "MHSimulatedAnnealing.h" 34 34 35 #include <TVector.h>36 #include <TMatrix.h>37 35 #include <TObjArray.h> 38 36 -
trunk/MagicSoft/Mars/mtools/MHSimulatedAnnealing.h
r4647 r7749 5 5 // MHSimulatedAnnealing 6 6 // 7 // Output container of MSimulatedAnnealing8 7 /////////////////////////////////////////////////////////////////////////////// 9 8 #ifndef MARS_MH … … 15 14 #endif 16 15 17 class TMatrix; 18 class TVector; 16 #ifndef ROOT_TMatrix 17 #include <TMatrix.h> 18 #endif 19 20 #ifndef ROOT_TVector 21 #include <TVector.h> 22 #endif 23 19 24 20 25 class MHSimulatedAnnealing : public MH
Note:
See TracChangeset
for help on using the changeset viewer.