CMS 3D CMS Logo

Namespaces | Functions
CastorUnpacker.cc File Reference
#include "EventFilter/CastorRawToDigi/interface/CastorUnpacker.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalTTPUnpacker.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#include "DataFormats/HcalDigi/interface/HcalQIESample.h"
#include "DataFormats/HcalDigi/interface/CastorDataFrame.h"
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h"
#include <iostream>
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Namespaces

 CastorUnpacker_impl
 

Functions

static int slb (const HcalTriggerPrimitiveSample &theSample)
 
static int slbAndChan (const HcalTriggerPrimitiveSample &theSample)
 
static int slbChan (const HcalTriggerPrimitiveSample &theSample)
 
template<class DigiClass >
const HcalQIESampleCastorUnpacker_impl::unpack (const HcalQIESample *startPoint, const HcalQIESample *limit, DigiClass &digi, int presamples, const CastorElectronicsId &eid, int startSample, int endSample, int expectedTime, const HcalHTRData &hhd)
 

Function Documentation

◆ slb()

static int slb ( const HcalTriggerPrimitiveSample theSample)
static

◆ slbAndChan()

static int slbAndChan ( const HcalTriggerPrimitiveSample theSample)
static

Definition at line 73 of file CastorUnpacker.cc.

References HcalTriggerPrimitiveSample::raw().

Referenced by CastorUnpacker::unpack().

73 { return (theSample.raw() >> 11) & 0x1F; }
uint16_t raw() const
get the raw word

◆ slbChan()

static int slbChan ( const HcalTriggerPrimitiveSample theSample)
static

Definition at line 72 of file CastorUnpacker.cc.

References HcalTriggerPrimitiveSample::raw().

Referenced by CastorElectronicsId::CastorElectronicsId(), and CastorUnpacker::unpack().

72 { return (theSample.raw() >> 11) & 0x3; }
uint16_t raw() const
get the raw word