Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Discussions about the package happen on the mailing list lcfi-vertex AT desy DOT de

Algorithms

LCFIPlus 

How to get flavor tagging information inside Marlin processor:

Code Block

  PIDHandler pidh( colJet ) ;// get collectionLCCollection* colJet = evt->getCollection("VertexJets");


// get PIDHandler associated with the jet collection
PIDHandler pidh( colJet );



// get algorithm ID associated with LCFIPlus
int algo = pidh.getAlgorithmID( "lcfiplus" );


// get index number for flavor tagging
int ibtag = pidh.getParameterIndex(algo, "BTag");
int ictag = pidh.getParameterIndex(algo, "CTag");


// loop over jets to extract flavor tagging information
for(int i=0; i < colJet->getNumberOfElements(); i++) {
  ReconstructedParticle *part = 
    dynamic_cast<ReconstructedParticle*>( colJet->getElementAt( i ) );
  const ParticleID &pid = pidh.getParticleID(part, algo);
  cout << "btag = " << pid.getParameters()[ibtag] << endl;
  cout << "ctag = " << pid.getParameters()[ictag] << endl;
}