CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions
HcalUnpacker.cc File Reference
#include "EventFilter/HcalRawToDigi/interface/HcalUnpacker.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDTCHeader.h"
#include "EventFilter/HcalRawToDigi/interface/AMC13Header.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalUHTRData.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#include "DataFormats/HcalDigi/interface/HcalQIESample.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "EventFilter/HcalRawToDigi/interface/HcalTTPUnpacker.h"
#include "EventFilter/HcalRawToDigi/plugins/HcalRawToDigi.h"

Go to the source code of this file.

Classes

struct  HOUnrolledTP
 

Namespaces

 HcalUnpacker_impl
 

Functions

static bool isTPGSOI (const HcalTriggerPrimitiveSample &s)
 
static int slb (uint16_t theSample)
 
static int slbAndChan (uint16_t theSample)
 
static int slbChan (uint16_t theSample)
 
template<class DigiClass >
const HcalQIESampleHcalUnpacker_impl::unpack (const HcalQIESample *startPoint, const HcalQIESample *limit, DigiClass &digi, int presamples, const HcalElectronicsId &eid, int startSample, int endSample, int expectedTime, const HcalHTRData &hhd)
 
template<class DigiClass >
const unsigned short * HcalUnpacker_impl::unpack_compact (const unsigned short *startPoint, const unsigned short *limit, DigiClass &digi, int presamples, const HcalElectronicsId &eid, int startSample, int endSample, int expectedTime, const HcalHTRData &hhd)
 
template<class DigiClass >
void HcalUnpacker_impl::unpack_compact (HcalUHTRData::const_iterator &i, const HcalUHTRData::const_iterator &iend, DigiClass &digi, int presamples, const HcalElectronicsId &eid, int startSample, int endSample)
 

Function Documentation

static bool isTPGSOI ( const HcalTriggerPrimitiveSample s)
inlinestatic

Definition at line 153 of file HcalUnpacker.cc.

References HcalTriggerPrimitiveSample::raw().

Referenced by CastorUnpacker::unpack(), and HcalUnpacker::unpackVME().

153  {
154  return (s.raw()&0x200)!=0;
155 }
uint16_t raw() const
get the raw word
static int slb ( uint16_t  theSample)
static

Definition at line 190 of file HcalUnpacker.cc.

Referenced by HcalUnpacker::unpackVME().

190 { return ((theSample>>13)&0x7); }
static int slbAndChan ( uint16_t  theSample)
static

Definition at line 192 of file HcalUnpacker.cc.

Referenced by HcalUnpacker::unpackVME().

192 { return (theSample>>11)&0x1F; }
static int slbChan ( uint16_t  theSample)
static

Definition at line 191 of file HcalUnpacker.cc.

Referenced by HcalUnpacker::unpackVME().

191 { return (theSample>>11)&0x3; }