Changes between Version 33 and Version 34 of DatabaseBasedAnalysis
- Timestamp:
- 08/04/18 22:22:23 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseBasedAnalysis
v33 v34 27 27 Let's first have a look at the total observation time of all Crab data in this period: 28 28 29 {{{ 29 {{{#!sql 30 30 SELECT 31 31 COUNT(*), … … 229 229 The events themselves are stored in a table named '''Events'''. The position of the source in camera coordinates is stored in '''Position''. To get them, you can run the following query 230 230 231 {{{ 231 {{{#!sql 232 232 SELECT 233 233 Events.*, … … 251 251 or with the list you wrote before 252 252 253 {{{ 253 {{{#!sql 254 254 SELECT 255 255 Events.*, … … 268 268 To run an analysis on the data you can use the following root macro "''ganymed.C''". It produces a theta-square plot. Its execution took about 5s ({{{root ganymed.C++}}}) 269 269 270 {{{ 270 {{{#!cpp 271 271 #include <iostream> 272 272 … … 391 391 You can of course include all the calculations into your query already 392 392 393 {{{ 393 {{{#!sql 394 394 SELECT 395 395 Events.*, … … 444 444 A simple macro just applying all the cuts would then be enough to do a theta-square plot 445 445 446 {{{#!c 446 {{{#!cpp 447 447 void ganymed3() 448 448 { … … 471 471 Combining everything into a single query is a bit tricky but works: 472 472 473 {{{ 473 {{{#!sql 474 474 SELECT 475 475 Counter.*,