CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTriggerPrimitiveDigi.h
Go to the documentation of this file.
1 #ifndef HCALTRIGGERPRIMITIVEDIGI_H
2 #define HCALTRIGGERPRIMITIVEDIGI_H 1
3 
4 #include <ostream>
5 #include <vector>
8 
16 public:
18 
19  HcalTriggerPrimitiveDigi(); // for persistence
20  explicit HcalTriggerPrimitiveDigi(const HcalTrigTowerDetId& id);
21 
22  const HcalTrigTowerDetId& id() const { return id_; }
23  int size() const { return (size_&0xF); }
24  int presamples() const { return hcalPresamples_&0xF; }
25 
27  bool zsMarkAndPass() const { return (hcalPresamples_&0x10); }
29  bool zsUnsuppressed() const { return (hcalPresamples_&0x20); }
30 
31  void setZSInfo(bool unsuppressed, bool markAndPass);
32 
33  const HcalTriggerPrimitiveSample& operator[](int i) const { return data_[i]; }
34  const HcalTriggerPrimitiveSample& sample(int i) const { return data_[i]; }
35 
37  const HcalTriggerPrimitiveSample& t0() const { return data_[presamples()]; }
39  bool SOI_fineGrain() const { return t0().fineGrain(); }
41  int SOI_compressedEt() const { return t0().compressedEt(); }
42 
43  void setSize(int size);
44  void setPresamples(int ps);
45  void setSample(int i, const HcalTriggerPrimitiveSample& sam) { data_[i]=sam; }
46 
47  static const int MAXSAMPLES = 10;
48 private:
50  int size_;
53 };
54 
55 std::ostream& operator<<(std::ostream& s, const HcalTriggerPrimitiveDigi& digi);
56 
57 
58 #endif
int i
Definition: DBlmapReader.cc:9
void setSample(int i, const HcalTriggerPrimitiveSample &sam)
const HcalTriggerPrimitiveSample & t0() const
Full &quot;Sample of Interest&quot;.
void setZSInfo(bool unsuppressed, bool markAndPass)
bool zsMarkAndPass() const
was ZS MarkAndPass?
const HcalTriggerPrimitiveSample & operator[](int i) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool zsUnsuppressed() const
was ZS unsuppressed?
HcalTrigTowerDetId key_type
For the sorted collection.
int SOI_compressedEt() const
Compressed ET for the &quot;Sample of Interest&quot;.
const HcalTriggerPrimitiveSample & sample(int i) const
bool fineGrain() const
get the fine-grain bit
bool SOI_fineGrain() const
Fine-grain bit for the &quot;Sample of Interest&quot;.
HcalTriggerPrimitiveSample data_[MAXSAMPLES]
int compressedEt() const
get the encoded/compressed Et
const HcalTrigTowerDetId & id() const