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 
9 
10 
16  public:
18 
19  EcalPseudoStripInputDigi(); // for persistence
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 
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
std::ostream & operator<<(std::ostream &s, const EcalPseudoStripInputDigi &digi)
const EcalPseudoStripInputSample & operator[](int i) const
const EcalTriggerElectronicsId & id() const
EcalTriggerElectronicsId key_type
For the sorted collection.
const EcalPseudoStripInputSample & sample(int i) const
int pseudoStripInput() const
get the encoded/compressed Et of interesting sample
EcalTriggerElectronicsId id_
bool fineGrain() const
get the fine-grain bit of interesting sample
Definition: value.py:1
void setSample(int i, const EcalPseudoStripInputSample &sam)
std::vector< EcalPseudoStripInputSample > data_
int sampleOfInterest() const
Gets the interesting sample.
bool isDebug() const
True if debug mode (# of samples > 1)
void setSampleValue(int i, uint16_t value)
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...