CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalSourcePositionData Class Reference

#include <HcalSourcePositionData.h>

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 6 of file HcalSourcePositionData.cc.

HcalSourcePositionData::~HcalSourcePositionData ( )
inline

Definition at line 10 of file HcalSourcePositionData.h.

10 {}

Member Function Documentation

int HcalSourcePositionData::driverId ( ) const
inline

Definition at line 19 of file HcalSourcePositionData.h.

References driverId_.

Referenced by operator<<().

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

Definition at line 56 of file HcalSourcePositionData.cc.

Referenced by operator<<().

56  {
58  useconds=timestamp2_usec_;
59 }
double seconds()
void HcalSourcePositionData::getDriverTimestamp ( int &  seconds,
int &  useconds 
) const

Definition at line 51 of file HcalSourcePositionData.cc.

Referenced by operator<<().

51  {
53  useconds=timestamp1_usec_;
54 }
double seconds()
int HcalSourcePositionData::indexCounter ( ) const
inline

Definition at line 14 of file HcalSourcePositionData.h.

References indexCounter_.

Referenced by operator<<().

int HcalSourcePositionData::messageCounter ( ) const
inline

Definition at line 12 of file HcalSourcePositionData.h.

References messageCounter_.

Referenced by operator<<().

int HcalSourcePositionData::motorCurrent ( ) const
inline

Definition at line 16 of file HcalSourcePositionData.h.

References motorCurrent_.

Referenced by operator<<().

int HcalSourcePositionData::reelCounter ( ) const
inline

Definition at line 15 of file HcalSourcePositionData.h.

References reelCounter_.

Referenced by operator<<().

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 22 of file HcalSourcePositionData.cc.

References ntuplemaker::status.

Referenced by betterConfigParser.BetterConfigParser::getGeneral(), and hcaltb::HcalTBSourcePositionDataUnpacker::unpack().

34  {
35 
36  messageCounter_=message_counter;
37  indexCounter_=index_counter;
38  reelCounter_=reel_counter;
39  timestamp1_sec_=timestamp1_sec;
40  timestamp1_usec_=timestamp1_usec;
41  timestamp2_sec_=timestamp2_sec;
42  timestamp2_usec_=timestamp2_usec;
44  motorCurrent_=motor_current;
45  speed_=speed;
46  tubeId_=tube_id;
47  driverId_=driver_id;
48  sourceId_=source_id;
49 }
int HcalSourcePositionData::sourceId ( ) const
inline

Definition at line 20 of file HcalSourcePositionData.h.

References sourceId_.

Referenced by operator<<().

int HcalSourcePositionData::speed ( ) const
inline

Definition at line 17 of file HcalSourcePositionData.h.

References speed_.

Referenced by operator<<().

int HcalSourcePositionData::status ( ) const
inline

Definition at line 13 of file HcalSourcePositionData.h.

References status_.

Referenced by operator<<().

int HcalSourcePositionData::tubeId ( ) const
inline

Definition at line 18 of file HcalSourcePositionData.h.

References tubeId_.

Referenced by operator<<().

Member Data Documentation

int HcalSourcePositionData::driverId_
private

Definition at line 50 of file HcalSourcePositionData.h.

Referenced by driverId().

int HcalSourcePositionData::indexCounter_
private

Definition at line 40 of file HcalSourcePositionData.h.

Referenced by indexCounter().

int HcalSourcePositionData::messageCounter_
private

Definition at line 39 of file HcalSourcePositionData.h.

Referenced by messageCounter().

int HcalSourcePositionData::motorCurrent_
private

Definition at line 47 of file HcalSourcePositionData.h.

Referenced by motorCurrent().

int HcalSourcePositionData::reelCounter_
private

Definition at line 41 of file HcalSourcePositionData.h.

Referenced by reelCounter().

int HcalSourcePositionData::sourceId_
private

Definition at line 51 of file HcalSourcePositionData.h.

Referenced by sourceId().

int HcalSourcePositionData::speed_
private

Definition at line 48 of file HcalSourcePositionData.h.

Referenced by speed().

int HcalSourcePositionData::status_
private

Definition at line 46 of file HcalSourcePositionData.h.

Referenced by status().

int HcalSourcePositionData::timestamp1_sec_
private

Definition at line 42 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp1_usec_
private

Definition at line 43 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_sec_
private

Definition at line 44 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_usec_
private

Definition at line 45 of file HcalSourcePositionData.h.

int HcalSourcePositionData::tubeId_
private

Definition at line 49 of file HcalSourcePositionData.h.

Referenced by tubeId().