Changeset 6892 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/29/05 11:42:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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 };
Note:
See TracChangeset
for help on using the changeset viewer.