Changeset 5366 for trunk/MagicSoft/Mars/mfbase
- Timestamp:
- 11/10/04 09:33:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfbase/MFEventSelector2.cc
r3330 r5366 28 28 // MFEventSelector2 29 29 // 30 // This is a filter to make a selection of events from a file. 31 // 32 // see Construtor for more instructions and the example below: 30 // This is a filter to make a selection of events from a file, according to 31 // a certain predetermined distribution in a given parameter (or combination 32 // of parameters). The distribution is passed to the class through a histogram 33 // of the relevant parameter(s) contained in an object of type MH3. The filter 34 // will return true or false in each event such that the final distribution 35 // of the parameter(s) for the events surviving the filter is the desired one. 36 // The selection of which events are kept in each bin of the parameter(s) is 37 // made at random (obviously the selection probability depends on the 38 // values of the parameters, and is dictated by the input histogram). 39 // 40 // See Constructor for more instructions and also the example below: 33 41 // 34 42 // -------------------------------------------------------------------- … … 124 132 // Constructor. Takes a reference to an MH3 which gives you 125 133 // 1) The nominal distribution. The distribution is renormalized, so 126 // that the absolute values do esn't matter. To crop the distribution134 // that the absolute values do not matter. To crop the distribution 127 135 // to a nominal value of total events use SetNumMax 128 // 2) The dimension of the MH3 determins the dimension in which the136 // 2) The parameters histogrammed in MH3 are those on which the 129 137 // event selector will work, eg 130 138 // MH3 hist("MMcEvt.fTelescopeTheta", "MMcEvt.fEnergy"); 131 139 // Would result in a redistribution of Theta and Energy. 132 // 3) The given rules are the variables which are used for the 133 // redistribution, eg: 140 // 3) Rules are also accepted in the argument of MH3, for instance: 134 141 // MH3 hist("MMcEvt.fTelescopeTheta"); 135 // would result in redistributing Theta .142 // would result in redistributing Theta, while 136 143 // MH3 hist("cos(MMcEvt.fTelescopeTheta)"); 137 144 // would result in redistributing cos(Theta). … … 241 248 // 242 249 // After reading the histograms the arrays used for the random event 243 // sel ction are created. If a MStatusDisplay is set the histograms are250 // selection are created. If a MStatusDisplay is set the histograms are 244 251 // displayed there. 245 252 //
Note:
See TracChangeset
for help on using the changeset viewer.