Project
Loading...
Searching...
No Matches
NoiseMap.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
17#include "Framework/Logger.h"
18
20
21using namespace o2::itsmft;
22
24{
25 int nc = 0, np = 0, nm = 0;
26 for (const auto& map : mNoisyPixels) {
27 if (!map.empty()) {
28 nc++;
29 }
30 np += map.size();
31 if (map.find(getKey(-1, -1)) != map.end()) {
32 nm++;
33 nc--;
34 np--;
35 }
36 }
37 LOG(info) << "Number of fully maske chips " << nm;
38 LOG(info) << "Number of noisy chips: " << nc;
39 LOG(info) << "Number of noisy pixels: " << np;
40 LOG(info) << "Number of of strobes: " << mNumOfStrobes;
41 LOG(info) << "Probability threshold: " << mProbThreshold;
42}
43
44void NoiseMap::fill(const gsl::span<const CompClusterExt> data)
45{
46 for (const auto& c : data) {
47 if (c.getPatternID() != o2::itsmft::CompCluster::InvalidPatternID) {
48 // For the noise calibration, we use "pass1" clusters...
49 continue;
50 }
51
52 auto id = c.getSensorID();
53 auto row = c.getRow();
54 auto col = c.getCol();
55
56 // A simplified 1-pixel calibration
58 }
59}
Definition of the ITSMFT compact cluster.
ClassImp(o2::itsmft::NoiseMap)
Definition of the ITSMFT NoiseMap.
uint32_t col
Definition RawData.h:4
uint32_t c
Definition RawData.h:2
static constexpr unsigned short InvalidPatternID
Definition CompCluster.h:46
NoiseMap class for the ITS and MFT.
Definition NoiseMap.h:39
static int getKey(int row, int col)
Definition NoiseMap.h:223
void increaseNoiseCount(int chip, int row, int col)
Definition NoiseMap.h:66
void fill(const gsl::span< const CompClusterExt > data)
Definition NoiseMap.cxx:44
GLboolean * data
Definition glcorearb.h:298
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< int > row