return kFALSE;
fHistAcceptedEvents->SetBinContent(fPtHardBin, fHistEvents->GetBinContent(fPtHardBin) + 1);
- fHistNTrials->SetBinContent(fPtHardBin, fHistEvents->GetBinContent(fPtHardBin) + fNTrials);
+ fHistNTrials->SetBinContent(fPtHardBin, fHistNTrials->GetBinContent(fPtHardBin) + fNTrials);
DoJetLoop(fJets, fMCJets, kFALSE);
DoJetLoop(fMCJets, fJets, kTRUE);
rigidAxis.SetPtEtaPhi(1, eta, phi);
rigidAxis = rigidAxis.Unit();
- if (fAnaType == kEMCAL && clusters) {
+ if ((fAnaType == kEMCAL || fAnaType == kEMCALOnly) && clusters) {
Int_t nclusters = clusters->GetEntriesFast();
for (Int_t iClusters = 0; iClusters < nclusters; iClusters++) {
AliVCluster* cluster = static_cast<AliVCluster*>(clusters->At(iClusters));
}
}
}
+
//________________________________________________________________________
void AliAnalysisTaskSAJF::ExecOnce()
{
// Initialize the analysis.
if (!fEmbJetsName.IsNull()) {
- if (fEmbTracksName.IsNull()) {
+ if (fEmbTracksName.IsNull() && fAnaType != kEMCALOnly) {
fEmbTracksName = fTracksName;
fEmbTracksName += "Embedded";
}