Skip to content

Commit

Permalink
workaround to temporarily set the correct timestamp manually for tpc …
Browse files Browse the repository at this point in the history
…transformation. Needed at the moment due to the last commit, which disabled automatic setting due to a cyclic dependency problem. Proper solution needs to be implemented
  • Loading branch information
davidrohr authored and dberzano committed Sep 29, 2016
1 parent 419c539 commit d7a4ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions HLT/TPCLib/AliHLTTPCClusterTransformationComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int AliHLTTPCClusterTransformationComponent::DoInit( int argc, const char** argv
AliGRPManager mgr;
mgr.ReadGRPEntry();
fTPCPresent = ((mgr.GetGRPData()->GetDetectorMask() & AliDAQ::kTPC) != 0);
SetTimeStamp(mgr.GetGRPData()->GetTimeStart());

if (!fTPCPresent) return(iResult);

Expand Down
6 changes: 6 additions & 0 deletions HLT/TPCLib/AliHLTTPCdEdxComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#include "AliTPCcalibDB.h"
#include "AliTPCRecoParam.h"
#include "AliTPCTransform.h"
#include "AliGRPManager.h"
#include "AliGRPObject.h"

/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp( AliHLTTPCdEdxComponent )
Expand Down Expand Up @@ -278,6 +280,10 @@ int AliHLTTPCdEdxComponent::DoInit( int argc, const char** argv )
return -ENODEV;
}

AliGRPManager mgr;
mgr.ReadGRPEntry();
SetTimeStamp(mgr.GetGRPData()->GetTimeStart());

AliTPCcalibDB::Instance()->SetRun(GetRunNo());
AliTPCcalibDB::Instance()->UpdateRunInformations(GetRunNo());

Expand Down

0 comments on commit d7a4ff2

Please sign in to comment.