You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

How to add a new variable

Each variable is defined inside FlavorTag.cc as a class inheriting from FTAlgo. The name of the variable is defined by providing a string argument to the constructor of the parent class. The variable class should implement the process() method which performs the variable computation. One can access the jet data through the member "_jet" and the event data through "_event".  The result should be stored in the member variable "_result". One can optionally implement the processEvent() method which is called once per every event. The class should be instantiated and added to the FTManager object inside the FlavorTag::init() method to make the variable known to LCFIPlus.

An example implementation of a variable is shown below.

// computes the number of vertices in a jet
class FtNvtx : public FTAlgo {class FtNvtx : public FTAlgo {
  public:
    FtNvtx() : FTAlgo("nvtx") {}
    void process() { _result = _jet->getVertices().size(); }
};

List of input variables

Variables are computed for each jet.

name

description

trk1d0sig

d0 significance of track with highest d0 significance

trk2d0sig

d0 significance of track with second highest d0 significance

trk1z0sig

z0 significance of track with highest d0 significance (ordering by d0, not z0)

trk2z0sig

z0 significance of track with second highest d0 significance (ordering by d0, not z0)

trk1pt

transverse momentum of track with highest d0 significance

trk1pt_jete

trk1pt divided by the jet energy

trk2pt

transverse momentum of track with second highest d0 significance

trk2pt_jete

trk2pt divided by the jet energy

jprobr

joint probability in the r-phi plane

jprobz

joint probability in the z projection

vtxlen1

decay length of the first vertex in the jet (zero if no vertex is found)

vtxlen2

decay length of the second vertex in the jet (zero if number of vertex is less than two)

vtxlen12

distance between the first and second vertex (zero if number of vertex is less than two)

vtxsig1

decay length significance of the first vertex in the jet (zero if no vertex is found)

vtxsig1_jete

vtxsig1 divided by the jet energy

vtxsig2

decay length significance of the second vertex in the jet (zero if number of vertex is less than two)

vtxsig2_jete

vtxsig2 divided by the jet energy

vtxsig12

vtxlen12 divided by its error as computed from the sum of the covariance matrix of the first and second vertices, projected along the line connecting the two vertices

vtxdirdot1

the cosine of the angle between the momentum (computed as a sum of track four momenta) and the displacement of the first vertex

vtxmult1

number of tracks included in the first vertex (zero if no vertex is found)

vtxmult2

number of tracks included in the second vertex (zero if number of vertex is less than two)

vtxmult

number of tracks which are used to form secondary vertices (summed for all vertices)

vtxmass1

mass of the first vertex computed from the sum of track four-momenta

vtxmass2

mass of the second vertex computed from the sum of track four-momenta

vtxmass

vertex mass as computed from the sum of four momenta of all tracks forming secondary vertices

vtxmasspc

mass of the vertex with minimum pt correction allowed by the error matrices of the primary and secondary vertices

vtxprob

vertex probability; for multiple vertices, the probability P is computed as 1-P = (1-P_1)(1-P_2)...*(1-P_N)

 

 

 

 

 

 

 

 

 

 

Input variable examples

The plots below are made from 6 jet samples at 500 GeV using ILD detector simulation. They were made in the context of DBD.

  • No labels