MyParticleJet Class Reference

#include <MyParticleJet.h>

Inheritance diagram for MyParticleJet:

MyParticle List of all members.

Public Member Functions

 MyParticleJet (void)
 Default constructors: all private variables are set to 0.
 MyParticleJet (const TLorentzVector &p, const int &rec_flag, const int &index, const double &tag_weight, const int &truthflavour, const bool &truthjet_flag, const int &nb_tracks, const std::vector< double > tracks_charge, const std::vector< TLorentzVector > tracks_tlv, const std::vector< int > tracks_vertex_index)
int reconstruction_flag (void) const
double b_tag_weight (void) const
int truth_flavour (void) const
int nb_tracks (void) const
 jet
double tracks_charge (int itrack) const
 get charge of the track itrack in the jet
TLorentzVector tracks_tlv (int itrack) const
 get tlv of the track itrack in the jet
int tracks_vertex_index (int itrack) const
 get the vertex index of the track itrack in the jet
double tracks_ptratio (int vertex_index) const
double tracks_cmsptratio (int vertex_index) const
double pt_pucorr (int vertex_index) const
void set_reconstruction_flag (const int &flag)
void set_b_tag_weight (const double &weight)
void PrintParticle (std::string option="")
 print particlejet properties

Private Member Functions

void init (const TLorentzVector &p, const int &rec_flag, const int &index, const double &tag_weight, const int &truthflavour, const bool &truthjet_flag, const int &nb_tracks, const std::vector< double > tracks_charge, const std::vector< TLorentzVector > tracks_tlv, const std::vector< int > tracks_vertex_index)

Private Attributes

int m_rec_flag
double m_b_tag_weight
int m_truthflavour
int m_nb_tracks
std::vector< double > m_tracks_charge
std::vector< TLorentzVector > m_tracks_tlv
std::vector< int > m_tracks_vertex_index

Detailed Description

This class stores jet data to be easily accessed inside ROOT. It therefore avoids direct use of ATHENA classes.

Date:
23.10.2006
Author:
Oliver.Kortner

Definition at line 36 of file MyParticleJet.h.


Constructor & Destructor Documentation

MyParticleJet::MyParticleJet ( const TLorentzVector &  p,
const int &  rec_flag,
const int &  index,
const double &  tag_weight,
const int &  truthflavour,
const bool &  truthjet_flag,
const int &  nb_tracks,
const std::vector< double >  tracks_charge,
const std::vector< TLorentzVector >  tracks_tlv,
const std::vector< int >  tracks_vertex_index 
) [inline]

Constructor tlv = fourmomentum of the jet; rec_flag: reconstruction flag: = 0: unknown algorithm, = 1: cone-4 algorithm, = 2: cone-7 algorithm, = 3: kt algorithm; index = index in original vector b_tag_weight = b-tag weight truthjet_flag = true for truth jet false for reco jet (default)

Definition at line 47 of file MyParticleJet.h.


Member Function Documentation

int MyParticleJet::reconstruction_flag ( void   )  const [inline]

get the reconstruction flag (see the definition above)

Definition at line 60 of file MyParticleJet.ixx.

double MyParticleJet::b_tag_weight ( void   )  const [inline]

get the weights corresponding to the tags

Definition at line 72 of file MyParticleJet.ixx.

int MyParticleJet::truth_flavour ( void   )  const [inline]

get the truthflavour corresponding to the MC-Truth_info

Definition at line 84 of file MyParticleJet.ixx.

int MyParticleJet::nb_tracks ( void   )  const [inline]

jet

get the number of tracks in the

Definition at line 132 of file MyParticleJet.ixx.

double MyParticleJet::tracks_ptratio ( int  vertex_index  )  const [inline]

get the pt ratio of associated tracks from the vertex with 'vertex_index' to all associated tracks

Definition at line 196 of file MyParticleJet.ixx.

double MyParticleJet::tracks_cmsptratio ( int  vertex_index  )  const [inline]

get the pt ratio of associated tracks from the vertex with 'vertex_index' to the pt of the calo jet

Definition at line 234 of file MyParticleJet.ixx.

double MyParticleJet::pt_pucorr ( int  vertex_index  )  const [inline]

get the corrected pt of the jet pt_corr = Sum pt(privx tracks) / Sum pt(all tracks)

Definition at line 274 of file MyParticleJet.ixx.

void MyParticleJet::set_reconstruction_flag ( const int &  flag  )  [inline]

set the reconstruction flag (see the definition above)

Definition at line 95 of file MyParticleJet.ixx.

void MyParticleJet::set_b_tag_weight ( const double &  weight  )  [inline]

set the weights corresponding to the tags

Definition at line 108 of file MyParticleJet.ixx.


The documentation for this class was generated from the following files:
Generated on Tue Oct 21 11:50:48 2008 for NtupleAnalysis by  doxygen 1.5.1