Changeset 1305 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 04/26/02 13:16:11 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r1304 r1305 26 26 // 27 27 // MDataChain 28 // 29 // With this chain you can concatenate simple mathematical operations on 30 // members of mars containers. 31 // 32 // In the constructor you can give rule, like 33 // "HillasSource.fDist / MHillas.fLength" 34 // Where MHillas/HillasSource is the name of the parameter container in 35 // the parameter list and fDist/fLength is the name of the data members 36 // in the containers. The result will be fDist divided by fLength. 37 // 38 // You can also use brackets: 39 // "HillasDource.fDist / (MHillas.fLength + MHillas.fWidth)" 40 // 41 // The allowed operations are: +, -, *, / 42 // 43 // Warning: There is no priority rule build in. So better use brackets 44 // to get correct results. The rule is parsed/evaluated from the left 45 // to the right, which means: 46 // 47 // "MHillas.fWidth + MHillas.fLength / HillasSource.fDist" 48 // 49 // is parses as 50 // 51 // "(MHillas.fWidth + MHillas.fLength) / HillasSource.fDist" 52 // 53 // 54 // FIXME: The possibility to use other objects inheriting from MData 55 // is missing. 56 // Maybe we can use gInterpreter->Calc("") for this. 57 // gROOT->ProcessLineFast("line"); 28 58 // 29 59 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mdata/MDataChain.h
r1304 r1305 34 34 void Print(Option_t *opt = "") const; 35 35 36 ClassDef(MDataChain, 0) // A Filter for cuts in any data member36 ClassDef(MDataChain, 0) // A chain/concatenation of MData objects 37 37 }; 38 38 -
trunk/MagicSoft/Mars/mdata/MDataList.h
r1304 r1305 47 47 void Print(Option_t *opt = "") const; 48 48 49 ClassDef(MDataList, 0) // List to combine several filters logically49 ClassDef(MDataList, 0) // A concatenation of MData objects by one operator 50 50 }; 51 51 -
trunk/MagicSoft/Mars/mdata/MDataMember.h
r1304 r1305 32 32 void Print(Option_t *opt = "") const; 33 33 34 ClassDef(MDataMember, 0) // List to combine several filters logically34 ClassDef(MDataMember, 0) // MData object corresponding to a single data member of a Mars container 35 35 }; 36 36 -
trunk/MagicSoft/Mars/mdata/MDataValue.h
r1304 r1305 29 29 void Print(Option_t *opt = "") const; 30 30 31 ClassDef(MDataValue, 0) // List to combine several filters logically31 ClassDef(MDataValue, 0) // MData object corresponding to a single value 32 32 }; 33 33
Note:
See TracChangeset
for help on using the changeset viewer.