DbuNearRunQuality Class Reference

#include <DbuNearRunQuality.h>

Inheritance diagram for DbuNearRunQuality:
DbiTableRow

List of all members.

Public Member Functions

 DbuNearRunQuality ()
 DbuNearRunQuality (const DbuNearRunQuality &from)
 DbuNearRunQuality (Int_t RunConfigArray[], VldTimeStamp start, VldTimeStamp end, Int_t coldcrates, Int_t coldmindersspec, Int_t coldmenusspec, Int_t coldminderscal, Int_t coldmenuscal, Int_t hotmenusspec, Int_t hotmenuscal, Int_t timecounthotmenusspec, Int_t timecounthotmenuscal, Int_t timecountcoldmenusspec, Int_t timecountcoldmenuscal, Int_t timecountcoldmindersspec, Int_t timecountcoldminderscal, Float_t lirate, Int_t highadcspec, Int_t highadccal, Int_t nbcapidspec, Int_t nbcapidcal, Int_t nbparityspec, Int_t nbparitycal, Int_t nbmiscountspec, Int_t nbmiscountcal, Int_t nbprioritytruncspec, Int_t nbprioritytrunccal, Int_t nbsamemenuspec, Int_t nbsamemenucal, Int_t nbsharedminderspec, Int_t nbsharedmindercal, Int_t nbtransferminderspec, Int_t nbtransfermindercal, Float_t avglow, Float_t avghigh, Float_t avggate, Int_t snarlratemin, Int_t snarlratemax, Float_t snarlratemedian, Float_t snarlratemean)
virtual ~DbuNearRunQuality ()
Bool_t CanL2Cache () const
Bool_t Compare (const DbuNearRunQuality &that) const
Int_t GetRun () const
Int_t GetSubRun () const
VldTimeStamp GetStartTime () const
VldTimeStamp GetEndTime () const
Int_t GetSubrunLength () const
Int_t GetPhysicsRun () const
Int_t GetModifiedRun () const
Int_t GetTestRun () const
Int_t GetTriggersPlane () const
Int_t GetTriggersActivity () const
Int_t GetTriggersSpill () const
Int_t GetRopMask () const
Int_t GetTriggerMask () const
Int_t GetColdCrates () const
Int_t GetColdMindersSpec () const
Int_t GetColdMenusSpec () const
Int_t GetColdMindersCal () const
Int_t GetColdMenusCal () const
Int_t GetHotMenusSpec () const
Int_t GetHotMenusCal () const
Int_t GetTimeCountHotMenusSpec () const
Int_t GetTimeCountHotMenusCal () const
Int_t GetTimeCountColdMenusSpec () const
Int_t GetTimeCountColdMenusCal () const
Int_t GetTimeCountColdMindersSpec () const
Int_t GetTimeCountColdMindersCal () const
Float_t GetLIRate () const
Int_t GetHighAdcSpec () const
Int_t GetHighAdcCal () const
Int_t GetNbCapidSpec () const
Int_t GetNbCapidCal () const
Int_t GetNbParitySpec () const
Int_t GetNbParityCal () const
Int_t GetNbMisCountSpec () const
Int_t GetNbMisCountCal () const
Int_t GetNbPriorityTruncSpec () const
Int_t GetNbPriorityTruncCal () const
Int_t GetNbSameMenuSpec () const
Int_t GetNbSameMenuCal () const
Int_t GetNbSharedMinderSpec () const
Int_t GetNbSharedMinderCal () const
Int_t GetNbTransferMinderSpec () const
Int_t GetNbTransferMinderCal () const
Float_t GetAvgLow () const
Float_t GetAvgHigh () const
Float_t GetAvgGate () const
Int_t GetSnarlRateMin () const
Int_t GetSnarlRateMax () const
Float_t GetSnarlRateMedian () const
Float_t GetSnarlRateMean () const
Bool_t GetGoodRun (Int_t itask) const
Bool_t GoodRun (Int_t itask) const
Bool_t IsOK (Int_t itask) const
Bool_t GoodRunType (Int_t itask) const
Bool_t GoodReadout (Int_t itask) const
Bool_t Short (Int_t itask) const
Bool_t LowRate (Int_t itask) const
Bool_t HighRate (Int_t itask) const
Bool_t LIRate (Int_t itask) const
Bool_t ColdReadout (Int_t itask) const
Bool_t HotReadout (Int_t itask) const
Bool_t BadReadoutErrors (Int_t itask, Bool_t legacy=false) const
Bool_t BadCapidError (Int_t itask, Bool_t legacy=false) const
Bool_t BadParityError (Int_t itask, Bool_t legacy=false) const
Bool_t BadMisCountError (Int_t itask, Bool_t legacy=false) const
Bool_t BadPriorityTruncateError (Int_t itask) const
Bool_t BadSameMenuError (Int_t itask) const
Bool_t BadSharedMinderError (Int_t itask) const
Bool_t BadTransferMinderError (Int_t itask) const
Bool_t HighADC (Int_t itask) const
Bool_t BadSpillWindow (Int_t itask) const
Int_t GetAggregateNo () const
UInt_t GetIndex () const
UInt_t GetIndex (UInt_t) const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual DbiTableRowCreateTableRow () const

Static Public Member Functions

static UInt_t GetIndex (Int_t run, Int_t subrun)

Private Attributes

Int_t fRun
Int_t fSubRun
VldTimeStamp fStartTime
VldTimeStamp fEndTime
Int_t fSubrunLength
Int_t fPhysicsRun
Int_t fModifiedRun
Int_t fTestRun
Int_t fTriggersPlane
Int_t fTriggersActivity
Int_t fTriggersSpill
Int_t fRopMask
Int_t fTriggerMask
Int_t fColdCrates
Int_t fColdMindersSpec
Int_t fColdMenusSpec
Int_t fColdMindersCal
Int_t fColdMenusCal
Int_t fHotMenusSpec
Int_t fHotMenusCal
Int_t fTimeCountHotMenusSpec
Int_t fTimeCountHotMenusCal
Int_t fTimeCountColdMenusSpec
Int_t fTimeCountColdMenusCal
Int_t fTimeCountColdMindersSpec
Int_t fTimeCountColdMindersCal
Float_t fLIRate
Int_t fHighAdcSpec
Int_t fHighAdcCal
Int_t fNbCapidSpec
Int_t fNbCapidCal
Int_t fNbParitySpec
Int_t fNbParityCal
Int_t fNbMisCountSpec
Int_t fNbMisCountCal
Int_t fNbPriorityTruncSpec
Int_t fNbPriorityTruncCal
Int_t fNbSameMenuSpec
Int_t fNbSameMenuCal
Int_t fNbSharedMinderSpec
Int_t fNbSharedMinderCal
Int_t fNbTransferMinderSpec
Int_t fNbTransferMinderCal
Float_t fAvgLow
Float_t fAvgHigh
Float_t fAvgGate
Int_t fSnarlRateMin
Int_t fSnarlRateMax
Float_t fSnarlRateMedian
Float_t fSnarlRateMean

Detailed Description

Definition at line 10 of file DbuNearRunQuality.h.


Constructor & Destructor Documentation

DbuNearRunQuality::DbuNearRunQuality (  )  [inline]

Definition at line 17 of file DbuNearRunQuality.h.

00017                      : 
00018    fRun(-1),
00019    fSubRun(-1),
00020    fStartTime(0,0),
00021    fEndTime(0,0),
00022    fSubrunLength(-1),
00023    fPhysicsRun(-1),
00024    fModifiedRun(-1),
00025    fTestRun(-1),
00026    fTriggersPlane(-1),
00027    fTriggersActivity(-1),
00028    fTriggersSpill(-1),
00029    fRopMask(-1),
00030    fTriggerMask(-1),
00031    fColdCrates(-1),
00032    fColdMindersSpec(-1),
00033    fColdMenusSpec(-1),
00034    fColdMindersCal(-1),
00035    fColdMenusCal(-1),
00036    fHotMenusSpec(-1),
00037    fHotMenusCal(-1),
00038    fTimeCountHotMenusSpec(-1),
00039    fTimeCountHotMenusCal(-1),
00040    fTimeCountColdMenusSpec(-1),
00041    fTimeCountColdMenusCal(-1),
00042    fTimeCountColdMindersSpec(-1),
00043    fTimeCountColdMindersCal(-1),
00044    fLIRate(-1),
00045    fHighAdcSpec(-1),
00046    fHighAdcCal(-1),
00047    fNbCapidSpec(-1),
00048    fNbCapidCal(-1),
00049    fNbParitySpec(-1),
00050    fNbParityCal(-1),
00051    fNbMisCountSpec(-1),
00052    fNbMisCountCal(-1),
00053    fNbPriorityTruncSpec(-1),
00054    fNbPriorityTruncCal(-1),
00055    fNbSameMenuSpec(-1),
00056    fNbSameMenuCal(-1),
00057    fNbSharedMinderSpec(-1),
00058    fNbSharedMinderCal(-1),
00059    fNbTransferMinderSpec(-1),
00060    fNbTransferMinderCal(-1),
00061    fAvgLow(-1.0),
00062    fAvgHigh(-1.0),
00063    fAvgGate(-1.0),
00064    fSnarlRateMin(-1),
00065    fSnarlRateMax(-1),
00066    fSnarlRateMedian(-999.9),
00067    fSnarlRateMean(-999.9)
00068    {
00069    }

DbuNearRunQuality::DbuNearRunQuality ( const DbuNearRunQuality from  )  [inline]

Definition at line 71 of file DbuNearRunQuality.h.

00071                                                   : 
00072    DbiTableRow(from) 
00073    { *this = from; }

DbuNearRunQuality::DbuNearRunQuality ( Int_t  RunConfigArray[],
VldTimeStamp  start,
VldTimeStamp  end,
Int_t  coldcrates,
Int_t  coldmindersspec,
Int_t  coldmenusspec,
Int_t  coldminderscal,
Int_t  coldmenuscal,
Int_t  hotmenusspec,
Int_t  hotmenuscal,
Int_t  timecounthotmenusspec,
Int_t  timecounthotmenuscal,
Int_t  timecountcoldmenusspec,
Int_t  timecountcoldmenuscal,
Int_t  timecountcoldmindersspec,
Int_t  timecountcoldminderscal,
Float_t  lirate,
Int_t  highadcspec,
Int_t  highadccal,
Int_t  nbcapidspec,
Int_t  nbcapidcal,
Int_t  nbparityspec,
Int_t  nbparitycal,
Int_t  nbmiscountspec,
Int_t  nbmiscountcal,
Int_t  nbprioritytruncspec,
Int_t  nbprioritytrunccal,
Int_t  nbsamemenuspec,
Int_t  nbsamemenucal,
Int_t  nbsharedminderspec,
Int_t  nbsharedmindercal,
Int_t  nbtransferminderspec,
Int_t  nbtransfermindercal,
Float_t  avglow,
Float_t  avghigh,
Float_t  avggate,
Int_t  snarlratemin,
Int_t  snarlratemax,
Float_t  snarlratemedian,
Float_t  snarlratemean 
) [inline]

Definition at line 75 of file DbuNearRunQuality.h.

00075                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             : 
00076    fRun(RunConfigArray[0]),
00077    fSubRun(RunConfigArray[1]),
00078    fStartTime(start),
00079    fEndTime(end),
00080    fSubrunLength(RunConfigArray[2]),
00081    fPhysicsRun(RunConfigArray[3]),
00082    fModifiedRun(RunConfigArray[4]),
00083    fTestRun(RunConfigArray[5]),
00084    fTriggersPlane(RunConfigArray[6]),
00085    fTriggersActivity(RunConfigArray[7]),
00086    fTriggersSpill(RunConfigArray[8]),
00087    fRopMask(RunConfigArray[9]),
00088    fTriggerMask(RunConfigArray[10]),
00089    fColdCrates(coldcrates),
00090    fColdMindersSpec(coldmindersspec),
00091    fColdMenusSpec(coldmenusspec),
00092    fColdMindersCal(coldminderscal),
00093    fColdMenusCal(coldmenuscal),
00094    fHotMenusSpec(hotmenusspec),
00095    fHotMenusCal(hotmenuscal),
00096    fTimeCountHotMenusSpec(timecounthotmenusspec),
00097    fTimeCountHotMenusCal(timecounthotmenuscal),
00098    fTimeCountColdMenusSpec(timecountcoldmenusspec),
00099    fTimeCountColdMenusCal(timecountcoldmenuscal),
00100    fTimeCountColdMindersSpec(timecountcoldmindersspec),
00101    fTimeCountColdMindersCal(timecountcoldminderscal),
00102    fLIRate(lirate),
00103    fHighAdcSpec(highadcspec),
00104    fHighAdcCal(highadccal),
00105    fNbCapidSpec(nbcapidspec),
00106    fNbCapidCal(nbcapidcal),
00107    fNbParitySpec(nbparityspec),
00108    fNbParityCal(nbparitycal),
00109    fNbMisCountSpec(nbmiscountspec),
00110    fNbMisCountCal(nbmiscountcal),
00111    fNbPriorityTruncSpec(nbprioritytruncspec),
00112    fNbPriorityTruncCal(nbprioritytrunccal),
00113    fNbSameMenuSpec(nbsamemenuspec),
00114    fNbSameMenuCal(nbsamemenucal),
00115    fNbSharedMinderSpec(nbsharedminderspec),
00116    fNbSharedMinderCal(nbsharedmindercal),
00117    fNbTransferMinderSpec(nbtransferminderspec),
00118    fNbTransferMinderCal(nbtransfermindercal),
00119    fAvgLow(avglow),
00120    fAvgHigh(avghigh),
00121    fAvgGate(avggate),
00122    fSnarlRateMin(snarlratemin),
00123    fSnarlRateMax(snarlratemax),
00124    fSnarlRateMedian(snarlratemedian),
00125    fSnarlRateMean(snarlratemean)
00126    {
00127    }

virtual DbuNearRunQuality::~DbuNearRunQuality (  )  [inline, virtual]

Definition at line 129 of file DbuNearRunQuality.h.

00129 { };


Member Function Documentation

Bool_t DbuNearRunQuality::BadCapidError ( Int_t  itask,
Bool_t  legacy = false 
) const

Definition at line 161 of file DbuNearRunQuality.cxx.

References fNbCapidCal, fNbCapidSpec, and fStartTime.

Referenced by BadReadoutErrors().

00162 {  
00163   if( itask>=0 && itask<=1 ){  // any task
00164 
00165     // Old selection for MINOS
00166     if (legacy || fStartTime < VldTimeStamp(2013,9,1,0,0,0)){
00167       if ( fNbCapidSpec>5 || fNbCapidCal>15 ) return 1;
00168     } 
00169 
00170     // New selection for MINOS+ (allow two wholly-bad minder boards)
00171     else{
00172       if ( fNbCapidSpec+fNbCapidCal>32 ) return 1;
00173     }
00174   }
00175   return 0;
00176 }

Bool_t DbuNearRunQuality::BadMisCountError ( Int_t  itask,
Bool_t  legacy = false 
) const

Definition at line 195 of file DbuNearRunQuality.cxx.

References fNbMisCountCal, fNbMisCountSpec, and fStartTime.

Referenced by BadReadoutErrors().

00196 {
00197   if( itask>=0 && itask<=1 ){  // any task
00198 
00199     // Old selection for MINOS
00200     if (legacy || fStartTime < VldTimeStamp(2013,9,1,0,0,0)){
00201       if ( fNbMisCountSpec>5 || fNbMisCountCal>10 ) return 1;
00202     }
00203 
00204     // New selection for MINOS+ (increased cuts, in line with below cuts)
00205     else{
00206       if ( fNbMisCountSpec>25 || fNbMisCountCal>25 ) return 1;
00207     }
00208   }
00209   return 0;
00210 }

Bool_t DbuNearRunQuality::BadParityError ( Int_t  itask,
Bool_t  legacy = false 
) const

Definition at line 178 of file DbuNearRunQuality.cxx.

References fNbParityCal, fNbParitySpec, and fStartTime.

Referenced by BadReadoutErrors().

00179 {
00180   if( itask>=0 && itask<=1 ){  // any task
00181 
00182     // Old selection for MINOS
00183     if (legacy || fStartTime < VldTimeStamp(2013,9,1,0,0,0)){
00184       if ( fNbParitySpec>5 || fNbParityCal>10 ) return 1;
00185     }
00186 
00187     // New selection for MINOS+ (increased cuts, in line with below cuts)
00188     else{
00189       if ( fNbParitySpec>25 || fNbParityCal>25 ) return 1;
00190     }
00191   }
00192   return 0;
00193 }

Bool_t DbuNearRunQuality::BadPriorityTruncateError ( Int_t  itask  )  const

Definition at line 212 of file DbuNearRunQuality.cxx.

References fNbPriorityTruncCal, and fNbPriorityTruncSpec.

Referenced by BadReadoutErrors().

00213 {
00214   if( itask==1 ){
00215     if ( fNbPriorityTruncSpec>25
00216       || fNbPriorityTruncCal>50 ) return 1;
00217   }
00218   else if( itask==0 ){
00219     if ( fNbPriorityTruncSpec>5
00220       || fNbPriorityTruncCal>10 ) return 1;
00221   }
00222   return 0;
00223 }

Bool_t DbuNearRunQuality::BadReadoutErrors ( Int_t  itask,
Bool_t  legacy = false 
) const

Definition at line 133 of file DbuNearRunQuality.cxx.

References BadCapidError(), BadMisCountError(), BadParityError(), BadPriorityTruncateError(), BadSameMenuError(), BadSharedMinderError(), and BadTransferMinderError().

Referenced by RunQualityFinder::BadReadoutErrorsLegacy(), IsOK(), and RunQualityFinder::QueryDB().

00134 {
00135   if ( this->BadCapidError(itask, legacy)
00136     || this->BadParityError(itask, legacy)
00137     || this->BadMisCountError(itask, legacy)
00138     || this->BadPriorityTruncateError(itask)
00139     || this->BadSameMenuError(itask)
00140     || this->BadSharedMinderError(itask)
00141     || this->BadTransferMinderError(itask)
00142       ){
00143     return 1;
00144   }
00145   return 0;
00146 }

Bool_t DbuNearRunQuality::BadSameMenuError ( Int_t  itask  )  const

Definition at line 225 of file DbuNearRunQuality.cxx.

References fNbSameMenuCal, and fNbSameMenuSpec.

Referenced by BadReadoutErrors().

00226 {
00227   if( itask==1 ){
00228     if ( fNbSameMenuSpec>25
00229       || fNbSameMenuCal>50 ) return 1;
00230   }
00231   else if( itask==0 ){
00232     if ( fNbSameMenuSpec>5
00233       || fNbSameMenuCal>10 ) return 1;
00234   }
00235   return 0;
00236 }

Bool_t DbuNearRunQuality::BadSharedMinderError ( Int_t  itask  )  const

Definition at line 238 of file DbuNearRunQuality.cxx.

References fNbSharedMinderCal, and fNbSharedMinderSpec.

Referenced by BadReadoutErrors().

00239 {
00240   if( itask==1 ){
00241    if ( fNbSharedMinderSpec>25
00242       || fNbSharedMinderCal>50 ) return 1;
00243   }
00244   else if( itask==0 ){
00245     if ( fNbSharedMinderSpec>5
00246       || fNbSharedMinderCal>10 ) return 1;
00247   }
00248   return 0;
00249 }

Bool_t DbuNearRunQuality::BadSpillWindow ( Int_t  itask  )  const

Definition at line 118 of file DbuNearRunQuality.cxx.

References fAvgGate, fAvgHigh, and fAvgLow.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00119 {
00120   if( itask==1 ){
00121     if( fAvgGate>100
00122      && ( fAvgLow/fAvgGate>1.05 
00123       ||  fAvgHigh/fAvgGate>1.05 ) ) return 1;
00124   }
00125   else if( itask==0 ){
00126     if ( fAvgGate>200
00127      && (fAvgLow-fAvgGate)>200 ) return 1;
00128   }
00129   return 0;
00130 }

Bool_t DbuNearRunQuality::BadTransferMinderError ( Int_t  itask  )  const

Definition at line 251 of file DbuNearRunQuality.cxx.

References fNbTransferMinderCal, and fNbTransferMinderSpec.

Referenced by BadReadoutErrors().

00252 {
00253   if( itask==1 ){
00254     if ( fNbTransferMinderSpec>25
00255       || fNbTransferMinderCal>50 ) return 1;
00256   }
00257   else if( itask==0 ){
00258     if ( fNbTransferMinderSpec>5
00259       || fNbTransferMinderCal>10 ) return 1;
00260   }
00261   return 0;
00262 }

Bool_t DbuNearRunQuality::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 132 of file DbuNearRunQuality.h.

00132 { return kTRUE; }

Bool_t DbuNearRunQuality::ColdReadout ( Int_t  itask  )  const

Definition at line 90 of file DbuNearRunQuality.cxx.

References fTimeCountColdMenusCal, fTimeCountColdMenusSpec, fTimeCountColdMindersCal, and fTimeCountColdMindersSpec.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00091 {
00092   if( itask==1 ){
00093     if( fTimeCountColdMenusCal>96
00094      || fTimeCountColdMenusSpec>96
00095      || fTimeCountColdMindersCal>4
00096      || fTimeCountColdMindersSpec>4 ) return 1;
00097   }
00098   else if( itask==0 ){
00099     if( fTimeCountColdMenusCal>320
00100      || fTimeCountColdMenusSpec>120
00101      || fTimeCountColdMindersCal>4
00102      || fTimeCountColdMindersSpec>4 ) return 1;
00103   }
00104   return 0;
00105 }

Bool_t DbuNearRunQuality::Compare ( const DbuNearRunQuality that  )  const [inline]

Definition at line 133 of file DbuNearRunQuality.h.

References fAvgGate, fAvgHigh, fAvgLow, fColdCrates, fColdMenusCal, fColdMenusSpec, fColdMindersCal, fColdMindersSpec, fEndTime, fHighAdcCal, fHighAdcSpec, fHotMenusCal, fHotMenusSpec, fLIRate, fModifiedRun, fNbCapidCal, fNbCapidSpec, fNbMisCountCal, fNbMisCountSpec, fNbParityCal, fNbParitySpec, fNbPriorityTruncCal, fNbPriorityTruncSpec, fNbSameMenuCal, fNbSameMenuSpec, fNbSharedMinderCal, fNbSharedMinderSpec, fNbTransferMinderCal, fNbTransferMinderSpec, fPhysicsRun, fRopMask, fRun, fSnarlRateMax, fSnarlRateMean, fSnarlRateMedian, fSnarlRateMin, fStartTime, fSubRun, fSubrunLength, fTestRun, fTimeCountColdMenusCal, fTimeCountColdMenusSpec, fTimeCountColdMindersCal, fTimeCountColdMindersSpec, fTimeCountHotMenusCal, fTimeCountHotMenusSpec, fTriggerMask, fTriggersActivity, fTriggersPlane, and fTriggersSpill.

00133                                                       {
00134    return ( fRun == that.fRun
00135             && fSubRun == that.fSubRun
00136             && fStartTime == that.fStartTime
00137             && fEndTime == that.fEndTime
00138             && fSubrunLength == that.fSubrunLength
00139             && fPhysicsRun == that.fPhysicsRun
00140             && fModifiedRun == that.fModifiedRun
00141             && fTestRun == that.fTestRun
00142             && fTriggersPlane == that.fTriggersPlane
00143             && fTriggersActivity == that.fTriggersActivity
00144             && fTriggersSpill == that.fTriggersSpill
00145             && fRopMask == that.fRopMask
00146             && fTriggerMask == that.fTriggerMask
00147             && fColdCrates == that.fColdCrates
00148             && fColdMindersSpec == that.fColdMindersSpec
00149             && fColdMenusSpec == that.fColdMenusSpec
00150             && fColdMindersCal == that.fColdMindersCal
00151             && fColdMenusCal == that.fColdMenusCal
00152             && fHotMenusSpec == that.fHotMenusSpec
00153             && fHotMenusCal == that.fHotMenusCal
00154             && fTimeCountHotMenusSpec == that.fTimeCountHotMenusSpec
00155             && fTimeCountHotMenusCal == that.fTimeCountHotMenusCal
00156             && fTimeCountColdMenusSpec == that.fTimeCountColdMenusSpec
00157             && fTimeCountColdMenusCal == that.fTimeCountColdMenusCal
00158             && fTimeCountColdMindersSpec == that.fTimeCountColdMindersSpec
00159             && fTimeCountColdMindersCal == that.fTimeCountColdMindersCal
00160             && fLIRate == that.fLIRate
00161             && fHighAdcSpec == that.fHighAdcSpec
00162             && fHighAdcCal == that.fHighAdcCal
00163             && fNbCapidSpec == that.fNbCapidSpec
00164             && fNbCapidCal == that.fNbCapidCal
00165             && fNbParitySpec == that.fNbParitySpec
00166             && fNbParityCal == that.fNbParityCal
00167             && fNbMisCountSpec == that.fNbMisCountSpec
00168             && fNbMisCountCal == that.fNbMisCountCal
00169             && fNbPriorityTruncSpec == that.fNbPriorityTruncSpec
00170             && fNbPriorityTruncCal == that.fNbPriorityTruncCal
00171             && fNbSameMenuSpec == that.fNbSameMenuSpec
00172             && fNbSameMenuCal == that.fNbSameMenuCal
00173             && fNbSharedMinderSpec == that.fNbSharedMinderSpec
00174             && fNbSharedMinderCal == that.fNbSharedMinderCal
00175             && fNbTransferMinderSpec == that.fNbTransferMinderSpec
00176             && fNbTransferMinderCal == that.fNbTransferMinderCal
00177             && fAvgLow == that.fAvgLow
00178             && fAvgHigh == that.fAvgHigh
00179             && fAvgGate == that.fAvgGate
00180             && fSnarlRateMin == that.fSnarlRateMin
00181             && fSnarlRateMax == that.fSnarlRateMax
00182             && fSnarlRateMedian == that.fSnarlRateMedian
00183             && fSnarlRateMean == that.fSnarlRateMean
00184             ); }

virtual DbiTableRow* DbuNearRunQuality::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 274 of file DbuNearRunQuality.h.

00274 { return new DbuNearRunQuality; }

void DbuNearRunQuality::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 283 of file DbuNearRunQuality.cxx.

References DbiRowStream::CurColName(), fAvgGate, fAvgHigh, fAvgLow, fColdCrates, fColdMenusCal, fColdMenusSpec, fColdMindersCal, fColdMindersSpec, fEndTime, fHighAdcCal, fHighAdcSpec, fHotMenusCal, fHotMenusSpec, fLIRate, fModifiedRun, fNbCapidCal, fNbCapidSpec, fNbMisCountCal, fNbMisCountSpec, fNbParityCal, fNbParitySpec, fNbPriorityTruncCal, fNbPriorityTruncSpec, fNbSameMenuCal, fNbSameMenuSpec, fNbSharedMinderCal, fNbSharedMinderSpec, fNbTransferMinderCal, fNbTransferMinderSpec, fPhysicsRun, fRopMask, fRun, fSnarlRateMax, fSnarlRateMean, fSnarlRateMedian, fSnarlRateMin, fStartTime, fSubRun, fSubrunLength, fTestRun, fTimeCountColdMenusCal, fTimeCountColdMenusSpec, fTimeCountColdMindersCal, fTimeCountColdMindersSpec, fTimeCountHotMenusCal, fTimeCountHotMenusSpec, fTriggerMask, fTriggersActivity, fTriggersPlane, fTriggersSpill, DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00284 {
00285   if ( rs.TableName() == "DBUNEARRUNQUALITY" ) {
00286     rs >> fRun
00287        >> fSubRun
00288        >> fStartTime
00289        >> fEndTime
00290        >> fSubrunLength
00291        >> fPhysicsRun
00292        >> fModifiedRun
00293        >> fTestRun
00294        >> fTriggersPlane
00295        >> fTriggersActivity
00296        >> fTriggersSpill
00297        >> fRopMask
00298        >> fTriggerMask
00299        >> fColdCrates
00300        >> fColdMindersSpec
00301        >> fColdMenusSpec
00302        >> fColdMindersCal
00303        >> fColdMenusCal
00304        >> fHotMenusSpec
00305        >> fHotMenusCal
00306        >> fTimeCountHotMenusSpec
00307        >> fTimeCountHotMenusCal
00308        >> fTimeCountColdMenusSpec
00309        >> fTimeCountColdMenusCal
00310        >> fTimeCountColdMindersSpec
00311        >> fTimeCountColdMindersCal
00312        >> fLIRate
00313        >> fHighAdcSpec
00314        >> fHighAdcCal
00315        >> fNbCapidSpec
00316        >> fNbCapidCal
00317        >> fNbParitySpec
00318        >> fNbParityCal
00319        >> fNbMisCountSpec
00320        >> fNbMisCountCal
00321        >> fNbPriorityTruncSpec
00322        >> fNbPriorityTruncCal
00323        >> fNbSameMenuSpec
00324        >> fNbSameMenuCal
00325        >> fNbSharedMinderSpec
00326        >> fNbSharedMinderCal
00327        >> fNbTransferMinderSpec
00328        >> fNbTransferMinderCal
00329        >> fAvgLow
00330        >> fAvgHigh
00331        >> fAvgGate
00332        >> fSnarlRateMin
00333        >> fSnarlRateMax
00334        >> fSnarlRateMedian
00335        >> fSnarlRateMean;
00336       }
00337   else {
00338     Int_t numCol = rs.NumCols();
00339     for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00340       string colName = rs.CurColName();
00341       if( colName == "RUN" ) rs >> fRun;
00342       else if ( colName == "SUBRUN" ) rs >> fSubRun;
00343       else if ( colName == "STARTTIME" ) rs >> fStartTime;
00344       else if ( colName == "ENDTIME" ) rs >> fEndTime;
00345       else if ( colName == "SUBRUNLENGTH" ) rs >> fSubrunLength;
00346       else if ( colName == "PHYSICSRUN" ) rs >> fPhysicsRun;
00347       else if ( colName == "MODIFIEDRUN" ) rs >> fModifiedRun;
00348       else if ( colName == "TESTRUN" ) rs >> fTestRun;
00349       else if ( colName == "TRIGGERSPLANE" ) rs >> fTriggersPlane;
00350       else if ( colName == "TRIGGERSACTIVITY" ) rs >> fTriggersActivity;
00351       else if ( colName == "TRIGGERSSPILL" ) rs >> fTriggersSpill;
00352       else if ( colName == "ROPMASK" ) rs >> fRopMask;
00353       else if ( colName == "TRIGGERMASK" ) rs >> fTriggerMask;
00354       else if ( colName == "COLDCRATES" ) rs >> fColdCrates;
00355       else if ( colName == "COLDMINDERSSPEC" ) rs >> fColdMindersSpec;
00356       else if ( colName == "COLDMENUSSPEC" ) rs >> fColdMenusSpec;
00357       else if ( colName == "COLDMINDERSCAL" ) rs >> fColdMindersCal;
00358       else if ( colName == "COLDMENUSCAL" ) rs >> fColdMenusCal;
00359       else if ( colName == "HOTMENUSSPEC" ) rs >> fHotMenusSpec;
00360       else if ( colName == "HOTMENUSCAL" ) rs >> fHotMenusCal;
00361       else if ( colName == "TIMECOUNTHOTMENUSSPEC" ) rs >> fTimeCountHotMenusSpec;
00362       else if ( colName == "TIMECOUNTHOTMENUSCAL" ) rs >> fTimeCountHotMenusCal;
00363       else if ( colName == "TIMECOUNTCOLDMENUSSPEC" ) rs >> fTimeCountColdMenusSpec;
00364       else if ( colName == "TIMECOUNTCOLDMENUSCAL" ) rs >> fTimeCountColdMenusCal;
00365       else if ( colName == "TIMECOUNTCOLDMINDERSSPEC" ) rs >> fTimeCountColdMindersSpec;
00366       else if ( colName == "TIMECOUNTCOLDMINDERSCAL" ) rs >> fTimeCountColdMindersCal;
00367       else if ( colName == "LIRATE" ) rs >> fLIRate;
00368       else if ( colName == "HIGHADCSPEC" ) rs >> fHighAdcSpec;
00369       else if ( colName == "HIGHADCCAL" ) rs >> fHighAdcCal;
00370       else if ( colName == "NBCAPIDSPEC" ) rs >> fNbCapidSpec;
00371       else if ( colName == "NBCAPIDCAL" ) rs >> fNbCapidCal;
00372       else if ( colName == "NBPARITYSPEC" ) rs >> fNbParitySpec;
00373       else if ( colName == "NBPARITYCAL" ) rs >> fNbParityCal;
00374       else if ( colName == "NBMISCOUNTSPEC" ) rs >> fNbMisCountSpec;
00375       else if ( colName == "NBMISCOUNTCAL" ) rs >> fNbMisCountCal;
00376       else if ( colName == "NBPRIORITYTRUNCSPEC" ) rs >> fNbPriorityTruncSpec;
00377       else if ( colName == "NBPRIORITYTRUNCCAL" ) rs >> fNbPriorityTruncCal;
00378       else if ( colName == "NBSAMEMENUSPEC" ) rs >> fNbSameMenuSpec;
00379       else if ( colName == "NBSAMEMENUCAL" ) rs >> fNbSameMenuCal;
00380       else if ( colName == "NBSHAREDMINDERSPEC" ) rs >> fNbSharedMinderSpec;
00381       else if ( colName == "NBSHAREDMINDERCAL" ) rs >> fNbSharedMinderCal;
00382       else if ( colName == "NBTRANSFERMINDERSPEC" ) rs >> fNbTransferMinderSpec;
00383       else if ( colName == "NBTRANSFERMINDERCAL" ) rs >> fNbTransferMinderCal;
00384       else if ( colName == "AVGLOW" ) rs >> fAvgLow;
00385       else if ( colName == "AVGHIGH" ) rs >> fAvgHigh;
00386       else if ( colName == "AVGGATE" ) rs >> fAvgGate;
00387       else if ( colName == "SNARLRATEMIN" ) rs >> fSnarlRateMin;
00388       else if ( colName == "SNARLRATEMAX" ) rs >> fSnarlRateMax;
00389       else if ( colName == "SNARLRATEMEDIAN" ) rs >> fSnarlRateMedian;
00390       else if ( colName == "SNARLRATEMEAN" ) rs >> fSnarlRateMean;
00391       else {
00392         MSG("NearRunQuality",Msg::kDebug) << "Ignoring column "
00393                                          << curCol
00394                                          << "(" << colName << ")" << endl;
00395         rs.IncrementCurCol();
00396       }
00397     }
00398   } 
00399 }//EOFUNCTION

Int_t DbuNearRunQuality::GetAggregateNo (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 264 of file DbuNearRunQuality.h.

References fRun.

00264 { return fRun; }

Float_t DbuNearRunQuality::GetAvgGate (  )  const [inline]

Definition at line 233 of file DbuNearRunQuality.h.

References fAvgGate.

Referenced by FillNearRunQuality::ReadFromDatabase().

00233 { return fAvgGate; }

Float_t DbuNearRunQuality::GetAvgHigh (  )  const [inline]

Definition at line 232 of file DbuNearRunQuality.h.

References fAvgHigh.

Referenced by FillNearRunQuality::ReadFromDatabase().

00232 { return fAvgHigh; }

Float_t DbuNearRunQuality::GetAvgLow (  )  const [inline]

Definition at line 231 of file DbuNearRunQuality.h.

References fAvgLow.

Referenced by FillNearRunQuality::ReadFromDatabase().

00231 { return fAvgLow; }

Int_t DbuNearRunQuality::GetColdCrates (  )  const [inline]

Definition at line 201 of file DbuNearRunQuality.h.

References fColdCrates.

Referenced by NuExtraction::ExtractDataQuality(), and FillNearRunQuality::ReadFromDatabase().

00201 { return fColdCrates; }

Int_t DbuNearRunQuality::GetColdMenusCal (  )  const [inline]

Definition at line 205 of file DbuNearRunQuality.h.

References fColdMenusCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00205 { return fColdMenusCal; }

Int_t DbuNearRunQuality::GetColdMenusSpec (  )  const [inline]

Definition at line 203 of file DbuNearRunQuality.h.

References fColdMenusSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00203 { return fColdMenusSpec; }

Int_t DbuNearRunQuality::GetColdMindersCal (  )  const [inline]

Definition at line 204 of file DbuNearRunQuality.h.

References fColdMindersCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00204 { return fColdMindersCal; }

Int_t DbuNearRunQuality::GetColdMindersSpec (  )  const [inline]

Definition at line 202 of file DbuNearRunQuality.h.

References fColdMindersSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00202 { return fColdMindersSpec; }

VldTimeStamp DbuNearRunQuality::GetEndTime (  )  const [inline]

Definition at line 191 of file DbuNearRunQuality.h.

References fEndTime.

Referenced by DataUtil::GetRunTimes(), RunQualityFinder::QueryDB(), and FillNearRunQuality::ReadFromDatabase().

00191 { return fEndTime; }

Bool_t DbuNearRunQuality::GetGoodRun ( Int_t  itask  )  const [inline]

Definition at line 239 of file DbuNearRunQuality.h.

References IsOK().

Referenced by FillNearRunQuality::ReadFromDatabase().

00239 { return this->IsOK(itask); }

Int_t DbuNearRunQuality::GetHighAdcCal (  )  const [inline]

Definition at line 216 of file DbuNearRunQuality.h.

References fHighAdcCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00216 { return fHighAdcCal; }

Int_t DbuNearRunQuality::GetHighAdcSpec (  )  const [inline]

Definition at line 215 of file DbuNearRunQuality.h.

References fHighAdcSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00215 { return fHighAdcSpec; }

Int_t DbuNearRunQuality::GetHotMenusCal (  )  const [inline]

Definition at line 207 of file DbuNearRunQuality.h.

References fHotMenusCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00207 { return fHotMenusCal; }

Int_t DbuNearRunQuality::GetHotMenusSpec (  )  const [inline]

Definition at line 206 of file DbuNearRunQuality.h.

References fHotMenusSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00206 { return fHotMenusSpec; }

UInt_t DbuNearRunQuality::GetIndex ( Int_t  run,
Int_t  subrun 
) [static]

Definition at line 275 of file DbuNearRunQuality.cxx.

00276 {   
00277   if( run>=0 && subrun>=0 && subrun<1000 ){ 
00278     return 1000*run+subrun;
00279   }
00280   return 0;
00281 }

UInt_t DbuNearRunQuality::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 267 of file DbuNearRunQuality.h.

References fRun, fSubRun, and GetIndex().

Referenced by GetIndex().

00267 { return this->GetIndex(fRun,fSubRun); } 

UInt_t DbuNearRunQuality::GetIndex (  )  const [inline]

Definition at line 266 of file DbuNearRunQuality.h.

References fRun, fSubRun, and GetIndex().

Referenced by GetIndex(), and RunQualityFinder::QueryDB().

00266 { return this->GetIndex(fRun,fSubRun); }

Float_t DbuNearRunQuality::GetLIRate (  )  const [inline]

Definition at line 214 of file DbuNearRunQuality.h.

References fLIRate.

Referenced by FillNearRunQuality::ReadFromDatabase().

00214 { return fLIRate; }

Int_t DbuNearRunQuality::GetModifiedRun (  )  const [inline]

Definition at line 194 of file DbuNearRunQuality.h.

References fModifiedRun.

Referenced by FillNearRunQuality::ReadFromDatabase().

00194 { return fModifiedRun; }

Int_t DbuNearRunQuality::GetNbCapidCal (  )  const [inline]

Definition at line 218 of file DbuNearRunQuality.h.

References fNbCapidCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00218 { return fNbCapidCal; }

Int_t DbuNearRunQuality::GetNbCapidSpec (  )  const [inline]

Definition at line 217 of file DbuNearRunQuality.h.

References fNbCapidSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00217 { return fNbCapidSpec; }

Int_t DbuNearRunQuality::GetNbMisCountCal (  )  const [inline]

Definition at line 222 of file DbuNearRunQuality.h.

References fNbMisCountCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00222 { return fNbMisCountCal; }

Int_t DbuNearRunQuality::GetNbMisCountSpec (  )  const [inline]

Definition at line 221 of file DbuNearRunQuality.h.

References fNbMisCountSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00221 { return fNbMisCountSpec; }

Int_t DbuNearRunQuality::GetNbParityCal (  )  const [inline]

Definition at line 220 of file DbuNearRunQuality.h.

References fNbParityCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00220 { return fNbParityCal; }

Int_t DbuNearRunQuality::GetNbParitySpec (  )  const [inline]

Definition at line 219 of file DbuNearRunQuality.h.

References fNbParitySpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00219 { return fNbParitySpec; }

Int_t DbuNearRunQuality::GetNbPriorityTruncCal (  )  const [inline]

Definition at line 224 of file DbuNearRunQuality.h.

References fNbPriorityTruncCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00224 { return fNbPriorityTruncCal; }

Int_t DbuNearRunQuality::GetNbPriorityTruncSpec (  )  const [inline]

Definition at line 223 of file DbuNearRunQuality.h.

References fNbPriorityTruncSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00223 { return fNbPriorityTruncSpec; }

Int_t DbuNearRunQuality::GetNbSameMenuCal (  )  const [inline]

Definition at line 226 of file DbuNearRunQuality.h.

References fNbSameMenuCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00226 { return fNbSameMenuCal; }

Int_t DbuNearRunQuality::GetNbSameMenuSpec (  )  const [inline]

Definition at line 225 of file DbuNearRunQuality.h.

References fNbSameMenuSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00225 { return fNbSameMenuSpec; }

Int_t DbuNearRunQuality::GetNbSharedMinderCal (  )  const [inline]

Definition at line 228 of file DbuNearRunQuality.h.

References fNbSharedMinderCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00228 { return fNbSharedMinderCal; }

Int_t DbuNearRunQuality::GetNbSharedMinderSpec (  )  const [inline]

Definition at line 227 of file DbuNearRunQuality.h.

References fNbSharedMinderSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00227 { return fNbSharedMinderSpec; }

Int_t DbuNearRunQuality::GetNbTransferMinderCal (  )  const [inline]

Definition at line 230 of file DbuNearRunQuality.h.

References fNbTransferMinderCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00230 { return fNbTransferMinderCal; }

Int_t DbuNearRunQuality::GetNbTransferMinderSpec (  )  const [inline]

Definition at line 229 of file DbuNearRunQuality.h.

References fNbTransferMinderSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00229 { return fNbTransferMinderSpec; }

Int_t DbuNearRunQuality::GetPhysicsRun (  )  const [inline]

Definition at line 193 of file DbuNearRunQuality.h.

References fPhysicsRun.

Referenced by FillNearRunQuality::ReadFromDatabase().

00193 { return fPhysicsRun; }

Int_t DbuNearRunQuality::GetRopMask (  )  const [inline]

Definition at line 199 of file DbuNearRunQuality.h.

References fRopMask.

Referenced by FillNearRunQuality::ReadFromDatabase().

00199 { return fRopMask; }

Int_t DbuNearRunQuality::GetRun ( void   )  const [inline]
Int_t DbuNearRunQuality::GetSnarlRateMax (  )  const [inline]

Definition at line 235 of file DbuNearRunQuality.h.

References fSnarlRateMax.

Referenced by NuExtraction::ExtractDataQuality(), and FillNearRunQuality::ReadFromDatabase().

00235 { return fSnarlRateMax; }

Float_t DbuNearRunQuality::GetSnarlRateMean (  )  const [inline]

Definition at line 237 of file DbuNearRunQuality.h.

References fSnarlRateMean.

Referenced by FillNearRunQuality::ReadFromDatabase().

00237 { return fSnarlRateMean; }

Float_t DbuNearRunQuality::GetSnarlRateMedian (  )  const [inline]

Definition at line 236 of file DbuNearRunQuality.h.

References fSnarlRateMedian.

Referenced by NuExtraction::ExtractDataQuality(), and FillNearRunQuality::ReadFromDatabase().

00236 { return fSnarlRateMedian; }

Int_t DbuNearRunQuality::GetSnarlRateMin (  )  const [inline]

Definition at line 234 of file DbuNearRunQuality.h.

References fSnarlRateMin.

Referenced by FillNearRunQuality::ReadFromDatabase().

00234 { return fSnarlRateMin; }

VldTimeStamp DbuNearRunQuality::GetStartTime (  )  const [inline]

Definition at line 190 of file DbuNearRunQuality.h.

References fStartTime.

Referenced by DataUtil::GetRunTimes(), RunQualityFinder::QueryDB(), and FillNearRunQuality::ReadFromDatabase().

00190 { return fStartTime; }

Int_t DbuNearRunQuality::GetSubRun (  )  const [inline]
Int_t DbuNearRunQuality::GetSubrunLength (  )  const [inline]

Definition at line 192 of file DbuNearRunQuality.h.

References fSubrunLength.

Referenced by NuExtraction::ExtractDataQuality(), and FillNearRunQuality::ReadFromDatabase().

00192 { return fSubrunLength; }

Int_t DbuNearRunQuality::GetTestRun (  )  const [inline]

Definition at line 195 of file DbuNearRunQuality.h.

References fTestRun.

Referenced by FillNearRunQuality::ReadFromDatabase().

00195 { return fTestRun; }

Int_t DbuNearRunQuality::GetTimeCountColdMenusCal (  )  const [inline]

Definition at line 211 of file DbuNearRunQuality.h.

References fTimeCountColdMenusCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00211 { return fTimeCountColdMenusCal; }

Int_t DbuNearRunQuality::GetTimeCountColdMenusSpec (  )  const [inline]

Definition at line 210 of file DbuNearRunQuality.h.

References fTimeCountColdMenusSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00210 { return fTimeCountColdMenusSpec; }

Int_t DbuNearRunQuality::GetTimeCountColdMindersCal (  )  const [inline]

Definition at line 213 of file DbuNearRunQuality.h.

References fTimeCountColdMindersCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00213 { return fTimeCountColdMindersCal; }

Int_t DbuNearRunQuality::GetTimeCountColdMindersSpec (  )  const [inline]

Definition at line 212 of file DbuNearRunQuality.h.

References fTimeCountColdMindersSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00212 { return fTimeCountColdMindersSpec; }

Int_t DbuNearRunQuality::GetTimeCountHotMenusCal (  )  const [inline]

Definition at line 209 of file DbuNearRunQuality.h.

References fTimeCountHotMenusCal.

Referenced by FillNearRunQuality::ReadFromDatabase().

00209 { return fTimeCountHotMenusCal; }

Int_t DbuNearRunQuality::GetTimeCountHotMenusSpec (  )  const [inline]

Definition at line 208 of file DbuNearRunQuality.h.

References fTimeCountHotMenusSpec.

Referenced by FillNearRunQuality::ReadFromDatabase().

00208 { return fTimeCountHotMenusSpec; }

Int_t DbuNearRunQuality::GetTriggerMask (  )  const [inline]

Definition at line 200 of file DbuNearRunQuality.h.

References fTriggerMask.

Referenced by FillNearRunQuality::ReadFromDatabase().

00200 { return fTriggerMask; }

Int_t DbuNearRunQuality::GetTriggersActivity (  )  const [inline]

Definition at line 197 of file DbuNearRunQuality.h.

References fTriggersActivity.

Referenced by FillNearRunQuality::ReadFromDatabase().

00197 { return fTriggersActivity; }

Int_t DbuNearRunQuality::GetTriggersPlane (  )  const [inline]

Definition at line 196 of file DbuNearRunQuality.h.

References fTriggersPlane.

Referenced by FillNearRunQuality::ReadFromDatabase().

00196 { return fTriggersPlane; }

Int_t DbuNearRunQuality::GetTriggersSpill (  )  const [inline]

Definition at line 198 of file DbuNearRunQuality.h.

References fTriggersSpill.

Referenced by NuExtraction::ExtractDataQuality(), and FillNearRunQuality::ReadFromDatabase().

00198 { return fTriggersSpill; }

Bool_t DbuNearRunQuality::GoodReadout ( Int_t  itask  )  const

Definition at line 71 of file DbuNearRunQuality.cxx.

References fColdCrates.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00072 {
00073   if( itask>=0 && itask<=1 ){  // any task
00074     if( fColdCrates==0 ) return 1;
00075   }
00076   return 0;
00077 }

Bool_t DbuNearRunQuality::GoodRun ( Int_t  itask  )  const [inline]

Definition at line 240 of file DbuNearRunQuality.h.

References IsOK().

Referenced by RunQualityUtil::MakeRunList(), and RunQualityFinder::QueryDB().

00240 { return this->IsOK(itask); }

Bool_t DbuNearRunQuality::GoodRunType ( Int_t  itask  )  const

Definition at line 37 of file DbuNearRunQuality.cxx.

References fPhysicsRun, fRun, and fTestRun.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00038 {
00039   if( itask>=0 && itask<=1 ){  // any task
00040     if( fRun>=0 
00041      && fPhysicsRun==1 && fTestRun==0 ) return 1;
00042   }
00043   return 0;
00044 }

Bool_t DbuNearRunQuality::HighADC ( Int_t  itask  )  const

Definition at line 266 of file DbuNearRunQuality.cxx.

References fHighAdcCal, and fHighAdcSpec.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00267 {
00268   if( itask>=0 && itask<=1 ){  // any task
00269     if ( fHighAdcSpec>200
00270       || fHighAdcCal>200 ) return 1;
00271   }
00272   return 0;
00273 }

Bool_t DbuNearRunQuality::HighRate ( Int_t  itask  )  const

Definition at line 54 of file DbuNearRunQuality.cxx.

References fSnarlRateMax, and fSnarlRateMedian.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00055 {
00056   if( itask>=0 && itask<=1 ){  // any task
00057     if( fSnarlRateMedian>50 
00058      || fSnarlRateMax>500 ) return 1;
00059   }
00060   return 0;
00061 }

Bool_t DbuNearRunQuality::HotReadout ( Int_t  itask  )  const

Definition at line 107 of file DbuNearRunQuality.cxx.

References fTimeCountHotMenusCal.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00108 {
00109   if( itask==1 ){
00110     if( fTimeCountHotMenusCal>640 ) return 1;
00111   }
00112   else if( itask==0 ){
00113     if( fTimeCountHotMenusCal>640 ) return 1;
00114   }
00115   return 0;
00116 }

Bool_t DbuNearRunQuality::IsOK ( Int_t  itask  )  const

Definition at line 18 of file DbuNearRunQuality.cxx.

References BadReadoutErrors(), BadSpillWindow(), ColdReadout(), GoodReadout(), GoodRunType(), HighADC(), HighRate(), HotReadout(), LIRate(), LowRate(), and Short().

Referenced by GetGoodRun(), and GoodRun().

00019 {
00020   if( this->GoodRunType(itask)
00021    && this->GoodReadout(itask)
00022    && !this->Short(itask)
00023    && !this->LowRate(itask)
00024    && !this->HighRate(itask)
00025    && !this->LIRate(itask)
00026    && !this->ColdReadout(itask)
00027    && !this->HotReadout(itask)
00028    && !this->BadReadoutErrors(itask)
00029    && !this->BadSpillWindow(itask)
00030    && !this->HighADC(itask)
00031     ){
00032     return 1;
00033   }
00034   return 0;
00035 }   

Bool_t DbuNearRunQuality::LIRate ( Int_t  itask  )  const

Definition at line 79 of file DbuNearRunQuality.cxx.

References fLIRate.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00080 {
00081   if( itask==1 ){
00082     if( fLIRate>1.0 ) return 1; 
00083   }
00084   else if( itask==0 ){
00085     if( fLIRate>0.0 ) return 1; 
00086   }
00087   return 0;
00088 }

Bool_t DbuNearRunQuality::LowRate ( Int_t  itask  )  const

Definition at line 46 of file DbuNearRunQuality.cxx.

References fTriggersPlane, and fTriggersSpill.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00047 {
00048   if( itask>=0 && itask<=1 ){  // any task
00049     if( fTriggersPlane+fTriggersSpill<400 ) return 1;
00050   }
00051   return 0;
00052 }

Bool_t DbuNearRunQuality::Short ( Int_t  itask  )  const

Definition at line 63 of file DbuNearRunQuality.cxx.

References fSubrunLength.

Referenced by IsOK(), and RunQualityFinder::QueryDB().

00064 {
00065   if( itask>=0 && itask<=1 ){  // any task
00066     if( fSubrunLength<400  ) return 1;
00067   }
00068   return 0;
00069 }

void DbuNearRunQuality::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 401 of file DbuNearRunQuality.cxx.

References fAvgGate, fAvgHigh, fAvgLow, fColdCrates, fColdMenusCal, fColdMenusSpec, fColdMindersCal, fColdMindersSpec, fEndTime, fHighAdcCal, fHighAdcSpec, fHotMenusCal, fHotMenusSpec, fLIRate, fModifiedRun, fNbCapidCal, fNbCapidSpec, fNbMisCountCal, fNbMisCountSpec, fNbParityCal, fNbParitySpec, fNbPriorityTruncCal, fNbPriorityTruncSpec, fNbSameMenuCal, fNbSameMenuSpec, fNbSharedMinderCal, fNbSharedMinderSpec, fNbTransferMinderCal, fNbTransferMinderSpec, fPhysicsRun, fRopMask, fRun, fSnarlRateMax, fSnarlRateMean, fSnarlRateMedian, fSnarlRateMin, fStartTime, fSubRun, fSubrunLength, fTestRun, fTimeCountColdMenusCal, fTimeCountColdMenusSpec, fTimeCountColdMindersCal, fTimeCountColdMindersSpec, fTimeCountHotMenusCal, fTimeCountHotMenusSpec, fTriggerMask, fTriggersActivity, fTriggersPlane, and fTriggersSpill.

00402 {
00403   ors << fRun
00404       << fSubRun
00405       << fStartTime
00406       << fEndTime
00407       << fSubrunLength
00408       << fPhysicsRun
00409       << fModifiedRun
00410       << fTestRun
00411       << fTriggersPlane
00412       << fTriggersActivity
00413       << fTriggersSpill
00414       << fRopMask
00415       << fTriggerMask
00416       << fColdCrates
00417       << fColdMindersSpec
00418       << fColdMenusSpec
00419       << fColdMindersCal
00420       << fColdMenusCal
00421       << fHotMenusSpec
00422       << fHotMenusCal
00423       << fTimeCountHotMenusSpec
00424       << fTimeCountHotMenusCal
00425       << fTimeCountColdMenusSpec
00426       << fTimeCountColdMenusCal
00427       << fTimeCountColdMindersSpec
00428       << fTimeCountColdMindersCal
00429       << fLIRate
00430       << fHighAdcSpec
00431       << fHighAdcCal
00432       << fNbCapidSpec
00433       << fNbCapidCal
00434       << fNbParitySpec
00435       << fNbParityCal
00436       << fNbMisCountSpec
00437       << fNbMisCountCal
00438       << fNbPriorityTruncSpec
00439       << fNbPriorityTruncCal
00440       << fNbSameMenuSpec
00441       << fNbSameMenuCal
00442       << fNbSharedMinderSpec
00443       << fNbSharedMinderCal
00444       << fNbTransferMinderSpec
00445       << fNbTransferMinderCal
00446       << fAvgLow
00447       << fAvgHigh
00448       << fAvgGate
00449       << fSnarlRateMin
00450       << fSnarlRateMax
00451       << fSnarlRateMedian
00452       << fSnarlRateMean;
00453 }


Member Data Documentation

Float_t DbuNearRunQuality::fAvgGate [private]

Definition at line 324 of file DbuNearRunQuality.h.

Referenced by BadSpillWindow(), Compare(), Fill(), GetAvgGate(), and Store().

Float_t DbuNearRunQuality::fAvgHigh [private]

Definition at line 323 of file DbuNearRunQuality.h.

Referenced by BadSpillWindow(), Compare(), Fill(), GetAvgHigh(), and Store().

Float_t DbuNearRunQuality::fAvgLow [private]

Definition at line 322 of file DbuNearRunQuality.h.

Referenced by BadSpillWindow(), Compare(), Fill(), GetAvgLow(), and Store().

Definition at line 292 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetColdCrates(), GoodReadout(), and Store().

Definition at line 296 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetColdMenusCal(), and Store().

Definition at line 294 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetColdMenusSpec(), and Store().

Definition at line 295 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetColdMindersCal(), and Store().

Definition at line 293 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetColdMindersSpec(), and Store().

Definition at line 282 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetEndTime(), and Store().

Definition at line 307 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetHighAdcCal(), HighADC(), and Store().

Definition at line 306 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetHighAdcSpec(), HighADC(), and Store().

Definition at line 298 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetHotMenusCal(), and Store().

Definition at line 297 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetHotMenusSpec(), and Store().

Float_t DbuNearRunQuality::fLIRate [private]

Definition at line 305 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetLIRate(), LIRate(), and Store().

Definition at line 285 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetModifiedRun(), and Store().

Definition at line 309 of file DbuNearRunQuality.h.

Referenced by BadCapidError(), Compare(), Fill(), GetNbCapidCal(), and Store().

Definition at line 308 of file DbuNearRunQuality.h.

Referenced by BadCapidError(), Compare(), Fill(), GetNbCapidSpec(), and Store().

Definition at line 313 of file DbuNearRunQuality.h.

Referenced by BadMisCountError(), Compare(), Fill(), GetNbMisCountCal(), and Store().

Definition at line 312 of file DbuNearRunQuality.h.

Referenced by BadMisCountError(), Compare(), Fill(), GetNbMisCountSpec(), and Store().

Definition at line 311 of file DbuNearRunQuality.h.

Referenced by BadParityError(), Compare(), Fill(), GetNbParityCal(), and Store().

Definition at line 310 of file DbuNearRunQuality.h.

Referenced by BadParityError(), Compare(), Fill(), GetNbParitySpec(), and Store().

Definition at line 317 of file DbuNearRunQuality.h.

Referenced by BadSameMenuError(), Compare(), Fill(), GetNbSameMenuCal(), and Store().

Definition at line 316 of file DbuNearRunQuality.h.

Referenced by BadSameMenuError(), Compare(), Fill(), GetNbSameMenuSpec(), and Store().

Definition at line 319 of file DbuNearRunQuality.h.

Referenced by BadSharedMinderError(), Compare(), Fill(), GetNbSharedMinderCal(), and Store().

Definition at line 284 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetPhysicsRun(), GoodRunType(), and Store().

Int_t DbuNearRunQuality::fRopMask [private]

Definition at line 290 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetRopMask(), and Store().

Int_t DbuNearRunQuality::fRun [private]

Definition at line 279 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetAggregateNo(), GetIndex(), GetRun(), GoodRunType(), and Store().

Definition at line 326 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetSnarlRateMax(), HighRate(), and Store().

Definition at line 328 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetSnarlRateMean(), and Store().

Definition at line 327 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetSnarlRateMedian(), HighRate(), and Store().

Definition at line 325 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetSnarlRateMin(), and Store().

Int_t DbuNearRunQuality::fSubRun [private]

Definition at line 280 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetIndex(), GetSubRun(), and Store().

Definition at line 283 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetSubrunLength(), Short(), and Store().

Int_t DbuNearRunQuality::fTestRun [private]

Definition at line 286 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTestRun(), GoodRunType(), and Store().

Definition at line 302 of file DbuNearRunQuality.h.

Referenced by ColdReadout(), Compare(), Fill(), GetTimeCountColdMenusCal(), and Store().

Definition at line 301 of file DbuNearRunQuality.h.

Referenced by ColdReadout(), Compare(), Fill(), GetTimeCountColdMenusSpec(), and Store().

Definition at line 304 of file DbuNearRunQuality.h.

Referenced by ColdReadout(), Compare(), Fill(), GetTimeCountColdMindersCal(), and Store().

Definition at line 303 of file DbuNearRunQuality.h.

Referenced by ColdReadout(), Compare(), Fill(), GetTimeCountColdMindersSpec(), and Store().

Definition at line 300 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTimeCountHotMenusCal(), HotReadout(), and Store().

Definition at line 299 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTimeCountHotMenusSpec(), and Store().

Definition at line 291 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTriggerMask(), and Store().

Definition at line 288 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTriggersActivity(), and Store().

Definition at line 287 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTriggersPlane(), LowRate(), and Store().

Definition at line 289 of file DbuNearRunQuality.h.

Referenced by Compare(), Fill(), GetTriggersSpill(), LowRate(), and Store().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1