CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
TotemVFATStatus Class Reference

#include <TotemVFATStatus.h>

Public Member Functions

uint8_t getChipPosition () const
 Chip position. More...
 
uint8_t getEC () const
 event Counter More...
 
uint8_t getNumberOfClusters () const
 
bool isBCProgressError () const
 BC number is incorrect. More...
 
bool isCRCError () const
 CRC error. More...
 
bool isECProgressError () const
 VFATFrame event number doesn't follow the number derived from DAQ. More...
 
bool isFootprintError () const
 Footprint error. More...
 
bool isFullyMaskedOut () const
 All channels from that VFAT are not taken into account. More...
 
bool isIDMismatch () const
 12-bit hw id from the header of the vfat frame is diffrent from the 16-bit one from hw mapping More...
 
bool isMissing () const
 VFAT is present in mapping but no data is present int raw event. More...
 
bool isNotMasked () const
 No channels are masked out. More...
 
bool isNumberOfClustersSpecified () const
 number of clusters More...
 
bool isOK () const
 
bool isPartiallyMaskedOut () const
 Some channels from VFAT ale masked out, but not all. More...
 
bool operator< (const TotemVFATStatus &cmp) const
 
void setBCProgressError (bool val=true)
 
void setChipPosition (uint8_t _cp)
 
void setCRCError (bool val=true)
 
void setEC (const uint8_t ec)
 
void setECProgressError (bool val=true)
 
void setFootprintError (bool val=true)
 
void setFullyMaskedOut ()
 
void setIDMismatch (bool val=true)
 
void setMissing (bool val=true)
 
void setNotMasked ()
 
void setNumberOfClusters (uint8_t v)
 
void setNumberOfClustersSpecified (bool v)
 
void setPartiallyMaskedOut ()
 
 TotemVFATStatus (uint8_t _cp=0)
 

Private Attributes

uint8_t chipPosition
 describes placement of the VFAT within the detector More...
 
uint8_t eventCounter
 event counter in the VFAT frame More...
 
uint8_t numberOfClusters
 
bool numberOfClustersSpecified
 the number of hit clusters before DAQ trimming More...
 
std::bitset< 8 > status
 the status bits More...
 

Friends

std::ostream & operator<< (std::ostream &s, const TotemVFATStatus &st)
 

Detailed Description

Class which contains information about conversion from RAW to DIGI for a single read-out chip (VFAT).

Definition at line 21 of file TotemVFATStatus.h.

Constructor & Destructor Documentation

TotemVFATStatus::TotemVFATStatus ( uint8_t  _cp = 0)
inline

Definition at line 24 of file TotemVFATStatus.h.

25  {
26  }
uint8_t chipPosition
describes placement of the VFAT within the detector
bool numberOfClustersSpecified
the number of hit clusters before DAQ trimming
uint8_t numberOfClusters
std::bitset< 8 > status
the status bits
uint8_t eventCounter
event counter in the VFAT frame

Member Function Documentation

uint8_t TotemVFATStatus::getChipPosition ( ) const
inline

Chip position.

Definition at line 29 of file TotemVFATStatus.h.

References chipPosition.

29 { return chipPosition; }
uint8_t chipPosition
describes placement of the VFAT within the detector
uint8_t TotemVFATStatus::getEC ( ) const
inline

event Counter

Definition at line 88 of file TotemVFATStatus.h.

References eventCounter.

88 {return eventCounter;}
uint8_t eventCounter
event counter in the VFAT frame
uint8_t TotemVFATStatus::getNumberOfClusters ( ) const
inline

Definition at line 77 of file TotemVFATStatus.h.

References numberOfClusters.

77 { return numberOfClusters; }
uint8_t numberOfClusters
bool TotemVFATStatus::isBCProgressError ( ) const
inline

BC number is incorrect.

Definition at line 53 of file TotemVFATStatus.h.

References status.

53 { return status[5]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isCRCError ( ) const
inline

CRC error.

Definition at line 45 of file TotemVFATStatus.h.

References status.

45 { return status[3]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isECProgressError ( ) const
inline

VFATFrame event number doesn't follow the number derived from DAQ.

Definition at line 49 of file TotemVFATStatus.h.

References status.

49 { return status[4]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isFootprintError ( ) const
inline

Footprint error.

Definition at line 41 of file TotemVFATStatus.h.

References status.

41 { return status[2]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isFullyMaskedOut ( ) const
inline

All channels from that VFAT are not taken into account.

Definition at line 57 of file TotemVFATStatus.h.

References status.

57 { return status[6]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isIDMismatch ( ) const
inline

12-bit hw id from the header of the vfat frame is diffrent from the 16-bit one from hw mapping

Definition at line 37 of file TotemVFATStatus.h.

References status.

37 { return status[1]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isMissing ( ) const
inline

VFAT is present in mapping but no data is present int raw event.

Definition at line 33 of file TotemVFATStatus.h.

References status.

33 { return status[0]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isNotMasked ( ) const
inline

No channels are masked out.

Definition at line 65 of file TotemVFATStatus.h.

References status.

65 { return !(status[6] || status[7]); }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isNumberOfClustersSpecified ( ) const
inline

number of clusters

Definition at line 74 of file TotemVFATStatus.h.

References numberOfClustersSpecified.

74 { return numberOfClustersSpecified; }
bool numberOfClustersSpecified
the number of hit clusters before DAQ trimming
bool TotemVFATStatus::isOK ( ) const
inline

Definition at line 68 of file TotemVFATStatus.h.

References status.

Referenced by RawToDigiConverter::Run().

69  {
70  return !(status[0] || status[1] || status[2] || status[3] || status[4] || status[5]);
71  }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::isPartiallyMaskedOut ( ) const
inline

Some channels from VFAT ale masked out, but not all.

Definition at line 61 of file TotemVFATStatus.h.

References status.

61 { return status[7]; }
std::bitset< 8 > status
the status bits
bool TotemVFATStatus::operator< ( const TotemVFATStatus cmp) const
inline

Definition at line 80 of file TotemVFATStatus.h.

References operator<<, alignCSCRings::s, and status.

81  {
82  return (status.to_ulong() < cmp.status.to_ulong());
83  }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setBCProgressError ( bool  val = true)
inline

Definition at line 54 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

54 { status[5] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setChipPosition ( uint8_t  _cp)
inline

Definition at line 30 of file TotemVFATStatus.h.

References chipPosition.

Referenced by RawToDigiConverter::Run().

30 { chipPosition = _cp; }
uint8_t chipPosition
describes placement of the VFAT within the detector
void TotemVFATStatus::setCRCError ( bool  val = true)
inline

Definition at line 46 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

Referenced by RawToDigiConverter::RunCommon().

46 { status[3] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setEC ( const uint8_t  ec)
inline

Definition at line 89 of file TotemVFATStatus.h.

References RecoEcal_EventContent_cff::ec, and eventCounter.

Referenced by RawToDigiConverter::Run().

89 { eventCounter = ec; }
uint8_t eventCounter
event counter in the VFAT frame
void TotemVFATStatus::setECProgressError ( bool  val = true)
inline

Definition at line 50 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

50 { status[4] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setFootprintError ( bool  val = true)
inline

Definition at line 42 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

Referenced by RawToDigiConverter::RunCommon().

42 { status[2] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setFullyMaskedOut ( )
inline

Definition at line 58 of file TotemVFATStatus.h.

References status.

Referenced by RawToDigiConverter::Run().

58 { status[6]=true; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setIDMismatch ( bool  val = true)
inline

Definition at line 38 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

Referenced by RawToDigiConverter::RunCommon().

38 { status[1] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setMissing ( bool  val = true)
inline

Definition at line 34 of file TotemVFATStatus.h.

References status, and heppy_batch::val.

Referenced by RawToDigiConverter::RunCommon().

34 { status[0] = val; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setNotMasked ( )
inline

Definition at line 66 of file TotemVFATStatus.h.

References status.

66 { status[6]=status[7]=false; }
std::bitset< 8 > status
the status bits
void TotemVFATStatus::setNumberOfClusters ( uint8_t  v)
inline
void TotemVFATStatus::setNumberOfClustersSpecified ( bool  v)
inline

Definition at line 75 of file TotemVFATStatus.h.

References numberOfClustersSpecified, and findQualityFiles::v.

Referenced by RawToDigiConverter::RunCommon().

bool numberOfClustersSpecified
the number of hit clusters before DAQ trimming
void TotemVFATStatus::setPartiallyMaskedOut ( )
inline

Definition at line 62 of file TotemVFATStatus.h.

References status.

Referenced by RawToDigiConverter::Run().

62 { status[7]=true; }
std::bitset< 8 > status
the status bits

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TotemVFATStatus st 
)
friend

Definition at line 14 of file TotemVFATStatus.cc.

Referenced by operator<().

15 {
16  return s
17  << "miss=" << st.status[0]
18  << ",ID=" << st.status[1]
19  << ",foot=" << st.status[2]
20  << ",CRC=" << st.status[3]
21  << ",EC=" << st.status[4]
22  << ",BC=" << st.status[5]
23  << ",fm=" << st.status[6]
24  << ",pm=" << st.status[7];
25 }
std::bitset< 8 > status
the status bits

Member Data Documentation

uint8_t TotemVFATStatus::chipPosition
private

describes placement of the VFAT within the detector

Definition at line 93 of file TotemVFATStatus.h.

Referenced by getChipPosition(), and setChipPosition().

uint8_t TotemVFATStatus::eventCounter
private

event counter in the VFAT frame

Definition at line 103 of file TotemVFATStatus.h.

Referenced by getEC(), and setEC().

uint8_t TotemVFATStatus::numberOfClusters
private

Definition at line 100 of file TotemVFATStatus.h.

Referenced by getNumberOfClusters(), and setNumberOfClusters().

bool TotemVFATStatus::numberOfClustersSpecified
private

the number of hit clusters before DAQ trimming

Definition at line 99 of file TotemVFATStatus.h.

Referenced by isNumberOfClustersSpecified(), and setNumberOfClustersSpecified().

std::bitset<8> TotemVFATStatus::status
private