Main Page
Namespaces
Classes
Package Documentation
DataFormats
Scalers
src
L1AcceptBunchCrossing.cc
Go to the documentation of this file.
1
/*
2
* File: DataFormats/Scalers/src/L1AcceptBunchCrossing.cc (W.Badgett)
3
*/
4
5
#include "
DataFormats/Scalers/interface/L1AcceptBunchCrossing.h
"
6
#include "
DataFormats/Scalers/interface/ScalersRaw.h
"
7
#include <cstdio>
8
9
L1AcceptBunchCrossing::L1AcceptBunchCrossing
() :
10
l1AcceptOffset_(0),
11
orbitNumber_(0),
12
bunchCrossing_(0),
13
eventType_(0)
14
{
15
}
16
17
L1AcceptBunchCrossing::L1AcceptBunchCrossing
(
const
int
l1AcceptOffset__,
18
const
unsigned
int
orbitNumber__,
19
const
unsigned
int
bunchCrossing__,
20
const
unsigned
int
eventType__) :
21
l1AcceptOffset_
(l1AcceptOffset__),
22
orbitNumber_
(orbitNumber__),
23
bunchCrossing_
(bunchCrossing__),
24
eventType_
(eventType__)
25
{
26
}
27
28
L1AcceptBunchCrossing::L1AcceptBunchCrossing
(
const
int
index
,
29
const
unsigned
long
long
data
)
30
{
31
l1AcceptOffset_
= -
index
;
32
orbitNumber_
= (
unsigned
int
) (( data >>
ORBIT_NUMBER_SHIFT
)
33
&
ORBIT_NUMBER_MASK
);
34
bunchCrossing_
= (
unsigned
int
) (( data >>
BUNCH_CROSSING_SHIFT
)
35
&
BUNCH_CROSSING_MASK
);
36
eventType_
= (
unsigned
int
) (( data >>
EVENT_TYPE_SHIFT
)
37
&
EVENT_TYPE_MASK
);
38
}
39
40
L1AcceptBunchCrossing::~L1AcceptBunchCrossing
() { }
41
43
std::ostream&
operator<<
(std::ostream&
s
,
const
L1AcceptBunchCrossing
&
c
)
44
{
45
char
line
[128];
46
47
sprintf(line,
48
"L1AcceptBC Offset:%2d Orbit:%10d [0x%8.8X] BC:%4d [0x%3.3X] EvtTyp:%d"
,
49
c.
l1AcceptOffset
(),
50
c.
orbitNumber
(),
51
c.
orbitNumber
(),
52
c.
bunchCrossing
(),
53
c.
bunchCrossing
(),
54
c.
eventType
());
55
s << line << std::endl;
56
57
return
s
;
58
}
L1AcceptBunchCrossing::bunchCrossing
unsigned int bunchCrossing() const
Definition:
L1AcceptBunchCrossing.h:69
L1AcceptBunchCrossing::EVENT_TYPE_MASK
Definition:
L1AcceptBunchCrossing.h:58
L1AcceptBunchCrossing
Definition:
L1AcceptBunchCrossing.h:38
L1AcceptBunchCrossing::L1AcceptBunchCrossing
L1AcceptBunchCrossing()
Definition:
L1AcceptBunchCrossing.cc:9
L1AcceptBunchCrossing::orbitNumber_
unsigned int orbitNumber_
Definition:
L1AcceptBunchCrossing.h:81
geometryCSVtoXML.line
line
Definition:
geometryCSVtoXML.py:15
L1AcceptBunchCrossing::l1AcceptOffset
int l1AcceptOffset() const
Definition:
L1AcceptBunchCrossing.h:67
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
L1AcceptBunchCrossing::EVENT_TYPE_SHIFT
Definition:
L1AcceptBunchCrossing.h:57
L1AcceptBunchCrossing::ORBIT_NUMBER_MASK
Definition:
L1AcceptBunchCrossing.h:54
createfilelist.int
int
Definition:
createfilelist.py:10
operator<<
std::ostream & operator<<(std::ostream &s, const L1AcceptBunchCrossing &c)
Pretty-print operator for L1AcceptBunchCrossing.
Definition:
L1AcceptBunchCrossing.cc:43
L1AcceptBunchCrossing::bunchCrossing_
unsigned int bunchCrossing_
Definition:
L1AcceptBunchCrossing.h:82
L1AcceptBunchCrossing::BUNCH_CROSSING_SHIFT
Definition:
L1AcceptBunchCrossing.h:55
diffTreeTool.index
index
Definition:
diffTreeTool.py:159
L1AcceptBunchCrossing::~L1AcceptBunchCrossing
virtual ~L1AcceptBunchCrossing()
Definition:
L1AcceptBunchCrossing.cc:40
L1AcceptBunchCrossing::BUNCH_CROSSING_MASK
Definition:
L1AcceptBunchCrossing.h:56
L1AcceptBunchCrossing.h
L1AcceptBunchCrossing::l1AcceptOffset_
int l1AcceptOffset_
Definition:
L1AcceptBunchCrossing.h:80
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
ScalersRaw.h
L1AcceptBunchCrossing::eventType
unsigned int eventType() const
Definition:
L1AcceptBunchCrossing.h:70
L1AcceptBunchCrossing::eventType_
unsigned int eventType_
Definition:
L1AcceptBunchCrossing.h:83
L1AcceptBunchCrossing::orbitNumber
unsigned int orbitNumber() const
Definition:
L1AcceptBunchCrossing.h:68
L1AcceptBunchCrossing::ORBIT_NUMBER_SHIFT
Definition:
L1AcceptBunchCrossing.h:53
Generated for CMSSW Reference Manual by
1.8.11