Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Jul 10, 2024
1 parent 59f32b4 commit cf09ad6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions PWGDQ/Tasks/filterPPwithAssociation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -696,14 +696,14 @@ struct DQFilterPPTask {
uint32_t pairFilter = 0;
if (pairingMask > 0) {
// run pairing on the collision grouped associations
for (auto& [a1, a2] : combinations(barrelAssocs, barrelAssocs)) {
for (auto& [a1, a2] : combinations(barrelAssocs, barrelAssocs)) {

// get the tracks from the index stored in the association
auto t1 = a1.template track_as<TTracks>();
auto t2 = a2.template track_as<TTracks>();
ROOT::Math::PtEtaPhiMVector v1(t1.pt(), t1.eta(), t1.phi(), o2::constants::physics::MassElectron);
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), o2::constants::physics::MassElectron);
ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;
ROOT::Math::PtEtaPhiMVector v1(t1.pt(), t1.eta(), t1.phi(), o2::constants::physics::MassElectron);
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), o2::constants::physics::MassElectron);
ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;

// check the pairing mask and that the tracks share a cut bit
pairFilter = pairingMask & a1.isDQBarrelSelected() & a2.isDQBarrelSelected();
Expand All @@ -726,12 +726,12 @@ struct DQFilterPPTask {
if (!fBarrelPairCuts[icut].IsSelected(VarManager::fgValues)) {
continue;
}
std::cout << "***" << std::endl;
std::cout << "*** Selected BC : " <<bc.globalBC()<< " Selected Collision : " <<collision.globalIndex() <<" "<< collision.collisionTime()<<std::endl;
std::cout << "*** Track 1 pt : "<<t1.pt()<<" Track 1 eta : "<<t1.eta()<<" Track 1 phi : "<<t1.phi()<<" Track 1 TPCncls : "<<t1.tpcNClsFound()<<" Track 1 N Sigma E : "<<t1.tpcNSigmaEl()<<" Track 1 N Sigma Pi: "<<t1.tpcNSigmaPi()<<" Track 1 N Sigma El TOF : "<<t1.tofNSigmaEl()<<" Track 1 TOF beta : "<<t1.beta()<<" Selected 1 : "<<a1.isDQBarrelSelected()<<std::endl;
std::cout << "*** Track 2 pt : "<<t2.pt()<<" Track 2 eta : "<<t2.eta()<<" Track 2 phi : "<<t2.phi()<<" Track 2 TPCncls : "<<t2.tpcNClsFound()<<" Track 2 N Sigma E : "<<t2.tpcNSigmaEl()<<" Track 2 N Sigma Pi: "<<t2.tpcNSigmaPi()<<" Track 2 N Sigma El TOF : "<<t2.tofNSigmaEl()<<" Track 2 TOF beta : "<<t2.beta()<<" Selected 2 : "<<a2.isDQBarrelSelected()<<std::endl;
std::cout << "*** Pair Mass : "<<v12.M()<<" Pair Pt : "<<v12.Pt()<<" Pair Phi : "<<v12.Phi()<<std::endl;
std::cout << "***" << std::endl;
std::cout << "*** Selected BC : " << bc.globalBC() << " Selected Collision : " << collision.globalIndex() << " " << collision.collisionTime() << std::endl;
std::cout << "*** Track 1 pt : " << t1.pt() << " Track 1 eta : " << t1.eta() << " Track 1 phi : " << t1.phi() << " Track 1 TPCncls : " << t1.tpcNClsFound() << " Track 1 N Sigma E : " << t1.tpcNSigmaEl() << " Track 1 N Sigma Pi: " << t1.tpcNSigmaPi() << " Track 1 N Sigma El TOF : " << t1.tofNSigmaEl() << " Track 1 TOF beta : " << t1.beta() << " Selected 1 : " << a1.isDQBarrelSelected() << std::endl;
std::cout << "*** Track 2 pt : " << t2.pt() << " Track 2 eta : " << t2.eta() << " Track 2 phi : " << t2.phi() << " Track 2 TPCncls : " << t2.tpcNClsFound() << " Track 2 N Sigma E : " << t2.tpcNSigmaEl() << " Track 2 N Sigma Pi: " << t2.tpcNSigmaPi() << " Track 2 N Sigma El TOF : " << t2.tofNSigmaEl() << " Track 2 TOF beta : " << t2.beta() << " Selected 2 : " << a2.isDQBarrelSelected() << std::endl;
std::cout << "*** Pair Mass : " << v12.M() << " Pair Pt : " << v12.Pt() << " Pair Phi : " << v12.Phi() << std::endl;

objCountersBarrel[icut] += 1; // count the pair
if (fConfigQA) { // fill histograms if QA is enabled
fHistMan->FillHistClass(fBarrelPairHistNames[icut].Data(), VarManager::fgValues);
Expand Down

0 comments on commit cf09ad6

Please sign in to comment.