1414// /
1515// /
1616// / \author Adrian Fereydon Nassirpour <adrian.fereydon.nassirpour@cern.ch>
17+ #include < CCDB/BasicCCDBManager.h>
18+
19+ #include < iostream>
20+ #include < vector>
21+ #include < string>
1722
1823#include < TLorentzVector.h>
1924#include < TVector2.h>
5156#include " DetectorsBase/Propagator.h"
5257
5358#include " CommonDataFormat/InteractionRecord.h"
54- #include < CCDB/BasicCCDBManager.h>
5559
5660using namespace o2 ;
5761using 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