Changeset 4835
- Timestamp:
- 09/02/04 15:55:13 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmontecarlo/MMcWeightEnergySpecCalc.cc
r2474 r4835 123 123 // 124 124 MMcWeightEnergySpecCalc::MMcWeightEnergySpecCalc(Float_t slope, 125 125 const char *name, const char *title) 126 126 { 127 127 fNewSpecIsPowLaw = kTRUE; … … 133 133 } 134 134 135 // --------------------------------------------------------------------------- 135 136 // 136 137 // Constructor. The new spectrum will have a general shape, given by the user … … 138 139 // 139 140 MMcWeightEnergySpecCalc::MMcWeightEnergySpecCalc(const TF1& spectrum, 140 141 const char *name, const char *title) 141 142 { 142 143 fNewSpecIsPowLaw = kFALSE; … … 146 147 } 147 148 149 // --------------------------------------------------------------------------- 148 150 // 149 151 // As before, but the function which represent the new spectrum is given as … … 151 153 // 152 154 MMcWeightEnergySpecCalc::MMcWeightEnergySpecCalc(const char* spectrum, 153 155 const char *name, const char *title) 154 156 { 155 157 fNewSpecIsPowLaw = kFALSE; … … 159 161 } 160 162 163 // --------------------------------------------------------------------------- 161 164 // 162 165 // As before, but the new spectrum is given as a intrepreted C++ function. … … 181 184 // 182 185 MMcWeightEnergySpecCalc::MMcWeightEnergySpecCalc(void* function, 183 186 const char *name, const char *title) 184 187 { 185 188 fNewSpecIsPowLaw = kFALSE; … … 189 192 } 190 193 194 // --------------------------------------------------------------------------- 191 195 // 192 196 // As before, but this is the constructor for real functions, i.e. it is called … … 356 360 return kTRUE; 357 361 } 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
Note:
See TracChangeset
for help on using the changeset viewer.