931 |
// |
// |
932 |
TYPE = 55;//224; |
TYPE = 55;//224; |
933 |
// |
// |
934 |
|
if ( IsDebug() ) printf("mcmd tsync %i tsync %u obt %u \n",i,TSYNC,OBT); |
935 |
|
// |
936 |
if ( TSYNC && OBT ){ |
if ( TSYNC && OBT ){ |
937 |
existsts = true; |
existsts = true; |
938 |
goto eout; |
goto eout; |
955 |
// |
// |
956 |
rt->SetBranchAddress("RunTrailer", &runt); |
rt->SetBranchAddress("RunTrailer", &runt); |
957 |
// |
// |
958 |
if ( rhev > 0 ){ |
Int_t nrhev = rh->GetEntries(); |
959 |
rh->GetEntry(0); |
Int_t nrtev = rt->GetEntries(); |
960 |
// |
if ( IsDebug() ) printf(" ou nevent %i rhev %i rtev %i \n",nevent,nrhev,nrtev); |
961 |
TSYNC = runh->LAST_TIME_SYNC_INFO; |
// |
962 |
OBT = runh->OBT_TIME_SYNC * 1000; |
if ( nrhev > 0 ){ |
963 |
// |
for (Int_t i=0; i<nrhev; i++){ |
964 |
TYPE = 20; |
// |
965 |
// |
rh->GetEntry(i); |
966 |
if ( TSYNC && OBT ){ |
// |
967 |
existsts = true; |
TSYNC = runh->LAST_TIME_SYNC_INFO; |
968 |
goto eout; |
OBT = runh->OBT_TIME_SYNC * 1000; |
969 |
|
// |
970 |
|
TYPE = 20; |
971 |
|
// |
972 |
|
if ( IsDebug() ) printf("runheader %i tsync %u obt %u \n",i,TSYNC,OBT); |
973 |
|
// |
974 |
|
if ( TSYNC && OBT ){ |
975 |
|
existsts = true; |
976 |
|
goto eout; |
977 |
|
}; |
978 |
}; |
}; |
979 |
// |
// |
980 |
}; |
}; |
981 |
if ( rtev > 0 ){ |
if ( nrtev > 0 ){ |
982 |
// |
// |
983 |
if ( IsDebug() ) printf(" No runheader \n"); |
if ( IsDebug() ) printf(" No runheader \n"); |
984 |
signal = 6; |
signal = 6; |
985 |
// |
// |
986 |
rt->GetEntry(0); |
for (Int_t i=0; i<nrtev; i++){ |
987 |
// |
// |
988 |
TSYNC = runt->LAST_TYME_SYNC_INFO; |
rt->GetEntry(i); |
989 |
OBT = runt->OBT_TYME_SYNC * 1000; |
// |
990 |
// |
TSYNC = runt->LAST_TYME_SYNC_INFO; |
991 |
TYPE = 21; |
OBT = runt->OBT_TYME_SYNC * 1000; |
992 |
// |
// |
993 |
if ( TSYNC && OBT ){ |
TYPE = 21; |
994 |
existsts = true; |
// |
995 |
goto eout; |
if ( IsDebug() ) printf("runtrailer %i tsync %u obt %u \n",i,TSYNC,OBT); |
996 |
|
// |
997 |
|
if ( TSYNC && OBT ){ |
998 |
|
existsts = true; |
999 |
|
goto eout; |
1000 |
|
}; |
1001 |
}; |
}; |
1002 |
// |
// |
1003 |
} else { |
} else { |