Changeset 2173 for trunk/MagicSoft/Mars/mmontecarlo
- Timestamp:
- 06/13/03 16:42:37 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mmontecarlo
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r2036 r2173 49 49 50 50 ClassImp(MMcCollectionAreaCalc); 51 52 using namespace std; 51 53 52 54 MMcCollectionAreaCalc::MMcCollectionAreaCalc(const char *input, -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.cc
r2119 r2173 62 62 #include "MLogManip.h" 63 63 64 ClassImp(MMcEnergyEst); 65 66 using namespace std; 64 67 65 68 //------------------------------------------------------------------------ … … 67 70 // fcn calculates the function to be minimized (using TMinuit::Migrad) 68 71 // 69 void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)72 static void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) 70 73 { 71 74 MEvtLoop *evtloop = (MEvtLoop*)gMinuit->GetObjectFit(); … … 82 85 f = eval->GetChisq(); 83 86 } 84 85 ClassImp(MMcEnergyEst);86 87 87 88 // -------------------------------------------------------------------------- … … 323 324 // Print current values of parameters 324 325 // 325 void MMcEnergyEst::Print(Option_t *o) 326 void MMcEnergyEst::Print(Option_t *o) const 326 327 { 327 328 for (Int_t i = 0; i < fA.GetSize(); i++) -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h
r2119 r2173 47 47 48 48 void FindParams(); 49 void Print(Option_t *o="") ;49 void Print(Option_t *o="") const; 50 50 51 51 ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
r1108 r2173 52 52 ClassImp(MMcThresholdCalc); 53 53 54 const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2); 54 using namespace std; 55 56 const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2.); 55 57 56 58 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.cc
r1238 r2173 86 86 const UInt_t t = fTime->GetTimeLo(); 87 87 88 fTime->SetTime( t+dt*10000, 0); // [0.1ms]88 fTime->SetTime((int)(t+dt*10000), 0); // [0.1ms] 89 89 90 90 return kTRUE; -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r1893 r2173 29 29 #include "MMcTriggerRateCalc.h" 30 30 31 #include <math.h> 32 33 #include <TCanvas.h> 34 31 35 #include "MLog.h" 32 36 #include "MLogManip.h" 33 37 34 38 #include "MParList.h" 35 #include "MHMcRate.h"36 39 37 40 #include "MMcEvt.hxx" … … 42 45 43 46 #include "MH.h" 44 #include <TCanvas.h> 45 #include <math.h> 46 47 #include "MHMcRate.h" 47 48 48 49 ClassImp(MMcTriggerRateCalc); 50 51 using namespace std; 49 52 50 53 void MMcTriggerRateCalc::Init(int dim, float *trigbg, float simbg, … … 364 367 // Draw rate as a funtion of discriminator threshold. 365 368 // 366 void MMcTriggerRateCalc::Draw( )369 void MMcTriggerRateCalc::Draw(Option_t *) 367 370 { 368 371 /* -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h
r1792 r2173 67 67 TH1F* GetHist(Int_t i) {return fHist[i];} 68 68 69 void Draw( );69 void Draw(const Option_t *o=""); 70 70 71 71 ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
Note:
See TracChangeset
for help on using the changeset viewer.