| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MpMuonFate Class Reference

#include <MpMuonFate.h>

List of all members.


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
MpMuonFateoperator= (const MpMuonFate &rh)

Private Attributes

unsigned int m_code

Detailed Description

Definition at line 18 of file MpMuonFate.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
kUnknown 
kNeedSim 
kDontSim 

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   };


Constructor & Destructor Documentation

MpMuonFate::MpMuonFate ( unsigned int  code  )  [inline]

Definition at line 26 of file MpMuonFate.h.

00026                                  {
00027     m_code = code;
00028   };

MpMuonFate::MpMuonFate ( MpTriggerStat  rpc,
MpTriggerStat  pool 
) [inline]

Definition at line 30 of file MpMuonFate.h.

00030                                                      {
00031     setCode(rpc,pool);
00032   }


Member Function Documentation

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]

Definition at line 50 of file MpMuonFate.h.

00050                                            {
00051     return m_code = code;
00052   }

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]

Definition at line 63 of file MpMuonFate.h.

00063                                {
00064     return m_code; 
00065   };

MpMuonFate& MpMuonFate::operator= ( const MpMuonFate rh  )  [inline]

Definition at line 67 of file MpMuonFate.h.

00067                                               {
00068     m_code=rh.getCode();
00069     return *this;
00070   };


Member Data Documentation

unsigned int MpMuonFate::m_code [private]

Definition at line 70 of file MpMuonFate.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 21:01:52 2011 for MuonProphet by doxygen 1.4.7