ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
packet_idcdevdescr.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file packet_idcdevdescr.h
1 #ifndef __PACKET_IDCDEVDESCR_H__
2 #define __PACKET_IDCDEVDESCR_H__
3 
4 
5 #include "packet_w124.h"
6 #include <set>
7 #include <vector>
8 
13 #ifndef __CINT__
15 #else
16 class Packet_idcdevdescr : public Packet_w1 {
17 #endif
18 
19 public:
22 
23  double dValue(const int channel, const char *what);
24 
25  void dump ( OSTREAM& os=COUT) ;
26 
27 protected:
28 
30 
31  virtual int *decode ();
32  int *decode(int*) { return decode(); } // unhide Packet_w1::decode(int*)
33 
34  struct namedVector
35  {
36  char name[200];
37  std::vector<double> values;
38  };
39 
40 
41 
43  public std::binary_function<const namedVector *, const namedVector *, bool>
44  {
45  bool operator() (const namedVector *lhs, const namedVector *rhs) const
46  {
47  return ( strcmp ( lhs->name, rhs->name) < 0 );
48  }
49  };
50 
51 
52  typedef std::set<namedVector *, valuesetPtrLess> packetidcdevdescrSet;
53  typedef packetidcdevdescrSet::iterator packetidcdevdescrSetiter;
54 
56 
57 
58 };
59 
60 #endif /* __PACKET_IDCDEVDESCR_H__ */