Skip to content

Commit 27cc197

Browse files
committed
Merge pull request #34 from alibuild/alibot-cleanup-9999
[PWGJE] Please consider the following formatting changes to AliceO2Group#9999
2 parents d39a822 + 9b8d829 commit 27cc197

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

PWGJE/Tasks/statPromptPhoton.cxx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
///
1616
/// \author Adrian Fereydon Nassirpour <adrian.fereydon.nassirpour@cern.ch>
1717

18+
#include <iostream>
19+
#include <vector>
20+
#include <string>
21+
#include <CCDB/BasicCCDBManager.h>
22+
1823
#include <TLorentzVector.h>
1924
#include <TVector2.h>
2025

@@ -51,7 +56,6 @@
5156
#include "DetectorsBase/Propagator.h"
5257

5358
#include "CommonDataFormat/InteractionRecord.h"
54-
#include <CCDB/BasicCCDBManager.h>
5559

5660
using namespace o2;
5761
using namespace o2::framework;
@@ -856,12 +860,12 @@ struct statPromptPhoton {
856860
histos.fill(HIST("REC_Cluster_ParticleWITHtrack_Eta"), clusterparticle.eta());
857861
histos.fill(HIST("REC_Cluster_ParticleWITHtrack_Pt_Phi"), clusterparticle.pt(), clusterparticle.phi());
858862
// if (phiPrimeP > (0.12/ptP + TMath::Pi()/18. + 0.035) ||
859-
// phiPrimeP < (0.1/ptP/ptP + TMath::Pi()/18. - 0.025) ) {
863+
// phiPrimeP < (0.1/ptP/ptP + TMath::Pi()/18. - 0.025) ) {
860864
histos.fill(HIST("REC_Cluster_ParticleWITHtrack_Pt_PhiPrime"), ptP, phiPrimeP);
861865
if (photontrigger) {
862866
histos.fill(HIST("REC_Impurity_ParticleWITHtrack_Pt_PhiPrime"), ptP, phiPrimeP);
863867
}
864-
// }//geo cut
868+
// }//geo cut
865869
histos.fill(HIST("REC_Cluster_ParticleWITHtrack_Pt_Eta"), clusterparticle.pt(), clusterparticle.eta());
866870

867871
histos.fill(HIST("REC_Cluster_ParticleWITHtrack_TrackPt"), track.pt());
@@ -876,7 +880,7 @@ struct statPromptPhoton {
876880
histos.fill(HIST("REC_Cluster_ParticleWITHOUTtrack_Eta"), clusterparticle.eta());
877881
histos.fill(HIST("REC_Cluster_ParticleWITHOUTtrack_Pt_Phi"), clusterparticle.pt(), clusterparticle.phi());
878882
// if (phiPrimeP > (0.12/ptP + TMath::Pi()/18. + 0.035) ||
879-
// phiPrimeP < (0.1/ptP/ptP + TMath::Pi()/18. - 0.025) ) {
883+
// phiPrimeP < (0.1/ptP/ptP + TMath::Pi()/18. - 0.025) ) {
880884
histos.fill(HIST("REC_Cluster_ParticleWITHOUTtrack_Pt_PhiPrime"), ptP, phiPrimeP);
881885
if (photontrigger) {
882886
histos.fill(HIST("REC_Impurity_ParticleWITHOUTtrack_Pt_PhiPrime"), ptP, phiPrimeP);
@@ -885,8 +889,8 @@ struct statPromptPhoton {
885889
histos.fill(HIST("REC_Cluster_ParticleWITHOUTtrack_Pt_Eta"), clusterparticle.pt(), clusterparticle.eta());
886890
}
887891
} // pdg code check
888-
889-
double phidiff = TVector2::Phi_mpi_pi(mccluster.phi() - clusterparticle.phi());
892+
893+
double phidiff = TVector2::Phi_mpi_pi(mccluster.phi() - clusterparticle.phi());
890894
double etadiff = mccluster.eta() - clusterparticle.eta();
891895

892896
if (pdgcode == 211 || pdgcode == 321 || pdgcode == 2212 || pdgcode == 11) {
@@ -987,11 +991,11 @@ struct statPromptPhoton {
987991
// std::cout<<"++++++++++++++++++++++++++++++++"<<std::endl;
988992
// }
989993
// else {
990-
// ccdbpath="GLO/GRP/GRP";
991-
// static o2::parameters::GRPObject* grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>(ccdbpath, bc.timestamp());
992-
// if(!grpo) {
993-
// std::cout<<"WE CAN NEITHER FETCH GRPMAG OR GRPO!!! SHIT IS SCREWED"<<std::endl;
994-
// }
994+
// ccdbpath="GLO/GRP/GRP";
995+
// static o2::parameters::GRPObject* grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>(ccdbpath, bc.timestamp());
996+
// if(!grpo) {
997+
// std::cout<<"WE CAN NEITHER FETCH GRPMAG OR GRPO!!! SHIT IS SCREWED"<<std::endl;
998+
// }
995999
// bfield = grpo->getNominalL3Field();
9961000
// }
9971001
bfield = 5;
@@ -1028,7 +1032,7 @@ struct statPromptPhoton {
10281032
phiPrime = fmod(phiPrime, 2 * TMath::Pi() / 18.);
10291033
double pt = track.pt();
10301034
// if (phiPrime > (0.12/pt + TMath::Pi()/18. + 0.035) ||
1031-
// phiPrime < (0.1/pt/pt + TMath::Pi()/18. - 0.025) ) {
1035+
// phiPrime < (0.1/pt/pt + TMath::Pi()/18. - 0.025) ) {
10321036
histos.fill(HIST("REC_Track_PhiPrime_Pt"), phiPrime, track.pt());
10331037
// }//geo cut
10341038
// Done with geometric cuts

0 commit comments

Comments
 (0)