Skip to content

Commit

Permalink
Fix filling of gas values in trending trees
Browse files Browse the repository at this point in the history
o ATO-377
  • Loading branch information
wiechula authored and dberzano committed Sep 5, 2016
1 parent 3a013cb commit b2244f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions TPC/TPCbase/AliTPCcalibDB.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1648,10 +1648,11 @@ Float_t AliTPCcalibDB::GetDCSSensorValue(AliDCSSensorArray *arr, Int_t timeStamp
Float_t val=0;
const TString sensorNameString(sensorName);
AliDCSSensor *sensor = arr->GetSensor(sensorNameString);
if (!sensor) return val;

const Int_t startTime = Int_t(sensor->GetStartTime());
const Int_t endTime = Int_t(sensor->GetEndTime());

if (!sensor) return val;
//use the dcs graph if possible
TGraph *gr=sensor->GetGraph();
if (gr){
Expand Down Expand Up @@ -2157,7 +2158,7 @@ void AliTPCcalibDB::UpdateChamberHighVoltageData()
AliFatal("Something went wrong in the chamber HV status calculation. Check warning messages above. All chambers would be deactivated!");
}
}
Float_t AliTPCcalibDB::GetGasSensorValue(EDcsGasSensor type, Int_t timeStamp/*=-1*/, Int_t sigDigits/*=0*/)
Float_t AliTPCcalibDB::GetGasSensorValue(EDcsGasSensor type, Int_t timeStamp/*=-1*/, Int_t sigDigits/*=-1*/)
{
/// Get the gas sensor value
/// if timeStamp == -1 return the average value in this run
Expand Down
2 changes: 1 addition & 1 deletion TPC/TPCbase/AliTPCcalibDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class AliTPCcalibDB : public TObject
// Gas sensor data
//
AliDCSSensorArray* GetGasSensors() const { return fGasSensorArray; }
Float_t GetGasSensorValue(EDcsGasSensor type, Int_t timeStamp=-1, Int_t sigDigits=0);
Float_t GetGasSensorValue(EDcsGasSensor type, Int_t timeStamp=-1, Int_t sigDigits=-1);

//
AliTPCSensorTempArray* GetTemperature() const {return fTemperature;}
Expand Down
2 changes: 1 addition & 1 deletion TPC/TPCcalib/AliTPCcalibSummary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void AliTPCcalibSummary::ProcessGas(Int_t run, Int_t timeStamp)
static TVectorF gasValues(nsensors);

for (Int_t isen=0; isen<nsensors; ++isen) {
gasValues(isen) = fCalibDB->GetGasSensorValue((AliTPCcalibDB::EDcsGasSensor)isen);
gasValues(isen) = fCalibDB->GetGasSensorValue((AliTPCcalibDB::EDcsGasSensor)isen, timeStamp);
}

(*fPcstream)<<"dcs"<<
Expand Down

0 comments on commit b2244f6

Please sign in to comment.