Changeset 14748 for fact/tools/rootmacros/PulseTemplates/pulse.C
- Timestamp:
- 12/13/12 18:21:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pulse.C
r14532 r14748 93 93 ) 94 94 { 95 // mHisto->Sumw2(); 96 95 97 fitOptions += "R"; 96 if (type == 0) 98 if (type == 0) //use sectionwise function 97 99 FitSectionWise( 98 100 fitName, … … 101 103 fitMax 102 104 ); 103 else if (type == 1) 105 else if (type == 1) //use continous function 104 106 FitContious( 105 107 fitName, … … 154 156 } 155 157 158 // Fit pulseshape with a section wise defined funciton 159 // expressed by a sum of section wise defined exp-functions 160 //controled by heaviside function 156 161 void 157 162 Pulse::FitSectionWise( … … 168 173 // ====================================================================== 169 174 // Calculate startvaues for fit 170 double tau 171 double bsl = 0 ; //MW der ersten zehn slices175 double tau = 30.0; 176 double bsl = 0.8; //shall be around 0 172 177 173 178 int first_bin = mHisto->GetXaxis()->GetFirst(); … … 209 214 } 210 215 216 // Fit pulseshape with a continous funciton expressed by a product of two exp-functions 211 217 void 212 218 Pulse::FitContious( … … 259 265 mPhE.second = mModel->GetParError(5); 260 266 261 cout << "test" << mBsl.first << "\t +/-" << mBsl.second << endl;267 // cout << "test" << mBsl.first << "\t +/-" << mBsl.second << endl; 262 268 } 263 269
Note:
See TracChangeset
for help on using the changeset viewer.