- Timestamp:
- 11/11/05 16:33:22 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7393 r7394 27 27 * datacenter/scripts/rmlocks: 28 28 - fixed condition for removing lock-file 29 30 * datacenter/macros/filldotrun.C: 31 - added new arehucas version 32 33 * datacenter/macros/fillsignal.C,setupdb.C: 34 - added new variable (fPulsePosMean, fPulsePosRms) 29 35 30 36 -
trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C
r7352 r7394 38 38 // 041113-0, 041209-0, 041221-0 39 39 // 050224-0, 050317-0, 050322-0, 050401-0, 050413-0, 050415-0, 050714-0, 40 // 050719-0, 050829-0 40 // 050719-0, 050829-0, 051025-0 41 41 // 42 42 // Usage: … … 182 182 version!=200502240 && version!=200503170 && version!=200503220 && 183 183 version!=200504010 && version!=200504130 && version!=200504150 && 184 version!=200507140 && version!=200507190 && version!=200508290) 184 version!=200507140 && version!=200507190 && version!=200508290 && 185 version!=200510250) 185 186 { 186 187 cout << filename << ": File Version unknown - please update the macro!" << endl; … … 450 451 || version==200502240 || version==200503170 || version==200503220 451 452 || version==200504010 || version==200504130 || version==200504150 452 || version==200507140 || version==200507190 || version==200508290) 453 || version==200507140 || version==200507190 || version==200508290 454 || version==200510250) 453 455 { 454 456 // ========== Col 19-35: DC and HV-values, mjd ========= -
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r7363 r7394 90 90 } 91 91 92 MHCamera *pul = (MHCamera*)arr->FindObjectInCanvas("PulsePos;avg", "MHCamera", "PulsePos"); 93 if (!pul) 94 { 95 cout << "WARNING - Reading of PulsePos;avg failed." << endl; 96 return 0; 97 } 98 92 99 TArrayI inner(1); 93 100 inner[0] = 0; … … 132 139 meansigi = TMath::Nint(meansigi*100)/100.; 133 140 meansigo = TMath::Nint(meansigo*100)/100.; 141 142 Stat_t meanpul = pul->GetMean(); 143 Stat_t rmspul = pul->GetRMS(); 144 145 if (meanpul<0 || rmspul<0) 146 { 147 cout << "WARNING - PulsePos'd mean or rms < 0 " << endl; 148 cout << "PulsePos'd mean " << meanpul << endl; 149 cout << "PulsePos'd rms " << rmspul << endl; 150 return 0; 151 } 152 153 meanpul = TMath::Nint(meanpul*100)/100.; 154 rmspul = TMath::Nint(rmspul*100)/100.; 134 155 135 156 TString sequence = fname(TRegexp("signal[0-9]+[.]root$")); … … 146 167 TString meansiginner=Form("%6.2f", meansigi); 147 168 TString meansigouter=Form("%6.2f", meansigo); 169 TString meanpulpos =Form("%6.2f", meanpul); 170 TString rmspulpos =Form("%6.2f", rmspul); 148 171 149 172 cout << "Sequence #" << seq << endl; … … 152 175 cout << " Mean Signal inner [phe] " << meansiginner << endl; 153 176 cout << " Mean Signal outer [phe] " << meansigouter << endl; 177 cout << " Mean PulsePos " << meanpulpos << endl; 178 cout << " Rms PulsePos " << rmspulpos << endl; 154 179 155 180 TString query = Form("UPDATE Calibration SET " 156 181 " fMeanPedRmsInner=%s, fMeanPedRmsOuter=%s, " 157 " fMeanSignalInner=%s, fMeanSignalOuter=%s " 182 " fMeanSignalInner=%s, fMeanSignalOuter=%s, " 183 " fPulsePosMean=%s, fPulsePosRms=%s " 158 184 " WHERE fSequenceFirst='%d' ", 159 185 meanrmsinner.Data(), meanrmsouter.Data(), 160 186 meansiginner.Data(), meansigouter.Data(), 187 meanpulpos.Data(), rmspulpos.Data(), 161 188 seq); 162 189 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7385 r7394 549 549 " fConvFactorInner FLOAT(6,3) NOT NULL," 550 550 " fConvFactorOuter FLOAT(6,3) NOT NULL," 551 " fPulsePosMean FLOAT(6,2) NOT NULL," 552 " fPulsePosRms FLOAT(6,2) NOT NULL," 551 553 " fLastUpdate TIMESTAMP" 552 554 ")"));
Note:
See TracChangeset
for help on using the changeset viewer.