Skip to content

Commit 53c14cb

Browse files
authored
jetChargedV2.cxx
1 parent fef6f27 commit 53c14cb

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

PWGJE/Tasks/jetChargedV2.cxx

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ struct JetChargedV2 {
177177
double evtnum = 0;
178178
double accptTrack = 0;
179179
double fitTrack = 0;
180+
float collQvecAmpDetId = 1e-8;
180181
TH1F* hPtsumSumptFit = nullptr;
181182
TH1F* hPtsumSumptFitMCP = nullptr;
182183
TF1* fFitModulationV2v3 = 0x0;
@@ -485,21 +486,9 @@ struct JetChargedV2 {
485486
return true;
486487
}
487488

488-
template <typename T, typename U>
489-
bool trackIsInJet(T const& track, U const& jet)
490-
{
491-
for (auto const& constituentId : jet.tracksIds()) {
492-
if (constituentId == track.globalIndex()) {
493-
return true;
494-
}
495-
}
496-
return false;
497-
}
498-
499489
template <typename T, typename J>
500490
void fillInOutjetV2EP(T const& collision, J const& jets)
501491
{
502-
float collQvecAmpDetId = 1e-8;
503492
int cfgNmodA = 2;
504493
int cfgNmodB = 3;
505494
for (uint i = 0; i < cfgnMods->size(); i++) {
@@ -909,21 +898,6 @@ struct JetChargedV2 {
909898
registry.fill(HIST("leadJetEtaMCP"), leadingJetEta);
910899
}
911900

912-
// create MCP h_ptsum_sumpt_fit, with number of Track
913-
template <typename T, typename U>
914-
void getNtrkMCP(T const& tracks, U const& jets, int& nTrk, double& evtnum, double& leadingJetEta)
915-
{
916-
if (jets.size() > 0) {
917-
for (auto const& track : tracks) {
918-
if (jetderiveddatautilities::selectTrack(track, trackSelection) && (std::fabs(track.eta() - leadingJetEta) > jetRadius) && track.pt() >= localRhoFitPtMin && track.pt() <= localRhoFitPtMax) {
919-
registry.fill(HIST("h_accept_Track"), 5.5);
920-
nTrk += 1;
921-
}
922-
}
923-
registry.fill(HIST("h_mcp_evtnum_NTrk"), evtnum, nTrk);
924-
}
925-
}
926-
927901
template <typename U, typename T, typename J>
928902
void fitFncMCP(U const& collision, T const& tracks, J const& jets, TH1F* hPtsumSumptFitMCP, double leadingJetEta, bool mcLevelIsParticleLevel)
929903
{

0 commit comments

Comments
 (0)