Changeset 6892
- Timestamp:
- 03/29/05 11:42:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6891 r6892 94 94 - added dummy parameters to FixParameter for compatibility 95 95 with SetParemeter 96 97 * mbase/MFilter.[h,cc]: 98 - implemented ReadEnv to treat "Inverted" 99 100 * mfbase/MF.[h,cc], mfilter/MFSupercuts.cc: 101 - treat "inverted" with MFilter::ReadEnv 96 102 97 103 -
trunk/MagicSoft/Mars/NEWS
r6891 r6892 4 4 5 5 - Fix bug on the arrival time reconstruction when using Digital 6 Filter 6 Filter (in some marginal cases times were reconstructed shifted by one 7 or two slices) 7 8 8 9 - all executables now return 2 where in previous versions -1 has -
trunk/MagicSoft/Mars/manalysis/MCompProbCalc.cc
r2206 r6892 43 43 44 44 #include "MHCompProb.h" 45 #include "M Hadronness.h"45 #include "MParameters.h" 46 46 47 47 ClassImp(MCompProbCalc); … … 123 123 } 124 124 125 fHadronness = (M Hadronness*)plist->FindCreateObj("MHadronness");125 fHadronness = (MParameterD*)plist->FindCreateObj("MParameterD", "MHadronness"); 126 126 if (!fHadronness) 127 127 return kFALSE; … … 161 161 } 162 162 163 fHadronness->Set Hadronness(pow(p, 1./n));163 fHadronness->SetVal(pow(p, 1./n)); 164 164 return kTRUE; 165 165 } -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r6276 r6892 109 109 *fLog << "%) Evts fullfilled: " << str << endl; 110 110 } 111 112 // -------------------------------------------------------------------------- 113 // 114 // Check for corresponding entries in resource file and setup filters. 115 // 116 // Assuming your filter is called (Set/GetName): MyFilter 117 // 118 // First you can setup whether the filter is inverted or not: 119 // MyFilter.Inverted: yes, no <default=no> 120 // 121 Int_t MFilter::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 122 { 123 if (IsEnvDefined(env, prefix, "Inverted", print)) 124 { 125 SetInverted(GetEnvValue(env, prefix, "Inverted", IsInverted())); 126 return kTRUE; 127 } 128 return kFALSE; 129 } -
trunk/MagicSoft/Mars/mbase/MFilter.h
r5875 r6892 28 28 void PrintSkipped(UInt_t n, const char *str); 29 29 30 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 31 30 32 ClassDef(MFilter, 1) // Abstract base class for the filters 31 33 }; -
trunk/MagicSoft/Mars/mfbase/MF.cc
r6253 r6892 477 477 Int_t MF::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 478 478 { 479 Bool_t rc = kFALSE; 480 if (IsEnvDefined(env, prefix, "Inverted", print)) 481 { 482 rc = kTRUE; 483 SetInverted(GetEnvValue(env, prefix, "Inverted", IsInverted())); 484 } 479 Bool_t rc = MFilter::ReadEnv(env, prefix, print); 480 if (rc==kERROR) 481 return kERROR; 485 482 486 483 if (!IsEnvDefined(env, prefix, "Condition", print)) -
trunk/MagicSoft/Mars/mfilter/MFSupercuts.cc
r6879 r6892 297 297 Int_t MFSupercuts::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 298 298 { 299 if (MFilter::ReadEnv(env, prefix, print)==kERROR) 300 return kERROR; 301 299 302 if (IsEnvDefined(env, prefix, "File", print)) 300 303 { -
trunk/MagicSoft/Mars/mhflux/FluxLinkDef.h
r6890 r6892 10 10 #pragma link C++ class MHEnergyEst+; 11 11 #pragma link C++ class MHFalseSource+; 12 #pragma link C++ class MHEnergyEst+;13 12 #pragma link C++ class MHEffectiveOnTime+; 14 13 -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r6891 r6892 32 32 kSignificanceChi2, 33 33 kSignificanceLogExcess, 34 kSignificanceChi2,35 34 kSignificanceExcess, 36 35 kExcess -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
r6890 r6892 611 611 fHistOff->ProjectionZ("AlphaOff_z", maxx, maxx, maxy, maxy); 612 612 613 /* ============= local scaling ================ */ 613 614 const Int_t f = h0->GetXaxis()->FindFixBin(fBgMean-1.5*fAlphaCut); 614 615 const Int_t l = h0->GetXaxis()->FindFixBin(fAlphaCut*3)+f-1; … … 616 617 //h0->Scale(h1->GetEntries()/h0->GetEntries()); 617 618 619 /* ============= global scaling ================ 620 const Int_t f = fHistOff->GetZaxis()->FindFixBin(fBgMean-1.5*fAlphaCut); 621 const Int_t l = fHistOff->GetZaxis()->FindFixBin(fAlphaCut*3)+f-1; 622 623 Double_t c0 = fHist.Integral(0, 9999, 0, 9999, f, l); 624 Double_t c1 = fHistOff->Integral(0, 9999, 0, 9999, f, l); 625 626 h0->Scale(c0/c1); 627 */ 618 628 } 619 629 } -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6891 r6892 322 322 323 323 // Initialize default binnings 324 MBinning bins1(18, 0, 90, "BinningAlpha", "lin");325 MBinning bins2( 30, 10, 1e6, "BinningEnergyEst", "log");326 MBinning bins3( 25, 0, 60, "BinningTheta", "cos"); // orig=50bins324 MBinning bins1(18, 0, 90, "BinningAlpha", "lin"); 325 MBinning bins2(15, 10, 1e6 , "BinningEnergyEst", "log"); 326 MBinning bins3(50, 0, 60, "BinningTheta", "cos"); 327 327 MBinning bins4("BinningFalseSource"); 328 328 plist.AddToList(&bins1);
Note:
See TracChangeset
for help on using the changeset viewer.