1717#include " Framework/runDataProcessing.h"
1818#include " CCDB/BasicCCDBManager.h"
1919#include " Framework/StepTHn.h"
20- // #include <TTree.h>
20+ #include < TTree.h>
21+ #include < vector>
2122
2223#include " Common/CCDB/EventSelectionParams.h"
2324#include " Common/Core/TrackSelection.h"
@@ -337,22 +338,19 @@ struct upcPhotonuclearAnalysisJMG {
337338 return true ;
338339 }
339340
340- template <typename TCollision, typename TTracks>
341- void fillQAUD (TCollision collision, float multiplicity, TTracks tracks)
341+ template <typename TTracks>
342+ void fillQAUD (TTracks tracks)
342343 {
343344 for (auto & track : tracks) {
344345 histos.fill (HIST (" yields" ), tracks.size (), track.pt (), eta (track.px (), track.py (), track.pz ()));
345346 histos.fill (HIST (" etaphi" ), tracks.size (), eta (track.px (), track.py (), track.pz ()), phi (track.px (), track.py ()));
346347 }
347348 }
348349
349- template <typename TTarget, typename TCollision >
350- bool fillCollisionUD (TTarget target, TCollision collision, float multiplicity)
350+ template <typename TTarget>
351+ bool fillCollisionUD (TTarget target, float multiplicity)
351352 {
352353 target->fillEvent (multiplicity, CorrelationContainer::kCFStepAll );
353- /* if (!collision.alias_bit(kINT7) || !collision.sel7()) {
354- return false;
355- }*/
356354 target->fillEvent (multiplicity, CorrelationContainer::kCFStepReconstructed );
357355 return true ;
358356 }
@@ -373,9 +371,9 @@ struct upcPhotonuclearAnalysisJMG {
373371 if (isTrackCut (track2) == false ) {
374372 continue ;
375373 }
376- /* if (doPairCuts && mPairCuts.conversionCuts(track1, track2)) {
374+ if (doPairCuts && mPairCuts .conversionCuts (track1, track2)) {
377375 continue ;
378- }*/
376+ }
379377 float deltaPhi = phi (track1.px (), track1.py ()) - phi (track2.px (), track2.py ());
380378 if (deltaPhi > 1 .5f * PI) {
381379 deltaPhi -= TwoPI;
@@ -517,12 +515,12 @@ struct upcPhotonuclearAnalysisJMG {
517515 if (isCollisionCutSG (reconstructedCollision, 0 ) == false ) {
518516 return ;
519517 }
520- if (fillCollisionUD (same, reconstructedCollision, multiplicity) == false ) {
518+ if (fillCollisionUD (same, multiplicity) == false ) {
521519 return ;
522520 }
523521 LOGF (info, " Filling same events" );
524522 histos.fill (HIST (" eventcount" ), -2 );
525- fillQAUD (reconstructedCollision, multiplicity, reconstructedTracks);
523+ fillQAUD (reconstructedTracks);
526524 fillCorrelationsUD (same, reconstructedTracks, reconstructedTracks, multiplicity, reconstructedCollision.posZ ());
527525 break ;
528526 case 1 : // gap for side C
@@ -538,7 +536,7 @@ struct upcPhotonuclearAnalysisJMG {
538536
539537 PROCESS_SWITCH (upcPhotonuclearAnalysisJMG, processSame, " Process same event" , true );
540538
541- void processMixed (FullSGUDCollision::iterator const & reconstructedCollision, FullUDTracks const & reconstructedTracks )
539+ void processMixed (FullSGUDCollision::iterator const & reconstructedCollision)
542540 {
543541 int SGside = reconstructedCollision.gapSide ();
544542 // int SGside = 0;
@@ -555,7 +553,7 @@ struct upcPhotonuclearAnalysisJMG {
555553 if (isCollisionCutSG (reconstructedCollision, 0 ) == false ) {
556554 return ;
557555 }
558- if (fillCollisionUD (mixed, collision1, multiplicity) == false ) {
556+ if (fillCollisionUD (mixed, multiplicity) == false ) {
559557 return ;
560558 }
561559 // LOGF(info, ">>> Bin of collision: ", bindingOnVtx.getBin({collision1.posZ()}));
0 commit comments