MyParticle Class Reference

#include <MyParticle.h>

Inheritance diagram for MyParticle:

MyElectron MyMuon MyParticleJet MyPhoton MyTauJet MyTrack MyTrackJet MyTriggerMuon MyTruthParticle List of all members.

Public Member Functions

 MyParticle (void)
 Default constructor, set all values to zero.
 MyParticle (const TLorentzVector tlv, Int_t matchingflag, double charge, int index, std::string type, int vertex_index=-1)
 concrete constructor
virtual ~MyParticle (void)
 destructor
TLorentzVector tlv (void) const
Int_t matchingflag (void) const
double charge (void) const
 get the electric charge of the particle
std::string type (void) const
int index (void) const
int pdgId (void) const
 get the PDG-ID
int vertexIndex (void) const
void set_tlv (const TLorentzVector &p)
void set_matchingflag (const Int_t &flag)
void setVertexIndex (const int &vertex_index)
 set vertex index
void Print (std::string option="")
virtual void PrintParticle (std::string option)
 print properties for the specific particle type

Protected Member Functions

void init (const TLorentzVector tlv, Int_t matchingflag, double charge, int index, std::string type, int vertex_index)

Protected Attributes

TLorentzVector m_tlv
Int_t m_matchingflag
double m_charge
int m_index
std::string m_type
int m_pdgId
int m_vertex_index

Detailed Description

This class is the base class which all particles should be derived from

Date:
21.11.2006
Author:
Steffen.Kaiser

Definition at line 30 of file MyParticle.h.


Member Function Documentation

TLorentzVector MyParticle::tlv ( void   )  const [inline]

get the fourmomentum of the particle

Definition at line 38 of file MyParticle.ixx.

Int_t MyParticle::matchingflag ( void   )  const [inline]

get the matching flag of the particle = 0 if the particle hasn't be matched = 1 if the particle has already been matched to a another one

Definition at line 63 of file MyParticle.ixx.

std::string MyParticle::type ( void   )  const [inline]

get the string that holds the type of particle: "electron", "muon", "truth_particle", "gamma", "particle_jet", "tau_jet", "truth_jet", "truth_tau_jet", "track_jet"

Definition at line 87 of file MyParticle.ixx.

int MyParticle::index ( void   )  const [inline]

get the index of the particle in the original vector

Definition at line 99 of file MyParticle.ixx.

int MyParticle::vertexIndex ( void   )  const [inline]

get the vertex index (-1 means no vertex association)

Definition at line 123 of file MyParticle.ixx.

void MyParticle::set_tlv ( const TLorentzVector &  p  )  [inline]

set the fourmomentum of the particle to p

Definition at line 50 of file MyParticle.ixx.

void MyParticle::set_matchingflag ( const Int_t &  flag  )  [inline]

set the matching flag of the particle to flag

Definition at line 147 of file MyParticle.ixx.

void MyParticle::Print ( std::string  option = ""  )  [inline]

print properties of particle, this method calls the PrintParticle method of each particle type, if option is set to "v" all properties are printed

Definition at line 160 of file MyParticle.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