Changeset 7262 for trunk/MagicSoft
- Timestamp:
- 08/04/05 20:09:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7259 r7262 32 32 - added option --outf to make it possible to give the filename 33 33 (needed for automation of datacheck) 34 - added output in txt-file in case of no events (needed for the 35 evaluation of runs with no interlaced events) 36 - small changes in output 37 38 * datacenter/macros/setupdb.C: 39 - added new table (DataCheck) 40 41 * datacenter/macros/fillsinope.C: 42 - added (macro to read in the sinope*.txt files and fill the 43 information into the DB) 44 45 * datacenter/macros/filldotraw.C: 46 - added (was before in the directory macros/sql/) 47 - made some changes to include it into the automation 48 added function make it possible to call the macro not only 49 with the filename but also with the runnumber 50 51 * macros/sql/*: 52 - removed (all macros are now in the datacenter directory) 34 53 35 54 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7234 r7262 418 418 419 419 list.Add(new TObjString( 420 "CREATE TABLE MyMagic. %s("420 "CREATE TABLE MyMagic.ExcludedFDA (" 421 421 " fExcludedFDAKEY SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY," 422 422 " fExcludedFDAImportance SMALLINT UNSIGNED NULL," … … 425 425 " fExcludedFDA VARCHAR(255) NULL" 426 426 ") MAX_ROWS=65536")); 427 428 429 list.Add(new TObjString( 430 "CREATE TABLE MyMagic.DataCheck (" 431 " fRunNumber INT UNSIGNED PRIMARY KEY," 432 " fEvents INT UNSIGNED NULL," 433 " fPositionSignal TINYINT UNSIGNED NULL," 434 " fPositionFWHM TINYINT UNSIGNED NULL," 435 " fHeightSignal SMALLINT UNSIGNED NULL," 436 " fHeightFWHM SMALLINT UNSIGNED NULL," 437 " fHasSignal ENUM(\"yes\",\"no\") NULL," 438 " fHasPedestal ENUM(\"yes\",\"no\") NULL," 439 " fPositionAsym ENUM(\"yes\",\"no\") NULL," 440 " fHeightAsym ENUM(\"yes\",\"no\") NULL," 441 " fEventsInterlaced INT UNSIGNED NULL," 442 " fPositionSignalInterlaced TINYINT UNSIGNED NULL," 443 " fPositionFWHMInterlaced TINYINT UNSIGNED NULL," 444 " fHeightSignalInterlaced SMALLINT UNSIGNED NULL," 445 " fHeightFWHMInterlaced SMALLINT UNSIGNED NULL," 446 " fHasSignalInterlaced ENUM(\"yes\",\"no\") NULL," 447 " fHasPedestalInterlaced ENUM(\"yes\",\"no\") NULL," 448 " fPositionAsymInterlaced ENUM(\"yes\",\"no\") NULL," 449 " fHeightAsymInterlaced ENUM(\"yes\",\"no\") NULL" 450 ")")); 427 451 428 452 -
trunk/MagicSoft/Mars/sinope.cc
r7259 r7262 117 117 { 118 118 gLog << warn << "No entries processed..." << endl; 119 return kFALSE; 119 120 ofstream fout(Form("%stxt", kOutpath.Data())); 121 if (!fout) 122 { 123 gLog << err << "Cannot open file: " << strerror(errno) << endl; 124 return kERROR; 125 } 126 127 fout << "Events: " << events << endl; 128 fout << endl; 129 130 return kTRUE; 120 131 } 121 132 … … 164 175 165 176 fout << "Events: " << events << endl; 166 fout << "HasSignal s: " << (fwhm1>10?"No":"Yes") << endl;167 fout << "HasPedestal: " << (fwhm1<20?" No":"Yes") << endl;177 fout << "HasSignal: " << (fwhm1>10?"no":"yes") << endl; 178 fout << "HasPedestal: " << (fwhm1<20?"no":"yes") << endl; 168 179 fout << endl; 169 180 fout << "PositionSignal: " << h1.GetMaximumBin()-1 << endl; 170 181 fout << "PositionFWHM: " << fwhm1 << endl; 171 fout << "PositionAsym: " << (asym1?" Yes":"No") << endl;182 fout << "PositionAsym: " << (asym1?"yes":"no") << endl; 172 183 fout << endl; 173 184 fout << "HeightSignal: " << h2.GetMaximumBin()-1 << endl; 174 185 fout << "HeightFWHM: " << fwhm2 << endl; 175 fout << "HeightAsym: " << (asym2?" Yes":"No") << endl;186 fout << "HeightAsym: " << (asym2?"yes":"no") << endl; 176 187 fout << endl; 177 188
Note:
See TracChangeset
for help on using the changeset viewer.