Changeset 17366 for trunk/FACT++/src
- Timestamp:
- 11/23/13 17:58:41 (11 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/makedata.cc
r17034 r17366 112 112 113 113 const mysqlpp::StoreQueryResult res = 114 Database(fDatabase).query("SELECT fRightAscension, fDeclination FROM source WHERE fSourceName='"+source_name+"'").store();114 Database(fDatabase).query("SELECT fRightAscension, fDeclination FROM Source WHERE fSourceName='"+source_name+"'").store(); 115 115 116 116 // ------------- Create canvases and frames --------------------- … … 151 151 const double calt = sin(hrzm.alt*M_PI/180); 152 152 153 const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2); 154 const double cur = lc>0 ? 4+103*lc : 4; 153 //const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2); 154 //const double cur = lc>0 ? 4+103*lc : 4; 155 156 const double lc = sqrt(calt)*pow(disk, 2.3)*pow(cang+1, 1)*pow(dist, -2); 157 const double cur = lc>0 ? 7.2 + 69*lc : 7.2; 155 158 156 159 // Relative energy threshold prediction -
trunk/FACT++/src/makeplots.cc
r16996 r17366 140 140 141 141 const mysqlpp::StoreQueryResult res = 142 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM source").store();142 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source").store(); 143 143 144 144 // ------------- Create canvases and frames --------------------- … … 284 284 const double calt = sin(hrzm.alt*M_PI/180); 285 285 286 const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2); 287 const double cur = lc>0 ? 4+103*lc : 4; 286 //const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2); 287 //const double cur = lc>0 ? 4+103*lc : 4; 288 289 const double lc = sqrt(calt)*pow(disk, 2.3)*pow(cang+1, 1)*pow(dist, -2); 290 const double cur = lc>0 ? 7.2 + 69*lc : 7.2; 288 291 289 292 // Relative energy threshold prediction
Note:
See TracChangeset
for help on using the changeset viewer.