CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17  public:
19 
20  EcalPseudoStripInputDigi(); // for persistence
22 
23  const EcalTriggerElectronicsId& id() const { return id_; }
24  int size() const { return size_; }
25 
26  const EcalPseudoStripInputSample& operator[](int i) const { return data_[i]; }
27  const EcalPseudoStripInputSample& sample(int i) const { return data_[i]; }
28 
29  void setSize(int size);
30  void setSample(int i, const EcalPseudoStripInputSample& sam) { data_[i]=sam; }
31  void setSampleValue(int i, uint16_t value) { data_[i].setValue(value); }
32 
33  static const int MAXSAMPLES = 20;
34 
36  int pseudoStripInput() const;
37 
38 
40  bool fineGrain() const;
41 
43  bool isDebug() const;
44 
46  int sampleOfInterest() const;
47 
48  private:
49 
51  int size_;
52  std::vector<EcalPseudoStripInputSample> data_;
53 };
54 
55 
56 std::ostream& operator<<(std::ostream& s, const EcalPseudoStripInputDigi& digi);
57 
58 
59 
60 #endif
int i
Definition: DBlmapReader.cc:9
const EcalPseudoStripInputSample & operator[](int i) const
const EcalTriggerElectronicsId & id() const
EcalTriggerElectronicsId key_type
For the sorted collection.
const EcalPseudoStripInputSample & sample(int i) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int pseudoStripInput() const
get the encoded/compressed Et of interesting sample
EcalTriggerElectronicsId id_
bool fineGrain() const
get the fine-grain bit of interesting sample
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 &gt; 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...