1010// or submit itself to any jurisdiction.
1111
1212#include < bitset>
13+ #include < string>
1314#include " Framework/ConfigParamSpec.h"
1415#include " Framework/runDataProcessing.h"
1516#include " Framework/AnalysisTask.h"
@@ -30,8 +31,8 @@ using namespace o2::aod;
3031
3132struct ft0CorrectedTable {
3233 // Configurables
33- Configurable<float > resoFT0A{" resoFT0A" , 20 .f , " FT0A resolution" };
34- Configurable<float > resoFT0C{" resoFT0C" , 20 .f , " FT0C resolution" };
34+ Configurable<float > resoFT0A{" resoFT0A" , 20 .f , " FT0A resolution in ps for the MC override " };
35+ Configurable<float > resoFT0C{" resoFT0C" , 20 .f , " FT0C resolution in ps for the MC override " };
3536 Configurable<bool > addHistograms{" addHistograms" , false , " Add QA histograms" };
3637 Configurable<int > cfgCollisionSystem{" collisionSystem" , -2 , " Collision system: -2 (use cfg values), -1 (autoset), 0 (pp), 1 (PbPb), 2 (XeXe), 3 (pPb)" };
3738 Configurable<std::string> cfgUrl{" ccdb-url" , " http://alice-ccdb.cern.ch" , " url of the ccdb repository" };
@@ -61,6 +62,11 @@ struct ft0CorrectedTable {
6162 // Not later than now objects
6263 ccdb->setCreatedNotAfter (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now ().time_since_epoch ()).count ());
6364
65+ if (doprocessWithBypassFT0timeInMC) {
66+ // From ps to ns
67+ resoFT0A.value = resoFT0A.value / 1000 .f ;
68+ resoFT0C.value = resoFT0C.value / 1000 .f ;
69+ }
6470 if (!addHistograms) {
6571 return ;
6672 }
@@ -135,6 +141,9 @@ struct ft0CorrectedTable {
135141 default :
136142 break ;
137143 }
144+ // Resolution is given in ps
145+ resoFT0A.value = resoFT0A.value / 1000 .f ;
146+ resoFT0C.value = resoFT0C.value / 1000 .f ;
138147 }
139148 table.reserve (collisions.size ());
140149 float t0A = 1e10f;
0 commit comments