Commit 94914d9f14aeb17a44c617187022bb71346cdab4
1 parent
65346e20
Adjust to new DESY files (old are wrong)
Showing
1 changed file
with
55 additions
and
5 deletions
scripts/cta_root2caldb.py
| ... | ... | @@ -1312,9 +1312,9 @@ def set_prod1_ifae(): |
| 1312 | 1312 | #=========================# |
| 1313 | 1313 | # Set Prod2 DESY database # |
| 1314 | 1314 | #=========================# |
| 1315 | -def set_prod2_desy(): | |
| 1315 | +def set_prod2_desy_ignore(): | |
| 1316 | 1316 | """ |
| 1317 | - Set Prod2 DESY database. | |
| 1317 | + Set Prod2 DESY database (ignore these files). | |
| 1318 | 1318 | """ |
| 1319 | 1319 | # Set database attributes |
| 1320 | 1320 | path = "/project-data/cta/performance/prod2/Performance_DESY_20140128" |
| ... | ... | @@ -1397,6 +1397,56 @@ def set_prod2_desy(): |
| 1397 | 1397 | return db |
| 1398 | 1398 | |
| 1399 | 1399 | |
| 1400 | +#=========================# | |
| 1401 | +# Set Prod2 DESY database # | |
| 1402 | +#=========================# | |
| 1403 | +def set_prod2_desy(): | |
| 1404 | + """ | |
| 1405 | + Set Prod2 DESY database. | |
| 1406 | + """ | |
| 1407 | + # Set database attributes | |
| 1408 | + path_aar = "/project-data/cta/performance/prod2/Performance_DESY_20140131_Aar" | |
| 1409 | + path_ten = "/project-data/cta/performance/prod2/Performance_DESY_20140131_Tenerife_50h" | |
| 1410 | + rebin = False | |
| 1411 | + psftype = "Gauss" | |
| 1412 | + scale = 1.0 | |
| 1413 | + | |
| 1414 | + # Set database content | |
| 1415 | + db = [{'inst': "aar", 'id': "DESY20140105_50h", | |
| 1416 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1417 | + 'file': "DESY.d20140105.Erec1.V3.ID0NIM2.prod2-Aar-NS.S.2a.180000s.root"}, | |
| 1418 | + {'inst': "aar", 'id': "DESY20140105_50h_0deg", | |
| 1419 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1420 | + 'file': "DESY.d20140105.Erec1.V3.ID0_0degNIM2.prod2-Aar-NS.S.2a.180000s.root"}, | |
| 1421 | + {'inst': "aar", 'id': "DESY20140105_50h_180deg", | |
| 1422 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1423 | + 'file': "DESY.d20140105.Erec1.V3.ID0_180degNIM2.prod2-Aar-NS.S.2a.180000s.root"}, | |
| 1424 | + | |
| 1425 | + {'inst': "aar500", 'id': "DESY20140105_50h", | |
| 1426 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1427 | + 'file': "DESY.d20140105.Erec1.V3.ID0NIM2.prod2-Aar-500m-NS.S.2a.180000s.root"}, | |
| 1428 | + {'inst': "aar500", 'id': "DESY20140105_50h_0deg", | |
| 1429 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1430 | + 'file': "DESY.d20140105.Erec1.V3.ID0_0degNIM2.prod2-Aar-NS.S.2a.180000s.root"}, | |
| 1431 | + {'inst': "aar500", 'id': "DESY20140105_50h_180deg", | |
| 1432 | + 'path': path_aar, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1433 | + 'file': "DESY.d20140105.Erec1.V3.ID0_180degNIM2.prod2-Aar-NS.S.2a.180000s.root"}, | |
| 1434 | + | |
| 1435 | + {'inst': "tenerife", 'id': "DESY20140105_50h", | |
| 1436 | + 'path': path_ten, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1437 | + 'file': "DESY.d20140105.Erec1.V3.ID0NIM2.prod2-Tenerife-NS.N.2NN.180000s.root"}, | |
| 1438 | + {'inst': "tenerife", 'id': "DESY20140105_50h_0deg", | |
| 1439 | + 'path': path_ten, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1440 | + 'file': "DESY.d20140105.Erec1.V3.ID0_0degNIM2.prod2-Tenerife-NS.N.2NN.180000s.root"}, | |
| 1441 | + {'inst': "tenerife", 'id': "DESY20140105_50h_180deg", | |
| 1442 | + 'path': path_ten, 'rebin': rebin, 'psftype': psftype, 'scale': scale, | |
| 1443 | + 'file': "DESY.d20140105.Erec1.V3.ID0_180degNIM2.prod2-Tenerife-NS.N.2NN.180000s.root"} | |
| 1444 | + ] | |
| 1445 | + | |
| 1446 | + # Return database | |
| 1447 | + return db | |
| 1448 | + | |
| 1449 | + | |
| 1400 | 1450 | #==========================# |
| 1401 | 1451 | # Main routine entry point # |
| 1402 | 1452 | #==========================# |
| ... | ... | @@ -1412,7 +1462,7 @@ if __name__ == '__main__': |
| 1412 | 1462 | - EffectiveArea80_offaxis (2D) - Effective area for 80% source containment |
| 1413 | 1463 | - AngRes_offaxis (2D) - Angular resolution 68% containment |
| 1414 | 1464 | - AngRes80_offaxis (2D) - Angular resolution 80% containment |
| 1415 | - - BGRatePerSqDeg_offaxis (2D) - Background rate per square degree | |
| 1465 | + - BGRatePerSqDeg_offaxis (2D) - Background rate per square degree [counts/s/deg2] | |
| 1416 | 1466 | - BGRate_offaxis (2D) - Background rate |
| 1417 | 1467 | - EffectiveAreaEtrue_offaxis (2D) - Effective area in true energy (finer bins) |
| 1418 | 1468 | - MigMatrix_offaxis (3D) |
| ... | ... | @@ -1421,8 +1471,8 @@ if __name__ == '__main__': |
| 1421 | 1471 | - Ebias_offaxis (2D) - Energy bias |
| 1422 | 1472 | """ |
| 1423 | 1473 | # Get database |
| 1424 | - entries = set_test() | |
| 1425 | - #entries = set_prod1_ifae() | |
| 1474 | + #entries = set_test() | |
| 1475 | + entries = set_prod1_ifae() | |
| 1426 | 1476 | #entries = set_prod2_desy() |
| 1427 | 1477 | |
| 1428 | 1478 | # Loop over entries | ... | ... |