\hypertarget{classPlotProcessor}{\subsection{Plot\-Processor Class Reference}
\label{classPlotProcessor}\index{Plot\-Processor@{Plot\-Processor}}
}


Creates some sample plots from the data calculated by the L\-C\-F\-I vertex package.  




{\ttfamily \#include $<$Plot\-Processor.\-h$>$}



Inherits Processor.



\subsubsection{Detailed Description}
Creates some sample plots from the data calculated by the L\-C\-F\-I vertex package. 

An example of getting the flavour tag results from the L\-C\-I\-O file and plotting an efficiency purity graph with them. Also plots a graph of jet energies for good measure.\par
 The processor checks the specifed L\-C\-Float\-Vec collections for the flavour tag values \char`\"{}\-B\-Tag\char`\"{}, \char`\"{}\-C\-Tag\char`\"{} and \char`\"{}\-B\-C\-Tag\char`\"{} which are the names that \hyperlink{classFlavourTagProcessor}{Flavour\-Tag\-Processor} stores its b tag, c tag and c tag (only b background) values in respectively. \par
 These values are checked against the true jet flavour (from the True\-Jet\-Flavour L\-C\-Int\-Vec) and efficiency-\/purity values calculated for a range of cuts.\par
 The jet energy is taken from the energy of the reconstructed particle used to represent the jet.

\subparagraph*{Getting Root output}

To output to a Root file instead of C\-S\-V files the processor has to be compiled with the U\-S\-E\-R\-O\-O\-T preprocessor flag defined. You could add \char`\"{}\#define U\-S\-E\-R\-O\-O\-T\char`\"{} to the code, or more easily add the line

U\-S\-E\-R\-I\-N\-C\-L\-U\-D\-E\-S += -\/\-D U\-S\-E\-R\-O\-O\-T

to the userlib.\-gmk file that is in the Marlin directory. If Marlin is not already set up to use Root then you will also need to add the following lines (this assumes a fully working root installation)\-:

U\-S\-E\-R\-I\-N\-C\-L\-U\-D\-E\-S += {\ttfamily root-\/config -\/-\/cflags}\par
 U\-S\-E\-R\-L\-I\-B\-S += {\ttfamily root-\/config -\/-\/libs}

\subparagraph*{Input}

From the L\-C\-I\-O file, flavour tag variable values of\-:

\char`\"{}\-B\-Tag\char`\"{} \char`\"{}\-C\-Tag\char`\"{} \char`\"{}\-B\-C\-Tag\char`\"{}

And

\char`\"{}\-Jet\-Type\char`\"{}

\subparagraph*{Output}

If the U\-S\-E\-R\-O\-O\-T preprocessor flag was defined when this processor was compiled, then the output will be a root file with the filename specified in the steering file. Otherwise, the efficiency-\/purity values will be output as comma separated values to the file $<$filename$>$+\char`\"{}.\-csv\char`\"{}, and the jet energies to $<$filename$>$+\char`\"{}-\/\-Jet\-Energies.\-csv\char`\"{}.


\begin{DoxyParams}{Parameters}
{\em Jet\-Collection\-Name} & Name of the Reconstructed\-Particle collection that represents jets. \\
\hline
{\em Flavour\-Tag\-Collections} & Names of the L\-C\-Float\-Vec collections holding the Flavour tags, all tags in this list will be produced in one file for comparison \\
\hline
{\em True\-Jet\-Flavour\-Collection} & L\-C\-Int\-Vec that contains the M\-C Jet flavour (from True\-Jet\-Flavour\-Processor) \\
\hline
{\em Output\-Filename} & The name of the file that will hold the output. \\
\hline
\end{DoxyParams}


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