Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
HcalDigi
interface
HcalTriggerPrimitiveSample.h
Go to the documentation of this file.
1
#ifndef HCALTRIGGERPRIMITIVESAMPLE_H
2
#define HCALTRIGGERPRIMITIVESAMPLE_H 1
3
4
#include <boost/cstdint.hpp>
5
#include <ostream>
6
11
class
HcalTriggerPrimitiveSample
{
12
public
:
13
HcalTriggerPrimitiveSample
();
14
HcalTriggerPrimitiveSample
(uint16_t
data
);
15
HcalTriggerPrimitiveSample
(
int
encodedEt,
bool
finegrain,
int
slb
,
int
slbchan);
16
18
uint16_t
raw
()
const
{
return
theSample
; }
20
int
compressedEt
()
const
{
return
theSample
&0xFF; }
22
bool
fineGrain
()
const
{
return
(
theSample
&0x100)!=0; }
24
int
slb
()
const
{
return
((
theSample
>>13)&0x7); }
26
int
slbChan
()
const
{
return
(
theSample
>>11)&0x3; }
28
int
slbAndChan
()
const
{
return
(
theSample
>>11)&0x1F; }
29
30
private
:
31
uint16_t
theSample
;
32
};
33
34
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalTriggerPrimitiveSample
& samp);
35
36
37
#endif
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition:
HcalTriggerPrimitiveSample.cc:4
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
HcalTriggerPrimitiveSample.h:31
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
HcalTriggerPrimitiveSample::slbChan
int slbChan() const
get the slb channel number
Definition:
HcalTriggerPrimitiveSample.h:26
HcalTriggerPrimitiveSample::slbAndChan
int slbAndChan() const
get the id channel
Definition:
HcalTriggerPrimitiveSample.h:28
HcalTriggerPrimitiveSample::raw
uint16_t raw() const
get the raw word
Definition:
HcalTriggerPrimitiveSample.h:18
HcalTriggerPrimitiveSample
Definition:
HcalTriggerPrimitiveSample.h:11
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
HcalTriggerPrimitiveSample::slb
int slb() const
get the slb site number
Definition:
HcalTriggerPrimitiveSample.h:24
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain() const
get the fine-grain bit
Definition:
HcalTriggerPrimitiveSample.h:22
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition:
HcalTriggerPrimitiveSample.h:20
Generated for CMSSW Reference Manual by
1.8.5