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

In This Package:

Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | Friends
PhyEvent Class Reference

#include <PhyEvent.h>

Inheritance diagram for PhyEvent:
Inheritance graph
[legend]
Collaboration diagram for PhyEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

PhyEventGrabInstance ()
void ReleaseInstance ()
 PhyEvent ()
template<typename Type >
Type * get (const std::string &path)
bool tagMuon ()
bool isMuon ()
bool isWpMuon ()
bool isRpcMuon ()
bool isAdMuon ()
bool isShowerMuon ()
bool isAD ()
bool isWP ()
bool isRPC ()
float energy ()
void setEnergy (float energy)
const std::string & getFileName ()

Public Attributes

long m_entry
long m_localEntry
int m_fileNum
bool m_good
int m_site
int m_det
int m_trigType
int m_trigNum
TTimeStamp m_trigTime
float m_energy
float m_rawEvis
float m_enrec
float m_eprec
float m_x
float m_y
float m_z
int m_nPmt
float m_maxQ
float m_quadrant
float m_maxQ_2inchPMT
int m_Column_2inchPMT
float m_MiddleTimeRMS
float m_tRMS
float m_nPEMax
float m_nPEMedian
float m_nPERMS
float m_nPESum
float m_Likelihood
int m_DStatus
float m_DInX
float m_DInY
float m_DInZ
float m_DOutX
float m_DOutY
float m_DOutZ
bool m_flasherTag
bool m_2inchFlasherTag
bool m_rpcNoiseTag
bool m_forceTrigTag
bool m_crossTrigTag
bool m_adLowEnergyTag
int m_muonTag
std::map< std::string, float > m_userTag

Static Public Attributes

static const int kNotTag = 0x1
static const int kNotMuon = 0x2
static const int kWpMuon = 0x4
static const int kRpcMuon = 0x8
static const int kAdMuon = 0x10
static const int kShowerMuon = 0x20
static std::vector< std::string > m_inputFlist

Protected Attributes

float m_preferredEnergy
std::map< std::string, DataSec * > m_secs

Static Protected Attributes

static IPerEvents_perEvt = 0

Private Member Functions

virtual ~PhyEvent ()
 PhyEvent (const PhyEvent &)
PhyEventoperator= (const PhyEvent &)

Private Attributes

int m_nHandler

Friends

class IPerEvent

Detailed Description

Definition at line 14 of file PhyEvent.h.


Constructor & Destructor Documentation

PhyEvent::PhyEvent ( )

Definition at line 26 of file PhyEvent.cc.

    : m_entry(-1),
      m_good(true),
      m_trigTime(0, 0),
      m_flasherTag(false),
      m_2inchFlasherTag(false),
      m_rpcNoiseTag(false),
      m_forceTrigTag(false),
      m_crossTrigTag(false),
      m_adLowEnergyTag(false),
      m_muonTag(kNotTag),
      m_nHandler(0)
{
}
PhyEvent::~PhyEvent ( ) [private, virtual]

Definition at line 41 of file PhyEvent.cc.

{
    std::map<std::string, DataSec*>::iterator end = m_secs.end();
    for ( std::map<std::string, DataSec*>::iterator it = m_secs.begin(); it != end; ++it ) {
        delete it->second;
    }
}
PhyEvent::PhyEvent ( const PhyEvent ) [private]

Member Function Documentation

PhyEvent * PhyEvent::GrabInstance ( )

Definition at line 13 of file PhyEvent.cc.

{
    ++m_nHandler;
    return this;
}
void PhyEvent::ReleaseInstance ( )

Definition at line 19 of file PhyEvent.cc.

{
    if ( --m_nHandler <= 0 ) {
        delete this;
    }
}
template<typename Type >
Type * PhyEvent::get ( const std::string &  path)

Definition at line 132 of file PhyEvent.h.

{
    Type* result = 0;
    std::map<std::string, DataSec*>::iterator it = m_secs.find(path);
    if ( it != m_secs.end() ) {
        result = static_cast<Type*>(it->second);
    }
    else {
        DataSec* obj = s_perEvt->getObj(path, this);
        result = static_cast<Type*>(obj);
        m_secs.insert(std::make_pair<std::string, DataSec*>(path, obj));
    }
    return result;
}
bool PhyEvent::tagMuon ( ) [inline]

Definition at line 26 of file PhyEvent.h.

{ return (m_muonTag&kNotTag) == 0; }
bool PhyEvent::isMuon ( )

Definition at line 49 of file PhyEvent.cc.

{
   return (m_muonTag >= kWpMuon);
}
bool PhyEvent::isWpMuon ( )

Definition at line 54 of file PhyEvent.cc.

{
   return (m_muonTag == kWpMuon);
}
bool PhyEvent::isRpcMuon ( )

Definition at line 59 of file PhyEvent.cc.

{
   return (m_muonTag == kRpcMuon);
}
bool PhyEvent::isAdMuon ( )

Definition at line 64 of file PhyEvent.cc.

{
   return (m_muonTag == kAdMuon);
}
bool PhyEvent::isShowerMuon ( )

Definition at line 69 of file PhyEvent.cc.

{
   return (m_muonTag == kShowerMuon);
}
bool PhyEvent::isAD ( ) [inline]

Definition at line 33 of file PhyEvent.h.

{ return m_det<=4&&m_det>=1; }
bool PhyEvent::isWP ( ) [inline]

Definition at line 34 of file PhyEvent.h.

{ return m_det==5||m_det==6; }
bool PhyEvent::isRPC ( ) [inline]

Definition at line 35 of file PhyEvent.h.

{ return m_det==7; }
float PhyEvent::energy ( ) [inline]

Definition at line 57 of file PhyEvent.h.

                             {  //the preferred energy that configured in InputSvc
            return m_preferredEnergy;
        }
void PhyEvent::setEnergy ( float  energy) [inline]

Definition at line 106 of file PhyEvent.h.

const std::string & PhyEvent::getFileName ( )

Definition at line 74 of file PhyEvent.cc.

{
    return m_inputFlist[m_fileNum];
}
PhyEvent& PhyEvent::operator= ( const PhyEvent ) [private]

Friends And Related Function Documentation

friend class IPerEvent [friend]

Definition at line 117 of file PhyEvent.h.


Member Data Documentation

Definition at line 38 of file PhyEvent.h.

Definition at line 40 of file PhyEvent.h.

Definition at line 41 of file PhyEvent.h.

Definition at line 44 of file PhyEvent.h.

Definition at line 49 of file PhyEvent.h.

Definition at line 50 of file PhyEvent.h.

Definition at line 51 of file PhyEvent.h.

Definition at line 52 of file PhyEvent.h.

Definition at line 53 of file PhyEvent.h.

Definition at line 61 of file PhyEvent.h.

Definition at line 62 of file PhyEvent.h.

Definition at line 63 of file PhyEvent.h.

Definition at line 64 of file PhyEvent.h.

Definition at line 65 of file PhyEvent.h.

Definition at line 66 of file PhyEvent.h.

Definition at line 67 of file PhyEvent.h.

Definition at line 68 of file PhyEvent.h.

Definition at line 69 of file PhyEvent.h.

Definition at line 70 of file PhyEvent.h.

Definition at line 71 of file PhyEvent.h.

Definition at line 72 of file PhyEvent.h.

Definition at line 73 of file PhyEvent.h.

Definition at line 74 of file PhyEvent.h.

Definition at line 75 of file PhyEvent.h.

Definition at line 76 of file PhyEvent.h.

Definition at line 77 of file PhyEvent.h.

Definition at line 78 of file PhyEvent.h.

Definition at line 79 of file PhyEvent.h.

Definition at line 80 of file PhyEvent.h.

Definition at line 81 of file PhyEvent.h.

Definition at line 82 of file PhyEvent.h.

Definition at line 83 of file PhyEvent.h.

Definition at line 84 of file PhyEvent.h.

Definition at line 85 of file PhyEvent.h.

Definition at line 86 of file PhyEvent.h.

Definition at line 88 of file PhyEvent.h.

Definition at line 89 of file PhyEvent.h.

Definition at line 90 of file PhyEvent.h.

Definition at line 91 of file PhyEvent.h.

Definition at line 92 of file PhyEvent.h.

Definition at line 93 of file PhyEvent.h.

Definition at line 94 of file PhyEvent.h.

std::map<std::string, float> PhyEvent::m_userTag

Definition at line 96 of file PhyEvent.h.

const int PhyEvent::kNotTag = 0x1 [static]

Definition at line 99 of file PhyEvent.h.

const int PhyEvent::kNotMuon = 0x2 [static]

Definition at line 100 of file PhyEvent.h.

const int PhyEvent::kWpMuon = 0x4 [static]

Definition at line 101 of file PhyEvent.h.

const int PhyEvent::kRpcMuon = 0x8 [static]

Definition at line 102 of file PhyEvent.h.

const int PhyEvent::kAdMuon = 0x10 [static]

Definition at line 103 of file PhyEvent.h.

const int PhyEvent::kShowerMuon = 0x20 [static]

Definition at line 104 of file PhyEvent.h.

std::vector< std::string > PhyEvent::m_inputFlist [static]

Definition at line 109 of file PhyEvent.h.

float PhyEvent::m_preferredEnergy [protected]

Definition at line 113 of file PhyEvent.h.

std::map<std::string, DataSec*> PhyEvent::m_secs [protected]

Definition at line 114 of file PhyEvent.h.

IPerEvent * PhyEvent::s_perEvt = 0 [static, protected]

Definition at line 118 of file PhyEvent.h.

int PhyEvent::m_nHandler [private]

Definition at line 124 of file PhyEvent.h.


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

Generated on Fri May 16 2014 09:50:18 for LafKernel by doxygen 1.7.4