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 //$Id: EESrFlag.h,v 1.2 2007/03/27 09:55:00 meridian Exp $
3 
4 #ifndef EESRFLAG_H
5 #define EESRFLAG_H
6 
10 
14 class EESrFlag: public EcalSrFlag {
15 public:
16 
17 public:
18  typedef EcalScDetId key_type; //key for edm::SortedCollection
19 
20 public:
23  EESrFlag() {};
24 
29  EESrFlag(const EcalScDetId& sc, const int& flag): scId_(sc){
30  //SRP flag is coded on 3 bits:
31  if(flag<0 || flag>0x7) throw cms::Exception("InvalidValue", "srp flag greater than 0x7 or negative.");
32  flag_ = (unsigned char) flag;
33  }
34 
38  const EcalScDetId& id() const { return scId_;}
39 
40 private:
44 };
45 
46 
47 std::ostream& operator<<(std::ostream& s, const EESrFlag& digi);
48 
49 #endif //EESRFLAG_H not defined
long int flag
Definition: mlp_lapack.h:47
unsigned char flag_
Definition: EcalSrFlag.h:77
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
EESrFlag(const EcalScDetId &sc, const int &flag)
Definition: EESrFlag.h:29
EcalScDetId key_type
Definition: EESrFlag.h:18
const EcalScDetId & id() const
Definition: EESrFlag.h:38
EcalScDetId scId_
Definition: EESrFlag.h:43
EESrFlag()
Definition: EESrFlag.h:23