CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EESrFlag Class Reference

#include <EESrFlag.h>

Inheritance diagram for EESrFlag:
EcalSrFlag

List of all members.

Public Types

typedef EcalScDetId key_type

Public Member Functions

 EESrFlag ()
 EESrFlag (const EcalScDetId &sc, const int &flag)
const EcalScDetIdid () const

Private Attributes

EcalScDetId scId_

Detailed Description

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

Definition at line 14 of file EESrFlag.h.


Member Typedef Documentation

Definition at line 18 of file EESrFlag.h.


Constructor & Destructor Documentation

EESrFlag::EESrFlag ( ) [inline]

Default constructor.

Definition at line 23 of file EESrFlag.h.

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

Member Function Documentation

const EcalScDetId& EESrFlag::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 38 of file EESrFlag.h.

References scId_.

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

{ return scId_;}

Member Data Documentation

trigger tower id

Definition at line 43 of file EESrFlag.h.

Referenced by id().