/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Private Attributes
MpMuonFate Class Reference

#include <MpMuonFate.h>

List of all members.

Public Types

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.

       {
    kUnknown  =0,          // Muon not found, and others
    kNeedSim  =1,          // Can't tell the fate of it. Need full simulation
    kDontSim  =0xf0000000  // Don't do geant simulation
  };

Constructor & Destructor Documentation

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

Definition at line 26 of file MpMuonFate.h.

                                 {
    m_code = code;
  };
MpMuonFate::MpMuonFate ( MpTriggerStat  rpc,
MpTriggerStat  pool 
) [inline]

Definition at line 30 of file MpMuonFate.h.

                                                     {
    setCode(rpc,pool);
  }

Member Function Documentation

MpTriggerStat MpMuonFate::getRpcTriggerStat ( ) [inline]

Definition at line 34 of file MpMuonFate.h.

                                    {
    if(m_code == kNeedSim) {
      return MpTriggerStat::kNeedSim;   // Note that here might not be consistent with previous input
    } else {
      return (m_code & 0xff00) >> 8;
    }
  }
MpTriggerStat MpMuonFate::getPoolTriggerStat ( ) [inline]

Definition at line 42 of file MpMuonFate.h.

                                     {
    if(m_code == kNeedSim) {
      return MpTriggerStat::kNeedSim;   // Note that here might not be consistent with previous input
    } else {
      return m_code & 0xff;
    }
  }
unsigned int MpMuonFate::setCode ( unsigned int  code) [inline]

Definition at line 50 of file MpMuonFate.h.

                                           {
    return m_code = code;
  }
unsigned int MpMuonFate::setCode ( MpTriggerStat  rpc,
MpTriggerStat  pool 
) [inline]

Definition at line 54 of file MpMuonFate.h.

                                                               {
    if( rpc.getCode() == MpTriggerStat::kNeedSim ||
        pool.getCode() == MpTriggerStat::kNeedSim ) {
      return m_code = kNeedSim;
    } else { // I want to pack all trigger information into this status word
      return m_code = kDontSim | rpc.getCode()<<8 | pool.getCode();
    }
  }
unsigned int MpMuonFate::getCode ( ) const [inline]

Definition at line 63 of file MpMuonFate.h.

                               {
    return m_code; 
  };
MpMuonFate& MpMuonFate::operator= ( const MpMuonFate rh) [inline]

Definition at line 67 of file MpMuonFate.h.

                                              {
    m_code=rh.getCode();
    return *this;
  };

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 Fri May 16 2014 10:21:29 for MuonProphet by doxygen 1.7.4