Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:51

0001 #ifndef __PACKET_CDEVPOLTARGET_H__
0002 #define __PACKET_CDEVPOLTARGET_H__
0003 
0004 #include <packet_w124.h>
0005 
0006 /**
0007    This is the packet decoding the CDEV poltarget data.
0008    It inherits from Packet\_w4 because the data are 32bit entities.
0009 */
0010 #ifndef __CINT__
0011 class WINDOWSEXPORT Packet_cdevpoltarget : public Packet_w4 {
0012 #else
0013 class  Packet_cdevpoltarget : public Packet_w4 {
0014 #endif
0015 
0016 public:
0017   Packet_cdevpoltarget(PACKET_ptr);
0018 
0019   /**
0020 
0021 The only supported interface of the PolarimeterTarget packet is the 
0022 \begin{verbatim}
0023  packet->iValue(i,"WHAT") 
0024 \end{verbatim}
0025 call, which returns a int value.
0026 The supported "WHAT" values are:
0027 \begin{verbatim}
0028 packet->iValue(i,"positionEncLinear")  ; returns 
0029 packet->iValue(i,"positionEncRot")  ; returns
0030 
0031 \end{verbatim}
0032 
0033 
0034   */
0035  
0036 
0037   int      iValue(const int channel,const char *what);
0038 
0039 
0040   void  dump ( OSTREAM& ) ;
0041   
0042 protected:
0043   virtual int *decode (int *);
0044   struct cdevPolTargetData *ps;
0045 
0046 
0047 };
0048 
0049 #endif /* __PACKET_CDEVPOLTARGET_H__ */