CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

static int slb ( const HcalTriggerPrimitiveSample theSample)
static

Definition at line 71 of file CastorUnpacker.cc.

References HcalTriggerPrimitiveSample::raw().

Referenced by LutXml::create_lut_map(), HcalTriggerPrimitiveSample::HcalTriggerPrimitiveSample(), HcalPacker::pack(), and CastorUnpacker::unpack().

71 { return ((theSample.raw() >> 13) & 0x7); }
uint16_t raw() const
get the raw word
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
static int slbChan ( const HcalTriggerPrimitiveSample theSample)
static

Definition at line 72 of file CastorUnpacker.cc.

References HcalTriggerPrimitiveSample::raw().

Referenced by CastorUnpacker::unpack().

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