AtNuRunTimes Class Reference

#include <AtNuRunTimes.h>

List of all members.

Public Member Functions

 AtNuRunTimes ()
 ~AtNuRunTimes ()

Static Public Member Functions

static Bool_t GoodSpillCalibration (AtmosEvent *event)
static Bool_t GoodSpillCalibration (Int_t UnixTime)
static Bool_t GoodData (AtmosEvent *event)
static Bool_t GoodData (Int_t UnixTime)

Private Member Functions

 ClassDef (AtNuRunTimes, 1)

Detailed Description

Definition at line 8 of file AtNuRunTimes.h.


Constructor & Destructor Documentation

AtNuRunTimes::AtNuRunTimes (  ) 

Definition at line 9 of file AtNuRunTimes.cxx.

00010 {
00011 
00012 }

AtNuRunTimes::~AtNuRunTimes (  ) 

Definition at line 14 of file AtNuRunTimes.cxx.

00015 {
00016 
00017 }


Member Function Documentation

AtNuRunTimes::ClassDef ( AtNuRunTimes  ,
 
) [private]
Bool_t AtNuRunTimes::GoodData ( Int_t  UnixTime  )  [static]

Definition at line 46 of file AtNuRunTimes.cxx.

References DataUtil::IsGoodFDData(), SimFlag::kData, and Detector::kFar.

00047 {
00048   // This method records periods of bad far detector data.
00049 
00050   // Reject all early data (prior to 1st August 2003)
00051   if( ut < 1059696000 ) return false;
00052 
00053   // Reject Runs 18884->18896
00054   if( ut>=1062284940 && ut<1062361500 ) return false;
00055 
00056   // Reject a few concatenated periods of bad data
00057   if( ut>=1117969754 && ut<1117970370 ) return false;
00058   if( ut>=1118006152 && ut<1118074000 ) return false;
00059   if( ut>=1118150581 && ut<1118172071 ) return false;
00060   if( ut>=1121879203 && ut<1121915093 ) return false;
00061   if( ut>=1135704376 && ut<1135707000 ) return false;
00062   if( ut>=1139874217 && ut<1139878276 ) return false;
00063   if( ut>=1151664697 && ut<1151665300 ) return false;
00064   if( ut>=1221612081 && ut<1221612416 ) return false;
00065 
00066   // Reject data collected during commissioning of new FD DAQ
00067   if( ut>=1393785000 && ut<1393877700 ) return false;
00068 
00069   // For remaining data, DataUtil::IsGoodFDData is now used.  
00070   VldTimeStamp vldt( ut );
00071   VldContext vldc( Detector::kFar, SimFlag::kData, vldt );
00072   return DataUtil::IsGoodFDData( vldc );
00073 }

Bool_t AtNuRunTimes::GoodData ( AtmosEvent event  )  [static]

Definition at line 40 of file AtNuRunTimes.cxx.

References AtmosEvent::UnixTime.

Referenced by AtNuDataNtuple::Run(), and AtNuEventSelectionAB::SelectGoodEvent().

00041 {
00042   if( event ) return AtNuRunTimes::GoodData(event->UnixTime);
00043   return 0;
00044 }

Bool_t AtNuRunTimes::GoodSpillCalibration ( Int_t  UnixTime  )  [static]

Definition at line 25 of file AtNuRunTimes.cxx.

00026 {
00027   // From Database (SPILLTIMECALIBRATION, SEQNO 700000009) 
00028   //  Problem with timing system at FD, runs 40909-40934
00029   //  Start: 2008-05-22 12:30:00 (UnixTime=1211459400)
00030   //  End:   2008-05-29 15:30:00 (UnixTime=1212075000)
00031   //   (FD slipped forward by 1 sec)
00032 
00033   if( ut>=1211459400 && ut<1212075000 ){
00034     return 0;
00035   }
00036 
00037   return 1;
00038 }

Bool_t AtNuRunTimes::GoodSpillCalibration ( AtmosEvent event  )  [static]

Definition at line 19 of file AtNuRunTimes.cxx.

References AtmosEvent::UnixTime.

Referenced by AtNuEventSelectionAB::SelectGoodEvent().

00020 {
00021   if( event ) return AtNuRunTimes::GoodSpillCalibration(event->UnixTime);
00022   return 0;
00023 }


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1