#include <EESrFlag.h>
Public Types | |
typedef EcalScDetId | key_type |
Public Member Functions | |
EESrFlag () | |
EESrFlag (const EcalScDetId &sc, const int &flag) | |
const EcalScDetId & | id () const |
Private Attributes | |
EcalScDetId | scId_ |
This class holds a Selective Readout Flag (SRF) associated to an ECAL endcap supercrystal.
Definition at line 14 of file EESrFlag.h.
typedef EcalScDetId EESrFlag::key_type |
Definition at line 18 of file EESrFlag.h.
EESrFlag::EESrFlag | ( | ) | [inline] |
EESrFlag::EESrFlag | ( | const EcalScDetId & | sc, |
const int & | flag | ||
) | [inline] |
Constructor
sc | supercrystal det id |
flag | the srp flag, an integer in [0,7]. See constants SRF_xxx in EcalSrFlags class. |
Definition at line 29 of file EESrFlag.h.
References Exception, and EcalSrFlag::flag_.
: scId_(sc){ //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 EcalScDetId& EESrFlag::id | ( | void | ) | const [inline, virtual] |
Implements EcalSrFlag.
Definition at line 38 of file EESrFlag.h.
References scId_.
Referenced by EcalSelectiveReadoutValidation::analyzeEE(), EcalSimRawData::getSrfs(), operator<<(), and EcalSelectiveReadoutProducer::printSrFlags().
{ return scId_;}
EcalScDetId EESrFlag::scId_ [private] |