- Timestamp:
- 11/20/04 13:41:51 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPad.cc
r5436 r5437 503 503 } 504 504 505 *fLog << "hist2patternin = " << hist2patternin << endl;506 *fLog << "hist2patternout = " << hist2patternout << endl;507 *fLog << "hist3pattern = " << hist3pattern << endl;505 //*fLog << "hist2patternin = " << hist2patternin << endl; 506 //*fLog << "hist2patternout = " << hist2patternout << endl; 507 //*fLog << "hist3pattern = " << hist3pattern << endl; 508 508 509 509 510 510 TAxis *axs = hist2patternin->GetXaxis(); 511 511 Int_t nbinsthetas = axs->GetNbins(); 512 *fLog << "vor fHSigmaTheta : nbinsthetas = " << nbinsthetas << endl;512 //*fLog << "vor fHSigmaTheta : nbinsthetas = " << nbinsthetas << endl; 513 513 514 514 TArrayD edgess; … … 517 517 { 518 518 edgess[i] = axs->GetBinLowEdge(i+1); 519 *fLog << all << "i, theta low edge = " << i << ", " << edgess[i]520 << endl;519 //*fLog << all << "i, theta low edge = " << i << ", " << edgess[i] 520 // << endl; 521 521 } 522 522 … … 912 912 // write the target padding histograms onto a file --------- 913 913 WritePaddingDist(fileout); 914 915 //------------------------------------------------------- 916 TCanvas *pad = MH::MakeDefCanvas("target", "target", 600, 300); 917 gROOT->SetSelectedPad(NULL); 918 919 pad->Divide(2, 1); 920 921 pad->cd(1); 922 gPad->SetBorderMode(0); 923 fHSigmaTheta->SetDirectory(NULL); 924 fHSigmaTheta->UseCurrentStyle(); 925 fHSigmaTheta->DrawClone(); 926 fHSigmaTheta->SetBit(kCanDelete); 927 928 pad->cd(2); 929 gPad->SetBorderMode(0); 930 fHSigmaThetaOuter->SetDirectory(NULL); 931 fHSigmaThetaOuter->UseCurrentStyle(); 932 fHSigmaThetaOuter->DrawClone(); 933 fHSigmaThetaOuter->SetBit(kCanDelete); 934 935 pad->Draw(); 914 936 915 937 return kTRUE; -
trunk/MagicSoft/Mars/mfilter/MFSelBasic.cc
r5431 r5437 37 37 // remove bad runs 38 38 // thetamin < theta < thetamax 39 // phimin < phi < phimax 39 40 // software trigger fullfilled (with minimum no.of photons = minphotons) 40 41 // … … 71 72 72 73 // default values of cuts 73 SetCuts(20.0, 0.0, 60.0 );74 SetCuts(20.0, 0.0, 60.0, 0.0, 360.0); 74 75 } 75 76 … … 80 81 // 81 82 void MFSelBasic::SetCuts(Float_t minphotons, 82 Float_t thetamin, Float_t thetamax) 83 Float_t thetamin, Float_t thetamax, 84 Float_t phimin, Float_t phimax) 83 85 { 84 86 fMinPhotons = minphotons; 87 85 88 fThetaMin = thetamin; 86 89 fThetaMax = thetamax; 87 90 91 fPhiMin = phimin; 92 fPhiMax = phimax; 88 93 } 89 94 … … 126 131 127 132 //------------------------- 128 *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax = "; 129 *fLog << fMinPhotons <<", " << fThetaMin << ", " << fThetaMax << endl; 133 *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax, fPhiMin, fPhiMax = "; 134 *fLog << fMinPhotons << ", " << fThetaMin << ", " << fThetaMax << ", " 135 << fPhiMin << ", " << fPhiMax << endl; 130 136 //------------------------- 131 137 … … 150 156 { 151 157 const Double_t theta = fPointPos->GetZd(); 158 const Double_t phi = fPointPos->GetAz(); 152 159 153 160 fResult = kFALSE; … … 168 175 return Set(3); 169 176 177 if (phi<fPhiMin) 178 return Set(5); 179 180 if (phi>fPhiMax) 181 return Set(6); 182 170 183 if (!SwTrigger()) 171 184 return Set(4); … … 252 265 *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl; 253 266 267 *fLog << " " << setw(7) << fCut[5] << " (" << setw(3) ; 268 *fLog << (int)(fCut[5]*100/GetNumExecutions()) ; 269 *fLog << "%) Evts skipped due to: Azimuth angle < " << fPhiMin << endl; 270 271 *fLog << " " << setw(7) << fCut[6] << " (" << setw(3) ; 272 *fLog << (int)(fCut[6]*100/GetNumExecutions()) ; 273 *fLog << "%) Evts skipped due to: Azimuth angle > " << fPhiMax << endl; 274 254 275 *fLog << " " << setw(7) << fCut[4] << " (" << setw(3) ; 255 276 *fLog << (int)(fCut[4]*100/GetNumExecutions()) ; -
trunk/MagicSoft/Mars/mfilter/MFSelBasic.h
r4886 r5437 33 33 Float_t fThetaMax; 34 34 35 Int_t fCut[5]; 35 Float_t fPhiMin; 36 Float_t fPhiMax; 37 38 Int_t fCut[7]; 36 39 37 40 Bool_t fResult; … … 50 53 MFSelBasic(const char *name=NULL, const char *title=NULL); 51 54 52 void SetCuts(Float_t minphotons, Float_t thetamin, Float_t thetamax); 55 void SetCuts(Float_t minphotons=0.0, 56 Float_t thetamin=0.0, Float_t thetamax=90.0, 57 Float_t phimin=0.0, Float_t phimax=360.0); 53 58 54 59 ClassDef(MFSelBasic, 0) // Class to evaluate basic cuts
Note:
See TracChangeset
for help on using the changeset viewer.