CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
EESrFlag Class Reference

#include <EESrFlag.h>

Inheritance diagram for EESrFlag:
EcalSrFlag

Public Types

typedef EcalScDetId key_type
 

Public Member Functions

 EESrFlag ()
 
 EESrFlag (const EcalScDetId &sc, const int &flag)
 
const EcalScDetIdid () const override
 
- Public Member Functions inherited from EcalSrFlag
std::string flagName () const
 
 operator int () const
 
void setValue (const int &flag)
 
int value () const
 
virtual ~EcalSrFlag ()
 

Private Attributes

EcalScDetId scId_
 

Additional Inherited Members

- Static Public Member Functions inherited from EcalSrFlag
static std::string flagName (const int &flag)
 
- Static Public Attributes inherited from EcalSrFlag
static const int SRF_FORCED_MASK = 0x4
 
static const int SRF_FULL = 3
 
static const int SRF_SUPPRESS = 0
 
static const int SRF_ZS1 = 1
 
static const int SRF_ZS2 = 2
 
- Protected Attributes inherited from EcalSrFlag
unsigned char flag_
 

Detailed Description

This class holds a Selective Readout Flag (SRF) associated to an ECAL endcap supercrystal.

Definition at line 13 of file EESrFlag.h.

Member Typedef Documentation

◆ key_type

Definition at line 16 of file EESrFlag.h.

Constructor & Destructor Documentation

◆ EESrFlag() [1/2]

EESrFlag::EESrFlag ( )
inline

Default constructor.

Definition at line 21 of file EESrFlag.h.

21 {}

◆ EESrFlag() [2/2]

EESrFlag::EESrFlag ( const EcalScDetId sc,
const int &  flag 
)
inline

Constructor

Parameters
scsupercrystal det id
flagthe srp flag, an integer in [0,7]. See constants SRF_xxx in EcalSrFlags class.

Definition at line 27 of file EESrFlag.h.

References Exception, RemoveAddSevLevel::flag, and EcalSrFlag::flag_.

27  : scId_(sc) {
28  //SRP flag is coded on 3 bits:
29  if (flag < 0 || flag > 0x7)
30  throw cms::Exception("InvalidValue", "srp flag greater than 0x7 or negative.");
31  flag_ = (unsigned char)flag;
32  }
unsigned char flag_
Definition: EcalSrFlag.h:70
EcalScDetId scId_
Definition: EESrFlag.h:42

Member Function Documentation

◆ id()

const EcalScDetId& EESrFlag::id ( ) const
inlineoverridevirtual

For edm::SortedCollection.

Returns
det id of the trigger tower the flag is assigned to.

Implements EcalSrFlag.

Definition at line 37 of file EESrFlag.h.

References scId_.

Referenced by EcalSelectiveReadoutValidation::analyzeEE(), and operator<<().

37 { return scId_; }
EcalScDetId scId_
Definition: EESrFlag.h:42

Member Data Documentation

◆ scId_

EcalScDetId EESrFlag::scId_
private

trigger tower id

Definition at line 42 of file EESrFlag.h.

Referenced by id().