Skip to content

Commit 7e952e6

Browse files
authored
[DPG] Fix photon charge (#8235)
1 parent 665d555 commit 7e952e6

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

DPG/Tasks/AOTTrack/PID/HMPID/analysisHMPID.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ DECLARE_SOA_COLUMN(Nphotons, nphotons, float);
5252
DECLARE_SOA_COLUMN(ChargeMIP, chargeMIP, float);
5353
DECLARE_SOA_COLUMN(ClusterSize, clustersize, float);
5454
DECLARE_SOA_COLUMN(Chamber, chamber, float);
55-
DECLARE_SOA_COLUMN(Photons_charge, photons_charge, float);
55+
DECLARE_SOA_COLUMN(Photons_charge, photons_charge, float[10]);
5656

5757
DECLARE_SOA_COLUMN(EtaTrack, etatrack, float);
5858
DECLARE_SOA_COLUMN(PhiTrack, phitrack, float);
@@ -116,11 +116,17 @@ struct pidHmpidAnalysis {
116116
continue;
117117
}
118118

119+
float hmpidPhotsCharge2[10];
120+
121+
for (int i = 0; i < 10; i++) {
122+
hmpidPhotsCharge2[i] = t.hmpidPhotsCharge()[i];
123+
}
124+
119125
/////FILL TABLE
120126
HMPID_analysis(t.hmpidSignal(), t.track_as<TrackCandidates>().phi(), t.track_as<TrackCandidates>().eta(), t.hmpidMom(),
121127
track.p(), t.hmpidXTrack(), t.hmpidYTrack(), t.hmpidXMip(),
122128
t.hmpidYMip(), t.hmpidNPhotons(), t.hmpidQMip(), (t.hmpidClusSize() % 1000000) / 1000, t.hmpidClusSize() / 1000000,
123-
*t.hmpidPhotsCharge(), track.eta(), track.phi(), track.itsNCls(), track.tpcNClsFound(), track.tpcNClsCrossedRows(),
129+
hmpidPhotsCharge2, track.eta(), track.phi(), track.itsNCls(), track.tpcNClsFound(), track.tpcNClsCrossedRows(),
124130
track.tpcChi2NCl(), track.itsChi2NCl(), track.dcaXY(), track.dcaZ(),
125131
track.tpcNSigmaPi(), track.tofNSigmaPi(), track.tpcNSigmaKa(), track.tofNSigmaKa(),
126132
track.tpcNSigmaPr(), track.tofNSigmaPr(), track.tpcNSigmaDe(), track.tofNSigmaDe());

DPG/Tasks/AOTTrack/PID/HMPID/qaHMPID.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ DECLARE_SOA_COLUMN(Nphotons, nphotons, float);
5252
DECLARE_SOA_COLUMN(ChargeMIP, chargeMIP, float);
5353
DECLARE_SOA_COLUMN(ClusterSize, clustersize, float);
5454
DECLARE_SOA_COLUMN(Chamber, chamber, float);
55-
DECLARE_SOA_COLUMN(Photons_charge, photons_charge, float);
55+
DECLARE_SOA_COLUMN(Photons_charge, photons_charge, float[10]);
5656

5757
DECLARE_SOA_COLUMN(EtaTrack, etatrack, float);
5858
DECLARE_SOA_COLUMN(PhiTrack, phitrack, float);
@@ -145,10 +145,16 @@ struct pidHmpidQa {
145145
continue;
146146
}
147147

148+
float hmpidPhotsCharge2[10];
149+
150+
for (int i = 0; i < 10; i++) {
151+
hmpidPhotsCharge2[i] = t.hmpidPhotsCharge()[i];
152+
}
153+
148154
HMPID_analysis(t.hmpidSignal(), t.track_as<TrackCandidates>().phi(), t.track_as<TrackCandidates>().eta(), t.hmpidMom(),
149155
track.px(), track.py(), track.pz(), t.hmpidXTrack(), t.hmpidYTrack(), t.hmpidXMip(),
150156
t.hmpidYMip(), t.hmpidNPhotons(), t.hmpidQMip(), (t.hmpidClusSize() % 1000000) / 1000, t.hmpidClusSize() / 1000000,
151-
*t.hmpidPhotsCharge(), track.eta(), track.phi(), track.itsNCls(), track.tpcNClsFound(), track.tpcNClsCrossedRows(),
157+
hmpidPhotsCharge2, track.eta(), track.phi(), track.itsNCls(), track.tpcNClsFound(), track.tpcNClsCrossedRows(),
152158
track.tpcChi2NCl(), track.itsChi2NCl(), track.dcaXY(), track.dcaZ());
153159

154160
histos.fill(HIST("hmpidSignal"), t.hmpidSignal());

0 commit comments

Comments
 (0)