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 186 of file ESDataFormatterV4.cc.

Referenced by ESDataFormatterV4::DigiToRaw().

187 {
188  ESDataFormatterV4::Word64 PACESTRIP_MASK = 0x00ff000000000000ull;
189  ESDataFormatterV4::Word64 PACESTRIP_OFFSET = 48ull;
190 
191  ESDataFormatterV4::Word64 val1 = (s1 & PACESTRIP_MASK) >> PACESTRIP_OFFSET ;
192  ESDataFormatterV4::Word64 val2 = (s2 & PACESTRIP_MASK) >> PACESTRIP_OFFSET ;
193 
194  return (val1 < val2);
195 }
ESDataFormatter::Word64 Word64