CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
EBSrFlag Class Reference

#include <EBSrFlag.h>

Inheritance diagram for EBSrFlag:
EcalSrFlag

Public Types

typedef EcalTrigTowerDetId key_type
 

Public Member Functions

 EBSrFlag ()
 
 EBSrFlag (const EcalTrigTowerDetId &tt, const int &flag)
 
const EcalTrigTowerDetIdid () const
 
- 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

EcalTrigTowerDetId ttId_
 

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 barrel trigger tower.

Definition at line 14 of file EBSrFlag.h.

Member Typedef Documentation

Definition at line 16 of file EBSrFlag.h.

Constructor & Destructor Documentation

EBSrFlag::EBSrFlag ( )
inline

Default constructor.

Definition at line 21 of file EBSrFlag.h.

21 {};
EBSrFlag::EBSrFlag ( const EcalTrigTowerDetId tt,
const int &  flag 
)
inline

Constructor

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

Definition at line 27 of file EBSrFlag.h.

References hitfit::char, edm::hlt::Exception, and EcalSrFlag::flag_.

27  : ttId_(tt){
28  //SRP flag is coded on 3 bits:
29  if(flag<0 || flag>0x7) throw cms::Exception("InvalidValue", "srp flag greater than 0x7 or negative.");
30  flag_ = (unsigned char) flag;
31  }
unsigned char flag_
Definition: EcalSrFlag.h:76
EcalTrigTowerDetId ttId_
Definition: EBSrFlag.h:41

Member Function Documentation

const EcalTrigTowerDetId& EBSrFlag::id ( void  ) const
inlinevirtual

For edm::SortedCollection.

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

Implements EcalSrFlag.

Definition at line 36 of file EBSrFlag.h.

References ttId_.

Referenced by EcalSelectiveReadoutValidation::analyzeEB(), EcalSimRawData::getSrfs(), operator<<(), and EcalSelectiveReadoutProducer::printSrFlags().

36 { return ttId_;}
EcalTrigTowerDetId ttId_
Definition: EBSrFlag.h:41

Member Data Documentation

EcalTrigTowerDetId EBSrFlag::ttId_
private

trigger tower id

Definition at line 41 of file EBSrFlag.h.

Referenced by id().