CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EESrFlag.h
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
2 
3 #ifndef EESRFLAG_H
4 #define EESRFLAG_H
5 
9 
13 class EESrFlag: public EcalSrFlag {
14 public:
15 
16 public:
17  typedef EcalScDetId key_type; //key for edm::SortedCollection
18 
19 public:
22  EESrFlag() {};
23 
28  EESrFlag(const EcalScDetId& sc, const int& flag): scId_(sc){
29  //SRP flag is coded on 3 bits:
30  if(flag<0 || flag>0x7) throw cms::Exception("InvalidValue", "srp flag greater than 0x7 or negative.");
31  flag_ = (unsigned char) flag;
32  }
33 
37  const EcalScDetId& id() const { return scId_;}
38 
39 private:
43 };
44 
45 
46 std::ostream& operator<<(std::ostream& s, const EESrFlag& digi);
47 
48 #endif //EESRFLAG_H not defined
unsigned char flag_
Definition: EcalSrFlag.h:76
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
EESrFlag(const EcalScDetId &sc, const int &flag)
Definition: EESrFlag.h:28
EcalScDetId key_type
Definition: EESrFlag.h:17
const EcalScDetId & id() const
Definition: EESrFlag.h:37
EcalScDetId scId_
Definition: EESrFlag.h:42
EESrFlag()
Definition: EESrFlag.h:22