EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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__
14
class
WINDOWSEXPORT
Packet_idcdevdescr
:
public
Packet_w1
{
15
#else
16
class
Packet_idcdevdescr
:
public
Packet_w1
{
17
#endif
18
19
public
:
20
Packet_idcdevdescr
(
PACKET_ptr
);
21
~
Packet_idcdevdescr
();
22
23
double
dValue(
const
int
channel,
const
char
*what);
24
25
void
dump (
OSTREAM
& os=
COUT
) ;
26
27
protected
:
28
29
int
is_decoded
;
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
42
struct
valuesetPtrLess
:
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
55
packetidcdevdescrSet
nvset
;
56
57
58
};
59
60
#endif
/* __PACKET_IDCDEVDESCR_H__ */
online_distribution
blob
master
newbasic
packet_idcdevdescr.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:55
using
1.8.2 with
EIC GitHub integration