iLCSoft / MarlinFastJet

Marlin processor to interface FastJet
GNU General Public License v3.0
2 stars 8 forks source link

storeParticlesInJets flag #14

Closed yradkhorrami closed 4 years ago

yradkhorrami commented 4 years ago

A runtime error occurs when storeParticlesInJets flag is set to true.

rete commented 4 years ago

Hi @yradkhorrami . From your log file file, it looks like you forgot to specify the output collection name for reco particles that goes in the jet (recParticleOut):

[ MESSAGE "MyFastJetProcessor"] ---- MyFastJetProcessor -  parameters: 
[ MESSAGE "MyFastJetProcessor"]     Verbosity:  DEBUG
[ MESSAGE "MyFastJetProcessor"]     algorithm:  ee_kt_algorithm 
[ MESSAGE "MyFastJetProcessor"]     clusteringMode:  ExclusiveNJets 2 
[ MESSAGE "MyFastJetProcessor"]     jetOut:  Durham_2Jets
[ MESSAGE "MyFastJetProcessor"]     recParticleIn:  PandoraPFOsWithoutIsoLep
[ MESSAGE "MyFastJetProcessor"]     recParticleOut:  
[ MESSAGE "MyFastJetProcessor"]     recombinationScheme:  E_scheme
[ MESSAGE "MyFastJetProcessor"]     storeParticlesInJets:  true

Please specify a collection name, it should fix your issue. Close this issue if this fix is right.

yradkhorrami commented 4 years ago

Hi @yradkhorrami . From your log file file, it looks like you forgot to specify the output collection name for reco particles that goes in the jet (recParticleOut):

[ MESSAGE "MyFastJetProcessor"] ---- MyFastJetProcessor -  parameters: 
[ MESSAGE "MyFastJetProcessor"]   Verbosity:  DEBUG
[ MESSAGE "MyFastJetProcessor"]   algorithm:  ee_kt_algorithm 
[ MESSAGE "MyFastJetProcessor"]   clusteringMode:  ExclusiveNJets 2 
[ MESSAGE "MyFastJetProcessor"]   jetOut:  Durham_2Jets
[ MESSAGE "MyFastJetProcessor"]   recParticleIn:  PandoraPFOsWithoutIsoLep
[ MESSAGE "MyFastJetProcessor"]   recParticleOut:  
[ MESSAGE "MyFastJetProcessor"]   recombinationScheme:  E_scheme
[ MESSAGE "MyFastJetProcessor"]   storeParticlesInJets:  true

Please specify a collection name, it should fix your issue. Close this issue if this fix is right.

Hi @rete . Yes you are right. I specified the output collection name and it is ok now. I thought it is initialized in the processor!