@@ -95,75 +95,75 @@ struct TrackQATask {
9595 void init (o2::framework::InitContext&)
9696 {
9797 // kine histograms
98- kine->Add (pt, new TH1D (" pt" , " #it{p}_{T};#it{p}_{T} [GeV/c]" , 200 , 0 ., 5 .));
99- kine->Add ( eta, new TH1D (" eta" , " #eta;#eta" , 180 , -0.9 , 0.9 ));
100- kine->Add ( phi, new TH1D (" phi" , " #phi;#phi [rad]" , 180 , 0 ., 2 * M_PI));
98+ kine->Add <pt>( new TH1D (" pt" , " #it{p}_{T};#it{p}_{T} [GeV/c]" , 200 , 0 ., 5 .));
99+ kine->Add < eta>( new TH1D (" eta" , " #eta;#eta" , 180 , -0.9 , 0.9 ));
100+ kine->Add < phi>( new TH1D (" phi" , " #phi;#phi [rad]" , 180 , 0 ., 2 * M_PI));
101101
102102 // track histograms
103- trackpar->Add (x, new TH1D (" x" , " track #it{x} position at dca in local coordinate system;#it{x} [cm]" , 200 , -0.36 , 0.36 ));
104- trackpar->Add (y, new TH1D (" y" , " track #it{y} position at dca in local coordinate system;#it{y} [cm]" , 200 , -0.5 , 0.5 ));
105- trackpar->Add (z, new TH1D (" z" , " track #it{z} position at dca in local coordinate system;#it{z} [cm]" , 200 , -11 ., 11 .));
106- trackpar->Add ( alpha, new TH1D (" alpha" , " rotation angle of local wrt. global coordinate system;#alpha [rad]" , 36 , -M_PI, M_PI));
107- trackpar->Add ( signed1Pt, new TH1D (" signed1Pt" , " track signed 1/#it{p}_{T};#it{q}/#it{p}_{T}" , 200 , -8 , 8 ));
108- trackpar->Add ( snp, new TH1D (" snp" , " sinus of track momentum azimuthal angle;snp" , 11 , -0.1 , 0.1 ));
109- trackpar->Add ( tgl, new TH1D (" tgl" , " tangent of the track momentum dip angle;tgl;" , 200 , -1 ., 1 .));
110- trackpar->Add ( flags, new TH1D (" flags" , " track flag;flag bit" , 64 , -0.5 , 63.5 ));
111- trackpar->Add ( dcaXY, new TH1D (" dcaXY" , " distance of closest approach in #it{xy} plane;#it{dcaXY} [cm];" , 200 , -0.15 , 0.15 ));
112- trackpar->Add ( dcaZ, new TH1D (" dcaZ" , " distance of closest approach in #it{z};#it{dcaZ} [cm];" , 200 , -0.15 , 0.15 ));
103+ trackpar->Add <x>( new TH1D (" x" , " track #it{x} position at dca in local coordinate system;#it{x} [cm]" , 200 , -0.36 , 0.36 ));
104+ trackpar->Add <y>( new TH1D (" y" , " track #it{y} position at dca in local coordinate system;#it{y} [cm]" , 200 , -0.5 , 0.5 ));
105+ trackpar->Add <z>( new TH1D (" z" , " track #it{z} position at dca in local coordinate system;#it{z} [cm]" , 200 , -11 ., 11 .));
106+ trackpar->Add < alpha>( new TH1D (" alpha" , " rotation angle of local wrt. global coordinate system;#alpha [rad]" , 36 , -M_PI, M_PI));
107+ trackpar->Add < signed1Pt>( new TH1D (" signed1Pt" , " track signed 1/#it{p}_{T};#it{q}/#it{p}_{T}" , 200 , -8 , 8 ));
108+ trackpar->Add < snp>( new TH1D (" snp" , " sinus of track momentum azimuthal angle;snp" , 11 , -0.1 , 0.1 ));
109+ trackpar->Add < tgl>( new TH1D (" tgl" , " tangent of the track momentum dip angle;tgl;" , 200 , -1 ., 1 .));
110+ trackpar->Add < flags>( new TH1D (" flags" , " track flag;flag bit" , 64 , -0.5 , 63.5 ));
111+ trackpar->Add < dcaXY>( new TH1D (" dcaXY" , " distance of closest approach in #it{xy} plane;#it{dcaXY} [cm];" , 200 , -0.15 , 0.15 ));
112+ trackpar->Add < dcaZ>( new TH1D (" dcaZ" , " distance of closest approach in #it{z};#it{dcaZ} [cm];" , 200 , -0.15 , 0.15 ));
113113
114114 // its histograms
115- its->Add ( itsNCls, new TH1D (" itsNCls" , " number of found ITS clusters;# clusters ITS" , 8 , -0.5 , 7.5 ));
116- its->Add ( itsChi2NCl, new TH1D (" itsChi2NCl" , " chi2 per ITS cluster;chi2 / cluster ITS" , 100 , 0 , 40 ));
117- its->Add ( itsHits, new TH1D (" itsHits" , " hitmap ITS;layer ITS" , 7 , -0.5 , 6.5 ));
115+ its->Add < itsNCls>( new TH1D (" itsNCls" , " number of found ITS clusters;# clusters ITS" , 8 , -0.5 , 7.5 ));
116+ its->Add < itsChi2NCl>( new TH1D (" itsChi2NCl" , " chi2 per ITS cluster;chi2 / cluster ITS" , 100 , 0 , 40 ));
117+ its->Add < itsHits>( new TH1D (" itsHits" , " hitmap ITS;layer ITS" , 7 , -0.5 , 6.5 ));
118118
119119 // tpc histograms
120- tpc->Add ( tpcNClsFindable, new TH1D (" tpcNClsFindable" , " number of findable TPC clusters;# findable clusters TPC" , 165 , -0.5 , 164.5 ));
121- tpc->Add ( tpcNClsFound, new TH1D (" tpcNClsFound" , " number of found TPC clusters;# clusters TPC" , 165 , -0.5 , 164.5 ));
122- tpc->Add ( tpcNClsShared, new TH1D (" tpcNClsShared" , " number of shared TPC clusters;# shared clusters TPC" , 165 , -0.5 , 164.5 ));
123- tpc->Add ( tpcNClsCrossedRows, new TH1D (" tpcNClsCrossedRows" , " number of crossed TPC rows;# crossed rows TPC" , 165 , -0.5 , 164.5 ));
124- tpc->Add ( tpcFractionSharedCls, new TH1D (" tpcFractionSharedCls" , " fraction of shared TPC clusters;fraction shared clusters TPC" , 100 , 0 ., 1 .));
125- tpc->Add ( tpcCrossedRowsOverFindableCls, new TH1D (" tpcCrossedRowsOverFindableCls" , " crossed TPC rows over findable clusters;crossed rows / findable clusters TPC" , 120 , 0.0 , 1.2 ));
126- tpc->Add ( tpcChi2NCl, new TH1D (" tpcChi2NCl" , " chi2 per cluster in TPC;chi2 / cluster TPC" , 100 , 0 , 10 ));
120+ tpc->Add < tpcNClsFindable>( new TH1D (" tpcNClsFindable" , " number of findable TPC clusters;# findable clusters TPC" , 165 , -0.5 , 164.5 ));
121+ tpc->Add < tpcNClsFound>( new TH1D (" tpcNClsFound" , " number of found TPC clusters;# clusters TPC" , 165 , -0.5 , 164.5 ));
122+ tpc->Add < tpcNClsShared>( new TH1D (" tpcNClsShared" , " number of shared TPC clusters;# shared clusters TPC" , 165 , -0.5 , 164.5 ));
123+ tpc->Add < tpcNClsCrossedRows>( new TH1D (" tpcNClsCrossedRows" , " number of crossed TPC rows;# crossed rows TPC" , 165 , -0.5 , 164.5 ));
124+ tpc->Add < tpcFractionSharedCls>( new TH1D (" tpcFractionSharedCls" , " fraction of shared TPC clusters;fraction shared clusters TPC" , 100 , 0 ., 1 .));
125+ tpc->Add < tpcCrossedRowsOverFindableCls>( new TH1D (" tpcCrossedRowsOverFindableCls" , " crossed TPC rows over findable clusters;crossed rows / findable clusters TPC" , 120 , 0.0 , 1.2 ));
126+ tpc->Add < tpcChi2NCl>( new TH1D (" tpcChi2NCl" , " chi2 per cluster in TPC;chi2 / cluster TPC" , 100 , 0 , 10 ));
127127 }
128128
129129 void process (soa::Filtered<soa::Join<aod::FullTracks, aod::TracksExtended, aod::TrackSelection>>::iterator const & track)
130130 {
131131 // fill kinematic variables
132- kine->Fill (pt, track.pt ());
133- kine->Fill ( eta, track.eta ());
134- kine->Fill ( phi, track.phi ());
132+ kine->Fill <pt>( track.pt ());
133+ kine->Fill < eta>( track.eta ());
134+ kine->Fill < phi>( track.phi ());
135135
136136 // fill track parameters
137- trackpar->Fill ( alpha, track.alpha ());
138- trackpar->Fill (x, track.x ());
139- trackpar->Fill (y, track.y ());
140- trackpar->Fill (z, track.z ());
141- trackpar->Fill ( signed1Pt, track.signed1Pt ());
142- trackpar->Fill ( snp, track.snp ());
143- trackpar->Fill ( tgl, track.tgl ());
137+ trackpar->Fill < alpha>( track.alpha ());
138+ trackpar->Fill <x>( track.x ());
139+ trackpar->Fill <y>( track.y ());
140+ trackpar->Fill <z>( track.z ());
141+ trackpar->Fill < signed1Pt>( track.signed1Pt ());
142+ trackpar->Fill < snp>( track.snp ());
143+ trackpar->Fill < tgl>( track.tgl ());
144144 for (unsigned int i = 0 ; i < 64 ; i++) {
145145 if (track.flags () & (1 << i))
146- trackpar->Fill ( flags, i);
146+ trackpar->Fill < flags>( i);
147147 }
148- trackpar->Fill ( dcaXY, track.dcaXY ());
149- trackpar->Fill ( dcaZ, track.dcaZ ());
148+ trackpar->Fill < dcaXY>( track.dcaXY ());
149+ trackpar->Fill < dcaZ>( track.dcaZ ());
150150
151151 // fill ITS variables
152- its->Fill ( itsNCls, track.itsNCls ());
153- its->Fill ( itsChi2NCl, track.itsChi2NCl ());
152+ its->Fill < itsNCls>( track.itsNCls ());
153+ its->Fill < itsChi2NCl>( track.itsChi2NCl ());
154154 for (unsigned int i = 0 ; i < 7 ; i++) {
155155 if (track.itsClusterMap () & (1 << i))
156- its->Fill ( itsHits, i);
156+ its->Fill < itsHits>( i);
157157 }
158158
159159 // fill TPC variables
160- tpc->Fill ( tpcNClsFindable, track.tpcNClsFindable ());
161- tpc->Fill ( tpcNClsFound, track.tpcNClsFound ());
162- tpc->Fill ( tpcNClsShared, track.tpcNClsShared ());
163- tpc->Fill ( tpcNClsCrossedRows, track.tpcNClsCrossedRows ());
164- tpc->Fill ( tpcCrossedRowsOverFindableCls, track.tpcCrossedRowsOverFindableCls ());
165- tpc->Fill ( tpcFractionSharedCls, track.tpcFractionSharedCls ());
166- tpc->Fill ( tpcChi2NCl, track.tpcChi2NCl ());
160+ tpc->Fill < tpcNClsFindable>( track.tpcNClsFindable ());
161+ tpc->Fill < tpcNClsFound>( track.tpcNClsFound ());
162+ tpc->Fill < tpcNClsShared>( track.tpcNClsShared ());
163+ tpc->Fill < tpcNClsCrossedRows>( track.tpcNClsCrossedRows ());
164+ tpc->Fill < tpcCrossedRowsOverFindableCls>( track.tpcCrossedRowsOverFindableCls ());
165+ tpc->Fill < tpcFractionSharedCls>( track.tpcFractionSharedCls ());
166+ tpc->Fill < tpcChi2NCl>( track.tpcChi2NCl ());
167167
168168 // fill TRD variables
169169
0 commit comments