CMS 3D CMS Logo

EcalPseudoStripInputDigi.h
Go to the documentation of this file.
1 #ifndef ECALPSEUDOSTRIPINPUTDIGI_H
2 #define ECALPSEUDOSTRIPINPUTDIGI_H
3 
4 #include <ostream>
5 #include <vector>
8 
14 public:
16 
17  EcalPseudoStripInputDigi(); // for persistence
19 
20  const EcalTriggerElectronicsId& id() const { return id_; }
21  int size() const { return size_; }
22 
23  const EcalPseudoStripInputSample& operator[](int i) const { return data_[i]; }
24  const EcalPseudoStripInputSample& sample(int i) const { return data_[i]; }
25 
26  void setSize(int size);
27  void setSample(int i, const EcalPseudoStripInputSample& sam) { data_[i] = sam; }
28  void setSampleValue(int i, uint16_t value) { data_[i].setValue(value); }
29 
30  static const int MAXSAMPLES = 20;
31 
33  int pseudoStripInput() const;
34 
36  bool fineGrain() const;
37 
39  bool isDebug() const;
40 
42  int sampleOfInterest() const;
43 
44 private:
46  int size_;
47  std::vector<EcalPseudoStripInputSample> data_;
48 };
49 
50 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputDigi& digi);
51 
52 #endif
mps_fire.i
i
Definition: mps_fire.py:428
EcalPseudoStripInputDigi::id_
EcalTriggerElectronicsId id_
Definition: EcalPseudoStripInputDigi.h:45
EcalTriggerElectronicsId
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
Definition: EcalTriggerElectronicsId.h:18
EcalPseudoStripInputDigi::setSample
void setSample(int i, const EcalPseudoStripInputSample &sam)
Definition: EcalPseudoStripInputDigi.h:27
EcalPseudoStripInputDigi::operator[]
const EcalPseudoStripInputSample & operator[](int i) const
Definition: EcalPseudoStripInputDigi.h:23
EcalPseudoStripInputDigi::sampleOfInterest
int sampleOfInterest() const
Gets the interesting sample.
Definition: EcalPseudoStripInputDigi.cc:8
EcalPseudoStripInputDigi
Definition: EcalPseudoStripInputDigi.h:13
EcalPseudoStripInputDigi::id
const EcalTriggerElectronicsId & id() const
Definition: EcalPseudoStripInputDigi.h:20
EcalPseudoStripInputDigi::data_
std::vector< EcalPseudoStripInputSample > data_
Definition: EcalPseudoStripInputDigi.h:47
EcalPseudoStripInputDigi::isDebug
bool isDebug() const
True if debug mode (# of samples > 1)
Definition: EcalPseudoStripInputDigi.cc:35
EcalPseudoStripInputDigi::setSize
void setSize(int size)
Definition: EcalPseudoStripInputDigi.cc:43
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalPseudoStripInputSample
Definition: EcalPseudoStripInputSample.h:12
EcalPseudoStripInputDigi::key_type
EcalTriggerElectronicsId key_type
For the sorted collection.
Definition: EcalPseudoStripInputDigi.h:15
EcalPseudoStripInputDigi::sample
const EcalPseudoStripInputSample & sample(int i) const
Definition: EcalPseudoStripInputDigi.h:24
EcalPseudoStripInputDigi::setSampleValue
void setSampleValue(int i, uint16_t value)
Definition: EcalPseudoStripInputDigi.h:28
EcalPseudoStripInputDigi::size
int size() const
Definition: EcalPseudoStripInputDigi.h:21
EcalPseudoStripInputDigi::MAXSAMPLES
static const int MAXSAMPLES
Definition: EcalPseudoStripInputDigi.h:30
EcalPseudoStripInputDigi::pseudoStripInput
int pseudoStripInput() const
get the encoded/compressed Et of interesting sample
Definition: EcalPseudoStripInputDigi.cc:18
EcalTriggerElectronicsId.h
value
Definition: value.py:1
EcalPseudoStripInputDigi::fineGrain
bool fineGrain() const
get the fine-grain bit of interesting sample
Definition: EcalPseudoStripInputDigi.cc:27
EcalPseudoStripInputSample.h
EcalPseudoStripInputDigi::size_
int size_
Definition: EcalPseudoStripInputDigi.h:46
EcalPseudoStripInputDigi::EcalPseudoStripInputDigi
EcalPseudoStripInputDigi()
Definition: EcalPseudoStripInputDigi.cc:3
operator<<
std::ostream & operator<<(std::ostream &s, const EcalPseudoStripInputDigi &digi)
Definition: EcalPseudoStripInputDigi.cc:52