Commit 1f5c4769 authored by Gitlab CI's avatar Gitlab CI Committed by Emmy Gabriel
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
......@@ -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
......
......@@ -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" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment