Generator level heavy flavour jet origin/flavour identification

Original implementation of the code for finding flavour, origin and leptonic decay of heavi flavour hadrons/jets.
This implementation still uses a copy of GenJetParticles module to inject ghost hadrons into generator jets.
This could be replaced by an existing new implementation of jet flavour identification which already injects wide range of particles into jets. In order to use reclustered jets from jet flavour ID one would need to replace the input genJets collections in the PhysicsTools/JetMCAlgos/python/sequences/GenHFHadronMatching_cff.py sequences.

A very simple test config file has been added: PhysicsTools/JetMCAlgos/test/genHFHadronMatcher.py

It doesn't produce any input since this would need to write information into some ROOT file. It just checks whether the algorithm runs in the particular release.

This code has been tested to compile and run in CMSSW_7_1_6 release on lxplus0185.
You're right, no root file is produced. I don't know what is the best way for managing this. In our analysis we had a separate Analyzer that manually extracted all necessary information and wrote it into branches in the output ROOT file. But it was managing all products used in our Top analyses.

I'm not very familiar with the "PoolOutputModule". What does it output and in which format? Are you suggesting to create an additional Analyzer which would write the TTree with all information from this producer into a dedicated ROOT file?