CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EBSrFlag Class Reference

#include <EBSrFlag.h>

Inheritance diagram for EBSrFlag:
EcalSrFlag

List of all members.

Public Types

typedef EcalTrigTowerDetId key_type

Public Member Functions

 EBSrFlag ()
 EBSrFlag (const EcalTrigTowerDetId &tt, const int &flag)
const EcalTrigTowerDetIdid () const

Private Attributes

EcalTrigTowerDetId ttId_

Detailed Description

This class holds a Selective Readout Flag (SRF) associated to an ECAL barrel trigger tower.

Definition at line 15 of file EBSrFlag.h.


Member Typedef Documentation

Definition at line 17 of file EBSrFlag.h.


Constructor & Destructor Documentation

EBSrFlag::EBSrFlag ( ) [inline]

Default constructor.

Definition at line 22 of file EBSrFlag.h.

{}; 
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 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;
  }

Member Function Documentation

const EcalTrigTowerDetId& EBSrFlag::id ( void  ) const [inline, virtual]

For edm::SortedCollection.

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

Implements EcalSrFlag.

Definition at line 37 of file EBSrFlag.h.

References ttId_.

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

{ return ttId_;}

Member Data Documentation

trigger tower id

Definition at line 42 of file EBSrFlag.h.

Referenced by id().