CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PixelDataFormatter.cc File Reference
#include "EventFilter/SiPixelRawToDigi/interface/PixelDataFormatter.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingTree.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingMap.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFrameConverter.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelQuality.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDTrailer.h"
#include "CondFormats/SiPixelObjects/interface/PixelROC.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <bitset>
#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

void doVectorize (int const *__restrict__ w, int *__restrict__ row, int *__restrict__ col, int *__restrict__ valid, int N, PixelROC const *rocp)
 

Function Documentation

void doVectorize ( int const *__restrict__  w,
int *__restrict__  row,
int *__restrict__  col,
int *__restrict__  valid,
int  N,
PixelROC const *  rocp 
)

Definition at line 191 of file PixelDataFormatter.cc.

References sipixelobjects::GlobalPixel::col, i, N, sipixelobjects::GlobalPixel::row, sipixelobjects::PixelROC::toGlobal(), and sipixelobjects::LocalPixel::DcolPxid::valid().

191  {
192  for (int i=0; i<N; ++i) {
193  auto ww = w[i];
194  int dcol = (ww >> DCOL_shift) & DCOL_mask;
195  int pxid = (ww >> PXID_shift) & PXID_mask;
196  // int adc = (ww >> ADC_shift) & ADC_mask;
197 
198  LocalPixel::DcolPxid local = { dcol, pxid };
199  valid[i] = local.valid();
200  GlobalPixel global = rocp->toGlobal( LocalPixel(local) );
201  row[i]=global.row; col[i]=global.col;
202 
203  }
204 
205 }
int i
Definition: DBlmapReader.cc:9
identify pixel inside single ROC
Definition: LocalPixel.h:7
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
double collumn and pixel ID in double collumn representation
Definition: LocalPixel.h:22
#define N
Definition: blowfish.cc:9
T w() const
int col
Definition: cuy.py:1008