\hypertarget{classTrueAngularJetFlavourProcessor}{\subsection{True\-Angular\-Jet\-Flavour\-Processor Class Reference}
\label{classTrueAngularJetFlavourProcessor}\index{True\-Angular\-Jet\-Flavour\-Processor@{True\-Angular\-Jet\-Flavour\-Processor}}
}


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




{\ttfamily \#include $<$True\-Angular\-Jet\-Flavour\-Processor.\-h$>$}



Inherits Processor.



\subsubsection{Detailed Description}
Determine M\-C Jet Flavour by angular matching of heavy quarks to jets, also determine hadronic and partonic charge of jet. 

The processor looks at all the P\-D\-G codes of all M\-C particles and recognises all particles containing b-\/ and c-\/quarks. It then looks at the momentum of the heavy M\-C 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.

\subparagraph*{Input -\/ Prerequisites}

Needs the collection of M\-C\-Particles. Needs the collection of Reconstructed Particles that represent the jets.

\subparagraph*{Output}

It writes to lcio the calculated flavours of the jets. This is stored in a collection of L\-C\-Int\-Vec. By default the collection is called True\-Jet\-Flavour.\-Writes also the P\-D\-G of the used particle and the hadronic and the partonic charge. By definition these collections are called\-: True\-Jet\-P\-D\-G\-Code, True\-Jet\-Hadron\-Charge and True\-Jet\-Parton\-Charge.


\begin{DoxyParams}{Parameters}
{\em M\-C\-Particle\-Col\-Name} & Name of the M\-C\-Particle collection. \\
\hline
{\em Jet\-R\-P\-Col\-Name} & Name of the Reconstructed\-Particle collection that represents jets. \\
\hline
{\em True\-Jet\-Flavour\-Collection} & Name of the output collection where the jet flavours will be stored. \\
\hline
{\em True\-Jet\-P\-D\-G\-Code\-Collection} & Name of the output collection where the P\-D\-G of the heavy particle associated to the jet is stored. \\
\hline
{\em True\-Jet\-Hadron\-Charge\-Collection} & Name of the output collection where the hadronic charge is stroed. \\
\hline
{\em True\-Jet\-Parton\-Charge\-Collection} & Name of the output collection where the parton charge (charmness, bottomnes) is stored. \\
\hline
{\em Maximum\-Angle} & Maximum value allowed between M\-C\-Particle and jet momentum expressed in degrees. If the closest jet is at a wider angle than Maximum\-Angle the M\-C particle does not get assigned.\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Erik Devetak (\href{mailto:e.devetak1@physics.ox.ac.uk}{\tt e.\-devetak1@physics.\-ox.\-ac.\-uk}), \par
 interface by Ben Jeffery (\href{mailto:b.jeffery1@physics.ox.ac.uk}{\tt b.\-jeffery1@physics.\-ox.\-ac.\-uk}) 
\end{DoxyAuthor}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
True\-Angular\-Jet\-Flavour\-Processor.\-h\end{DoxyCompactItemize}
