test
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
 
std::string lastCommand () const
 
std::string message () const
 
int messageCounter () const
 
int motorCurrent () const
 
int motorVoltage () 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 motor_voltage, int driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeDescFromSD, std::string lastCommand, std::string message)
 
int sourceId () const
 
int speed () const
 
int status () const
 
std::string tubeDescriptionFromSD () const
 
int tubeId () const
 
std::string tubeNameFromCoord () const
 
 ~HcalSourcePositionData ()
 

Private Attributes

int driverId_
 
int indexCounter_
 
std::string lastCommand_
 
std::string message_
 
int messageCounter_
 
int motorCurrent_
 
int motorVoltage_
 
int reelCounter_
 
int sourceId_
 
int status_
 
int timestamp1_sec_
 
int timestamp1_usec_
 
int timestamp2_sec_
 
int timestamp2_usec_
 
std::string tubeDescriptionFromSD_
 
int tubeId_
 
std::string tubeNameFromCoord_
 

Detailed Description

Definition at line 8 of file HcalSourcePositionData.h.

Constructor & Destructor Documentation

HcalSourcePositionData::HcalSourcePositionData ( )

Definition at line 6 of file HcalSourcePositionData.cc.

6  {
9  reelCounter_=0;
14  status_=0;
15  motorCurrent_=0;
16  motorVoltage_=0;
17  tubeId_=-1;
18  driverId_=-1;
19  sourceId_=-1;
22  lastCommand_="";
23  message_="";
24 }
HcalSourcePositionData::~HcalSourcePositionData ( )
inline

Definition at line 12 of file HcalSourcePositionData.h.

12 {}

Member Function Documentation

int HcalSourcePositionData::driverId ( ) const
inline

Definition at line 22 of file HcalSourcePositionData.h.

References driverId_.

Referenced by operator<<().

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

Definition at line 67 of file HcalSourcePositionData.cc.

Referenced by operator<<().

67  {
69  useconds=timestamp2_usec_;
70 }
double seconds()
void HcalSourcePositionData::getDriverTimestamp ( int &  seconds,
int &  useconds 
) const

Definition at line 62 of file HcalSourcePositionData.cc.

Referenced by operator<<().

62  {
64  useconds=timestamp1_usec_;
65 }
double seconds()
int HcalSourcePositionData::indexCounter ( ) const
inline

Definition at line 16 of file HcalSourcePositionData.h.

References indexCounter_.

Referenced by operator<<().

std::string HcalSourcePositionData::lastCommand ( ) const
inline

Definition at line 26 of file HcalSourcePositionData.h.

References lastCommand_.

Referenced by operator<<().

26 { return lastCommand_; }
std::string HcalSourcePositionData::message ( ) const
inline

Definition at line 27 of file HcalSourcePositionData.h.

References message_.

Referenced by operator<<().

27 { return message_; }
int HcalSourcePositionData::messageCounter ( ) const
inline

Definition at line 14 of file HcalSourcePositionData.h.

References messageCounter_.

Referenced by operator<<().

int HcalSourcePositionData::motorCurrent ( ) const
inline

Definition at line 18 of file HcalSourcePositionData.h.

References motorCurrent_.

Referenced by operator<<().

int HcalSourcePositionData::motorVoltage ( ) const
inline

Definition at line 20 of file HcalSourcePositionData.h.

References motorVoltage_.

Referenced by operator<<().

int HcalSourcePositionData::reelCounter ( ) const
inline

Definition at line 17 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  motor_voltage,
int  driver_id,
int  source_id,
std::string  tubeNameFromCoord,
std::string  tubeDescFromSD,
std::string  lastCommand,
std::string  message 
)

Definition at line 26 of file HcalSourcePositionData.cc.

References python.rootplot.argparse::message, and mps_update::status.

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

42 {
43 
44  messageCounter_=message_counter;
45  indexCounter_=index_counter;
46  reelCounter_=reel_counter;
47  timestamp1_sec_=timestamp1_sec;
48  timestamp1_usec_=timestamp1_usec;
49  timestamp2_sec_=timestamp2_sec;
50  timestamp2_usec_=timestamp2_usec;
52  motorCurrent_=motor_current;
53  motorVoltage_=motor_voltage;
54  driverId_=driver_id;
55  sourceId_=source_id;
57  tubeDescriptionFromSD_=tubeDescFromSD;
60 }
std::string tubeNameFromCoord() const
std::string lastCommand() const
std::string message() const
int HcalSourcePositionData::sourceId ( ) const
inline

Definition at line 23 of file HcalSourcePositionData.h.

References sourceId_.

Referenced by operator<<().

int HcalSourcePositionData::speed ( ) const
inline

Definition at line 19 of file HcalSourcePositionData.h.

19 { return -1; } // no longer implemented
int HcalSourcePositionData::status ( ) const
inline

Definition at line 15 of file HcalSourcePositionData.h.

References status_.

Referenced by operator<<().

std::string HcalSourcePositionData::tubeDescriptionFromSD ( ) const
inline

Definition at line 25 of file HcalSourcePositionData.h.

References tubeDescriptionFromSD_.

Referenced by operator<<().

25 { return tubeDescriptionFromSD_; }
int HcalSourcePositionData::tubeId ( ) const
inline

Definition at line 21 of file HcalSourcePositionData.h.

Referenced by operator<<().

21 { return -1; } // no longer implemented
std::string HcalSourcePositionData::tubeNameFromCoord ( ) const
inline

Definition at line 24 of file HcalSourcePositionData.h.

References tubeNameFromCoord_.

Referenced by operator<<().

24 { return tubeNameFromCoord_; }

Member Data Documentation

int HcalSourcePositionData::driverId_
private

Definition at line 61 of file HcalSourcePositionData.h.

Referenced by driverId().

int HcalSourcePositionData::indexCounter_
private

Definition at line 51 of file HcalSourcePositionData.h.

Referenced by indexCounter().

std::string HcalSourcePositionData::lastCommand_
private

Definition at line 65 of file HcalSourcePositionData.h.

Referenced by lastCommand().

std::string HcalSourcePositionData::message_
private

Definition at line 66 of file HcalSourcePositionData.h.

Referenced by message().

int HcalSourcePositionData::messageCounter_
private

Definition at line 50 of file HcalSourcePositionData.h.

Referenced by messageCounter().

int HcalSourcePositionData::motorCurrent_
private

Definition at line 58 of file HcalSourcePositionData.h.

Referenced by motorCurrent().

int HcalSourcePositionData::motorVoltage_
private

Definition at line 59 of file HcalSourcePositionData.h.

Referenced by motorVoltage().

int HcalSourcePositionData::reelCounter_
private

Definition at line 52 of file HcalSourcePositionData.h.

Referenced by reelCounter().

int HcalSourcePositionData::sourceId_
private

Definition at line 62 of file HcalSourcePositionData.h.

Referenced by sourceId().

int HcalSourcePositionData::status_
private

Definition at line 57 of file HcalSourcePositionData.h.

Referenced by status().

int HcalSourcePositionData::timestamp1_sec_
private

Definition at line 53 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp1_usec_
private

Definition at line 54 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_sec_
private

Definition at line 55 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_usec_
private

Definition at line 56 of file HcalSourcePositionData.h.

std::string HcalSourcePositionData::tubeDescriptionFromSD_
private

Definition at line 64 of file HcalSourcePositionData.h.

Referenced by tubeDescriptionFromSD().

int HcalSourcePositionData::tubeId_
private

Definition at line 60 of file HcalSourcePositionData.h.

std::string HcalSourcePositionData::tubeNameFromCoord_
private

Definition at line 63 of file HcalSourcePositionData.h.

Referenced by tubeNameFromCoord().