// $Id$
//
// Standalone jet finder
+// CINT-compatible wrapper for AliFJWrapper, can be used in macros and from the ROOT command line.
+// Compiled code can use AliFJWrapper directly
//
// Authors: R.Haake
Bool_t AliEmcalJetFinder::FindJets()
{
// Tidy up and check input
+ for (UInt_t i=0; i<fJetArray.size(); i++) {
+ delete fJetArray[i];
+ fJetArray[i] = 0;
+ }
fJetArray.clear();
fJetCount = 0;
if(!fInputVectorIndex)
fFastjetWrapper->SetAlgorithm(fastjet::antikt_algorithm);
if(fJetAlgorithm == 1)
fFastjetWrapper->SetAlgorithm(fastjet::kt_algorithm);
- if(fRecombScheme>0)
+ if(fRecombScheme>=0)
fFastjetWrapper->SetRecombScheme(static_cast<fastjet::RecombinationScheme>(fRecombScheme));
fFastjetWrapper->SetMaxRap(fTrackMaxEta);
// Set the most important properties of the jet
Int_t nConstituents(fFastjetWrapper->GetJetConstituents(i).size());
+ jet->SetArea(fFastjetWrapper->GetJetArea(i));
jet->SetNumberOfTracks(nConstituents);
jet->SetNumberOfClusters(nConstituents);
fJetArray[fJetCount] = jet;
fJetArray.resize(fJetCount);
- fastjets.clear();
+ //fastjets.clear(); // will be done by the destructor at the end of the function
fFastjetWrapper->Clear();
fInputVectorIndex = 0;
return kTRUE;
{
if(!histogram)
return;
- for (Int_t i=0; i<fJetArray.size(); i++)
+ for (std::size_t i=0; i<fJetArray.size(); i++)
{
histogram->Fill(fJetArray[i]->Pt());
}
{
if(!histogram)
return;
- for (Int_t i=0; i<fJetArray.size(); i++)
+ for (std::size_t i=0; i<fJetArray.size(); i++)
{
histogram->Fill(fJetArray[i]->Phi());
}
{
if(!histogram)
return;
- for (Int_t i=0; i<fJetArray.size(); i++)
+ for (std::size_t i=0; i<fJetArray.size(); i++)
{
histogram->Fill(fJetArray[i]->Eta());
}