Changeset 6973 for trunk/MagicSoft/Mars
- Timestamp:
- 04/22/05 15:32:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6972 r6973 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/04/22 Markus Meyer 25 26 * mmuon/MMuonSetup[.h.cc]: 27 - new container class for muon parameters 28 which are not changing from event to event 29 (setup parameters for the analysis). These 30 parameters were stored in MMuonCalibPar before 31 32 * mmuon/MMuonCalibPar[.h.cc]: 33 - changed MCerPhotEvt and MCerphotPix to MSignalCam 34 and MSignalPix to read the new format 35 - removed the setup parameters (stored now in 36 MMuonSetup) 37 - removed all the sanity checks 38 - removed pre-cuts 39 - cuts in process, to save only muon-like events 40 41 * mmuon/MMuonCalibParCalc[.h.cc]: 42 - changed MCerPhotEvt and MCerphotPix to MSignalCam 43 and MSignalPix to read the new format 44 - removed pre-cuts 45 46 * mmuon/MMuonSearchPar[.h.cc]: 47 - changed MCerPhotEvt and MCerphotPix to MSignalCam 48 and MSignalPix to read the new format 49 - 50 51 * mmuon/MMuonSearchParCalc[.h.cc]: 52 - changed MCerPhotEvt and MCerphotPix to MSignalCam 53 and MSignalPix to read the new format 54 55 * mmuon/MHMuonPar[.h.cc]: 56 - new histgram class, plots different muon 57 parameters 58 59 23 60 24 61 2005/04/21 Daniela Dorner -
trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc
r5332 r6973 38 38 // Input Containers: 39 39 // [MGeomCam] 40 // [M CerPhotEvt]40 // [MSignalCam] 41 41 // [MMuonSearchPar] 42 42 // … … 48 48 #include "MLog.h" 49 49 #include "MLogManip.h" 50 #include "M CerPhotEvt.h"51 #include "M CerPhotPix.h"50 #include "MSignalCam.h" 51 #include "MSignalPix.h" 52 52 #include "MMuonSearchPar.h" 53 53 #include "MBinning.h" … … 85 85 fHistWidth->UseCurrentStyle(); 86 86 87 fMargin = 60.; // in mm88 fArcPhiThres = 100.;89 fArcWidthThres = 100.;90 fArcPhiBinNum = 20;91 fArcPhiHistStartVal = -180.; // deg.92 fArcPhiHistEndVal = 180.; // deg.93 fArcWidthBinNum = 28;94 fArcWidthHistStartVal = 0.3; // deg.95 fArcWidthHistEndVal = 1.7; // deg.96 87 } 97 88 … … 137 128 } 138 129 139 140 141 -
trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.h
r5331 r6973 10 10 #endif 11 11 12 class M CerPhotEvt;12 class MSignalCam; 13 13 class MMuonSearchPar; 14 14 … … 23 23 Float_t fMuonSize; // A SIZE of muon which is defined as a SIZE around the estimated circle 24 24 Float_t fEstImpact; // An estimated impact parameter from the photon distribution along the arc image 25 Float_t fMargin; // margin to evaluate muons [mm]. The defaut value is 60 mm, corresponding to 0.2 deg. This value can be changed by using the function of SetMargin26 25 Bool_t fUseUnmap; // This is a flag to know the Unmapped pixels are used. Refer to the class of MImgCleanStd 27 26 Float_t fPeakPhi; // The angle which indicates the peak position in the estimated circle 28 Float_t fArcPhiThres; // The threshold value to define arc phi29 Float_t fArcWidthThres; // The threshold value to define arc width30 27 31 28 public: … … 33 30 ~MMuonCalibPar(); 34 31 35 Int_t fArcPhiBinNum; // The bin number for the histogram of arc phi. You may change this value. However, if you change this, YOU ALSO HAVE TO CHANGE THE THRESHOLD VALUE TO GET ARC LENGTH.36 Int_t fArcWidthBinNum; // The bin number for the histogram of arc wid37 Float_t fArcPhiHistStartVal; // The starting value for the histogram of arc phi38 Float_t fArcPhiHistEndVal; // The end value for the histogram of arc phi39 Float_t fArcWidthHistStartVal; // The starting value for the histogram of arc width40 Float_t fArcWidthHistEndVal; // The end value for the histogram of arc width41 42 32 TH1F *fHistPhi; // Histogram of photon distribution along the arc. 43 33 TH1F *fHistWidth; // Histogram of radial photon distribution of the arc. … … 50 40 Float_t GetChiArcPhi() const { return fChiArcPhi; } 51 41 Float_t GetChiArcWidth() const { return fChiArcWidth; } 52 Float_t GetMargin() const { return fMargin; }53 42 Float_t GetMuonSize() const { return fMuonSize; } 54 43 Float_t GetEstImpact() const { return fEstImpact; } 55 44 Bool_t IsUseUnmap() const { return fUseUnmap; } 56 45 Float_t GetPeakPhi() const { return fPeakPhi; } 57 Float_t GetArcPhiThres() const { return fArcPhiThres; }58 Float_t GetArcWidthThres() const { return fArcWidthThres; }59 Float_t GetArcPhiBinNum() const { return fArcPhiBinNum; }60 Float_t GetArcWidthBinNum() const { return fArcWidthBinNum; }61 46 TH1F *GetHistPhi() { return fHistPhi; } 62 47 TH1F *GetHistWidth() { return fHistWidth; } … … 67 52 void SetChiArcPhi(Float_t chi) { fChiArcPhi = chi; } 68 53 void SetChiArcWidth(Float_t chi) { fChiArcWidth = chi; } 69 void SetMargin(Float_t margin) { fMargin = margin; }70 54 void SetMuonSize(Float_t size) { fMuonSize = size; } 71 55 void SetEstImpact(Float_t impact) { fEstImpact = impact; } 72 56 void SetUseUnmap() { fUseUnmap = kTRUE; } 73 57 void SetPeakPhi(Float_t phi) { fPeakPhi = phi; } 74 void SetArcPhiThres(Float_t thres) { fArcPhiThres = thres; }75 void SetArcWidthThres(Float_t thres) { fArcWidthThres = thres; }76 void SetArcPhiBinNum(Int_t num) { fArcPhiBinNum = num; }77 void SetArcWidthBinNum(Int_t num) { fArcWidthBinNum = num; }78 58 79 59 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.cc
r5333 r6973 99 99 // Input Containers: 100 100 // [MGeomCam] 101 // [M CerPhotEvt]101 // [MSignalCam] 102 102 // [MMuonSearchPar] 103 103 // … … 120 120 #include "MGeomPix.h" 121 121 #include "MSrcPosCam.h" 122 #include "M CerPhotEvt.h"122 #include "MSignalCam.h" 123 123 #include "MMuonSearchPar.h" 124 124 #include "MMuonCalibPar.h" 125 #include "MMuonSetup.h" 125 126 #include "MLog.h" 126 127 #include "MLogManip.h" … … 139 140 // 140 141 MMuonCalibParCalc::MMuonCalibParCalc(const char *name, const char *title) 141 : fNameCerPhot("MCerPhotEvt")142 142 { 143 143 fName = name ? name : gsDefName.Data(); 144 144 fTitle = title ? title : gsDefTitle.Data(); 145 145 146 fPreCuts[0] = 180.;147 fPreCuts[1] = 400.;148 fPreCuts[2] = 50.;149 fPreCuts[3] = 2000.;150 fPreCuts[4] = 150.;151 152 fMargin = 60.;153 fArcPhiThres = 100.;154 fArcWidthThres = 100.;155 156 146 fEnableImpactCalc = kFALSE; // By default the calculation of impact parameter is skipped. 157 fDisablePreCuts = kFALSE; // By default the pre cuts will be applied.158 147 } 159 148 … … 162 151 Int_t MMuonCalibParCalc::PreProcess(MParList *pList) 163 152 { 164 f CerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fNameCerPhot), "MCerPhotEvt");165 if (!f CerPhotEvt)166 { 167 *fLog << dbginf << "M CerPhotEvtnot found... aborting." << endl;153 fSignalCam = (MSignalCam*)pList->FindObject("MSignalCam"); 154 if (!fSignalCam) 155 { 156 *fLog << dbginf << "MSignalCam not found... aborting." << endl; 168 157 return kFALSE; 169 158 } … … 178 167 fMuonCalibPar = (MMuonCalibPar*)pList->FindCreateObj("MMuonCalibPar", "MMuonCalibPar"); 179 168 if (!fMuonCalibPar) 180 {181 *fLog << dbginf << "MMuonCalibPar missing in Parameter List... aborting." << endl;182 169 return kFALSE; 183 }184 170 185 171 fMuonSearchPar = (MMuonSearchPar*)pList->FindCreateObj("MMuonSearchPar", "MMuonSearchPar"); 186 172 if (!fMuonSearchPar) 187 {188 *fLog << dbginf << "MMuonSearchPar missing in Parameter List... aborting." << endl;189 173 return kFALSE; 190 } 174 175 fMuonSetup = (MMuonSetup*)pList->FindCreateObj("MMuonSetup", "MMuonSetup"); 176 if (!fMuonSetup) 177 return kFALSE; 191 178 192 179 return kTRUE; … … 203 190 Float_t MuonSize = 0.; 204 191 205 Int_t binnumphi = fMuon CalibPar->fArcPhiBinNum;206 Int_t binnumwid = fMuon CalibPar->fArcWidthBinNum;192 Int_t binnumphi = fMuonSetup->fArcPhiBinNum; 193 Int_t binnumwid = fMuonSetup->fArcWidthBinNum; 207 194 208 195 // preparation for a histgram 209 196 MBinning binsphi; 210 197 binsphi.SetEdges(binnumphi, 211 fMuon CalibPar->fArcPhiHistStartVal,212 fMuon CalibPar->fArcPhiHistEndVal);198 fMuonSetup->fArcPhiHistStartVal, 199 fMuonSetup->fArcPhiHistEndVal); 213 200 binsphi.Apply(*(fMuonCalibPar->fHistPhi)); 214 201 215 202 MBinning binswid; 216 203 binswid.SetEdges(binnumwid, 217 fMuon CalibPar->fArcWidthHistStartVal,218 fMuon CalibPar->fArcWidthHistEndVal);204 fMuonSetup->fArcWidthHistStartVal, 205 fMuonSetup->fArcWidthHistEndVal); 219 206 binswid.Apply(*(fMuonCalibPar->fHistWidth)); 220 207 221 const Int_t entries = (*f CerPhotEvt).GetNumPixels();208 const Int_t entries = (*fSignalCam).GetNumPixels(); 222 209 223 210 // the position of the center of a muon ring … … 227 214 for (Int_t i=0; i<entries; i++ ) 228 215 { 229 M CerPhotPix &pix = (*fCerPhotEvt)[i];230 231 const MGeomPix &gpix = (*fGeomCam)[ pix.GetPixId()];216 MSignalPix &pix = (*fSignalCam)[i]; 217 218 const MGeomPix &gpix = (*fGeomCam)[i/*pix.GetPixId()*/]; 232 219 233 220 const Float_t dx = gpix.GetX() - cenx; … … 241 228 242 229 // if the signal is not near the estimated circle, it is ignored. 243 if(dist < (*fMuonSearchPar).GetRadius() + fMuon CalibPar->GetMargin()244 && dist > (*fMuonSearchPar).GetRadius() - fMuon CalibPar->GetMargin())230 if(dist < (*fMuonSearchPar).GetRadius() + fMuonSetup->GetMargin() 231 && dist > (*fMuonSearchPar).GetRadius() - fMuonSetup->GetMargin()) 245 232 { 246 233 // check whether ummapped pixel is used or not. … … 257 244 // use only the inner pixles. This is geometry dependent. This has to 258 245 // be fixed! 259 if( pix.GetPixId()>397)246 if(i>397) 260 247 continue; 261 248 … … 298 285 void MMuonCalibParCalc::CalcPhi() 299 286 { 300 Float_t thres = fMuon CalibPar->GetArcPhiThres();301 Float_t startval = fMuon CalibPar->fArcPhiHistStartVal;302 Float_t endval = fMuon CalibPar->fArcPhiHistEndVal;303 Int_t binnum = fMuon CalibPar->fArcPhiBinNum;287 Float_t thres = fMuonSetup->GetArcPhiThres(); 288 Float_t startval = fMuonSetup->fArcPhiHistStartVal; 289 Float_t endval = fMuonSetup->fArcPhiHistEndVal; 290 Int_t binnum = fMuonSetup->fArcPhiBinNum; 304 291 305 292 Float_t convbin2val = (endval-startval)/(Float_t)binnum; … … 458 445 Float_t MMuonCalibParCalc::CalcWidth() 459 446 { 460 Float_t startval = fMuon CalibPar->fArcWidthHistStartVal;461 Float_t endval = fMuon CalibPar->fArcWidthHistEndVal;462 Int_t binnum = fMuon CalibPar->fArcWidthBinNum;463 Float_t thres = fMuon CalibPar->GetArcWidthThres();447 Float_t startval = fMuonSetup->fArcWidthHistStartVal; 448 Float_t endval = fMuonSetup->fArcWidthHistEndVal; 449 Int_t binnum = fMuonSetup->fArcWidthBinNum; 450 Float_t thres = fMuonSetup->GetArcWidthThres(); 464 451 465 452 Float_t convbin2val = (endval - startval) … … 500 487 TF1 f1("f1","gaus",startfitval,endfitval); 501 488 489 // options : N do not store the function, do not draw 490 // I use integral of function in bin rather than value at bin center 491 // R use the range specified in the function range 492 // Q quiet mode 502 493 fMuonCalibPar->fHistWidth->Fit("f1","QR","",startfitval,endfitval); 503 494 … … 515 506 // Calculation of muon parameters 516 507 // 517 Int_t MMuonCalibParCalc::Calc(const Float_t *cuts) 518 { 519 // sanity check 520 if((*fCerPhotEvt).GetNumPixels() < 3) 521 return kCONTINUE; 522 523 // If an event does not seem to be like muon, the calculation will be skipped. 524 if((*fMuonSearchPar).IsNoMuon()) 525 return kCONTINUE; 526 527 // Pre Cuts 1 528 if(!fDisablePreCuts) 529 { 530 if((*fMuonSearchPar).GetRadius() < cuts[0] || (*fMuonSearchPar).GetRadius() > cuts[1]) 531 { 532 (*fMuonSearchPar).SetNoMuon(); 533 return kCONTINUE; 534 } 535 if((*fMuonSearchPar).GetDeviation() > cuts[2]) 536 { 537 (*fMuonSearchPar).SetNoMuon(); 538 return kCONTINUE; 539 } 540 } 541 508 Int_t MMuonCalibParCalc::Calc() 509 { 542 510 // initialization 543 511 (*fMuonCalibPar).Reset(); … … 549 517 CalcPhi(); 550 518 551 // Pre Cuts 2552 if(!fDisablePreCuts)553 {554 if(fMuonCalibPar->GetMuonSize() < cuts[3]555 || fMuonCalibPar->GetArcPhi() < cuts[4])556 {557 (*fMuonSearchPar).SetNoMuon();558 return kCONTINUE;559 }560 }561 562 519 // Calculation of Arc Width etc... 563 fMuonCalibPar->SetArcWidth(CalcWidth()); 520 fMuonCalibPar->SetArcWidth(CalcWidth()); 521 522 if(fMuonCalibPar->GetArcPhi()>160 && fMuonSearchPar->GetRadius()>170 && 523 fMuonSearchPar->GetRadius()<400 && fMuonSearchPar->GetDeviation()<50) 524 fMuonCalibPar->SetReadyToSave(); 564 525 565 526 return kTRUE; 566 527 } 567 528 568 569 529 // ------------------------------------------------------------------------- 570 530 // 571 531 Int_t MMuonCalibParCalc::Process() 572 532 { 573 fMuonCalibPar->SetMargin(fMargin); 574 fMuonCalibPar->SetArcPhiThres(fArcPhiThres); 575 fMuonCalibPar->SetArcWidthThres(fArcWidthThres); 576 577 if(!Calc(fPreCuts)) 578 return kCONTINUE; 533 534 Calc(); 579 535 580 536 return kTRUE; 581 537 } 582 583 void MMuonCalibParCalc::SetPreCuts584 (Float_t radcutlow, Float_t radcuthigh, Float_t devcuthigh,585 Float_t musizecutlow, Float_t arcphicutlow)586 {587 fPreCuts[0] = radcutlow;588 fPreCuts[1] = radcuthigh;589 fPreCuts[2] = devcuthigh;590 fPreCuts[3] = musizecutlow;591 fPreCuts[4] = arcphicutlow;592 }593 -
trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.h
r5332 r6973 10 10 class MSrcPosCam; 11 11 class MGeomCam; 12 class MCerPhotEvt; 12 class MSignalCam; 13 class MMuonSetup; 13 14 14 15 class MMuonCalibParCalc : public MTask … … 16 17 private: 17 18 MGeomCam *fGeomCam; 18 M CerPhotEvt *fCerPhotEvt;19 MSignalCam *fSignalCam; 19 20 MMuonCalibPar *fMuonCalibPar; 20 21 MMuonSearchPar *fMuonSearchPar; 22 MMuonSetup *fMuonSetup; 21 23 22 Float_t fMargin; // margin to evaluate muons [mm]. The defaut value is 60 mm, corresponding to 0.2 deg. This value can be changed by using the function of SetMargin23 Float_t fArcPhiThres; // The threshold value to define arc phi24 Float_t fArcWidthThres; // The threshold value to define arc width25 24 Bool_t fEnableImpactCalc; // If true, the impact calculation will be done, which consumes a lot of time. 26 Bool_t fDisablePreCuts; // If true, the pre cuts to select muons for the calibration will be disabled.27 28 Float_t fPreCuts[5]; // The values for pre cuts.29 25 30 26 Int_t PreProcess(MParList *plist); 31 27 Int_t Process(); 32 28 33 TString fNameCerPhot;34 35 29 public: 36 30 MMuonCalibParCalc(const char *name=NULL, const char *title=NULL); 37 31 38 void SetMargin(Float_t margin) { fMargin = margin; }39 void SetArcPhiThres(Float_t thres) { fArcPhiThres = thres; }40 void SetArcWidthThres(Float_t thres) { fArcWidthThres = thres; }41 32 void EnableImpactCalc() { fEnableImpactCalc = kTRUE; } 42 void DisablePreCuts() { fDisablePreCuts = kTRUE; }43 void SetPreCuts(Float_t radcutlow, Float_t radcuthigh, Float_t devcuthigh,44 Float_t musizecutlow, Float_t arcphicutlow);45 46 void SetNameCerPhotEvt(const char *name) { fNameCerPhot = name; }47 33 48 34 void FillHist(); … … 50 36 void CalcImpact(Int_t effbinnum, Float_t startfitval, Float_t endfitval); 51 37 Float_t CalcWidth(); 52 Int_t Calc( const Float_t *cuts);38 Int_t Calc(); 53 39 54 40 ClassDef(MMuonCalibParCalc, 0) // task to calculate muon parameters … … 56 42 57 43 #endif 58 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r5331 r6973 71 71 // [MGeomCam] 72 72 // [MHillas] 73 // [M CerPhotEvt]73 // [MSignalCam] 74 74 // 75 75 ///////////////////////////////////////////////////////////////////////////// … … 83 83 #include "MGeomCam.h" 84 84 #include "MGeomPix.h" 85 #include "M CerPhotEvt.h"86 #include "M CerPhotPix.h"85 #include "MSignalPix.h" 86 #include "MSignalCam.h" 87 87 88 88 using namespace std; … … 108 108 fCenterX = 0.; 109 109 fCenterY = 0.; 110 fNoMuon = kFALSE;111 110 } 112 111 … … 138 137 // and its RMS for the input position. 139 138 // 140 Bool_t MMuonSearchPar::CalcRadius(const MGeomCam &geom, const M CerPhotEvt&evt,139 Bool_t MMuonSearchPar::CalcRadius(const MGeomCam &geom, const MSignalCam &evt, 141 140 Float_t x, Float_t y, Float_t &r, Float_t &sigma) 142 141 { … … 146 145 147 146 for (Int_t i=0; i<entries; i++ ){ 148 const M CerPhotPix &pix = evt[i];147 const MSignalPix &pix = evt[i]; 149 148 150 149 if (!pix.IsPixelUsed()) 151 150 continue; 152 151 153 const MGeomPix &gpix = geom[ pix.GetPixId()];152 const MGeomPix &gpix = geom[i/*pix.GetPixId()*/]; 154 153 155 154 tmp=TMath::Sqrt((gpix.GetX()-x)*(gpix.GetX()-x) … … 180 179 // 181 180 void MMuonSearchPar::CalcMinimumDeviation 182 ( const MGeomCam &geom, const M CerPhotEvt &evt, Float_t x, Float_t y,181 ( const MGeomCam &geom, const MSignalCam &evt, Float_t x, Float_t y, 183 182 Float_t xcog, Float_t ycog, Float_t sigma, Float_t &opt_rad, 184 183 Float_t &new_sigma, Float_t &newx, Float_t &newy ) … … 198 197 newx=x; 199 198 newy=y; 200 fNoMuon = kTRUE;201 199 break; 202 200 } … … 253 251 // 254 252 void MMuonSearchPar::Calc 255 (const MGeomCam &geom, const M CerPhotEvt&evt, const MHillas &hillas)253 (const MGeomCam &geom, const MSignalCam &evt, const MHillas &hillas) 256 254 { 257 255 Reset(); … … 283 281 fCenterY = newy; 284 282 285 SetReadyToSave();283 //SetReadyToSave(); 286 284 } 287 285 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h
r5331 r6973 8 8 class MHillas; 9 9 class MGeomCam; 10 class M CerPhotEvt;10 class MSignalCam; 11 11 12 12 class MMuonSearchPar : public MParContainer … … 17 17 Float_t fCenterX; // An estimated center position in X of the muon ring [mm] 18 18 Float_t fCenterY; // An estimated center position in Y of the muon ring [mm] 19 Bool_t fNoMuon; // if the radius is estimated above 600 mm (2 deg.), assumed it's not muon. Later on, at the stage of MMuonCalibParCalc, this flag will be changed if the task judge the event as no muon.20 19 21 20 public: … … 28 27 Float_t GetCenterX() const { return fCenterX; } 29 28 Float_t GetCenterY() const { return fCenterY; } 30 Bool_t IsNoMuon() const { return fNoMuon; }31 void SetNoMuon() { fNoMuon = kTRUE; }32 29 33 30 void CalcTempCenter(const MHillas &hillas, Float_t &xtmp1, 34 31 Float_t &ytmp1, Float_t &xtmp2, Float_t &ytmp2); 35 Bool_t CalcRadius(const MGeomCam &geom, const M CerPhotEvt&evt, Float_t x,32 Bool_t CalcRadius(const MGeomCam &geom, const MSignalCam &evt, Float_t x, 36 33 Float_t y, Float_t &r, Float_t &sigma); 37 void CalcMinimumDeviation(const MGeomCam &geom, const M CerPhotEvt &evt,34 void CalcMinimumDeviation(const MGeomCam &geom, const MSignalCam &evt, 38 35 Float_t x, Float_t y, Float_t xcog, 39 36 Float_t ycog, Float_t sigma, Float_t &opt_rad, 40 37 Float_t &new_sigma, Float_t &newx, Float_t &newy); 41 void Calc(const MGeomCam &geom, const M CerPhotEvt&evt,38 void Calc(const MGeomCam &geom, const MSignalCam &evt, 42 39 const MHillas &hillas); 43 40 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchParCalc.cc
r5378 r6973 43 43 // [MGeomCam] 44 44 // [MHillas] 45 // [M CerPhotEvt]45 // [MSignalCam] 46 46 // 47 47 // Output Containers: … … 55 55 #include "MParList.h" 56 56 #include "MGeomCam.h" 57 #include "M CerPhotEvt.h"57 #include "MSignalCam.h" 58 58 #include "MMuonSearchPar.h" 59 59 #include "MLog.h" … … 73 73 MMuonSearchParCalc::MMuonSearchParCalc 74 74 (const char *mupar, const char *name, const char *title) 75 : fHillas(NULL), fMuonPar(NULL) , fCerPhotName("MCerPhotEvt")75 : fHillas(NULL), fMuonPar(NULL) 76 76 { 77 77 fName = name ? name : gsDefName.Data(); … … 93 93 } 94 94 95 f CerPhotEvt = (MCerPhotEvt*)pList->FindObject(AddSerialNumber(fCerPhotName), "MCerPhotEvt");96 if (!f CerPhotEvt)95 fSignalCam = (MSignalCam*)pList->FindObject("MSignalCam"); 96 if (!fSignalCam) 97 97 { 98 *fLog << err << fCerPhotName << " [MCerPhotEvt]not found... aborting." << endl;98 *fLog << err << "MSignalCam not found... aborting." << endl; 99 99 return kFALSE; 100 100 } … … 119 119 { 120 120 121 fMuonPar->Calc(*fGeomCam, *f CerPhotEvt, *fHillas);121 fMuonPar->Calc(*fGeomCam, *fSignalCam, *fHillas); 122 122 123 123 return kTRUE; -
trunk/MagicSoft/Mars/mmuon/MMuonSearchParCalc.h
r5210 r6973 9 9 class MMuonSearchPar; 10 10 class MGeomCam; 11 class M CerPhotEvt;11 class MSignalCam; 12 12 13 13 class MMuonSearchParCalc : public MTask … … 15 15 private: 16 16 MGeomCam *fGeomCam; 17 M CerPhotEvt *fCerPhotEvt;17 MSignalCam *fSignalCam; 18 18 MHillas *fHillas; //! Pointer to the source independent hillas parameters 19 19 MMuonSearchPar *fMuonPar; //! Pointer to the output container for the new image parameters … … 21 21 TString fMuparName; 22 22 TString fHillasInput; 23 TString fCerPhotName;24 23 25 24 Int_t PreProcess(MParList *plist); … … 32 31 void SetInput(TString hilname) { fHillasInput = hilname; } 33 32 34 void SetNameCerPhotEvt(const char *name) { fCerPhotName = name; }35 36 33 ClassDef(MMuonSearchParCalc, 0) // task to calculate muon parameters 37 34 }; -
trunk/MagicSoft/Mars/mmuon/Makefile
r5332 r6973 28 28 MMuonSearchParCalc.cc \ 29 29 MMuonCalibPar.cc \ 30 MMuonCalibParCalc.cc 30 MMuonCalibParCalc.cc \ 31 MHMuonPar.cc \ 32 MMuonSetup.cc 31 33 32 34 ############################################################ -
trunk/MagicSoft/Mars/mmuon/MuonLinkDef.h
r5332 r6973 9 9 #pragma link C++ class MMuonCalibPar+; 10 10 #pragma link C++ class MMuonCalibParCalc+; 11 #pragma link C++ class MHMuonPar+; 12 #pragma link C++ class MMuonSetup+; 11 13 12 14 #endif
Note:
See TracChangeset
for help on using the changeset viewer.