CMS 3D CMS Logo

Public Member Functions | Public Attributes

timing Struct Reference

#include <RPCMonitorSync.h>

List of all members.

Public Member Functions

int early () const
int early_w () const
int early_w2 () const
float earlyFraction () const
float inTimeFraction () const
int late () const
int late_w () const
int late_w2 () const
float lateFraction () const
float offset () const
float outOfTimeFraction () const
float width () const

Public Attributes

int early_all [4]
int inTime
int late_all [4]

Detailed Description

Definition at line 33 of file RPCMonitorSync.h.


Member Function Documentation

int timing::early ( ) const [inline]

Definition at line 39 of file RPCMonitorSync.h.

References early_all.

Referenced by earlyFraction(), inTimeFraction(), lateFraction(), offset(), outOfTimeFraction(), and width().

                    {
    return (early_all[0]+early_all[1]+early_all[2]+early_all[3]);
  }
int timing::early_w ( ) const [inline]

Definition at line 47 of file RPCMonitorSync.h.

References early_all.

Referenced by offset().

                      {
    return (early_all[0]+2*early_all[1]+3*early_all[2]+4*early_all[3]);
  }
int timing::early_w2 ( ) const [inline]

Definition at line 55 of file RPCMonitorSync.h.

References early_all.

Referenced by width().

                       {
    return (early_all[0]+4*early_all[1]+9*early_all[2]+16*early_all[3]);
  }
float timing::earlyFraction ( ) const [inline]

Definition at line 63 of file RPCMonitorSync.h.

References early(), inTime, and late().

                             { 
    return (float)early()/(early()+inTime+late());  
  }
float timing::inTimeFraction ( ) const [inline]

Definition at line 67 of file RPCMonitorSync.h.

References early(), inTime, and late().

                               { 
    return (float)inTime/(early()+inTime+late());  
  }
int timing::late ( ) const [inline]

Definition at line 43 of file RPCMonitorSync.h.

References late_all.

Referenced by earlyFraction(), inTimeFraction(), lateFraction(), offset(), outOfTimeFraction(), and width().

                   {
    return (late_all[0]+late_all[1]+late_all[2]+late_all[3]);
  }
int timing::late_w ( ) const [inline]

Definition at line 51 of file RPCMonitorSync.h.

References late_all.

Referenced by offset().

                     {
    return (late_all[0]+2*late_all[1]+3*late_all[2]+4*late_all[3]);
  }
int timing::late_w2 ( ) const [inline]

Definition at line 59 of file RPCMonitorSync.h.

References late_all.

Referenced by width().

                      {
    return (late_all[0]+4*late_all[1]+9*late_all[2]+16*late_all[3]);
  }
float timing::lateFraction ( ) const [inline]

Definition at line 71 of file RPCMonitorSync.h.

References early(), inTime, and late().

                             { 
    return (float)late()/(early()+inTime+late());  
  }
float timing::offset ( ) const [inline]

Definition at line 79 of file RPCMonitorSync.h.

References early(), early_w(), inTime, late(), and late_w().

                       {
    return (float)(late_w()-early_w())/(early()+inTime+late());  
  }
float timing::outOfTimeFraction ( ) const [inline]

Definition at line 75 of file RPCMonitorSync.h.

References early(), inTime, and late().

                                  { 
    return (float)(early()+late())/(early()+inTime+late());  
  }
float timing::width ( ) const [inline]

Definition at line 83 of file RPCMonitorSync.h.

References early(), early_w2(), inTime, late(), late_w2(), and mathSSE::sqrt().

                      {
    return (float)sqrt((float)(late_w2()+early_w2())/(early()+inTime+late()));  
  }

Member Data Documentation

Definition at line 35 of file RPCMonitorSync.h.

Referenced by early(), early_w(), early_w2(), and RPCMonitorSync::readRPCDAQStrips().

Definition at line 37 of file RPCMonitorSync.h.

Referenced by late(), late_w(), late_w2(), and RPCMonitorSync::readRPCDAQStrips().