Main Page
Namespaces
Classes
Package Documentation
DataFormats
EcalDigi
interface
EcalPseudoStripInputDigi.h
Go to the documentation of this file.
1
#ifndef ECALPSEUDOSTRIPINPUTDIGI_H
2
#define ECALPSEUDOSTRIPINPUTDIGI_H
3
4
#include <ostream>
5
#include <vector>
6
#include "
DataFormats/EcalDetId/interface/EcalTriggerElectronicsId.h
"
7
#include "
DataFormats/EcalDigi/interface/EcalPseudoStripInputSample.h
"
8
9
10
15
class
EcalPseudoStripInputDigi
{
16
public
:
17
typedef
EcalTriggerElectronicsId
key_type
;
18
19
EcalPseudoStripInputDigi
();
// for persistence
20
explicit
EcalPseudoStripInputDigi
(
const
EcalTriggerElectronicsId
&
id
);
21
22
const
EcalTriggerElectronicsId
&
id
()
const
{
return
id_
; }
23
int
size
()
const
{
return
size_
; }
24
25
const
EcalPseudoStripInputSample
&
operator[]
(
int
i
)
const
{
return
data_
[
i
]; }
26
const
EcalPseudoStripInputSample
&
sample
(
int
i
)
const
{
return
data_
[
i
]; }
27
28
void
setSize
(
int
size
);
29
void
setSample
(
int
i
,
const
EcalPseudoStripInputSample
& sam) {
data_
[
i
]=sam; }
30
void
setSampleValue
(
int
i
, uint16_t
value
) {
data_
[
i
].setValue(value); }
31
32
static
const
int
MAXSAMPLES
= 20;
33
35
int
pseudoStripInput
()
const
;
36
37
39
bool
fineGrain
()
const
;
40
42
bool
isDebug
()
const
;
43
45
int
sampleOfInterest
()
const
;
46
47
private
:
48
49
EcalTriggerElectronicsId
id_
;
50
int
size_
;
51
std::vector<EcalPseudoStripInputSample>
data_
;
52
};
53
54
55
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalPseudoStripInputDigi
& digi);
56
57
58
59
#endif
operator<<
std::ostream & operator<<(std::ostream &s, const EcalPseudoStripInputDigi &digi)
Definition:
EcalPseudoStripInputDigi.cc:57
mps_fire.i
i
Definition:
mps_fire.py:269
EcalPseudoStripInputDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition:
EcalPseudoStripInputDigi.h:32
EcalPseudoStripInputDigi::operator[]
const EcalPseudoStripInputSample & operator[](int i) const
Definition:
EcalPseudoStripInputDigi.h:25
EcalPseudoStripInputDigi::id
const EcalTriggerElectronicsId & id() const
Definition:
EcalPseudoStripInputDigi.h:22
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
EcalPseudoStripInputDigi::key_type
EcalTriggerElectronicsId key_type
For the sorted collection.
Definition:
EcalPseudoStripInputDigi.h:17
EcalPseudoStripInputDigi::setSize
void setSize(int size)
Definition:
EcalPseudoStripInputDigi.cc:50
EcalPseudoStripInputDigi::sample
const EcalPseudoStripInputSample & sample(int i) const
Definition:
EcalPseudoStripInputDigi.h:26
EcalPseudoStripInputDigi::pseudoStripInput
int pseudoStripInput() const
get the encoded/compressed Et of interesting sample
Definition:
EcalPseudoStripInputDigi.cc:22
EcalPseudoStripInputDigi::size
int size() const
Definition:
EcalPseudoStripInputDigi.h:23
EcalPseudoStripInputDigi::id_
EcalTriggerElectronicsId id_
Definition:
EcalPseudoStripInputDigi.h:49
EcalTriggerElectronicsId.h
EcalPseudoStripInputDigi
Definition:
EcalPseudoStripInputDigi.h:15
EcalPseudoStripInputDigi::fineGrain
bool fineGrain() const
get the fine-grain bit of interesting sample
Definition:
EcalPseudoStripInputDigi.cc:32
value
Definition:
value.py:1
EcalPseudoStripInputDigi::size_
int size_
Definition:
EcalPseudoStripInputDigi.h:50
EcalPseudoStripInputDigi::setSample
void setSample(int i, const EcalPseudoStripInputSample &sam)
Definition:
EcalPseudoStripInputDigi.h:29
EcalPseudoStripInputDigi::data_
std::vector< EcalPseudoStripInputSample > data_
Definition:
EcalPseudoStripInputDigi.h:51
EcalPseudoStripInputDigi::sampleOfInterest
int sampleOfInterest() const
Gets the interesting sample.
Definition:
EcalPseudoStripInputDigi.cc:11
EcalPseudoStripInputSample
Definition:
EcalPseudoStripInputSample.h:14
EcalPseudoStripInputDigi::isDebug
bool isDebug() const
True if debug mode (# of samples > 1)
Definition:
EcalPseudoStripInputDigi.cc:41
EcalPseudoStripInputDigi::setSampleValue
void setSampleValue(int i, uint16_t value)
Definition:
EcalPseudoStripInputDigi.h:30
EcalTriggerElectronicsId
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
Definition:
EcalTriggerElectronicsId.h:20
EcalPseudoStripInputDigi::EcalPseudoStripInputDigi
EcalPseudoStripInputDigi()
Definition:
EcalPseudoStripInputDigi.cc:4
EcalPseudoStripInputSample.h
Generated for CMSSW Reference Manual by
1.8.11