TMBParticleJet.cpp

Go to the documentation of this file.
00001 
00002 #include "tmb_tree/TMBParticleJet.hpp"
00003 
00004 ClassImp(TMBParticleJet);
00005 
00006 TMBParticleJet::TMBParticleJet(Float_t E, Float_t pT,   Float_t phi,  Float_t eta, const std::vector<int>& MCPartGIndices, Int_t splitmergeword)
00007 {
00008     Set0   (E, pT, phi, eta);
00009     _mcgindices.clear();
00010     for(std::vector<int>::const_iterator it =MCPartGIndices.begin(); it != MCPartGIndices.end(); it++)
00011       _mcgindices.push_back(*it);
00012     SetPtEtaPhiE(pT, eta, phi, E);
00013     _splitmergeword = splitmergeword;
00014 }
00015 
00016 void TMBParticleJet::Set0    (Float_t E, Float_t pT,   Float_t phi,  Float_t eta)
00017 {
00018 
00019     SetPtEtaPhiE(pT, eta, phi, E);
00020 
00021 }
00022 
00023 void TMBParticleJet::Set1    (const char *algoname, const TRefArray *tracks, TRef vtxref)
00024 {
00025     _algoname = algoname;              
00026     _vtxref   = vtxref;
00027 
00028     _tracks.Clear();
00029     if (tracks) {
00030         for (Int_t i=0; i<tracks->GetLast()+1; i++) {
00031             _tracks.Add( tracks->At(i) );
00032         }
00033     }
00034 }
00035 
00036 

Generated on Thu Apr 3 04:14:24 2008 for CAF by doxygen 1.3.4