Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
13
class
HcalTriggerPrimitiveSample
{
14
public
:
15
HcalTriggerPrimitiveSample
();
16
HcalTriggerPrimitiveSample
(uint16_t
data
);
17
HcalTriggerPrimitiveSample
(
int
encodedEt,
bool
finegrain,
int
slb
,
int
slbchan);
18
20
uint16_t
raw
()
const
{
return
theSample
; }
22
int
compressedEt
()
const
{
return
theSample
&0xFF; }
24
bool
fineGrain
()
const
{
return
(
theSample
&0x100)!=0; }
26
int
slb
()
const
{
return
((
theSample
>>13)&0x7); }
28
int
slbChan
()
const
{
return
(
theSample
>>11)&0x3; }
30
int
slbAndChan
()
const
{
return
(
theSample
>>11)&0x1F; }
31
32
private
:
33
uint16_t
theSample
;
34
};
35
36
std::ostream&
operator<<
(std::ostream&
s
,
const
HcalTriggerPrimitiveSample
& samp);
37
38
39
#endif
HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample
HcalTriggerPrimitiveSample()
Definition:
HcalTriggerPrimitiveSample.cc:4
HcalTriggerPrimitiveSample::theSample
uint16_t theSample
Definition:
HcalTriggerPrimitiveSample.h:33
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:28
HcalTriggerPrimitiveSample::slbAndChan
int slbAndChan() const
get the id channel
Definition:
HcalTriggerPrimitiveSample.h:30
HcalTriggerPrimitiveSample::raw
uint16_t raw() const
get the raw word
Definition:
HcalTriggerPrimitiveSample.h:20
HcalTriggerPrimitiveSample
Definition:
HcalTriggerPrimitiveSample.h:13
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
HcalTriggerPrimitiveSample::slb
int slb() const
get the slb site number
Definition:
HcalTriggerPrimitiveSample.h:26
HcalTriggerPrimitiveSample::fineGrain
bool fineGrain() const
get the fine-grain bit
Definition:
HcalTriggerPrimitiveSample.h:24
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
HcalTriggerPrimitiveSample::compressedEt
int compressedEt() const
get the encoded/compressed Et
Definition:
HcalTriggerPrimitiveSample.h:22
Generated for CMSSW Reference Manual by
1.8.5