@@ -74,6 +74,7 @@ struct lambdapolsp {
7474 Configurable<bool > additionalEvSel2{" additionalEvSel2" , false , " additionalEvSel2" };
7575 Configurable<bool > additionalEvSel3{" additionalEvSel3" , false , " additionalEvSel3" };
7676 Configurable<bool > correction{" correction" , false , " fill histograms including corrections" };
77+ Configurable<bool > mycut{" mycut" , false , " select tracks based on my cuts" };
7778 // events
7879 Configurable<float > cfgCutVertex{" cfgCutVertex" , 10 .0f , " Accepted z-vertex range" };
7980 Configurable<float > cfgCutCentralityMax{" cfgCutCentralityMax" , 50 .0f , " Accepted maximum Centrality" };
@@ -143,6 +144,16 @@ struct lambdapolsp {
143144 histos.add (" hpQxtQxpvscent" , " hpQxtQxpvscent" , kTProfile , {centAxis});
144145 histos.add (" hpQytQypvscent" , " hpQytQypvscent" , kTProfile , {centAxis});
145146
147+ histos.add (" hpuxQxpvseta" , " hpuxQxpvseta" , kTProfile , {etaAxis});
148+ histos.add (" hpuyQypvseta" , " hpuyQypvseta" , kTProfile , {etaAxis});
149+ histos.add (" hpuxQxtvseta" , " hpuxQxtvseta" , kTProfile , {etaAxis});
150+ histos.add (" hpuyQytvseta" , " hpuyQytvseta" , kTProfile , {etaAxis});
151+ histos.add (" hpQxtQxpvseta" , " hpQxtQxpvseta" , kTProfile , {etaAxis});
152+ histos.add (" hpQytQypvseta" , " hpQytQypvseta" , kTProfile , {etaAxis});
153+
154+ histos.add (" hpv1Avscent" , " hpv1Avscent" , kTProfile , {centAxis});
155+ histos.add (" hpv1Cvscent" , " hpv1Cvscent" , kTProfile , {centAxis});
156+
146157 histos.add (" hpposuxyQxytvseta" , " hpposuxyQxytvseta" , kTProfile , {etaAxis});
147158 histos.add (" hpposuxyQxypvseta" , " hpposuxyQxypvseta" , kTProfile , {etaAxis});
148159 histos.add (" hpposQxytpvseta" , " hpposQxytpvseta" , kTProfile , {etaAxis});
@@ -175,8 +186,14 @@ struct lambdapolsp {
175186 template <typename T>
176187 bool selectionTrack (const T& candidate)
177188 {
178- if (!isPVContributor || !candidate.isGlobalTrackWoDCA () || !(candidate.itsNCls () > cfgITScluster) || !(candidate.tpcNClsFound () > cfgTPCcluster)) {
179- return false ;
189+ if (mycut) {
190+ if (!candidate.isGlobalTrack () || !candidate.isPVContributor () || !(candidate.itsNCls () > cfgITScluster) || !(candidate.tpcNClsFound () > cfgTPCcluster) || !(candidate.itsNClsInnerBarrel () >= 1 )) {
191+ return false ;
192+ }
193+ } else {
194+ if (!(candidate.isGlobalTrack () && candidate.isPVContributor () && candidate.itsNCls () > cfgITScluster && candidate.tpcNClsFound () > cfgTPCcluster && candidate.itsNClsInnerBarrel () >= 1 )) {
195+ return false ;
196+ }
180197 }
181198 return true ;
182199 }
@@ -327,12 +344,12 @@ struct lambdapolsp {
327344
328345 histos.fill (HIST (" hCentrality" ), centrality);
329346 histos.fill (HIST (" hVtxZ" ), collision.posZ ());
330- histos.fill (HIST (" hpRes" ), centrality, (TMath::Cos (psiZDCA - psiZDCC)));
331- histos.fill (HIST (" hpResSin" ), centrality, (TMath::Sin (psiZDCA - psiZDCC)));
332- histos.fill (HIST (" hpCosPsiA" ), centrality, (TMath::Cos (psiZDCA)));
333- histos.fill (HIST (" hpCosPsiC" ), centrality, (TMath::Cos (psiZDCC)));
334- histos.fill (HIST (" hpSinPsiA" ), centrality, (TMath::Sin (psiZDCA)));
335- histos.fill (HIST (" hpSinPsiC" ), centrality, (TMath::Sin (psiZDCC)));
347+ histos.fill (HIST (" hpRes" ), centrality, (TMath::Cos (GetPhiInRange ( psiZDCA - psiZDCC) )));
348+ histos.fill (HIST (" hpResSin" ), centrality, (TMath::Sin (GetPhiInRange ( psiZDCA - psiZDCC) )));
349+ histos.fill (HIST (" hpCosPsiA" ), centrality, (TMath::Cos (GetPhiInRange ( psiZDCA) )));
350+ histos.fill (HIST (" hpCosPsiC" ), centrality, (TMath::Cos (GetPhiInRange ( psiZDCC) )));
351+ histos.fill (HIST (" hpSinPsiA" ), centrality, (TMath::Sin (GetPhiInRange ( psiZDCA) )));
352+ histos.fill (HIST (" hpSinPsiC" ), centrality, (TMath::Sin (GetPhiInRange ( psiZDCC) )));
336353
337354 // /////////checking v1 and v2////////////////////////////////
338355
@@ -354,6 +371,11 @@ struct lambdapolsp {
354371 auto ux = TMath::Cos (GetPhiInRange (track.phi ()));
355372 auto uy = TMath::Sin (GetPhiInRange (track.phi ()));
356373
374+ auto v1ZDCA = TMath::Cos (GetPhiInRange (track.phi () - psiZDCA));
375+ auto v1ZDCC = TMath::Cos (GetPhiInRange (track.phi () - psiZDCC));
376+
377+ // LOG(info) << "Daughters PDG:\t" << ux << " "<< uxcheck<<" "<<uy<<" "<<uycheck;
378+
357379 auto uxQxp = ux * qxZDCA;
358380 auto uyQyp = uy * qyZDCA;
359381 auto uxyQxyp = uxQxp + uyQyp;
@@ -371,6 +393,18 @@ struct lambdapolsp {
371393 histos.fill (HIST (" hpQxtQxpvscent" ), centrality, QxtQxp);
372394 histos.fill (HIST (" hpQytQypvscent" ), centrality, QytQyp);
373395
396+ if (centrality > 30.0 && centrality < 40.0 ) {
397+ histos.fill (HIST (" hpuxQxpvseta" ), track.eta (), uxQxp);
398+ histos.fill (HIST (" hpuyQypvseta" ), track.eta (), uyQyp);
399+ histos.fill (HIST (" hpuxQxtvseta" ), track.eta (), uxQxt);
400+ histos.fill (HIST (" hpuyQytvseta" ), track.eta (), uyQyt);
401+ histos.fill (HIST (" hpQxtQxpvseta" ), track.eta (), QxtQxp);
402+ histos.fill (HIST (" hpQytQypvseta" ), track.eta (), QytQyp);
403+ }
404+
405+ histos.fill (HIST (" hpv1Avscent" ), centrality, v1ZDCA);
406+ histos.fill (HIST (" hpv1Cvscent" ), centrality, v1ZDCC);
407+
374408 if (centrality > 5.0 && centrality < 40.0 ) {
375409 if (track.pt () > 0.2 ) {
376410 if (sign > 0.0 ) {
0 commit comments