LauDaughters.cc
Go to the documentation of this file.
27 LauDaughters::LauDaughters(Int_t codeParent, Int_t code1, Int_t code2, Int_t code3, Bool_t useSquareDP) :
44 kinematics_ = new LauKinematics(this->getMassDaug1(), this->getMassDaug2(), this->getMassDaug3(), this->getMassParent(), useSquareDP, symmetricalDP_, fullySymmetricDP_);
47 LauDaughters::LauDaughters(const TString& nameParent, const TString& name1, const TString& name2, const TString& name3, Bool_t useSquareDP) :
60 kinematics_ = new LauKinematics(this->getMassDaug1(), this->getMassDaug2(), this->getMassDaug3(), this->getMassParent(), useSquareDP, symmetricalDP_, fullySymmetricDP_);
81 kinematics_ = new LauKinematics(this->getMassDaug1(), this->getMassDaug2(), this->getMassDaug3(), this->getMassParent(), rhs.squareDP(), rhs.gotSymmetricalDP(), rhs.gotFullySymmetricDP());
125 for ( std::vector<const LauParticlePDG*>::const_iterator iter = allowedParents_.begin(); iter != allowedParents_.end(); ++iter ) {
129 std::cout<<"INFO in LauDaughters::setParentType : Setting parent to be "<<parent_->string()<<" == "<<parent_->code()<<std::endl;
135 std::cerr<<"ERROR in LauDaughters::setParentType : Couldn't find a valid parent called \""<<nameParent<<"\"."<<std::endl;
140 void LauDaughters::setDaugType(const TString& name1, const TString& name2, const TString& name3)
143 const Int_t codes[3] = { LauDatabasePDG::code( name1 ), LauDatabasePDG::code( name2 ), LauDatabasePDG::code( name3 ) };
149 for ( std::vector<const LauParticlePDG*>::const_iterator iter = allowedDaughters_.begin(); iter != allowedDaughters_.end(); ++iter ) {
153 std::cout<<"INFO in LauDaughters::setDaugType : Setting daughter "<<i+1<<" to be "<<daughters_[i]->string()<<" == "<<daughters_[i]->code()<<std::endl;
158 std::cerr<<"ERROR in LauDaughters::setDaugType : Couldn't find a valid daughter called \""<<names[i]<<"\"."<<std::endl;
178 if ( daughters_[0]->code() == daughters_[1]->code() && daughters_[0]->code() == daughters_[2]->code() ) {
185 std::cerr<<"ERROR in LauDaughters::testDPSymmetry : daughter 1 and daughter 3 are both "<<daughters_[0]->string()<<" but DP can only fold on daughters 1 and 2."<<std::endl;
188 std::cerr<<"ERROR in LauDaughters::testDPSymmetry : daughter 2 and daughter 3 are both "<<daughters_[1]->string()<<" but DP can only fold on daughters 1 and 2."<<std::endl;
191 std::cout<<"INFO in LauDaughters::testDPSymmetry : We have a flavour-conjugate DP. "<<std::endl;
194 std::cerr<<"WARNING in LauDaughters::testDPSymmetry : it looks like we have a flavour-conjugate DP but the "<<daughters_[0]->string()<<" and "<<daughters_[2]->string()<<" are not positioned as daughters 1 and 2." << std::endl;
196 std::cerr<<"WARNING in LauDaughters::testDPSymmetry : it looks like we have a flavour-conjugate DP but the "<<daughters_[1]->string()<<" and "<<daughters_[2]->string()<<" are not positioned as daughters 1 and 2." << std::endl;
207 for ( std::vector<const LauParticlePDG*>::const_iterator iter = daughters_.begin(); iter != daughters_.end(); ++iter ) {
213 std::cerr<<"ERROR in LauDaughters::sanityCheck : Total charge of daughters ("<<totCharge<<") not equal to charge of parent ("<<parent_->charge()<<")."<<std::endl;
218 std::cerr<<"ERROR in LauDaughters::sanityCheck : Total mass of daughters ("<<totMass<<") greater than mass of parent ("<<parent_->mass()<<")."<<std::endl;
TString getNameDaug1() const Get name of the first daughter particle. Definition: LauDaughters.cc:243 Int_t getChargeDaug3() const Get charge of the third daughter particle. Definition: LauDaughters.cc:293 Int_t getTypeDaug1() const Get PDG code of the first daughter particle. Definition: LauDaughters.cc:263 Bool_t fullySymmetricDP_ Boolean flag for fully symmetric Dalitz plot. Definition: LauDaughters.hh:187 void setParentType(const TString &nameParent) Set the parent particle type. Definition: LauDaughters.cc:119 LauDaughters(Int_t codeParent, Int_t code1, Int_t code2, Int_t code3, Bool_t useSquareDP=kFALSE) Constructor from PDG codes. Definition: LauDaughters.cc:27 ClassImp(LauAbsCoeffSet) void createParticleLists() Create list of all the allowed parent/daughter particles. Definition: LauDaughters.cc:84 Class that defines the particular 3-body decay under study. Definition: LauDaughters.hh:33 Int_t getCharge(Int_t resPairAmpInt) const Get charge of a particular two-daughter combination. Definition: LauDaughters.cc:303 void testDPSymmetry() Check whether there is a symmetrical Dalitz plot. Definition: LauDaughters.cc:170 File containing declaration of LauDaughters class. Int_t getChargeDaug1() const Get charge of the first daughter particle. Definition: LauDaughters.cc:283 TString getNameDaug2() const Get name of the second daughter particle. Definition: LauDaughters.cc:248 Bool_t squareDP() const Determine to use or not the square Dalitz plot. Definition: LauDaughters.hh:84 File containing declaration of LauKinematics class. Bool_t gotSymmetricalDP() const Is Dalitz plot symmetric, i.e. 2 identical particles. Definition: LauDaughters.hh:66 std::vector< const LauParticlePDG * > daughters_ The daughter particles. Definition: LauDaughters.hh:181 Int_t getChargeDaug2() const Get charge of the second daughter particle. Definition: LauDaughters.cc:288 File containing declaration of LauDatabasePDG class. std::vector< const LauParticlePDG * > allowedParents_ All possible parent types. Definition: LauDaughters.hh:175 File containing declaration of LauParticlePDG class. static const LauParticlePDG * particle(Int_t code) Get particle object based on the PDG code. Definition: LauDatabasePDG.cc:64 Int_t getTypeDaug3() const Get PDG code of the third daughter particle. Definition: LauDaughters.cc:273 Int_t getTypeDaug2() const Get PDG code of the second daughter particle. Definition: LauDaughters.cc:268 void setDaugType(const TString &name1, const TString &name2, const TString &name3) Set the three daughter types. Definition: LauDaughters.cc:140 Bool_t gotFullySymmetricDP() const Is Dalitz plot fully symmetric, i.e. 3 identical particles. Definition: LauDaughters.hh:72 std::vector< const LauParticlePDG * > allowedDaughters_ All possible daughter types. Definition: LauDaughters.hh:172 static Int_t code(const TString &string) Method to convert from a particle name string into a PDG code. Definition: LauDatabasePDG.cc:74 TString getNameDaug3() const Get name of the third daughter particle. Definition: LauDaughters.cc:253 static TString string(Int_t code) Method to convert from a PDG code to a particle name string. Definition: LauDatabasePDG.cc:79 Generated by 1.8.5 |