HvStatus Namespace Reference

Typedefs

typedef enum HvStatus::EHvStatus HvStatus_t

Enumerations

enum  EHvStatus {
  kUnknown = 0x00, kOK = 0x01, kBad = 0x02, kSM1Unknown = 0x10,
  kSM1OK = 0x20, kSM1Bad = 0x40, kSM2Unknown = 0x100, kSM2OK = 0x200,
  kSM2Bad = 0x400
}

Functions

Bool_t Good (HvStatus_t hvstatus)
const Char_t * AsString (HvStatus_t hvstatus)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kUnknown 
kOK 
kBad 
kSM1Unknown 
kSM1OK 
kSM1Bad 
kSM2Unknown 
kSM2OK 
kSM2Bad 

Definition at line 22 of file HvStatus.h.

00022                          {
00023     kUnknown    = 0x00,  // unknown
00024     kOK         = 0x01,  // okay
00025     kBad        = 0x02,  // bad 
00026     kSM1Unknown = 0x10,  // SM1 unknown
00027     kSM1OK      = 0x20,  // SM1 okay
00028     kSM1Bad     = 0x40,  // SM1 bad 
00029     kSM2Unknown = 0x100, // SM2 unknown
00030     kSM2OK      = 0x200, // SM2 okay
00031     kSM2Bad     = 0x400  // SM2 bad
00032   } HvStatus_t;


Function Documentation

const Char_t * HvStatus::AsString ( HvStatus_t  hvstatus  ) 

Definition at line 14 of file HvStatus.cxx.

References kBad, and kOK.

00015 {
00016   if( hvstatus & kOK ) return "OK";
00017   else if( hvstatus & kBad ) return "Bad";
00018   else return "Unknown";
00019 }

Bool_t HvStatus::Good ( HvStatus_t  hvstatus  ) 

Definition at line 8 of file HvStatus.cxx.

References kOK.

Referenced by MadPIDAnalysis::CreatePAN(), ANtpInfoObjectFiller::FillHeaderInformation(), and DataQualityInterface::ProcessDetectorStatus().

00009 {
00010   if( hvstatus & kOK ) return true;
00011   else return false;
00012 }


Generated on 14 Jun 2018 for loon by  doxygen 1.6.1