Changeset 6240
- Timestamp:
- 02/03/05 14:23:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6238 r6240 21 21 -*-*- END OF LINE -*-*- 22 22 23 2005/02/03 Thomas Bretz 24 25 * mfbase/MFilterList.[h,cc]: 26 - added new function AddToList(TCollection&) 27 28 * mhbase/MFillH.cc: 29 - print a warning if 'same'-option given without 30 a corresponding existing tab 31 32 * mhflux/MHAlpha.[h,cc]: 33 - made time bins settable by user 34 35 36 23 37 2005/02/03 Markus Gaug 24 38 … … 29 43 - intialize fTimeShiftHiGain and fTimeShiftLoGain by default. 30 44 45 31 46 32 47 2005/02/02 Markus Gaug … … 69 84 70 85 86 71 87 2005/02/01 Raquel de los Reyes 72 88 73 89 * mjobs/MSequence.h 74 90 - Added "Get" functions for the TArrays variables. 91 75 92 76 93 … … 90 107 - return kTRUE in PostProcess if GetNumExecutions is 0 91 108 109 110 92 111 2005/02/01 Daniel Mazin 93 112 … … 97 116 MDrive tree 98 117 118 119 99 120 2005/02/01 Thomas Bretz 100 121 … … 102 123 - another fix to make the batch mode working (you can use the batch 103 124 mode to convert a root-file into another format) 125 126 104 127 105 128 2005/01/31 Thomas Bretz -
trunk/MagicSoft/Mars/mfbase/MFilterList.cc
r5911 r6240 237 237 } 238 238 239 // -------------------------------------------------------------------------- 240 // 241 // If you want to add a new filters from a TCollection to the list call 242 // this function. 243 // 244 Bool_t MFilterList::AddToList(const TCollection &col) 245 { 246 TIter Next(&col); 247 MFilter *f=0; 248 Int_t idx=0; 249 while ((f=(MFilter*)Next())) 250 { 251 if (!f->InheritsFrom(MFilter::Class())) 252 { 253 *fLog << warn << "WARNING - An object in TCollection doesn't inherit from MFilter... ignored." << endl; 254 continue; 255 } 256 257 f->SetName(Form("F%d", idx++)); 258 if (!AddToList(f)) 259 return kFALSE; 260 } 261 return kTRUE; 262 } 239 263 240 264 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfbase/MFilterList.h
r5875 r6240 44 44 45 45 Bool_t AddToList(MFilter *filter); 46 Bool_t AddToList(const TCollection &col); 46 47 void SetOwner(Bool_t enable=kTRUE) { enable ? SetBit(kIsOwner) : ResetBit(kIsOwner); } 47 48 -
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r5994 r6240 379 379 fCanvas = 0; 380 380 if (fDrawOption.Contains("same", TString::kIgnoreCase)) 381 { 381 382 fCanvas = fDisplay->GetCanvas(tabname); 383 if (!fCanvas) 384 *fLog << warn << "WARNING - 'same' option given, but no tab with name '" << tabname << "' found." << endl; 385 } 386 382 387 if (!fCanvas) 383 388 fCanvas = &fDisplay->AddTab(tabname); -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r5973 r6240 36 36 // PRELIMINARY! 37 37 // 38 // 39 // ToDo: 40 // ===== 41 // 42 // - Replace time-binning by histogram (which is enhanced bin-wise) 43 // 44 // 38 45 ////////////////////////////////////////////////////////////////////////////// 39 46 #include "MHAlpha.h" … … 78 85 fPointPos(0), fTimeEffOn(0), fTime(0), 79 86 fSkipHistTime(kFALSE), fSkipHistTheta(kFALSE), fSkipHistEnergy(kFALSE), 80 //fEnergyMin(-1), fEnergyMax(-1), fSizeMin(-1), fSizeMax(-1), 81 fMatrix(0) 87 fNumTimeBins(10), fMatrix(0) 82 88 { 83 89 // … … 299 305 300 306 fLastTime = MTime(); 307 fNumRebin = fNumTimeBins; 301 308 302 309 MBinning binst, binse, binsa; … … 353 360 return; 354 361 355 const Int_t steps = 10;356 357 static int rebin = steps;358 359 362 if (!final) 360 363 { … … 368 371 { 369 372 fLastTime=*fTimeEffOn; 370 rebin--;371 } 372 373 if ( rebin>0)373 fNumRebin--; 374 } 375 376 if (fNumRebin>0) 374 377 return; 375 378 } … … 384 387 *fLog << "This should not happen. Maybe you started you eventloop with" << endl; 385 388 *fLog << "an already initialized time stamp MTimeEffectiveOnTime?" << endl; 386 rebin++;389 fNumRebin++; 387 390 return; 388 391 } … … 426 429 *fLog << all << *fTimeEffOn << ": " << fit.GetEventsExcess() << endl; 427 430 428 rebin = steps;431 fNumRebin = fNumTimeBins; 429 432 } 430 433 … … 902 905 fMatrix = NULL; 903 906 } 907 908 Int_t MHAlpha::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 909 { 910 Bool_t rc = kFALSE; 911 if (IsEnvDefined(env, prefix, "NumTimeBins", print)) 912 { 913 SetNumTimeBins(GetEnvValue(env, prefix, "NumTimeBins", fNumTimeBins)); 914 rc = kTRUE; 915 } 916 return rc; 917 } -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r5692 r6240 104 104 MTime fLastTime; //! Last fTimeEffOn 105 105 106 //Float_t fEnergyMin;107 //Float_t fEnergyMax;108 //Float_t fSizeMin;109 //Float_t fSizeMax;110 111 106 Bool_t fSkipHistTime; 112 107 Bool_t fSkipHistTheta; 113 108 Bool_t fSkipHistEnergy; 109 110 UShort_t fNumTimeBins; // Number of time bins to fill together 111 UShort_t fNumRebin; //! 114 112 115 113 //const TString fNameProjAlpha; //! This should make sure, that gROOT doen't confuse the projection with something else … … 144 142 fOffData = &h.fHAlpha; 145 143 } 144 void SetNumTimeBins(UShort_t n) { fNumTimeBins = n; } 146 145 /* 147 146 void SetSizeCuts(Float_t min, Float_t max) { fSizeMin=min; fSizeMax=max; } … … 162 161 void SkipHistEnergy(Bool_t b=kTRUE) { fSkipHistEnergy=b; } 163 162 164 void Paint(Option_t *opt="");165 void Draw(Option_t *option="");166 167 163 void DrawAll(); //*MENU* 168 164 … … 170 166 void StopMapping(); 171 167 168 // TObject 169 void Paint(Option_t *opt=""); 170 void Draw(Option_t *option=""); 171 172 // MParContainer 173 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 174 172 175 ClassDef(MHAlpha, 1) // Alpha-Plot which is fitted online 173 176 };
Note:
See TracChangeset
for help on using the changeset viewer.