Changeset 9874
- Timestamp:
- 08/16/10 14:23:04 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r9872 r9874 48 48 - improved existing comments 49 49 - added a full class description 50 - print a warning if TRandom is used a random number generator 50 51 51 52 * mtools/MTFillMatrix.cc: -
trunk/Mars/mjoptim/MJOptimizeBase.cc
r9867 r9874 97 97 98 98 #include <TFile.h> 99 #include <TRandom3.h> 99 100 100 101 #include "MLog.h" … … 109 110 110 111 using namespace std; 112 113 //------------------------------------------------------------------------ 114 // 115 MJOptimizeBase::MJOptimizeBase() : fDebug(-1), fEnableWeights(kFALSE) 116 { 117 if (gRandom && gRandom->IsA()==TRandom::Class()) 118 *fLog << warn << "WARNING - gRandom is a TRandom instance. It is highly adviced to use another random generator!" << endl; 119 } 111 120 112 121 //------------------------------------------------------------------------ -
trunk/Mars/mjoptim/MJOptimizeBase.h
r9867 r9874 22 22 TList fTestCuts; // Cuts executed only in testing 23 23 TList fPreTasks; // Tasks executed before cut execution 24 TList fPostTasks; // Tasks executed after cut execution24 TList fPostTasks; // Tasks executed after pre cut execution 25 25 TList fTestTasks; // Tasks executed at the end of the testing tasklist 26 26 … … 30 30 31 31 public: 32 MJOptimizeBase() : fDebug(-1), fEnableWeights(kFALSE) 33 { 34 } 32 MJOptimizeBase(); 35 33 36 34 // MJOptimizeBase
Note:
See TracChangeset
for help on using the changeset viewer.