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 tube_id, int driver_id, int source_id, std::string tubeNameFromCoord, std::string tubeNameFromSD, std::string lastCommand, std::string message)
 
int sourceId () const
 
int speed () const
 
int status () const
 
int tubeId () const
 
std::string tubeNameFromCoord () const
 
std::string tubeNameFromSD () 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_
 
int tubeId_
 
std::string tubeNameFromCoord_
 
std::string tubeNameFromSD_
 

Detailed Description

Definition at line 8 of file HcalSourcePositionData.h.

Constructor & Destructor Documentation

HcalSourcePositionData::HcalSourcePositionData ( )

Definition at line 6 of file HcalSourcePositionData.cc.

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

Referenced by operator<<().

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

Definition at line 60 of file HcalSourcePositionData.cc.

Referenced by operator<<().

60  {
62  useconds=timestamp1_usec_;
63 }
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  tube_id,
int  driver_id,
int  source_id,
std::string  tubeNameFromCoord,
std::string  tubeNameFromSD,
std::string  lastCommand,
std::string  message 
)

Definition at line 22 of file HcalSourcePositionData.cc.

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

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

39 {
40 
41  messageCounter_=message_counter;
42  indexCounter_=index_counter;
43  reelCounter_=reel_counter;
44  timestamp1_sec_=timestamp1_sec;
45  timestamp1_usec_=timestamp1_usec;
46  timestamp2_sec_=timestamp2_sec;
47  timestamp2_usec_=timestamp2_usec;
49  motorCurrent_=motor_current;
50  motorVoltage_=motor_voltage;
51  tubeId_=tube_id;
52  driverId_=driver_id;
53  sourceId_=source_id;
58 }
std::string tubeNameFromCoord() const
std::string lastCommand() const
std::string message() const
std::string tubeNameFromSD() 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<<().

int HcalSourcePositionData::tubeId ( ) const
inline

Definition at line 21 of file HcalSourcePositionData.h.

References tubeId_.

Referenced by operator<<().

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

Definition at line 24 of file HcalSourcePositionData.h.

References tubeNameFromCoord_.

Referenced by operator<<().

24 { return tubeNameFromCoord_; }
std::string HcalSourcePositionData::tubeNameFromSD ( ) const
inline

Definition at line 25 of file HcalSourcePositionData.h.

References tubeNameFromSD_.

Referenced by operator<<().

25 { return tubeNameFromSD_; }

Member Data Documentation

int HcalSourcePositionData::driverId_
private

Definition at line 62 of file HcalSourcePositionData.h.

Referenced by driverId().

int HcalSourcePositionData::indexCounter_
private

Definition at line 52 of file HcalSourcePositionData.h.

Referenced by indexCounter().

std::string HcalSourcePositionData::lastCommand_
private

Definition at line 66 of file HcalSourcePositionData.h.

Referenced by lastCommand().

std::string HcalSourcePositionData::message_
private

Definition at line 67 of file HcalSourcePositionData.h.

Referenced by message().

int HcalSourcePositionData::messageCounter_
private

Definition at line 51 of file HcalSourcePositionData.h.

Referenced by messageCounter().

int HcalSourcePositionData::motorCurrent_
private

Definition at line 59 of file HcalSourcePositionData.h.

Referenced by motorCurrent().

int HcalSourcePositionData::motorVoltage_
private

Definition at line 60 of file HcalSourcePositionData.h.

Referenced by motorVoltage().

int HcalSourcePositionData::reelCounter_
private

Definition at line 53 of file HcalSourcePositionData.h.

Referenced by reelCounter().

int HcalSourcePositionData::sourceId_
private

Definition at line 63 of file HcalSourcePositionData.h.

Referenced by sourceId().

int HcalSourcePositionData::status_
private

Definition at line 58 of file HcalSourcePositionData.h.

Referenced by status().

int HcalSourcePositionData::timestamp1_sec_
private

Definition at line 54 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp1_usec_
private

Definition at line 55 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_sec_
private

Definition at line 56 of file HcalSourcePositionData.h.

int HcalSourcePositionData::timestamp2_usec_
private

Definition at line 57 of file HcalSourcePositionData.h.

int HcalSourcePositionData::tubeId_
private

Definition at line 61 of file HcalSourcePositionData.h.

Referenced by tubeId().

std::string HcalSourcePositionData::tubeNameFromCoord_
private

Definition at line 64 of file HcalSourcePositionData.h.

Referenced by tubeNameFromCoord().

std::string HcalSourcePositionData::tubeNameFromSD_
private

Definition at line 65 of file HcalSourcePositionData.h.

Referenced by tubeNameFromSD().