Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EmcDigi Class Reference

#include <EmcDigi.h>

Inheritance diagram for EmcDigi:

RawData RawData ContainedObject ContainedObject ContainedObject ContainedObject List of all members.

Public Member Functions

virtual const CLID & clID () const
virtual const CLID & clID () const
 EmcDigi (const unsigned int id)
 EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
 EmcDigi (const unsigned int id)
 EmcDigi (const Identifier &id, const unsigned int timeChannel, const unsigned int chargeChannel)
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the ASCII output stream.
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the ASCII output stream.
unsigned int getChargeChannel () const
unsigned int getChargeChannel () const
unsigned int getIntId () const
unsigned int getIntId () const
unsigned int getMeasure () const
unsigned int getMeasure () const
unsigned int getTimeChannel () const
unsigned int getTimeChannel () const
int getTrackIndex () const
int getTrackIndex () const
virtual Identifier identify () const
virtual Identifier identify () const
RawDataoperator+= (const RawData &)
EmcDigioperator+= (const EmcDigi &)
EmcDigioperator+= (const EmcDigi &)
virtual StreamBuffer & serialize (StreamBuffer &s)
virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing.
virtual StreamBuffer & serialize (StreamBuffer &s)
virtual StreamBuffer & serialize (StreamBuffer &s) const
 Serialize the object for writing.
void setChargeChannel (const unsigned int chargeChannel)
void setChargeChannel (const unsigned int chargeChannel)
void setMeasure (const unsigned int measure)
void setMeasure (const unsigned int measure)
void setTimeChannel (const unsigned int timeChannel)
void setTimeChannel (const unsigned int timeChannel)
void setTrackIndex (const int trackIndex)
void setTrackIndex (const int trackIndex)

Static Public Member Functions

const CLID & classID ()
const CLID & classID ()

Protected Attributes

unsigned int m_chargeChannel
const Identifier m_id
const unsigned int m_intId
unsigned int m_timeChannel
int m_trackIndex

Private Attributes

unsigned int m_measure

Constructor & Destructor Documentation

EmcDigi::EmcDigi const Identifier id,
const unsigned int  timeChannel,
const unsigned int  chargeChannel
 

00004                                                                                                        :
00005   RawData(id, timeChannel, chargeChannel),
00006   m_measure(0) {
00007 }

EmcDigi::EmcDigi const unsigned int  id  ) 
 

00009                                       :
00010   RawData(id), 
00011   m_measure(0) {
00012 }

EmcDigi::EmcDigi const Identifier id,
const unsigned int  timeChannel,
const unsigned int  chargeChannel
 

EmcDigi::EmcDigi const unsigned int  id  ) 
 


Member Function Documentation

const CLID& EmcDigi::classID  )  [inline, static]
 

00029 { return CLID_EmcDigi; }

const CLID& EmcDigi::classID  )  [inline, static]
 

00029 { return CLID_EmcDigi; }

virtual const CLID& EmcDigi::clID  )  const [inline, virtual]
 

00028 { return EmcDigi::classID(); }

virtual const CLID& EmcDigi::clID  )  const [inline, virtual]
 

00028 { return EmcDigi::classID(); }

virtual std::ostream& RawData::fillStream std::ostream s  )  const [virtual, inherited]
 

Fill the ASCII output stream.

std::ostream & RawData::fillStream std::ostream s  )  const [inline, virtual, inherited]
 

Fill the ASCII output stream.

00093                                                             {
00094         s << "class RawData :" << std::endl
00095           << " m_id: " << m_intId
00096           << " m_timeChannel: " << m_timeChannel
00097           << " m_chargeChannel: " << m_chargeChannel
00098           << std::endl;
00099         return s;
00100 }

unsigned int RawData::getChargeChannel  )  const [inherited]
 

unsigned int RawData::getChargeChannel  )  const [inherited]
 

00045                                              {
00046   return m_chargeChannel;
00047 }

unsigned int RawData::getIntId  )  const [inherited]
 

unsigned int RawData::getIntId  )  const [inherited]
 

00020                                      {
00021   return m_intId;
00022 }

unsigned int EmcDigi::getMeasure  )  const [inline]
 

00025 { return m_measure; }

unsigned int EmcDigi::getMeasure  )  const [inline]
 

00025 { return m_measure; }

unsigned int RawData::getTimeChannel  )  const [inherited]
 

unsigned int RawData::getTimeChannel  )  const [inherited]
 

00040                                            {
00041   return m_timeChannel;
00042 } 

int RawData::getTrackIndex  )  const [inherited]
 

int RawData::getTrackIndex  )  const [inherited]
 

00050                                  {
00051   return m_trackIndex;
00052 }

virtual Identifier RawData::identify  )  const [virtual, inherited]
 

Identifier RawData::identify  )  const [virtual, inherited]
 

00015                                    {
00016   return  m_id;
00017 }

RawData & RawData::operator+= const RawData  )  [inherited]
 

00055 { 
00056   if(m_id != rval.identify()) // do nothing
00057     return *this;
00058 
00059   if( rval.getTimeChannel() < m_timeChannel )
00060     m_timeChannel = rval.getTimeChannel();
00061 
00062   m_chargeChannel += rval.getChargeChannel();
00063   return *this;
00064 }

EmcDigi& EmcDigi::operator+= const EmcDigi  ) 
 

EmcDigi & EmcDigi::operator+= const EmcDigi  ) 
 

00016 {
00017   if(m_id != digi.identify()) // do nothing
00018     return *this;
00019   
00020   EmcWaveform wave1,wave2;
00021   wave1.makeWaveform(m_chargeChannel,m_timeChannel);
00022   wave2.makeWaveform(digi.getChargeChannel(),digi.getTimeChannel());
00023   
00024   //mixing
00025   wave1 += wave2;
00026 
00027   double energy;
00028   int time;
00029   energy = wave1.max(time);
00030 
00031   m_chargeChannel = (unsigned int)energy;
00032   m_timeChannel = (unsigned int)time;
00033   
00034   return *this;
00035 }

virtual StreamBuffer& RawData::serialize StreamBuffer &  s  )  [virtual, inherited]
 

virtual StreamBuffer& RawData::serialize StreamBuffer &  s  )  const [virtual, inherited]
 

Serialize the object for writing.

StreamBuffer & RawData::serialize StreamBuffer &  s  )  [inline, virtual, inherited]
 

00087                                                          {
00088         return serialize(s); 
00089 }

StreamBuffer & RawData::serialize StreamBuffer &  s  )  const [inline, virtual, inherited]
 

Serialize the object for writing.

00080                                                                {
00081       ContainedObject::serialize(s);
00082          s<< m_timeChannel
00083           << m_chargeChannel;
00084         return s;
00085 }

void RawData::setChargeChannel const unsigned int  chargeChannel  )  [inherited]
 

void RawData::setChargeChannel const unsigned int  chargeChannel  )  [inherited]
 

00030                                                                {
00031   m_chargeChannel = chargeChannel;
00032 }

void EmcDigi::setMeasure const unsigned int  measure  )  [inline]
 

00022 { m_measure = measure; } 

void EmcDigi::setMeasure const unsigned int  measure  )  [inline]
 

00022 { m_measure = measure; } 

void RawData::setTimeChannel const unsigned int  timeChannel  )  [inherited]
 

void RawData::setTimeChannel const unsigned int  timeChannel  )  [inherited]
 

00025                                                             {
00026   m_timeChannel = timeChannel;
00027 }

void RawData::setTrackIndex const int  trackIndex  )  [inherited]
 

void RawData::setTrackIndex const int  trackIndex  )  [inherited]
 

00035                                                 {
00036   m_trackIndex = trackIndex;
00037 }


Member Data Documentation

unsigned int RawData::m_chargeChannel [protected, inherited]
 

const Identifier RawData::m_id [protected, inherited]
 

const unsigned int RawData::m_intId [protected, inherited]
 

unsigned int EmcDigi::m_measure [private]
 

unsigned int RawData::m_timeChannel [protected, inherited]
 

int RawData::m_trackIndex [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:01:13 2011 for BOSS6.5.5 by  doxygen 1.3.9.1