Changeset 4322
- Timestamp:
- 06/22/04 14:24:03 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4319 r4322 28 28 - added one argument to CntCamContent to tell if event above or 29 29 below threshold have to be counted. Default is above, like before 30 - added one argument to Projection and ProjectionS giving the number 31 of bins as argument (default 50 like before) 30 32 31 33 * mcalib/MCalibrationChargeCalc.cc -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4321 r4322 986 986 area[0] = i; 987 987 988 TH1D *hist = camphes.ProjectionS(TArrayI(),area );988 TH1D *hist = camphes.ProjectionS(TArrayI(),area,"_py",100); 989 989 hist->Fit("gaus","Q"); 990 990 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); … … 992 992 const Int_t ndf = hist->GetFunction("gaus")->GetNDF(); 993 993 994 if (ndf < 1)994 if (ndf < 2) 995 995 { 996 996 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons " … … 1004 1004 const Double_t prob = hist->GetFunction("gaus")->GetProb(); 1005 1005 1006 if (prob < 0.00 05)1006 if (prob < 0.001) 1007 1007 { 1008 1008 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the number of photo-electrons " … … 1394 1394 area[0] = i; 1395 1395 1396 TH1D *hist = camffactor.ProjectionS(TArrayI(),area );1396 TH1D *hist = camffactor.ProjectionS(TArrayI(),area,"_py",100); 1397 1397 hist->Fit("gaus","Q"); 1398 1398 const Float_t mean = hist->GetFunction("gaus")->GetParameter(1); … … 1400 1400 const Int_t ndf = hist->GetFunction("gaus")->GetNDF(); 1401 1401 1402 if (ndf < 1)1402 if (ndf < 2) 1403 1403 { 1404 1404 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor " … … 1412 1412 const Double_t prob = hist->GetFunction("gaus")->GetProb(); 1413 1413 1414 if (prob < 0.00 05)1414 if (prob < 0.001) 1415 1415 { 1416 1416 *fLog << warn << GetDescriptor() << ": Cannot use a Gauss fit to the F-Factor " -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4318 r4322 541 541 // into account. 542 542 // 543 TH1D *MHCamera::ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name) const 544 { 545 Int_t nbins = 50; 543 TH1D *MHCamera::ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name, const Int_t nbins) const 544 { 546 545 547 546 // Create the projection histogram -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r4318 r4322 240 240 UInt_t GetNumPixels() const; 241 241 242 TH1D *Projection(const char *name="_py") const { return ProjectionS(TArrayI(), TArrayI(), name); } 243 TH1D *ProjectionS(Int_t sector, Int_t aidx, const char *name="_py") const 244 { 245 return ProjectionS(TArrayI(1, §or), TArrayI(1, &aidx), name); 246 } 247 TH1D *ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name="_py") const; 242 TH1D *Projection(const char *name="_py", const Int_t nbins=50) const 243 { 244 return ProjectionS(TArrayI(), TArrayI(), name,nbins); 245 } 246 TH1D *ProjectionS(Int_t sector, Int_t aidx, const char *name="_py", const Int_t nbins=50) const 247 { 248 return ProjectionS(TArrayI(1, §or), TArrayI(1, &aidx), name, nbins); 249 } 250 TH1D *ProjectionS(const TArrayI §or, const TArrayI &aidx, const char *name="_py", const Int_t nbins=50) const; 248 251 249 252 TProfile *RadialProfile(const char *name="_rad") const { return RadialProfileS(TArrayI(), TArrayI(), name);}
Note:
See TracChangeset
for help on using the changeset viewer.