@@ -204,53 +204,44 @@ struct fwdMuonsUPC {
204204 HistogramRegistry registry{" registry" , {}, OutputObjHandlingPolicy::AnalysisObject, true , true };
205205
206206 // CONFIGURABLES
207- // static constexpr double Pi = o2::constants::math::PI;
208207 // pT of muon pairs
209- Configurable<int > nBinsPt{" nBinsPt" , 250 , " N bins in pT histo" };
210- Configurable<float > lowPt{" lowPt" , 0 ., " lower limit in pT histo" };
211- Configurable<float > highPt{" highPt" , 2 , " upper limit in pT histo" };
208+ ConfigurableAxis axisPt{" axisPt" , {250 , 0 .0f , 2 .0f }, " #it{p}_{T}^{#mu#mu} (GeV/#it{c})" };
209+ // pT fit
210+ ConfigurableAxis axisPtFit{" axisPtFit" , {VARIABLE_WIDTH, 0.00 , 0.01 , 0.02 , 0.03 , 0.04 , 0.05 , 0.06 , 0.07 , 0.08 , 0.09 , 0.10 ,
211+ 0.11 , 0.12 , 0.13 , 0.14 , 0.15 , 0.175 , 0.20 , 0.25 , 0.30 , 0.40 , 0.50 ,
212+ 0.60 , 0.70 , 0.80 , 0.90 , 1.00 , 1.20 , 1.40 , 1.60 , 1.80 , 2.00 , 2.50 ,
213+ 3.00 , 3.50 }, " #it{p}_{T} (GeV/c)" };
212214 // mass of muon pairs
213- Configurable<int > nBinsMass{" nBinsMass" , 500 , " N bins in mass histo" };
214- Configurable<float > lowMass{" lowMass" , 0 ., " lower limit in mass histo" };
215- Configurable<float > highMass{" highMass" , 10 ., " upper limit in mass histo" };
215+ ConfigurableAxis axisMass{" axisMass" , {500 , 0 .0f , 10 .0f }, " m_{#mu#mu} (GeV/#it{c}^{2})" };
216216 // rapidity of muon pairs
217- Configurable<int > nBinsRapidity{" nBinsRapidity" , 250 , " N bins in rapidity histo" };
218- Configurable<float > lowRapidity{" lowRapidity" , -4.5 , " lower limit in rapidity histo" };
219- Configurable<float > highRapidity{" highRapidity" , -2 ., " upper limit in rapidity histo" };
217+ ConfigurableAxis axisRapidity{" axisRapidity" , {250 , -4 .5f , -2 .0f }, " y_{#mu#mu}" };
218+
219+ // cuts on pair kinematics
220+ Configurable<float > lowPt{" lowPt" , 0 ., " Low pT cut" };
221+ Configurable<float > highPt{" highPt" , 2 , " High pT cut" };
222+ Configurable<float > lowMass{" lowMass" , 0 ., " Low mass cut" };
223+ Configurable<float > highMass{" highMass" , 10 ., " High mass cut" };
224+ Configurable<float > lowRapidity{" lowRapidity" , -4.5 , " Low rapidity cut" };
225+ Configurable<float > highRapidity{" highRapidity" , -2 ., " High rapidity cut" };
226+
220227 // my track type
221228 // 0 = MCH-MID-MFT
222229 // 1 = MCH-MID
223230 Configurable<int > myTrackType{" myTrackType" , 3 , " My track type" };
224231
225232 void init (InitContext&)
226233 {
227- // binning of pT axis fr fit
228- std::vector<double > ptFitBinning = {
229- 0.00 , 0.01 , 0.02 , 0.03 , 0.04 , 0.05 , 0.06 , 0.07 , 0.08 , 0.09 , 0.10 ,
230- 0.11 , 0.12 , 0.13 , 0.14 , 0.15 , 0.175 , 0.20 , 0.25 , 0.30 , 0.40 , 0.50 ,
231- 0.60 , 0.70 , 0.80 , 0.90 , 1.00 , 1.20 , 1.40 , 1.60 , 1.80 , 2.00 , 2.50 ,
232- 3.00 , 3.50 };
233-
234- std::vector<double > ptFitBinningHalfWidth = {
235- 0.00 , 0.005 , 0.01 , 0.015 , 0.02 , 0.025 , 0.03 , 0.035 , 0.04 , 0.045 , 0.05 ,
236- 0.055 , 0.06 , 0.065 , 0.07 , 0.075 , 0.08 , 0.085 , 0.09 , 0.095 , 0.10 ,
237- 0.105 , 0.11 , 0.115 , 0.12 , 0.125 , 0.13 , 0.135 , 0.14 , 0.145 , 0.15 ,
238- 0.1625 , 0.175 , 0.1875 , 0.20 , 0.225 , 0.25 , 0.275 , 0.30 , 0.35 , 0.40 ,
239- 0.45 , 0.50 , 0.55 , 0.60 , 0.65 , 0.70 , 0.75 , 0.80 , 0.85 , 0.90 , 0.95 , 1.00 ,
240- 1.10 , 1.20 , 1.30 , 1.40 , 1.50 , 1.60 , 1.70 , 1.80 , 1.90 , 2.00 , 2.25 ,
241- 2.50 , 2.75 , 3.00 , 3.25 , 3.50 };
242-
243234 // axis
244- const AxisSpec axisPt{nBinsPt, lowPt, highPt, " #it{p}_{T} GeV/#it{c}" };
245- const AxisSpec axisPtFit = {ptFitBinning , " #it{p}_{T} (GeV/c)" };
246- const AxisSpec axisMass{nBinsMass, lowMass, highMass, " m_{#mu#mu} GeV/#it{c}^{2}" };
247- const AxisSpec axisRapidity{nBinsRapidity, lowRapidity, highRapidity, " Rapidity " };
235+ const AxisSpec ptAxis{axisPt, " #it{p}_{T}^{#mu#mu} ( GeV/#it{c}) " , " ptAxis " };
236+ const AxisSpec ptFitAxis{axisPtFit , " #it{p}_{T} (GeV/c)" , " ptFitAxis " };
237+ const AxisSpec massAxis{axisMass, " m_{#mu#mu} ( GeV/#it{c}^{2}) " , " massAxis " };
238+ const AxisSpec rapidityAxis{axisRapidity, " y_{#mu#mu} " , " rapidityAxis " };
248239
249240 // histos
250- registry.add (" hMass" , " Invariant mass of muon pairs;;#counts" , kTH1D , {axisMass });
251- registry.add (" hPt" , " Transverse momentum of muon pairs;;#counts" , kTH1D , {axisPt });
252- registry.add (" hPtFit" , " Transverse momentum of muon pairs;;#counts" , kTH1D , {axisPtFit });
253- registry.add (" hRapidity" , " Rapidty of muon pairs;;#counts" , kTH1D , {axisRapidity });
241+ registry.add (" hMass" , " Invariant mass of muon pairs;;#counts" , kTH1D , {massAxis });
242+ registry.add (" hPt" , " Transverse momentum of muon pairs;;#counts" , kTH1D , {ptAxis });
243+ registry.add (" hPtFit" , " Transverse momentum of muon pairs;;#counts" , kTH1D , {ptFitAxis });
244+ registry.add (" hRapidity" , " Rapidty of muon pairs;;#counts" , kTH1D , {rapidityAxis });
254245 }
255246
256247 // FUNCTIONS
0 commit comments