FairRoot/PandaRoot
MissingParticle.cxx
Go to the documentation of this file.
1 // ******************************************************
2 // DecayTreeFitter Package
3 // We thank the original author Wouter Hulsbergen
4 // (BaBar, LHCb) for providing the sources.
5 // http://arxiv.org/abs/physics/0503191v1 (2005)
6 // Adaptation & Development for PANDA: Ralf Kliemt (2015)
7 // ******************************************************
17 #include "TLorentzVector.h"
18 #include "FitParams.h"
19 #include "MissingParticle.h"
20 //#include "Event/Particle.h"
21 
22 using namespace DecayTreeFitter;
23 
25 
26 extern int vtxverbose ;
27 
29 : ParticleBase(bc,aMother)
30 {
31  // this will be one of the very few particles for which we adjust
32  // the dimension if there is a constraint
33 }
34 
36 
38 {
39  if(vtxverbose>5){std::cout<<"MissingParticle::initPar1: - "<<std::endl;}
40  // take them from the bc
41  TLorentzVector p4 = particle()->P4() ;
42  int momindex = momIndex();
43  fitpar->par()(momindex+0) = p4.Px() ;
44  fitpar->par()(momindex+1) = p4.Py() ;
45  fitpar->par()(momindex+2) = p4.Pz() ;
46  if(hasEnergy()) fitpar->par()(momindex+3) = p4.E() ;
47  return ErrCode() ;
48 }
49 
51 {
52  return ParticleBase::parname(ind+4) ;
53 }
virtual std::string parname(int index) const
virtual ErrCode initPar1(FitParams *)
const int particle
ClassImp(MissingParticle)
MissingParticle(RhoCandidate *bc, const ParticleBase *mother)
int vtxverbose
virtual std::string parname(int index) const