Changeset 2173 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 06/13/03 16:42:37 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
r2015 r2173 67 67 #include "MBlindPixelCalc.h" 68 68 69 #include <fstream .h>69 #include <fstream> 70 70 71 71 #include "MLog.h" … … 83 83 84 84 ClassImp(MBlindPixelCalc); 85 86 using namespace std; 85 87 86 88 static const TString gsDefName = "MBlindPixelCalc"; -
trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.cc
r2088 r2173 43 43 44 44 ClassImp(MCT1PointingCorrCalc); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc
r2109 r2173 31 31 32 32 #include <math.h> 33 #include <fstream .h>33 #include <fstream> 34 34 35 35 #include "MLog.h" … … 45 45 46 46 ClassImp(MCT1SupercutsCalc); 47 48 using namespace std; 47 49 48 50 void MCT1SupercutsCalc::InitParams() -
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc
r2135 r2173 54 54 ClassImp(MCerPhotAnal); 55 55 56 using namespace std; 57 56 58 // -------------------------------------------------------------------------- 57 59 // … … 178 180 179 181 sigmaped /= (fRawEvt->GetNumHiGainSamples()-5); 180 sigmaped = sqrt( sumlocal);182 sigmaped = sqrt((float)sumlocal); 181 183 182 184 const UInt_t pixid = pixel.GetPixelId(); … … 195 197 fCerPhotEvt->AddPixel(pixid, nphot, sigmaped/2.236); 196 198 ped.SetPedestal(pedes, sigmaped); 197 ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5 ),198 sigmaped/sqrt(2 *(fRawEvt->GetNumHiGainSamples()-5)));199 ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5.), 200 sigmaped/sqrt(2.*(fRawEvt->GetNumHiGainSamples()-5))); 199 201 200 202 // FIXME! Handling of Lo Gains is missing! -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r2135 r2173 57 57 ClassImp(MCerPhotCalc); 58 58 59 using namespace std; 60 59 61 // -------------------------------------------------------------------------- 60 62 // -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r2147 r2173 28 28 #include <math.h> 29 29 #include <limits.h> 30 #include <fstream .h>30 #include <fstream> 31 31 32 32 #include <TCanvas.h> … … 37 37 38 38 ClassImp(MCerPhotEvt); 39 40 using namespace std; 39 41 40 42 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r2056 r2173 29 29 ClassImp(MCerPhotPix); 30 30 31 using namespace std; 32 31 33 // -------------------------------------------------------------------------- 32 34 // -
trunk/MagicSoft/Mars/manalysis/MCompProbCalc.cc
r1574 r2173 46 46 47 47 ClassImp(MCompProbCalc); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCurrents.cc
r2147 r2173 36 36 37 37 ClassImp(MCurrents); 38 39 using namespace std; 38 40 39 41 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCurrents.h
r2147 r2173 27 27 UInt_t GetCurrent(Int_t i) const { return (*this)[i]; } 28 28 UInt_t &operator[](Int_t i) { return (UInt_t&)fArray[i]; } 29 const UInt_t &operator[](Int_t i) const { return ( (TArrayI)fArray)[i]; }29 const UInt_t &operator[](Int_t i) const { return (*this)[i]; } 30 30 31 31 UInt_t GetMin() const; -
trunk/MagicSoft/Mars/manalysis/MEnergyEst.cc
r1525 r2173 39 39 ClassImp(MEnergyEst); 40 40 41 using namespace std; 42 41 43 // -------------------------------------------------------------------------- 42 44 // -
trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.cc
r1886 r2173 46 46 ClassImp(MEnergyEstParam); 47 47 48 using namespace std; 49 48 50 // -------------------------------------------------------------------------- 49 51 // … … 284 286 } 285 287 286 void MEnergyEstParam::Print(Option_t *opt) 288 void MEnergyEstParam::Print(Option_t *opt) const 287 289 { 288 290 for (int i=0; i<fA.GetSize(); i++) -
trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.h
r1886 r2173 61 61 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; } 62 62 63 void Print(Option_t *o=NULL) ;63 void Print(Option_t *o=NULL) const; 64 64 65 65 ClassDef(MEnergyEstParam, 0) // Task to estimate the energy -
trunk/MagicSoft/Mars/manalysis/MEnergyEstimate.cc
r1211 r2173 45 45 ClassImp(MEnergyEstimate); 46 46 47 using namespace std; 48 49 47 50 // -------------------------------------------------------------------------- 48 51 // -
trunk/MagicSoft/Mars/manalysis/MFiltercutsCalc.cc
r2125 r2173 47 47 48 48 ClassImp(MFiltercutsCalc); 49 50 using namespace std; 49 51 50 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHadronness.cc
r1557 r2173 39 39 ClassImp(MHadronness); 40 40 41 using namespace std; 42 41 43 // -------------------------------------------------------------------------- 42 44 // -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r1965 r2173 53 53 54 54 ClassImp(MMcPedestalCopy); 55 56 using namespace std; 55 57 56 58 MMcPedestalCopy::MMcPedestalCopy(const char *name, const char *title) … … 136 138 137 139 const Float_t pedest = fMcPed->GetPedestal(i); 138 const Float_t pedrms = pedest/sqrt( num);140 const Float_t pedrms = pedest/sqrt((float)num); 139 141 140 142 const Float_t sigma = fMcPed->GetPedestalRms(i); 141 const Float_t sigrms = sigma/sqrt(num*2 );143 const Float_t sigrms = sigma/sqrt(num*2.); 142 144 143 145 pix.SetPedestal(pedest, sigma); -
trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
r2139 r2173 70 70 ClassImp(MMcPedestalNSBAdd); 71 71 72 using namespace std; 73 72 74 // -------------------------------------------------------------------------- 73 75 // -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc
r2005 r2173 56 56 #include <TCanvas.h> 57 57 58 59 ClassImp(MMcTriggerLvl2) 58 ClassImp(MMcTriggerLvl2); 59 60 using namespace std; 60 61 61 62 // --------------------------- -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc
r1991 r2173 49 49 #include "MGeomCam.h" 50 50 51 ClassImp(MMcTriggerLvl2Calc); 51 52 52 ClassImp(MMcTriggerLvl2Calc);53 using namespace std; 53 54 54 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
r2114 r2173 45 45 #include "MMultiDimDistCalc.h" 46 46 47 #include <fstream .h>47 #include <fstream> 48 48 49 49 #include "MHMatrix.h" // must be before MLogManip.h … … 59 59 60 60 ClassImp(MMultiDimDistCalc); 61 62 using namespace std; 61 63 62 64 static const TString gsDefName = "MMultiDimDistCalc"; … … 176 178 *fData >> event; 177 179 178 Double_t numg = fNum;179 Double_t numh = fNum;180 Int_t numg = fNum; 181 Int_t numh = fNum; 180 182 if (fNum==0) 181 183 { -
trunk/MagicSoft/Mars/manalysis/MPadding.cc
r1951 r2173 98 98 ClassImp(MPadding); 99 99 100 using namespace std; 101 100 102 // -------------------------------------------------------------------------- 101 103 // -
trunk/MagicSoft/Mars/manalysis/MParameters.cc
r1947 r2173 35 35 #include "MParameters.h" 36 36 37 #include <fstream .h>37 #include <fstream> 38 38 39 39 #include "MLog.h" … … 43 43 ClassImp(MParameterI); 44 44 //ClassImp(MParameter); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r1081 r2173 50 50 51 51 ClassImp(MPedCalcPedRun); 52 53 using namespace std; 52 54 53 55 MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title) … … 135 137 Float_t MPedCalcPedRun::CalcHiGainMeanErr(Float_t higainrms) const 136 138 { 137 return higainrms/sqrt( fNumHiGainSamples);139 return higainrms/sqrt((float)fNumHiGainSamples); 138 140 } 139 141 -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r2135 r2173 40 40 #include "MGeomCam.h" 41 41 42 ClassImp(MPedestalCam); 42 43 43 ClassImp(MPedestalCam);44 using namespace std; 44 45 45 46 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MSigmabar.cc
r2103 r2173 55 55 ClassImp(MSigmabar); 56 56 57 using namespace std; 58 57 59 // -------------------------------------------------------------------------- 58 60 // -
trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc
r1951 r2173 50 50 51 51 ClassImp(MSigmabarCalc); 52 53 using namespace std; 52 54 53 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MSigmabarParam.cc
r1682 r2173 46 46 ClassImp(MSigmabarParam); 47 47 48 using namespace std; 49 48 50 MSigmabarParam::MSigmabarParam(const char *name, const char *title) : fSigmabarMin(0), fSigmabarMax(0), fMjdMin(0), fMjdMax(0), fThetaMin(0), fThetaMax(0), fRunNumber(0) 49 51 { … … 73 75 } 74 76 75 void MSigmabarParam::Print( )77 void MSigmabarParam::Print(Option_t *) const 76 78 { 77 79 *fLog << endl << "Run " << fRunNumber << " | " -
trunk/MagicSoft/Mars/manalysis/MSigmabarParam.h
r2001 r2173 33 33 Double_t GetThetaMax() const { return fThetaMax; } 34 34 35 void Print( );35 void Print(Option_t *o="") const; 36 36 37 37 ClassDef(MSigmabarParam, 1) // Storage container for characterizing a distribution of events in the Sigmabar-Theta plane -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc
r1487 r2173 34 34 #include "MSrcPosCam.h" 35 35 36 #include <fstream .h>36 #include <fstream> 37 37 38 38 #include "MLog.h" … … 40 40 41 41 ClassImp(MSrcPosCam); 42 43 using namespace std; 42 44 43 45 static const TString gsDefName = "MSrcPosCam";
Note:
See TracChangeset
for help on using the changeset viewer.