Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent 4a1282f commit 438a23a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/TRestDetectorSignalToRawSignalProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ TRestEvent* TRestDetectorSignalToRawSignalProcess::ProcessEvent(TRestEvent* inpu
} else if (fTriggerMode == "fixed") {
startTimeNoOffset = fTriggerFixedStartTime;
} else {
cerr << "TRestDetectorSignalToRawSignalProcess::ProcessEvent: "
<< "Trigger mode not recognized" << RESTendl;
cerr << "TRestDetectorSignalToRawSignalProcess::ProcessEvent: " << "Trigger mode not recognized"
<< RESTendl;
exit(1);
}

Expand All @@ -376,8 +376,8 @@ TRestEvent* TRestDetectorSignalToRawSignalProcess::ProcessEvent(TRestEvent* inpu
string type = signal->GetSignalType();
// Check type is in the map
if (fParametersMap.find(type) == fParametersMap.end()) {
RESTWarning << "TRestDetectorSignalToRawSignalProcess::ProcessEvent: "
<< "type " << type << " not found in parameters map" << RESTendl;
RESTWarning << "TRestDetectorSignalToRawSignalProcess::ProcessEvent: " << "type " << type
<< " not found in parameters map" << RESTendl;
type = "";
}

Expand Down Expand Up @@ -618,8 +618,8 @@ void TRestDetectorSignalToRawSignalProcess::InitProcess() {}

Double_t TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC(Double_t adc, const string& type) const {
if (fParametersMap.find(type) == fParametersMap.end()) {
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: "
<< "type " << type << " not found in parameters map" << RESTendl;
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: " << "type " << type
<< " not found in parameters map" << RESTendl;
return 0;
}
const auto gain = fParametersMap.at(type).calibrationGain;
Expand All @@ -629,8 +629,8 @@ Double_t TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC(Double_t adc, c

Double_t TRestDetectorSignalToRawSignalProcess::GetADCFromEnergy(Double_t energy, const string& type) const {
if (fParametersMap.find(type) == fParametersMap.end()) {
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: "
<< "type " << type << " not found in parameters map" << RESTendl;
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: " << "type " << type
<< " not found in parameters map" << RESTendl;
return 0;
}
const auto gain = fParametersMap.at(type).calibrationGain;
Expand All @@ -640,8 +640,8 @@ Double_t TRestDetectorSignalToRawSignalProcess::GetADCFromEnergy(Double_t energy

Double_t TRestDetectorSignalToRawSignalProcess::GetTimeFromBin(Double_t bin, const string& type) const {
if (fParametersMap.find(type) == fParametersMap.end()) {
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: "
<< "type " << type << " not found in parameters map" << RESTendl;
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: " << "type " << type
<< " not found in parameters map" << RESTendl;
return 0;
}
const auto sampling = fParametersMap.at(type).sampling;
Expand All @@ -650,8 +650,8 @@ Double_t TRestDetectorSignalToRawSignalProcess::GetTimeFromBin(Double_t bin, con

Double_t TRestDetectorSignalToRawSignalProcess::GetBinFromTime(Double_t time, const string& type) const {
if (fParametersMap.find(type) == fParametersMap.end()) {
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: "
<< "type " << type << " not found in parameters map" << RESTendl;
RESTWarning << "TRestDetectorSignalToRawSignalProcess::GetEnergyFromADC: " << "type " << type
<< " not found in parameters map" << RESTendl;
return 0;
}
const auto sampling = fParametersMap.at(type).sampling;
Expand Down

0 comments on commit 438a23a

Please sign in to comment.