- Timestamp:
- 07/17/03 08:06:40 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2277 r2282 1 1 -*-*- END OF LINE -*-*- 2 3 2003/07/14: Wolfgang Wittek 4 5 * mhist/MHOnSubtraction.[h,cc] 6 - add member function GetSignificance() 7 8 * mhist/MHMatrix.cc 9 - add MProgressBar in Fill() 10 11 * mmontecarlo/MMcEnergyEst.h 12 - add member functions GetNumCoeffA() 13 GetNumCoeffB() 14 15 * mfilter/MCT1SelBasic.[h,cc] 16 - remove runs 601, 613, 614 for MC gamma 17 18 * manalysis/MCT1SupercutsCalc.cc 19 - remove bug (dd2) 20 - set fMatrix = NULL in constructor 21 22 * mgeom.MGeomCamCT1Daniel.[h,cc] 23 - new; Daniel's CT1 geometry 24 25 * mgeom/Makefile 26 GeomLinkDef.h 27 28 2 29 3 30 2003/07/14: Oscarlanch -
trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc
r2272 r2282 158 158 159 159 TArrayD lup(ncutpar, par + k0); 160 SetLengthUp(lup);160 fLengthUp = lup; 161 161 k0 += ncutpar; 162 162 163 163 TArrayD wup(ncutpar, par + k0); 164 SetWidthUp(wup);164 fWidthUp = wup; 165 165 k0 += ncutpar; 166 166 167 167 TArrayD dup(ncutpar, par + k0); 168 SetDistUp(dup);168 fDistUp = dup; 169 169 k0 += ncutpar; 170 170 171 171 TArrayD llo(ncutpar, par + k0); 172 SetLengthLo(llo);172 fLengthLo = llo; 173 173 k0 += ncutpar; 174 174 175 175 TArrayD wlo(ncutpar, par + k0); 176 SetWidthLo(wlo);176 fWidthLo = wlo; 177 177 k0 += ncutpar; 178 178 179 179 TArrayD dlo(ncutpar, par + k0); 180 SetDistLo(dlo);180 fDistLo = dlo; 181 181 k0 += ncutpar; 182 182 183 183 TArrayD aup(ncutpar, par + k0); 184 SetAsymUp(aup);184 fAsymUp = aup; 185 185 k0 += ncutpar; 186 186 187 187 TArrayD alo(ncutpar, par + k0); 188 SetAsymLo(alo);188 fAsymLo = alo; 189 189 k0 += ncutpar; 190 190 191 191 TArrayD alphaup(ncutpar, par + k0); 192 SetAlphaUp(alphaup);192 fAlphaUp = alphaup; 193 193 } 194 194 … … 277 277 278 278 InitParams(); 279 280 fMatrix = NULL; 279 281 } 280 282 … … 423 425 424 426 const Double_t dist2 = meanx*meanx + meany*meany; 425 const Double_t dd2 = dist2*fMm2Deg;426 427 const Double_t dist = sqrt(dist2) * fMm2Deg; 428 const Double_t dd2 = dist*dist; 429 427 430 428 431 const Double_t dmls = log(size) - kNomLogSize; -
trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc
r2206 r2282 30 30 // This is a class to evaluate basic cuts 31 31 // 32 // WHAT ARE THE BASIC CUTS?33 //34 32 // to be called after the calibration (when the number of photons is 35 33 // available for all pixels) 36 34 // 35 // The basic cuts are : 36 // 37 // remove bad runs 38 // thetamin < theta < thetamax 39 // software trigger fullfilled (with minimum no.of photons = minphotons) 40 // 41 // 37 42 ///////////////////////////////////////////////////////////////////////////// 38 43 … … 44 49 45 50 #include "MCerPhotEvt.h" 46 //nclude "MRawRunHeader.h"51 #include "MRawRunHeader.h" 47 52 48 53 #include "MGeomPix.h" … … 95 100 Int_t MFCT1SelBasic::PreProcess(MParList *pList) 96 101 { 97 /*98 102 fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 99 103 if (!fRawRun) … … 102 106 return kFALSE; 103 107 } 104 */105 108 106 109 fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt"); … … 148 151 // Evaluate basic cuts 149 152 // 150 // if cuts are fulfilled: fResult = kTRUE;151 // if they are not fullfilled: fResult = kFALSE;153 // bad events : fResult = kTRUE; 154 // good events : fResult = kFALSE; 152 155 // 153 156 Int_t MFCT1SelBasic::Process() … … 157 160 fResult = kFALSE; 158 161 162 // remove bad runs for MC gammas 163 if (fMcEvt->GetEnergy() == 0.0 && fMcEvt->GetImpact() == 0.0) 164 { 165 if (fRawRun->GetRunNumber() == 601 || 166 fRawRun->GetRunNumber() == 613 || 167 fRawRun->GetRunNumber() == 614 ) 168 return Set(1); 169 } 170 159 171 if (theta<fThetaMin) 160 return Set( 1);172 return Set(2); 161 173 162 174 if (theta>fThetaMax) 163 return Set( 2);175 return Set(3); 164 176 165 177 if (!SwTrigger()) 166 return Set( 3);178 return Set(4); 167 179 168 180 fCut[0]++; … … 234 246 *fLog << GetDescriptor() << " execution statistics:" << endl; 235 247 *fLog << dec << setfill(' '); 248 236 249 *fLog << " " << setw(7) << fCut[1] << " (" << setw(3) ; 237 250 *fLog << (int)(fCut[1]*100/GetNumExecutions()) ; 238 *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin<< endl;251 *fLog << "%) Evts skipped due to: bad run " << endl; 239 252 240 253 *fLog << " " << setw(7) << fCut[2] << " (" << setw(3) ; 241 254 *fLog << (int)(fCut[2]*100/GetNumExecutions()) ; 242 *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax<< endl;255 *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin << endl; 243 256 244 257 *fLog << " " << setw(7) << fCut[3] << " (" << setw(3) ; 245 258 *fLog << (int)(fCut[3]*100/GetNumExecutions()) ; 259 *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl; 260 261 *fLog << " " << setw(7) << fCut[4] << " (" << setw(3) ; 262 *fLog << (int)(fCut[4]*100/GetNumExecutions()) ; 246 263 *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ; 247 264 *fLog << " (with fMinPhotons = " << fMinPhotons << ")" << endl; -
trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.h
r2206 r2282 18 18 class MCerPhotEvt; 19 19 class MPedestalCam; 20 //class MRawRunHeader;20 class MRawRunHeader; 21 21 22 22 class MFCT1SelBasic : public MFilter … … 27 27 const MCerPhotEvt *fEvt; // Cerenkov Photon Event 28 28 //const MPedestalCam *fPed; // Pedestal information 29 //const MRawRunHeader *fRawRun;29 const MRawRunHeader *fRawRun; 30 30 31 31 Float_t fMinPhotons; … … 33 33 Float_t fThetaMax; 34 34 35 Int_t fCut[ 4];35 Int_t fCut[5]; 36 36 37 37 Bool_t fResult; -
trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h
r2277 r2282 10 10 #pragma link C++ class MGeomCam+; 11 11 #pragma link C++ class MGeomCamCT1+; 12 #pragma link C++ class MGeomCamCT1Daniel+; 12 13 #pragma link C++ class MGeomCamMagic+; 13 14 #pragma link C++ class MGeomCamMagicHG+; -
trunk/MagicSoft/Mars/mgeom/Makefile
r2277 r2282 31 31 MGeomCam.cc \ 32 32 MGeomCamCT1.cc \ 33 MGeomCamCT1Daniel.cc \ 33 34 MGeomCamMagic.cc \ 34 35 MGeomCamMagicHG.cc \ -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r2276 r2282 65 65 #include "MParList.h" 66 66 #include "MTaskList.h" 67 #include "MProgressBar.h" 67 68 68 69 #include "MData.h" … … 624 625 tlist.AddToList(&fillh); 625 626 627 MProgressBar bar; 626 628 MEvtLoop evtloop; 627 629 evtloop.SetParList(plist); 630 evtloop.SetProgressBar(&bar); 628 631 629 632 if (!evtloop.Eventloop()) -
trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc
r2177 r2282 1426 1426 1427 1427 1428 /* 1428 1429 1429 1430 1430 … … 1660 1660 1661 1661 1662 */ 1662 1663 1663 1664 1664 … … 1678 1678 FitHistogram(*aHisto, sigLiMa, lowerBin, upperBin, (Float_t)3.5, kFALSE); 1679 1679 1680 if (sigLiMa < 3)1681 *fLog << err << "No significant excess (sigma=" << sigLiMa <<")!"<<endl;1680 //if (sigLiMa < 3) 1681 // *fLog << err << "No significant excess (sigma=" << sigLiMa <<")!"<<endl; 1682 1682 1683 1683 if (signalRegion!=0) { … … 1691 1691 gammaSignal, errorGammaSignal, off, errorOff, 1692 1692 (Float_t)3.0, draw); 1693 1694 fSignificance = sigLiMa; 1693 1695 1694 1696 *fLog << inf << "Signal is " -
trunk/MagicSoft/Mars/mhist/MHOnSubtraction.h
r2170 r2282 48 48 Int_t fSigniPlotColor; 49 49 50 Double_t fSignificance; 51 50 52 Bool_t CalcAET(TH3D *histon, MParList *parlist, const Bool_t Draw); 51 53 … … 75 77 76 78 Double_t CalcSignificance(Double_t nOn, Double_t nOff, Double_t theta); 79 Double_t GetSignificance() { return fSignificance; }; 77 80 78 81 void SetExpoSlope(Double_t slope) { fSlope = slope; } -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h
r2173 r2282 42 42 Int_t GetNevents() const {return fNevents;} 43 43 44 Int_t GetNumCoeffA() const {return fA.GetSize(); } 45 Int_t GetNumCoeffB() const {return fB.GetSize(); } 46 44 47 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; } 45 48
Note:
See TracChangeset
for help on using the changeset viewer.