Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
Boole
Commits
1f5c4769
Commit
1f5c4769
authored
Sep 28, 2021
by
Gitlab CI
Committed by
Emmy Gabriel
Sep 28, 2021
Browse files
Fixed formatting
patch generated by
https://gitlab.cern.ch/lhcb/Boole/-/jobs/16548951
parent
83889c0c
Pipeline
#3063262
passed with stage
in 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
FT/FTDigitisation/src/FTSiPMTool.h
View file @
1f5c4769
...
...
@@ -54,7 +54,8 @@ public:
// Return number of direct crosstalk PEs based on signal photons
//===========================================================================
int
generateDirectXTalk
(
int
nPhotons
)
override
{
// add xtalk prob
return
m_rndmCLHEPPoisson
->
fire
(
m_probDirectXTalk
*
nPhotons
);
}
return
m_rndmCLHEPPoisson
->
fire
(
m_probDirectXTalk
*
nPhotons
);
}
//===========================================================================
// Generate channel to channel crosstalk deposits
...
...
FT/FTDigitisation/src/SiPMResponse.cpp
View file @
1f5c4769
...
...
@@ -48,19 +48,19 @@ StatusCode SiPMResponse::initialize() {
if
(
sc
.
isFailure
()
)
return
Error
(
"Failed to initialize"
,
sc
);
// initialise SiPMResponse as zero in case conditions DB fails
std
::
vector
<
double
>
times
{
0.0
};
std
::
vector
<
double
>
values
{
0.0
};
std
::
vector
<
double
>
times
{
0.0
};
std
::
vector
<
double
>
values
{
0.0
};
if
(
!
existDet
<
DataObject
>
(
detSvc
(),
m_conditionLocation
.
value
()
)
)
{
Warning
(
"SiPMResponse found not in conditions DB"
,
StatusCode
::
SUCCESS
).
ignore
();
}
else
{
Condition
*
rInfo
=
getDet
<
Condition
>
(
m_conditionLocation
);
times
=
rInfo
->
param
<
std
::
vector
<
double
>>
(
"times"
);
times
=
rInfo
->
param
<
std
::
vector
<
double
>>
(
"times"
);
if
(
m_electronicsResponse
==
"pacific5q_pz5"
)
{
values
=
rInfo
->
param
<
std
::
vector
<
double
>>
(
"values_P5_pz5"
);
m_sipmGainShift
=
rInfo
->
param
<
double
>
(
"gainshift_P5_pz5"
);
m_tshift
=
rInfo
->
param
<
double
>
(
"timeshift_P5_pz5"
);
}
if
(
m_electronicsResponse
==
"pacific5q_pz6"
)
{
values
=
rInfo
->
param
<
std
::
vector
<
double
>>
(
"values_P5_pz6"
);
m_sipmGainShift
=
rInfo
->
param
<
double
>
(
"gainshift_P5_pz6"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment