Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
L1TMuonEndCap
interface
PhiMemoryImage.h
Go to the documentation of this file.
1
#ifndef __PHIMEMORYIMAGE_
2
#define __PHIMEMORYIMAGE_
3
4
class
PhiMemoryImage
{
5
6
public
:
7
8
typedef
unsigned
long
int
value_type
;
9
typedef
PhiMemoryImage::value_type
*
value_ptr
;
10
11
static
const
int
STATIONS
= 4;
// number of stations;
12
static
const
int
UNITS
= 3;
// number of value_types per station
13
static
const
int
TOTAL_UNITS
=
UNITS
*
STATIONS
;
14
15
17
PhiMemoryImage
();
18
PhiMemoryImage
(
PhiMemoryImage::value_ptr
buffer,
int
offset
);
19
20
PhiMemoryImage
(
value_type
s1a,
value_type
s1b,
value_type
s1c,
21
value_type
s2a,
value_type
s2b,
value_type
s2c,
22
value_type
s3a,
value_type
s3b,
value_type
s3c,
23
value_type
s4a,
value_type
s4b,
value_type
s4c){
24
_buffer
[0] = s1a;
_buffer
[1] = s1b;
_buffer
[2] = s1c;
25
_buffer
[3] = s2a;
_buffer
[4] = s2b;
_buffer
[5] = s2c;
26
_buffer
[6] = s3a;
_buffer
[7] = s3b;
_buffer
[8] = s3c;
27
_buffer
[9] = s4a;
_buffer
[10] = s4b;
_buffer
[11] = s4c;
28
}
29
31
void
CopyFromBuffer
(
PhiMemoryImage::value_ptr
rhs,
int
offset
);
32
33
void
SetBit
(
int
station
,
int
bitNumber,
bool
value
=
true
);
34
bool
GetBit
(
int
station
,
int
bitNumber)
const
;
35
36
void
BitShift
(
int
nBits);
// nBits > 0 executes << nbits, nBits <0 is >> nBits
37
void
Print
();
38
39
void
SetBuff
(
int
chunk,
int
value
){
_buffer
[chunk] =
value
;}
40
41
void
printbuff
();
42
43
// const PhiMemoryImage::value_type & operator [] (int index) const
44
// {return _buffer[index];}
45
46
PhiMemoryImage::value_type
&
operator []
(
int
index
)
47
{
return
_buffer
[
index
];}
48
49
50
private
:
51
52
PhiMemoryImage::value_type
_buffer
[
PhiMemoryImage::TOTAL_UNITS
];
53
int
_keyStationOffset
;
54
55
};
56
57
#endif
PhiMemoryImage::_keyStationOffset
int _keyStationOffset
Definition:
PhiMemoryImage.h:53
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
PhiMemoryImage::CopyFromBuffer
void CopyFromBuffer(PhiMemoryImage::value_ptr rhs, int offset)
functions///
Definition:
PhiMemoryImage.cc:14
PhiMemoryImage::SetBit
void SetBit(int station, int bitNumber, bool value=true)
Definition:
PhiMemoryImage.cc:31
PhiMemoryImage::printbuff
void printbuff()
Definition:
PhiMemoryImage.cc:215
PhiMemoryImage
Definition:
PhiMemoryImage.h:4
cmsHarvester.index
string index
Definition:
cmsHarvester.py:4379
PhiMemoryImage::STATIONS
static const int STATIONS
Definition:
PhiMemoryImage.h:11
relativeConstraints.station
tuple station
Definition:
relativeConstraints.py:66
PhiMemoryImage::BitShift
void BitShift(int nBits)
Definition:
PhiMemoryImage.cc:103
PhiMemoryImage::PhiMemoryImage
PhiMemoryImage(value_type s1a, value_type s1b, value_type s1c, value_type s2a, value_type s2b, value_type s2c, value_type s3a, value_type s3b, value_type s3c, value_type s4a, value_type s4b, value_type s4c)
Definition:
PhiMemoryImage.h:20
PhiMemoryImage::UNITS
static const int UNITS
Definition:
PhiMemoryImage.h:12
PhiMemoryImage::operator[]
PhiMemoryImage::value_type & operator[](int index)
Definition:
PhiMemoryImage.h:46
hltrates_dqm_sourceclient-live_cfg.offset
tuple offset
Definition:
hltrates_dqm_sourceclient-live_cfg.py:81
PhiMemoryImage::SetBuff
void SetBuff(int chunk, int value)
Definition:
PhiMemoryImage.h:39
PhiMemoryImage::GetBit
bool GetBit(int station, int bitNumber) const
Definition:
PhiMemoryImage.cc:75
PhiMemoryImage::Print
void Print()
Definition:
PhiMemoryImage.cc:191
PhiMemoryImage::PhiMemoryImage
PhiMemoryImage()
constructors///
Definition:
PhiMemoryImage.cc:4
PhiMemoryImage::_buffer
PhiMemoryImage::value_type _buffer[PhiMemoryImage::TOTAL_UNITS]
Definition:
PhiMemoryImage.h:52
PhiMemoryImage::value_type
unsigned long int value_type
Definition:
PhiMemoryImage.h:8
PhiMemoryImage::value_ptr
PhiMemoryImage::value_type * value_ptr
Definition:
PhiMemoryImage.h:9
PhiMemoryImage::TOTAL_UNITS
static const int TOTAL_UNITS
Definition:
PhiMemoryImage.h:13
Generated for CMSSW Reference Manual by
1.8.5