CMS 3D CMS Logo

Classes | Functions
ESDataFormatterV4.cc File Reference
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDTrailer.h"
#include "DataFormats/EcalDetId/interface/EcalDetIdCollections.h"
#include "FWCore/Utilities/interface/CRC16.h"
#include "EventFilter/ESDigiToRaw/src/ESDataFormatterV4.h"

Go to the source code of this file.

Classes

struct  ltfiber
 

Functions

bool ltstrip (const ESDataFormatterV4::Word64 &s1, const ESDataFormatterV4::Word64 &s2)
 

Function Documentation

bool ltstrip ( const ESDataFormatterV4::Word64 s1,
const ESDataFormatterV4::Word64 s2 
)

Definition at line 181 of file ESDataFormatterV4.cc.

Referenced by ESDataFormatterV4::DigiToRaw().

181  {
182  ESDataFormatterV4::Word64 PACESTRIP_MASK = 0x00ff000000000000ull;
183  ESDataFormatterV4::Word64 PACESTRIP_OFFSET = 48ull;
184 
185  ESDataFormatterV4::Word64 val1 = (s1 & PACESTRIP_MASK) >> PACESTRIP_OFFSET;
186  ESDataFormatterV4::Word64 val2 = (s2 & PACESTRIP_MASK) >> PACESTRIP_OFFSET;
187 
188  return (val1 < val2);
189 }
ESDataFormatter::Word64 Word64