#include <MpMuonFate.h>
Public Types | |
kUnknown = 0 | |
kNeedSim = 1 | |
kDontSim = 0xf0000000 | |
enum | { kUnknown = 0, kNeedSim = 1, kDontSim = 0xf0000000 } |
Public Member Functions | |
MpMuonFate (unsigned int code) | |
MpMuonFate (MpTriggerStat rpc, MpTriggerStat pool) | |
MpTriggerStat | getRpcTriggerStat () |
MpTriggerStat | getPoolTriggerStat () |
unsigned int | setCode (unsigned int code) |
unsigned int | setCode (MpTriggerStat rpc, MpTriggerStat pool) |
unsigned int | getCode () const |
MpMuonFate & | operator= (const MpMuonFate &rh) |
Private Attributes | |
unsigned int | m_code |
Definition at line 18 of file MpMuonFate.h.
anonymous enum |
Definition at line 20 of file MpMuonFate.h.
00020 { 00021 kUnknown =0, // Muon not found, and others 00022 kNeedSim =1, // Can't tell the fate of it. Need full simulation 00023 kDontSim =0xf0000000 // Don't do geant simulation 00024 };
MpMuonFate::MpMuonFate | ( | unsigned int | code | ) | [inline] |
MpMuonFate::MpMuonFate | ( | MpTriggerStat | rpc, | |
MpTriggerStat | pool | |||
) | [inline] |
MpTriggerStat MpMuonFate::getRpcTriggerStat | ( | ) | [inline] |
Definition at line 34 of file MpMuonFate.h.
00034 { 00035 if(m_code == kNeedSim) { 00036 return MpTriggerStat::kNeedSim; // Note that here might not be consistent with previous input 00037 } else { 00038 return (m_code & 0xff00) >> 8; 00039 } 00040 }
MpTriggerStat MpMuonFate::getPoolTriggerStat | ( | ) | [inline] |
Definition at line 42 of file MpMuonFate.h.
00042 { 00043 if(m_code == kNeedSim) { 00044 return MpTriggerStat::kNeedSim; // Note that here might not be consistent with previous input 00045 } else { 00046 return m_code & 0xff; 00047 } 00048 }
unsigned int MpMuonFate::setCode | ( | unsigned int | code | ) | [inline] |
unsigned int MpMuonFate::setCode | ( | MpTriggerStat | rpc, | |
MpTriggerStat | pool | |||
) | [inline] |
Definition at line 54 of file MpMuonFate.h.
00054 { 00055 if( rpc.getCode() == MpTriggerStat::kNeedSim || 00056 pool.getCode() == MpTriggerStat::kNeedSim ) { 00057 return m_code = kNeedSim; 00058 } else { // I want to pack all trigger information into this status word 00059 return m_code = kDontSim | rpc.getCode()<<8 | pool.getCode(); 00060 } 00061 }
unsigned int MpMuonFate::getCode | ( | ) | const [inline] |
MpMuonFate& MpMuonFate::operator= | ( | const MpMuonFate & | rh | ) | [inline] |
unsigned int MpMuonFate::m_code [private] |
Definition at line 70 of file MpMuonFate.h.