CMS 3D CMS Logo

HcalSourcePositionData Class Reference

#include <DataFormats/HcalRecHit/interface/HcalSourcePositionData.h>

List of all members.

Public Member Functions

int driverId () const
void getDAQTimestamp (int &seconds, int &useconds) const
void getDriverTimestamp (int &seconds, int &useconds) const
 HcalSourcePositionData ()
int indexCounter () const
int messageCounter () const
int motorCurrent () const
int reelCounter () const
void set (int message_counter, int timestamp1_sec, int timestamp1_usec, int timestamp2_sec, int timestamp2_usec, int status, int index_counter, int reel_counter, int motor_current, int speed, int tube_id, int driver_id, int source_id)
int sourceId () const
int speed () const
int status () const
int tubeId () const
 ~HcalSourcePositionData ()

Private Attributes

int driverId_
int indexCounter_
int messageCounter_
int motorCurrent_
int reelCounter_
int sourceId_
int speed_
int status_
int timestamp1_sec_
int timestamp1_usec_
int timestamp2_sec_
int timestamp2_usec_
int tubeId_


Detailed Description

Definition at line 6 of file HcalSourcePositionData.h.


Constructor & Destructor Documentation

HcalSourcePositionData::HcalSourcePositionData (  ) 

Definition at line 5 of file HcalSourcePositionData.cc.

References driverId_, indexCounter_, messageCounter_, motorCurrent_, reelCounter_, sourceId_, speed_, status_, timestamp1_sec_, timestamp1_usec_, timestamp2_sec_, timestamp2_usec_, and tubeId_.

00005                                               {
00006   messageCounter_=0;
00007   indexCounter_=0;
00008   reelCounter_=0;
00009   timestamp1_sec_=0;
00010   timestamp1_usec_=0;
00011   timestamp2_sec_=0;
00012   timestamp2_usec_=0;
00013   status_=0;
00014   motorCurrent_=0;
00015   speed_=0;
00016   tubeId_=-1;
00017   driverId_=-1;
00018   sourceId_=-1;
00019 }

HcalSourcePositionData::~HcalSourcePositionData (  )  [inline]

Definition at line 10 of file HcalSourcePositionData.h.

00010 {}


Member Function Documentation

int HcalSourcePositionData::driverId (  )  const [inline]

Definition at line 19 of file HcalSourcePositionData.h.

References driverId_.

Referenced by operator<<().

00019 { return driverId_; }

void HcalSourcePositionData::getDAQTimestamp ( int seconds,
int useconds 
) const

Definition at line 55 of file HcalSourcePositionData.cc.

References timestamp2_sec_, and timestamp2_usec_.

Referenced by operator<<().

00055                                                                              {
00056   seconds=timestamp2_sec_;
00057   useconds=timestamp2_usec_;
00058 }

void HcalSourcePositionData::getDriverTimestamp ( int seconds,
int useconds 
) const

Definition at line 50 of file HcalSourcePositionData.cc.

References timestamp1_sec_, and timestamp1_usec_.

Referenced by operator<<().

00050                                                                                 {
00051   seconds=timestamp1_sec_;
00052   useconds=timestamp1_usec_;
00053 }

int HcalSourcePositionData::indexCounter (  )  const [inline]

Definition at line 14 of file HcalSourcePositionData.h.

References indexCounter_.

Referenced by operator<<().

00014 { return indexCounter_; }

int HcalSourcePositionData::messageCounter (  )  const [inline]

Definition at line 12 of file HcalSourcePositionData.h.

References messageCounter_.

Referenced by operator<<().

00012 { return messageCounter_; }

int HcalSourcePositionData::motorCurrent (  )  const [inline]

Definition at line 16 of file HcalSourcePositionData.h.

References motorCurrent_.

Referenced by operator<<().

00016 { return motorCurrent_; }

int HcalSourcePositionData::reelCounter (  )  const [inline]

Definition at line 15 of file HcalSourcePositionData.h.

References reelCounter_.

Referenced by operator<<().

00015 { return reelCounter_; } 

void HcalSourcePositionData::set ( int  message_counter,
int  timestamp1_sec,
int  timestamp1_usec,
int  timestamp2_sec,
int  timestamp2_usec,
int  status,
int  index_counter,
int  reel_counter,
int  motor_current,
int  speed,
int  tube_id,
int  driver_id,
int  source_id 
)

Definition at line 21 of file HcalSourcePositionData.cc.

References driverId_, indexCounter_, messageCounter_, motorCurrent_, reelCounter_, sourceId_, speed_, status_, timestamp1_sec_, timestamp1_usec_, timestamp2_sec_, timestamp2_usec_, and tubeId_.

Referenced by hcaltb::HcalTBSourcePositionDataUnpacker::unpack().

00033                                                      {
00034 
00035   messageCounter_=message_counter;
00036   indexCounter_=index_counter;
00037   reelCounter_=reel_counter;
00038   timestamp1_sec_=timestamp1_sec;
00039   timestamp1_usec_=timestamp1_usec;
00040   timestamp2_sec_=timestamp2_sec;
00041   timestamp2_usec_=timestamp2_usec;
00042   status_=status;
00043   motorCurrent_=motor_current;
00044   speed_=speed;
00045   tubeId_=tube_id;
00046   driverId_=driver_id;
00047   sourceId_=source_id;
00048 }

int HcalSourcePositionData::sourceId (  )  const [inline]

Definition at line 20 of file HcalSourcePositionData.h.

References sourceId_.

Referenced by operator<<().

00020 { return sourceId_; }

int HcalSourcePositionData::speed (  )  const [inline]

Definition at line 17 of file HcalSourcePositionData.h.

References speed_.

Referenced by operator<<().

00017 { return speed_; } 

int HcalSourcePositionData::status (  )  const [inline]

Definition at line 13 of file HcalSourcePositionData.h.

References status_.

Referenced by operator<<().

00013 { return status_; }

int HcalSourcePositionData::tubeId (  )  const [inline]

Definition at line 18 of file HcalSourcePositionData.h.

References tubeId_.

Referenced by operator<<().

00018 { return tubeId_; }


Member Data Documentation

int HcalSourcePositionData::driverId_ [private]

Definition at line 50 of file HcalSourcePositionData.h.

Referenced by driverId(), HcalSourcePositionData(), and set().

int HcalSourcePositionData::indexCounter_ [private]

Definition at line 40 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), indexCounter(), and set().

int HcalSourcePositionData::messageCounter_ [private]

Definition at line 39 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), messageCounter(), and set().

int HcalSourcePositionData::motorCurrent_ [private]

Definition at line 47 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), motorCurrent(), and set().

int HcalSourcePositionData::reelCounter_ [private]

Definition at line 41 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), reelCounter(), and set().

int HcalSourcePositionData::sourceId_ [private]

Definition at line 51 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), set(), and sourceId().

int HcalSourcePositionData::speed_ [private]

Definition at line 48 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), set(), and speed().

int HcalSourcePositionData::status_ [private]

Definition at line 46 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), set(), and status().

int HcalSourcePositionData::timestamp1_sec_ [private]

Definition at line 42 of file HcalSourcePositionData.h.

Referenced by getDriverTimestamp(), HcalSourcePositionData(), and set().

int HcalSourcePositionData::timestamp1_usec_ [private]

Definition at line 43 of file HcalSourcePositionData.h.

Referenced by getDriverTimestamp(), HcalSourcePositionData(), and set().

int HcalSourcePositionData::timestamp2_sec_ [private]

Definition at line 44 of file HcalSourcePositionData.h.

Referenced by getDAQTimestamp(), HcalSourcePositionData(), and set().

int HcalSourcePositionData::timestamp2_usec_ [private]

Definition at line 45 of file HcalSourcePositionData.h.

Referenced by getDAQTimestamp(), HcalSourcePositionData(), and set().

int HcalSourcePositionData::tubeId_ [private]

Definition at line 49 of file HcalSourcePositionData.h.

Referenced by HcalSourcePositionData(), set(), and tubeId().


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