File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,14 +400,14 @@ struct centralityStudy {
400400 LOGF (info, " Acquiring vertex-Z profiles for run %i" , mRunNumber );
401401 TList* hCalibObjects = ccdb->getForRun <TList>(ccdbSettings.pathVertexZ , mRunNumber );
402402
403- hVtxZFV0A = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFV0A" ));
404- hVtxZFT0A = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFT0A" ));
405- hVtxZFT0C = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFT0C" ));
406- // hVtxZFDDA = static_cast <TProfile*>(hCalibObjects->FindObject("hVtxZFDDA"));
407- // hVtxZFDDC = static_cast <TProfile*>(hCalibObjects->FindObject("hVtxZFDDC"));
408- hVtxZNTracks = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZNTracksPV" ));
409- hVtxZNGlobals = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZNGlobals" ));
410- hVtxZMFT = static_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZMFT" ));
403+ hVtxZFV0A = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFV0A" ));
404+ hVtxZFT0A = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFT0A" ));
405+ hVtxZFT0C = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZFT0C" ));
406+ // hVtxZFDDA = dynamic_cast <TProfile*>(hCalibObjects->FindObject("hVtxZFDDA"));
407+ // hVtxZFDDC = dynamic_cast <TProfile*>(hCalibObjects->FindObject("hVtxZFDDC"));
408+ hVtxZNTracks = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZNTracksPV" ));
409+ hVtxZNGlobals = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZNGlobals" ));
410+ hVtxZMFT = dynamic_cast <TProfile*>(hCalibObjects->FindObject (" hVtxZMFT" ));
411411
412412 // Capture error
413413 if (!hVtxZFV0A || !hVtxZFT0A || !hVtxZFT0C || !hVtxZNTracks || !hVtxZNGlobals || !hVtxZMFT) {
You can’t perform that action at this time.
0 commit comments