LCFIVertex  0.7.2
Public Member Functions | Public Attributes | Protected Attributes | List of all members
TrueAngularJetFlavourProcessor Class Reference

Determine MC Jet Flavour by angular matching of heavy quarks to jets, also determine hadronic and partonic charge of jet. More...

#include <TrueAngularJetFlavourProcessor.h>

Inheritance diagram for TrueAngularJetFlavourProcessor:
Inheritance graph
[legend]
Collaboration diagram for TrueAngularJetFlavourProcessor:
Collaboration graph
[legend]

Public Member Functions

virtual Processor * newProcessor ()
 
virtual void init ()
 
virtual void processRunHeader (LCRunHeader *run)
 
virtual void processEvent (LCEvent *evt)
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 
float chargefromPDG (int code)
 

Public Attributes

std::vector< std::string > _TrueJetVariableNames
 

Protected Attributes

std::string _JetRPColName
 
std::string _MCParticleColName
 
std::string _TrueJetFlavourColName
 
double _MaximumAngle
 
int _nRun
 
int _nEvt
 

Detailed Description

Determine MC Jet Flavour by angular matching of heavy quarks to jets, also determine hadronic and partonic charge of jet.

The processor looks at all the PDG codes of all MC particles and recognises all particles containing b- and c-quarks. It then looks at the momentum of the heavy MC particles and at the momentum of the jets. The association is done by matching heavy flavour hadrons to the jet that is closest in agle. More than one heavy particle can therefore be associated with the same jet. If this happens the jet flavour is the flavour of the first particle in the parent-daughter chain associated with the jet. The pdg code of particle is subsequently used to determine the hadronic charge of the jet and the partonic charge of the heavy particle.

Input - Prerequisites

Needs the collection of MCParticles. Needs the collection of Reconstructed Particles that represent the jets.

Output

It writes to lcio the calculated flavours of the jets. This is stored in a collection of LCIntVec. By default the collection is called TrueJetFlavour.Writes also the PDG of the used particle and the hadronic and the partonic charge. By definition these collections are called: TrueJetPDGCode, TrueJetHadronCharge and TrueJetPartonCharge.

Parameters
MCParticleColNameName of the MCParticle collection.
JetRPColNameName of the ReconstructedParticle collection that represents jets.
TrueJetFlavourCollectionName of the output collection where the jet flavours will be stored.
TrueJetPDGCodeCollectionName of the output collection where the PDG of the heavy particle associated to the jet is stored.
TrueJetHadronChargeCollectionName of the output collection where the hadronic charge is stroed.
TrueJetPartonChargeCollectionName of the output collection where the parton charge (charmness, bottomnes) is stored.
MaximumAngleMaximum value allowed between MCParticle and jet momentum expressed in degrees. If the closest jet is at a wider angle than MaximumAngle the MC particle does not get assigned.
Author
Erik Devetak (e.dev.nosp@m.etak.nosp@m.1@phy.nosp@m.sics.nosp@m..ox.a.nosp@m.c.uk),
interface by Ben Jeffery (b.jef.nosp@m.fery.nosp@m.1@phy.nosp@m.sics.nosp@m..ox.a.nosp@m.c.uk)

Definition at line 53 of file TrueAngularJetFlavourProcessor.h.


The documentation for this class was generated from the following files: