#include <EBSrFlag.h>
Public Types | |
typedef EcalTrigTowerDetId | key_type |
Public Member Functions | |
EBSrFlag () | |
EBSrFlag (const EcalTrigTowerDetId &tt, const int &flag) | |
const EcalTrigTowerDetId & | id () const |
Private Attributes | |
EcalTrigTowerDetId | ttId_ |
This class holds a Selective Readout Flag (SRF) associated to an ECAL barrel trigger tower.
Definition at line 15 of file EBSrFlag.h.
typedef EcalTrigTowerDetId EBSrFlag::key_type |
Definition at line 17 of file EBSrFlag.h.
EBSrFlag::EBSrFlag | ( | ) | [inline] |
EBSrFlag::EBSrFlag | ( | const EcalTrigTowerDetId & | tt, |
const int & | flag | ||
) | [inline] |
Constructor
tt | trigger tower det id. |
flag | the srp flag, an integer in [0,7]. See constants SRF_xxx in EcalSrFlags class. |
Definition at line 28 of file EBSrFlag.h.
References Exception, and EcalSrFlag::flag_.
: ttId_(tt){ //SRP flag is coded on 3 bits: if(flag<0 || flag>0x7) throw cms::Exception("InvalidValue", "srp flag greater than 0x7 or negative."); flag_ = (unsigned char) flag; }
const EcalTrigTowerDetId& EBSrFlag::id | ( | void | ) | const [inline, virtual] |
Implements EcalSrFlag.
Definition at line 37 of file EBSrFlag.h.
References ttId_.
Referenced by EcalSelectiveReadoutValidation::analyzeEB(), EcalSimRawData::getSrfs(), operator<<(), and EcalSelectiveReadoutProducer::printSrFlags().
{ return ttId_;}
EcalTrigTowerDetId EBSrFlag::ttId_ [private] |