All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
TTbarAnalysis::TruthVertexFinder Class Reference

This processor is designed to extruct a secondary/// vertices from collection of generated particles, /// by using a PDG type and daughter/parent relation /// relations. More...

#include <TruthVertexFinder.hh>

Inheritance diagram for TTbarAnalysis::TruthVertexFinder:
[legend]

Public Member Functions

 TruthVertexFinder (const TruthVertexFinder &)=delete
 
TruthVertexFinderoperator= (const TruthVertexFinder &)=delete
 
virtual ProcessornewProcessor ()
 
 TruthVertexFinder ()
 
virtual void init ()
 
virtual void processRunHeader (LCRunHeader *run)
 
virtual void processEvent (LCEvent *evt)
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 
void PrintParticle (MCParticle *particle)
 
void PrintChain (std::vector< MCParticle * > *chain)
 
void WriteVertexCollection (LCEvent *evt, std::vector< Vertex * > *bvertexes, std::vector< Vertex * > *bbarvertexes)
 
void Write (std::vector< EVENT::Vertex * > *vertices, int &number)
 
void Write (MCOperator &opera, DecayChain *chain, std::vector< Vertex * > *bvertexes)
 
void AddProngs (VertexMCOperator &vertexOperator, MCOperator &opera, DecayChain *chain, std::vector< Vertex * > *vertices, std::vector< int > &parameters, IMPL::LCCollectionVec *col=NULL)
 
void Write (const std::vector< MCParticle * > particle, int v)
 
double getMissingPt (const std::vector< MCParticle * > &bdaugthers, const std::vector< MCParticle * > &cdaughters, Vertex *vertex)
 
void WriteQuarksCollection (LCEvent *evt, std::vector< MCParticle * > &quarks)
 
void WriteMisReco (std::vector< MCParticle * > *particles)
 
void GetAsymmetry (std::vector< MCParticle * > &particles)
 
void ClearVariables ()
 

Protected Attributes

std::string _colName {}
 
std::string _outputcolName {}
 
std::string _outputquarkcolName {}
 
std::string _outputBStarName {}
 
std::string _outputProngsName {}
 
std::string _colRelName {}
 
std::string _outputBbarStarName {}
 
std::vector< PDGTYPE_pdgs {}
 
IntVec inputPdg {}
 
int _tagParameter {}
 
int _initialQuarkPDGparameter {}
 
float _aParameter {}
 
float _bParameter {}
 
int _writeBonlyParameter {}
 
int _writeROOTparameter {}
 
TFile * _hfile {}
 
TTree * _hTree {}
 
TTree * _hVertexTree {}
 
TTree * _hTrackTree {}
 
TTree * _hBStarTree {}
 
TTree * _hMisRecoTree {}
 
std::string _hfilename {}
 
int _tag {}
 
int _numberOfB0 {}
 
float _firstVertexDistance [2] {}
 
float _secondVertexDistance [2] {}
 
int _totalBcharge {}
 
int _ccharge {}
 
int _cbarcharge {}
 
int _bcharge {}
 
int _bbarcharge {}
 
float _baccuracy {}
 
float _bbaraccuracy {}
 
float _bIPdistance {}
 
float _bbarIPdistance {}
 
float _btracks {}
 
float _bbartracks {}
 
float _ctracks {}
 
float _cbartracks {}
 
float _bdistance {}
 
float _bbardistance {}
 
float _bmomentum {}
 
float _bbarmomentum {}
 
float _cmomentum {}
 
float _cbarmomentum {}
 
float _caccuracy {}
 
float _cbaraccuracy {}
 
int _bnumber {}
 
int _bbarnumber {}
 
int _cnumber {}
 
int _cbarnumber {}
 
int _btotalnumber {}
 
int _bbartotalnumber {}
 
int _bnumber_f {}
 
int _bbarnumber_f {}
 
int _cnumber_f {}
 
int _cbarnumber_f {}
 
float _bptmiss {}
 
float _bbarptmiss {}
 
float _cosquark {}
 
float _cosantiquark {}
 
int _numberOfVertexes {}
 
float _distanceFromIP [MAXV] {}
 
float _coordinates [MAXV][3] {}
 
int _PDG [MAXV] {}
 
int _generation [MAXV] {}
 
int _charge [MAXV] {}
 
int _numberOfParticles [MAXV] {}
 
float _energyOfParticles [MAXV][MAXV] {}
 
float _momentumOfParticles [MAXV][MAXV] {}
 
float _massOfParticles [MAXV][MAXV] {}
 
int _interactionOfParticles [MAXV][MAXV] {}
 
float _bptrack [MAXV] {}
 
float _betatrack [MAXV] {}
 
float _boffsettrack [MAXV] {}
 
float _bbarptrack [MAXV] {}
 
float _bbaretatrack [MAXV] {}
 
float _bbaroffsettrack [MAXV] {}
 
float _cptrack [MAXV] {}
 
float _cetatrack [MAXV] {}
 
float _coffsettrack [MAXV] {}
 
float _cbarptrack [MAXV] {}
 
float _cbaretatrack [MAXV] {}
 
float _cbaroffsettrack [MAXV] {}
 
int _misreconumber {}
 
float _misrecotheta [MAXVV] {}
 
float _misrecocostheta [MAXVV] {}
 
float _misrecomomentum [MAXVV] {}
 
float _misrecopt [MAXVV] {}
 
int _bstarnumber {}
 
float _bstarmomentum [MAXV] {}
 
float _bstaroffset [MAXV] {}
 
double ip [3] {}
 
int _nRun {}
 
int _nEvt {}
 

Static Protected Attributes

static const int MAXV = 15
 
static const int MAXVV = 30
 

Detailed Description

This processor is designed to extruct a secondary/// vertices from collection of generated particles, /// by using a PDG type and daughter/parent relation /// relations.

                     ///

TruthVertexFinder has two main outputs: /// EGProngs - MCParticle type with parameters /// MCVertex - Vertex type with particles /// For more info and usage please see doc/ folder ///

Author: BILOKIN Sviatoslav, PhD student /// POESCHL Roman, Supervisor /// RICHARD Francois, Supervisor /// designed: 2015-2017 ///

Definition at line 48 of file TruthVertexFinder.hh.

Constructor & Destructor Documentation

TTbarAnalysis::TruthVertexFinder::TruthVertexFinder ( const TruthVertexFinder )
delete
TTbarAnalysis::TruthVertexFinder::TruthVertexFinder ( )

Definition at line 8 of file TruthVertexFinder.cc.

Member Function Documentation

void TTbarAnalysis::TruthVertexFinder::AddProngs ( VertexMCOperator vertexOperator,
MCOperator opera,
DecayChain chain,
std::vector< Vertex * > *  vertices,
std::vector< int > &  parameters,
IMPL::LCCollectionVec *  col = NULL 
)

Definition at line 292 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::check ( LCEvent *  evt)
virtual

Definition at line 716 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::ClearVariables ( )

Definition at line 640 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::end ( )
virtual

Definition at line 723 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::GetAsymmetry ( std::vector< MCParticle * > &  particles)

Definition at line 450 of file TruthVertexFinder.cc.

double TTbarAnalysis::TruthVertexFinder::getMissingPt ( const std::vector< MCParticle * > &  bdaugthers,
const std::vector< MCParticle * > &  cdaughters,
Vertex *  vertex 
)

Definition at line 558 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::init ( )
virtual

Definition at line 116 of file TruthVertexFinder.cc.

virtual Processor* TTbarAnalysis::TruthVertexFinder::newProcessor ( )
inlinevirtual

Definition at line 56 of file TruthVertexFinder.hh.

TruthVertexFinder& TTbarAnalysis::TruthVertexFinder::operator= ( const TruthVertexFinder )
delete
void TTbarAnalysis::TruthVertexFinder::PrintChain ( std::vector< MCParticle * > *  chain)

Definition at line 268 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::PrintParticle ( MCParticle *  particle)

Definition at line 230 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::processEvent ( LCEvent *  evt)
virtual

Definition at line 350 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::processRunHeader ( LCRunHeader *  run)
virtual

Definition at line 225 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::Write ( std::vector< EVENT::Vertex * > *  vertices,
int &  number 
)
void TTbarAnalysis::TruthVertexFinder::Write ( MCOperator opera,
DecayChain chain,
std::vector< Vertex * > *  bvertexes 
)

Definition at line 466 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::Write ( const std::vector< MCParticle * >  particle,
int  v 
)

Definition at line 578 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::WriteMisReco ( std::vector< MCParticle * > *  particles)

Definition at line 544 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::WriteQuarksCollection ( LCEvent *  evt,
std::vector< MCParticle * > &  quarks 
)

Definition at line 279 of file TruthVertexFinder.cc.

void TTbarAnalysis::TruthVertexFinder::WriteVertexCollection ( LCEvent *  evt,
std::vector< Vertex * > *  bvertexes,
std::vector< Vertex * > *  bbarvertexes 
)

Definition at line 618 of file TruthVertexFinder.cc.

Member Data Documentation

float TTbarAnalysis::TruthVertexFinder::_aParameter {}
protected

Definition at line 98 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_baccuracy {}
protected

Definition at line 122 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbaraccuracy {}
protected

Definition at line 123 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bbarcharge {}
protected

Definition at line 121 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbardistance {}
protected

Definition at line 131 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbaretatrack[MAXV] {}
protected

Definition at line 171 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbarIPdistance {}
protected

Definition at line 125 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbarmomentum {}
protected

Definition at line 133 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bbarnumber {}
protected

Definition at line 139 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bbarnumber_f {}
protected

Definition at line 145 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbaroffsettrack[MAXV] {}
protected

Definition at line 172 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbarptmiss {}
protected

Definition at line 149 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbarptrack[MAXV] {}
protected

Definition at line 170 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bbartotalnumber {}
protected

Definition at line 143 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bbartracks {}
protected

Definition at line 127 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bcharge {}
protected

Definition at line 120 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bdistance {}
protected

Definition at line 130 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_betatrack[MAXV] {}
protected

Definition at line 168 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bIPdistance {}
protected

Definition at line 124 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bmomentum {}
protected

Definition at line 132 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bnumber {}
protected

Definition at line 138 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bnumber_f {}
protected

Definition at line 144 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_boffsettrack[MAXV] {}
protected

Definition at line 169 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bParameter {}
protected

Definition at line 99 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bptmiss {}
protected

Definition at line 148 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bptrack[MAXV] {}
protected

Definition at line 167 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bstarmomentum[MAXV] {}
protected

Definition at line 188 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_bstarnumber {}
protected

Definition at line 187 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_bstaroffset[MAXV] {}
protected

Definition at line 189 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_btotalnumber {}
protected

Definition at line 142 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_btracks {}
protected

Definition at line 126 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_caccuracy {}
protected

Definition at line 136 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbaraccuracy {}
protected

Definition at line 137 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_cbarcharge {}
protected

Definition at line 119 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbaretatrack[MAXV] {}
protected

Definition at line 177 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbarmomentum {}
protected

Definition at line 135 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_cbarnumber {}
protected

Definition at line 141 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_cbarnumber_f {}
protected

Definition at line 147 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbaroffsettrack[MAXV] {}
protected

Definition at line 178 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbarptrack[MAXV] {}
protected

Definition at line 176 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cbartracks {}
protected

Definition at line 129 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_ccharge {}
protected

Definition at line 118 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cetatrack[MAXV] {}
protected

Definition at line 174 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_charge[MAXV] {}
protected

Definition at line 160 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cmomentum {}
protected

Definition at line 134 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_cnumber {}
protected

Definition at line 140 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_cnumber_f {}
protected

Definition at line 146 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_coffsettrack[MAXV] {}
protected

Definition at line 175 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_colName {}
protected

Definition at line 84 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_colRelName {}
protected

Definition at line 89 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_coordinates[MAXV][3] {}
protected

Definition at line 157 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cosantiquark {}
protected

Definition at line 151 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cosquark {}
protected

Definition at line 150 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_cptrack[MAXV] {}
protected

Definition at line 173 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_ctracks {}
protected

Definition at line 128 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_distanceFromIP[MAXV] {}
protected

Definition at line 156 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_energyOfParticles[MAXV][MAXV] {}
protected

Definition at line 162 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_firstVertexDistance[2] {}
protected

Definition at line 115 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_generation[MAXV] {}
protected

Definition at line 159 of file TruthVertexFinder.hh.

TTree* TTbarAnalysis::TruthVertexFinder::_hBStarTree {}
protected

Definition at line 108 of file TruthVertexFinder.hh.

TFile* TTbarAnalysis::TruthVertexFinder::_hfile {}
protected

Definition at line 104 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_hfilename {}
protected

Definition at line 110 of file TruthVertexFinder.hh.

TTree* TTbarAnalysis::TruthVertexFinder::_hMisRecoTree {}
protected

Definition at line 109 of file TruthVertexFinder.hh.

TTree* TTbarAnalysis::TruthVertexFinder::_hTrackTree {}
protected

Definition at line 107 of file TruthVertexFinder.hh.

TTree* TTbarAnalysis::TruthVertexFinder::_hTree {}
protected

Definition at line 105 of file TruthVertexFinder.hh.

TTree* TTbarAnalysis::TruthVertexFinder::_hVertexTree {}
protected

Definition at line 106 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_initialQuarkPDGparameter {}
protected

Definition at line 97 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_interactionOfParticles[MAXV][MAXV] {}
protected

Definition at line 165 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_massOfParticles[MAXV][MAXV] {}
protected

Definition at line 164 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_misrecocostheta[MAXVV] {}
protected

Definition at line 183 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_misrecomomentum[MAXVV] {}
protected

Definition at line 184 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_misreconumber {}
protected

Definition at line 181 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_misrecopt[MAXVV] {}
protected

Definition at line 185 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_misrecotheta[MAXVV] {}
protected

Definition at line 182 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_momentumOfParticles[MAXV][MAXV] {}
protected

Definition at line 163 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_nEvt {}
protected

Definition at line 192 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_nRun {}
protected

Definition at line 191 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_numberOfB0 {}
protected

Definition at line 114 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_numberOfParticles[MAXV] {}
protected

Definition at line 161 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_numberOfVertexes {}
protected

Definition at line 155 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_outputBbarStarName {}
protected

Definition at line 90 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_outputBStarName {}
protected

Definition at line 87 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_outputcolName {}
protected

Definition at line 85 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_outputProngsName {}
protected

Definition at line 88 of file TruthVertexFinder.hh.

std::string TTbarAnalysis::TruthVertexFinder::_outputquarkcolName {}
protected

Definition at line 86 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_PDG[MAXV] {}
protected

Definition at line 158 of file TruthVertexFinder.hh.

std::vector<PDGTYPE> TTbarAnalysis::TruthVertexFinder::_pdgs {}
protected

Definition at line 94 of file TruthVertexFinder.hh.

float TTbarAnalysis::TruthVertexFinder::_secondVertexDistance[2] {}
protected

Definition at line 116 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_tag {}
protected

Definition at line 113 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_tagParameter {}
protected

Definition at line 96 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_totalBcharge {}
protected

Definition at line 117 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_writeBonlyParameter {}
protected

Definition at line 100 of file TruthVertexFinder.hh.

int TTbarAnalysis::TruthVertexFinder::_writeROOTparameter {}
protected

Definition at line 101 of file TruthVertexFinder.hh.

IntVec TTbarAnalysis::TruthVertexFinder::inputPdg {}
protected

Definition at line 95 of file TruthVertexFinder.hh.

double TTbarAnalysis::TruthVertexFinder::ip[3] {}
protected

Definition at line 190 of file TruthVertexFinder.hh.

const int TTbarAnalysis::TruthVertexFinder::MAXV = 15
staticprotected

Definition at line 154 of file TruthVertexFinder.hh.

const int TTbarAnalysis::TruthVertexFinder::MAXVV = 30
staticprotected

Definition at line 180 of file TruthVertexFinder.hh.


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