Changeset 7278
- Timestamp:
- 08/10/05 00:08:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillganymed.C
r7273 r7278 54 54 #include "MStatusArray.h" 55 55 #include "MGeomCamMagic.h" 56 #include "M BadPixelsCam.h"56 #include "MAlphaFitter.h" 57 57 58 58 using namespace std; … … 148 148 cout << " Background Rate: " << bgd*60/tm << " evts/min" << endl; 149 149 cout << " Significance Rate: " << S/TMath::Sqrt(tm/3600.) << " sigma/sqrt(h)" << endl; 150 /* 150 151 151 152 TString query; 152 if (!ExistStr(serv, "fData set", "Ganymed", seq))153 { 154 query = Form("INSERT StarSET"155 " f SequenceFirst=%d,"156 " f MeanNumberIslands=%s, "157 " f Ratio=%s, "158 " f MuonNumber=%d, "159 " f EffOnTime=%d, "160 " f MuonRate=%s, "161 " f PSF=%s, "162 " f DataRate=%d, "163 " f MaxHumidity=%s ",164 seq, islands.Data(), ratio.Data(),165 num, effontime,166 muonrate.Data(), PSF.Data(),167 datarate, maxhum.Data());153 if (!ExistStr(serv, "fDataSetNumber", "Ganymed", seq)) 154 { 155 query = Form("INSERT Ganymed SET" 156 " fDataSetNumber=%d," 157 " fExcessEvents=%f, " 158 " fBackgroundEvents=%f, " 159 " fSignalEvents=%f, " 160 " fSignificance=%f, " 161 " fScaleFactor=%f, " 162 " fEffOnTime=%f, " 163 " fExcessRate=%f, " 164 " fBackgroundRate=%f, " 165 " fSignificanceRate=%f ", 166 ds, exc, bgd, sig, S, f, tm, 167 exc*60/tm, bgd*60/tm, 168 S/TMath::Sqrt(tm/3600)); 168 169 } 169 170 else 170 171 { 171 query = Form("UPDATE StarSET"172 " f MeanNumberIslands=%s, "173 " f Ratio=%s, "174 " f MuonNumber=%d, "175 " f EffOnTime=%d, "176 " f MuonRate=%s, "177 " f PSF=%s, "178 " f DataRate=%d, "179 " f MaxHumidity=%s"180 " WHERE fSequenceFirst=%d",181 islands.Data(), ratio.Data(),182 num, effontime,183 muonrate.Data(), PSF.Data(),184 datarate, maxhum.Data(), seq);172 query = Form("UPDATE Ganymed SET" 173 " fExcessEvents=%f, " 174 " fBackgroundEvents=%f, " 175 " fSignalEvents=%f, " 176 " fSignificance=%f, " 177 " fScaleFactor=%f, " 178 " fEffOnTime=%f, " 179 " fExcessRate=%f, " 180 " fBackgroundRate=%f, " 181 " fSignificanceRate=%f ", 182 " WHERE fDataSetNumber=%d ", 183 exc, bgd, sig, S, f, tm, 184 exc*60/tm, bgd*60/tm, 185 S/TMath::Sqrt(tm/3600), ds); 185 186 } 186 187
Note:
See TracChangeset
for help on using the changeset viewer.