Skip to content
Snippets Groups Projects

Add acoustics monitoring

Merged Carlo Guidi requested to merge cguidi/km3mon:undefined into master
Compare and Show latest version
1 file
+ 9
8
Compare changes
  • Side-by-side
  • Inline
+ 9
8
@@ -48,11 +48,12 @@ table=db.run_table(detid)
ACOUSTIC_BEACONS = [12, 14, 16]
N_DOMS = 18
DOMS = range(N_DOMS + 1)
DU=[1,2,3,4,5] # DUs
N_DUS = 5
DUS = range(1, N_DUS + 1)
#ACOUSTIC_BEACONS=[16] # Acoustic Beacons
#DOM=[7] #
#DU=[3] # DUs
#DOMS=[7] # DOMs
#DUS=[3] # DUs
check=True
while check==True:
@@ -68,13 +69,13 @@ while check==True:
print(now)
COL=[]
for i in DU:
for du in DUS:
DUx=[]
for j in ACOUSTIC_BEACONS:
for k in DOM:
for ab in ACOUSTIC_BEACONS:
for dom in DOMS:
try:
macaddress = db.doms.via_omkey((i,k), detid).dom_id
toas_all = sds.toashort(detid=detid, minrun=minrun, maxrun=maxrun, domid=macaddress, emitterid=j) # Prendere i dati basandosi sul tempo e non sul run????
macaddress = db.doms.via_omkey((du,dom), detid).dom_id
toas_all = sds.toashort(detid=detid, minrun=minrun, maxrun=maxrun, domid=macaddress, emitterid=ab) # Prendere i dati basandosi sul tempo e non sul run????
QF_abdom=toas_all["QUALITYFACTOR"]
UTB_abdom=toas_all["UNIXTIMEBASE"]
Loading