Changeset 7109 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 05/30/05 18:12:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/FluxLinkDef.h
r7038 r7109 7 7 #pragma link C++ class MAlphaFitter+; 8 8 9 #pragma link C++ class MHDisp+; 9 10 #pragma link C++ class MHAlpha+; 10 11 #pragma link C++ class MHThetaSq+; … … 13 14 #pragma link C++ class MHEffectiveOnTime+; 14 15 #pragma link C++ class MHCollectionArea+; 16 #pragma link C++ class MMcSpectrumWeight+; 17 18 //#pragma link C++ class MMatrixHist+; 19 //#pragma link C++ class MMatrixUnfold+; 20 //#pragma link C++ class MUnfoldBert+; 15 21 16 22 #endif -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
r6892 r7109 246 246 fMm2Deg = geom->GetConvMm2Deg(); 247 247 248 if (fName!=(TString)"MHFalseSourceOff" && fHistOff==NULL) 249 { 250 MHFalseSource *hoff = (MHFalseSource*)plist->FindObject("MHFalseSourceOff", "MHFalseSource"); 248 const TString off(Form("%sOff", fName.Data())); 249 if (fName!=off && fHistOff==NULL) 250 { 251 const TString desc(Form("%s [%s] found... using ", off.Data(), ClassName())); 252 MHFalseSource *hoff = (MHFalseSource*)plist->FindObject(off, ClassName()); 251 253 if (!hoff) 252 *fLog << inf << "No MHFalseSourceOff [MHFalseSource] found... usingcurrent data only!" << endl;254 *fLog << inf << "No " << desc << "current data only!" << endl; 253 255 else 254 256 { 255 *fLog << inf << "MHFalseSource [MHFalseSource] found... usingon-off mode!" << endl;257 *fLog << inf << desc << "on-off mode!" << endl; 256 258 SetOffData(*hoff); 257 259 } … … 294 296 *fLog << warn << "MObservatory not found... no derotation." << endl; 295 297 298 MPointingPos *point = (MPointingPos*)plist->FindObject("MSourcePos", "MPointingPos"); 299 if (!point) 300 point = fPointPos; 301 296 302 // FIXME: Because the pointing position could change we must check 297 303 // for the current pointing position and add a offset in the 298 304 // Fill function! 299 fRa = fPointPos ? fPointPos->GetRa() : 0;300 fDec = fPointPos ? fPointPos->GetDec() : 90;305 fRa = point ? point->GetRa() : 0; 306 fDec = point ? point->GetDec() : 90; 301 307 302 308 return kTRUE; … … 615 621 const Int_t l = h0->GetXaxis()->FindFixBin(fAlphaCut*3)+f-1; 616 622 h0->Scale(h1->Integral(f, l)/h0->Integral(f, l)); 623 624 617 625 //h0->Scale(h1->GetEntries()/h0->GetEntries()); 618 626 … … 854 862 } 855 863 856 Double_t FcnGauss2d(Double_t *x, Double_t *par)864 static Double_t FcnGauss2d(Double_t *x, Double_t *par) 857 865 { 858 866 TVector2 v = TVector2(x[0], x[1]).Rotate(par[5]*TMath::DegToRad()); -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.h
r6978 r7109 20 20 class MHFalseSource : public MH 21 21 { 22 pr ivate:22 protected: 23 23 MTime *fTime; //! container to take the event time from 24 24 MPointingPos *fPointPos; //! container to take pointing position from … … 28 28 Float_t fMm2Deg; // conversion factor for display in degrees 29 29 30 private: 30 31 Float_t fAlphaCut; // Alpha cut 31 32 Float_t fBgMean; // Background mean … … 37 38 Float_t fMaxDW; // Maximum distance in percent of dist 38 39 40 protected: 39 41 TH3D fHist; // Alpha vs. x and y 40 42 … … 44 46 Double_t fDec; 45 47 48 private: 46 49 Int_t DistancetoPrimitive(Int_t px, Int_t py); 47 50 void Modified();
Note:
See TracChangeset
for help on using the changeset viewer.