CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EBSrFlag.h
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
2 //$Id: EBSrFlag.h,v 1.2 2007/03/27 09:55:00 meridian Exp $
3 
4 #ifndef EBSRFLAG_H
5 #define EBSRFLAG_H
6 
10 
11 
15 class EBSrFlag: public EcalSrFlag {
16 public:
17  typedef EcalTrigTowerDetId key_type; //key for edm::SortedCollection
18 
19 public:
22  EBSrFlag() {};
23 
28  EBSrFlag(const EcalTrigTowerDetId& tt, const int& flag): ttId_(tt){
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 EcalTrigTowerDetId& id() const { return ttId_;}
38 
39 private:
43 };
44 
45 
46 std::ostream& operator<<(std::ostream& s, const EBSrFlag& digi);
47 
48 #endif //EBSRFLAG_H not defined
long int flag
Definition: mlp_lapack.h:47
unsigned char flag_
Definition: EcalSrFlag.h:77
EBSrFlag()
Definition: EBSrFlag.h:22
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
EcalTrigTowerDetId key_type
Definition: EBSrFlag.h:17
EcalTrigTowerDetId ttId_
Definition: EBSrFlag.h:42
EBSrFlag(const EcalTrigTowerDetId &tt, const int &flag)
Definition: EBSrFlag.h:28
const EcalTrigTowerDetId & id() const
Definition: EBSrFlag.h:37