CMS 3D CMS Logo

L1GtTechnicalTrigger Class Reference

Description: technical trigger input for L1 Global Trigger. More...

#include <DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTrigger.h>

List of all members.

Public Member Functions

const int bxInEvent () const
 get/set bunch cross in the GT event record
const unsigned int gtTechnicalTriggerBitNumber () const
const std::string gtTechnicalTriggerName () const
 get / set technical trigger name, bit number, bunch cross in the GT event record and result
const bool gtTechnicalTriggerResult () const
 L1GtTechnicalTrigger (const L1GtTechnicalTrigger &)
 copy constructor
 L1GtTechnicalTrigger (const std::string &ttName, const unsigned int ttBitNumber, const int ttBxInEvent, const bool ttResult)
 L1GtTechnicalTrigger ()
 constructors
bool operator!= (const L1GtTechnicalTrigger &) const
 unequal operator
L1GtTechnicalTriggeroperator= (const L1GtTechnicalTrigger &)
 assignment operator
bool operator== (const L1GtTechnicalTrigger &) const
 equal operator
void print (std::ostream &myCout) const
 pretty print the content of a L1GtTechnicalTrigger
void setBxInEvent (const int bxInEventValue)
void setGtTechnicalTriggerBitNumber (const unsigned int ttBitNumber)
void setGtTechnicalTriggerName (const std::string &ttName)
void setGtTechnicalTriggerResult (const bool ttResult)
virtual ~L1GtTechnicalTrigger ()
 destructor

Private Attributes

int m_bxInEvent
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
 technical trigger name, bit number, bunch cross in the GT event record and result
bool m_gtTechnicalTriggerResult

Friends

std::ostream & operator<< (std::ostream &, const L1GtTechnicalTrigger &)
 output stream operator


Detailed Description

Description: technical trigger input for L1 Global Trigger.

Description: technical trigger input record for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
$Date$ $Revision$

Definition at line 35 of file L1GtTechnicalTrigger.h.


Constructor & Destructor Documentation

L1GtTechnicalTrigger::L1GtTechnicalTrigger (  ) 

constructors

Definition at line 27 of file L1GtTechnicalTrigger.cc.

00028 {
00029 
00030     // empty 
00031 
00032 }

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const std::string &  ttName,
const unsigned int  ttBitNumber,
const int  ttBxInEvent,
const bool  ttResult 
)

Definition at line 34 of file L1GtTechnicalTrigger.cc.

00036                              :
00037     m_gtTechnicalTriggerName(ttName),
00038     m_gtTechnicalTriggerBitNumber(ttBitNumber),
00039     m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult)
00040 
00041 {
00042 
00043     // empty 
00044 
00045 }

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const L1GtTechnicalTrigger result  ) 

copy constructor

Definition at line 48 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

L1GtTechnicalTrigger::~L1GtTechnicalTrigger (  )  [virtual]

destructor

Definition at line 58 of file L1GtTechnicalTrigger.cc.

00059 {
00060 
00061     // empty now
00062 
00063 }


Member Function Documentation

const int L1GtTechnicalTrigger::bxInEvent (  )  const [inline]

get/set bunch cross in the GT event record

Definition at line 77 of file L1GtTechnicalTrigger.h.

References m_bxInEvent.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

00078     {
00079         return m_bxInEvent;
00080     }

const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber (  )  const [inline]

Definition at line 71 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerBitNumber.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

00072     {
00073         return m_gtTechnicalTriggerBitNumber;
00074     }

const std::string L1GtTechnicalTrigger::gtTechnicalTriggerName (  )  const [inline]

get / set technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 66 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerName.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

00067     {
00068         return m_gtTechnicalTriggerName;
00069     }

const bool L1GtTechnicalTrigger::gtTechnicalTriggerResult (  )  const [inline]

Definition at line 82 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerResult.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

00083     {
00084         return m_gtTechnicalTriggerResult;
00085     }

bool L1GtTechnicalTrigger::operator!= ( const L1GtTechnicalTrigger result  )  const

unequal operator

Definition at line 110 of file L1GtTechnicalTrigger.cc.

00112 {
00113 
00114     return !( result == *this);
00115 
00116 }

L1GtTechnicalTrigger & L1GtTechnicalTrigger::operator= ( const L1GtTechnicalTrigger result  ) 

assignment operator

Definition at line 66 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

00068 {
00069 
00070     if ( this != &result ) {
00071 
00072         m_gtTechnicalTriggerName = result.m_gtTechnicalTriggerName;
00073         m_gtTechnicalTriggerBitNumber = result.m_gtTechnicalTriggerBitNumber;
00074         m_bxInEvent = result.m_bxInEvent;
00075         m_gtTechnicalTriggerResult = result.m_gtTechnicalTriggerResult;
00076 
00077     }
00078 
00079     return *this;
00080 
00081 }

bool L1GtTechnicalTrigger::operator== ( const L1GtTechnicalTrigger result  )  const

equal operator

Definition at line 84 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

00086 {
00087 
00088     if (m_gtTechnicalTriggerName != result.m_gtTechnicalTriggerName) {
00089         return false;
00090     }
00091 
00092     if (m_gtTechnicalTriggerBitNumber != result.m_gtTechnicalTriggerBitNumber) {
00093         return false;
00094     }
00095 
00096     if (m_bxInEvent != result.m_bxInEvent) {
00097         return false;
00098     }
00099 
00100     if (m_gtTechnicalTriggerResult != result.m_gtTechnicalTriggerResult) {
00101         return false;
00102     }
00103 
00104     // all members identical
00105     return true;
00106 
00107 }

void L1GtTechnicalTrigger::print ( std::ostream &  myCout  )  const

pretty print the content of a L1GtTechnicalTrigger

bunch cross in the GT event record

Definition at line 152 of file L1GtTechnicalTrigger.cc.

References lat::endl(), m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

Referenced by operator<<().

00153 {
00154 
00155     myCout << std::endl;
00156     myCout << std::endl;
00157     myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl;
00158     myCout << "   bit number" << m_gtTechnicalTriggerBitNumber << std::endl;
00159     myCout << "   bxInEvent" << m_bxInEvent << std::endl;
00160     myCout << "   result" << m_gtTechnicalTriggerResult << std::endl;
00161 
00163 }

void L1GtTechnicalTrigger::setBxInEvent ( const int  bxInEventValue  ) 

Definition at line 137 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent.

00138 {
00139 
00140     m_bxInEvent = bxInEventValue;
00141 
00142 }

void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber ( const unsigned int  ttBitNumber  ) 

Definition at line 129 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerBitNumber.

00131 {
00132 
00133     m_gtTechnicalTriggerBitNumber = ttBitNumber;
00134 
00135 }

void L1GtTechnicalTrigger::setGtTechnicalTriggerName ( const std::string &  ttName  ) 

Definition at line 121 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerName.

00122 {
00123 
00124     m_gtTechnicalTriggerName = ttName;
00125 
00126 }

void L1GtTechnicalTrigger::setGtTechnicalTriggerResult ( const bool  ttResult  ) 

Definition at line 144 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerResult.

00145 {
00146 
00147     m_gtTechnicalTriggerResult = ttResult;
00148 
00149 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  streamRec,
const L1GtTechnicalTrigger result 
) [friend]

output stream operator

Definition at line 166 of file L1GtTechnicalTrigger.cc.

00168 {
00169     result.print(streamRec);
00170     return streamRec;
00171 
00172 }


Member Data Documentation

int L1GtTechnicalTrigger::m_bxInEvent [private]

Definition at line 105 of file L1GtTechnicalTrigger.h.

Referenced by bxInEvent(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setBxInEvent().

unsigned int L1GtTechnicalTrigger::m_gtTechnicalTriggerBitNumber [private]

Definition at line 104 of file L1GtTechnicalTrigger.h.

Referenced by gtTechnicalTriggerBitNumber(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerBitNumber().

std::string L1GtTechnicalTrigger::m_gtTechnicalTriggerName [private]

technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 103 of file L1GtTechnicalTrigger.h.

Referenced by gtTechnicalTriggerName(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerName().

bool L1GtTechnicalTrigger::m_gtTechnicalTriggerResult [private]

Definition at line 106 of file L1GtTechnicalTrigger.h.

Referenced by gtTechnicalTriggerResult(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerResult().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:45 2009 for CMSSW by  doxygen 1.5.4