Project
Loading...
Searching...
No Matches
DigiParams.h
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
12#ifndef ITS3_DIGIPARAMS_H
13#define ITS3_DIGIPARAMS_H
14
17
18namespace o2::its3
19{
20
22{
23 private:
24 float mIBNoisePerPixel = 1.e-8;
25 int mIBChargeThreshold = 150;
26 int mIBMinChargeToAccount = 15;
27 int mIBNSimSteps = 18;
28 float mIBNSimStepsInv = 0;
29
30 public:
31 DigiParams();
32
33 void setIBNoisePerPixel(float v) { mIBNoisePerPixel = v; }
34 float getIBNoisePerPixel() const { return mIBNoisePerPixel; }
35
36 void setIBChargeThreshold(int v, float frac2Account = 0.1);
37 int getIBChargeThreshold() const { return mIBChargeThreshold; }
38
39 void setIBNSimSteps(int v);
40 int getIBNSimSteps() const { return mIBNSimSteps; }
41 float getIBNSimStepsInv() const { return mIBNSimStepsInv; }
42
43 int getIBMinChargeToAccount() const { return mIBMinChargeToAccount; }
44
47
48 const o2::itsmft::AlpideSimResponse* getOBSimResponse() const { return mOBSimResponse; }
49 void setOBSimResponse(const o2::itsmft::AlpideSimResponse* response) { mOBSimResponse = response; }
50
51 o2::its3::ChipSimResponse* getIBSimResponse() const { return mIBSimResponse; }
53
54 bool hasResponseFunctions() const { return mIBSimResponse != nullptr && mOBSimResponse != nullptr; }
55
56 void print() const final;
57
58 private:
59 const o2::itsmft::AlpideSimResponse* mOBSimResponse = nullptr;
60 o2::its3::ChipSimResponse* mIBSimResponse = nullptr;
61
62 ClassDef(DigiParams, 1);
63};
64
65} // namespace o2::its3
66
67#endif
Simulation parameters for the ALIPIDE chip.
void setIBNoisePerPixel(float v)
Definition DigiParams.h:33
int getIBMinChargeToAccount() const
Definition DigiParams.h:43
o2::its3::ChipSimResponse * getIBSimResponse() const
Definition DigiParams.h:51
bool hasResponseFunctions() const
Definition DigiParams.h:54
void setOBSimResponse(const o2::itsmft::AlpideSimResponse *response)
Definition DigiParams.h:49
void setIBNSimSteps(int v)
float getIBNSimStepsInv() const
Definition DigiParams.h:41
const o2::itsmft::AlpideSimResponse * getOBSimResponse() const
Definition DigiParams.h:48
void setIBChargeThreshold(int v, float frac2Account=0.1)
float getIBNoisePerPixel() const
Definition DigiParams.h:34
int getIBChargeThreshold() const
Definition DigiParams.h:37
int getIBNSimSteps() const
Definition DigiParams.h:40
const o2::itsmft::AlpideSimResponse * getAlpSimResponse() const =delete
void setIBSimResponse(o2::its3::ChipSimResponse *response)
void print() const final
void setAlpSimResponse(const o2::itsmft::AlpideSimResponse *par)=delete
const GLdouble * v
Definition glcorearb.h:832
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...