test
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,
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){
21
_buffer
[0] = s1a;
_buffer
[1] = s1b;
_buffer
[2] = s1c;
_buffer
[3] = s2a;
_buffer
[4] = s2b;
_buffer
[5] = s2c;
_buffer
[6] = s3a;
_buffer
[7] = s3b;
_buffer
[8] = s3c;
_buffer
[9] = s4a;
_buffer
[10] = s4b;
_buffer
[11] = s4c;
22
}
23
25
void
CopyFromBuffer
(
PhiMemoryImage::value_ptr
rhs,
int
offset
);
26
27
void
SetBit
(
int
station
,
int
bitNumber,
bool
value
=
true
);
28
bool
GetBit
(
int
station
,
int
bitNumber)
const
;
29
30
void
BitShift
(
int
nBits);
// nBits > 0 executes << nbits, nBits <0 is >> nBits
31
void
Print
();
32
33
void
SetBuff
(
int
chunk,
int
value
){
_buffer
[chunk] =
value
;}
34
35
void
printbuff
();
36
37
// const PhiMemoryImage::value_type & operator [] (int index) const
38
// {return _buffer[index];}
39
40
PhiMemoryImage::value_type
&
operator []
(
int
index
)
41
{
return
_buffer
[
index
];}
42
43
44
private
:
45
46
PhiMemoryImage::value_type
_buffer
[
PhiMemoryImage::TOTAL_UNITS
];
47
int
_keyStationOffset
;
48
49
};
50
51
#endif
PhiMemoryImage::_keyStationOffset
int _keyStationOffset
Definition:
PhiMemoryImage.h:47
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:220
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:107
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:40
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:33
PhiMemoryImage::GetBit
bool GetBit(int station, int bitNumber) const
Definition:
PhiMemoryImage.cc:77
PhiMemoryImage::Print
void Print()
Definition:
PhiMemoryImage.cc:196
PhiMemoryImage::PhiMemoryImage
PhiMemoryImage()
constructors///
Definition:
PhiMemoryImage.cc:4
PhiMemoryImage::_buffer
PhiMemoryImage::value_type _buffer[PhiMemoryImage::TOTAL_UNITS]
Definition:
PhiMemoryImage.h:46
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