Changes between Version 235 and Version 236 of DatabaseBasedAnalysis/Spectrum
- Timestamp:
- 12/09/19 18:22:14 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis/Spectrum
v235 v236 136 136 == Get Observation Time == 137 137 138 {{{#!Spoiler 139 {{{#!sql 140 CREATE TEMPORARY TABLE ObservationTime 141 ( 142 `.theta` SMALLINT UNSIGNED NOT NULL, 143 OnTime FLOAT NOT NULL, 144 PRIMARY KEY (`.theta`) USING HASH 145 ) ENGINE=Memory 146 AS 147 ( 148 SELECT 149 INTERVAL(fZenithDistanceMean, %0:bins) AS `.theta`, 150 SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn) AS OnTime 151 FROM 152 DataFiles 153 LEFT JOIN 154 factdata.RunInfo USING (FileId) 155 GROUP BY 156 `.theta` 157 ORDER BY 158 `.theta` 159 ) 160 }}} 161 }}} 162 138 163 == Get Monte Carlo File List == 139 164