Changes between Version 241 and Version 242 of DatabaseBasedAnalysis/Spectrum
- Timestamp:
- 12/10/19 14:05:53 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis/Spectrum
v241 v242 112 112 113 113 == Get Data File List == 114 115 A list with file IDs containing the events to be analyed is required a.t.m. The following query retrieves such a list and fills a temporary table (!DataFiles) with the IDs. 114 116 115 117 {{{#!Spoiler … … 134 136 }}} 135 137 138 ```%0:where``` is a placeholder, for example for 139 140 {{{#!sql 141 fZenithDistanceMean<30 AND fThresholdMinSet<350 AND 142 fSourceKEY=5 AND 143 fRunTypeKEY=1 AND 144 fNight>20161201 AND fNight<20170201 AND 145 fR750Cor>0.9e0*fR750Ref 146 }}} 147 136 148 == Get Observation Time == 149 150 The following query bins the effective observation time of the runs listed above in zenith angle bins and stores the result in a temporary table (!ObservationTime). Note that the result contains only those bins which have entries. 137 151 138 152 {{{#!Spoiler … … 161 175 }}} 162 176 177 %0:bins is a placeholder for the bin boundaries, e.g. ```5, 10, 15, 20, 25, 30``` (five bins between 5° and 30° plus underflow and overflow). 178 163 179 == Get Monte Carlo File List == 180 181 The next query obtains all Monte Carlo runs which have their !ThetaMin or !ThetaMax within one of the bins obtained in the previous query (so all MC runs that correspond to bins in which data is available). Strictly speaking, this step is not necessary, but it accelerats further processing. In addition (here as an example) only runs with even FileIDs are obtained as test-runs (assuming that odd runs were used for training). The resulting FileIDs are stored in a temporary table (!MonteCarloFiles). 164 182 165 183 {{{#!Spoiler