Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/parton_string/hadronization/src/G4VLongitudinalStringDecay.cc

    r1228 r1337  
    2525//
    2626//
    27 // $Id: G4VLongitudinalStringDecay.cc,v 1.18 2009/08/03 13:21:25 vuzhinsk Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4VLongitudinalStringDecay.cc,v 1.20 2010/06/21 17:50:48 vuzhinsk Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030// -----------------------------------------------------------------------------
     
    179179                      << string->Get4Momentum().m() << G4endl;
    180180#endif               
    181 G4cout << "VlongSF Warning replacing string by single hadron " <<G4endl;
    182 G4cout << hadrons.first->GetParticleName() << " string .. " <<G4endl;
    183 G4cout << string->Get4Momentum() << " " << string->Get4Momentum().m() << G4endl;
    184181*/
    185182               G4ThreeVector   Mom3 = string->Get4Momentum().vect();
     
    201198                      << string->Get4Momentum().m() << G4endl;
    202199#endif               
    203 
    204 // Uzhi Formation time in the case???
    205200
    206201               G4LorentzVector  Mom1, Mom2;
     
    328323                        G4FragmentingString *&newString)
    329324{
    330 //G4cout<<"In G4VLong String Dec######################"<<G4endl;
    331 
    332325       //... random choice of string end to use for creating the hadron (decay)   
    333326       SideOfDecay = (G4UniformRand() < 0.5)? 1: -1;
     
    354347       G4LorentzVector* HadronMomentum=SplitEandP(HadronDefinition, string, newString);
    355348
    356        delete newString; newString=0;                          // Uzhi 20.06.08
     349       delete newString; newString=0;                         
    357350       
    358351       G4KineticTrack * Hadron =0;
     
    365358                                        HadronMomentum);
    366359
    367 //G4cout<<"Out G4VLong String Dec######################"<<G4endl;         
    368 //G4cout<<"newString 4Mom"<<newString->Get4Momentum()<<G4endl;
    369 //G4cout<<"newString Pl  "<<newString->LightConePlus()<<G4endl;
    370 //G4cout<<"newString Mi  "<<newString->LightConeMinus()<<G4endl;
    371 //G4cout<<"newString Pts "<<newString->StablePt()<<G4endl;
    372 //G4cout<<"newString Ptd "<<newString->DecayPt()<<G4endl;
    373 //G4cout<<"newString M2  "<<newString->Mass2()<<G4endl;
    374 //G4cout<<"newString M2  "<<newString->Mass()<<G4endl;
    375360           delete HadronMomentum;
    376361       }     
     
    474459
    475460//-----------------------------------------------------------------------------
    476 
    477 // G4ThreeVector G4VLongitudinalStringDecay::SampleQuarkPt()
    478 //    {
    479 //    G4double width_param= 2.0 * GeV*GeV;
    480 //    G4double R = G4UniformRand();
    481 //    G4double Pt = std::sqrt(width_param*R/(1-R));
    482 //    G4double phi = 2.*pi*G4UniformRand();
    483 //    return G4ThreeVector(Pt * std::cos(phi),Pt * std::sin(phi),0);
    484 //    }
    485 
    486461G4ThreeVector G4VLongitudinalStringDecay::SampleQuarkPt(G4double ptMax)
    487462   {
     
    505480
    506481//   `yo-yo` formation time
    507 //   const G4double kappa = 1.0 * GeV/fermi/4.;      // Uzhi String tension 1.06.08
    508      G4double kappa = GetStringTensionParameter();
    509 //G4cout<<"Kappa "<<kappa<<G4endl;                   // Uzhi 20.06.08
    510 //G4int Uzhi; G4cin>>Uzhi;                           // Uzhi 20.06.08
    511 //G4cout<<"Number of hadrons "<<Hadrons->size()<<G4endl; // Vova
     482//   const G4double kappa = 1.0 * GeV/fermi/4.;     
     483   G4double kappa = GetStringTensionParameter();
    512484   for(size_t c1 = 0; c1 < Hadrons->size(); c1++)
    513485      {
     
    522494      G4double HadronPz = Hadrons->operator[](c1)->Get4Momentum().pz();
    523495      Hadrons->operator[](c1)->SetFormationTime(
    524 (theInitialStringMass - 2.*SumPz + HadronE - HadronPz)/(2.*kappa)/c_light); //Uzhi1.07.09c_light
     496(theInitialStringMass - 2.*SumPz + HadronE - HadronPz)/(2.*kappa)/c_light);
    525497
    526498      G4ThreeVector aPosition(0, 0,     
     
    528500      Hadrons->operator[](c1)->SetPosition(aPosition);
    529501
    530 /*
    531 G4cout<<"kappa "<<kappa<<G4endl;
    532 G4cout<<c1<<" Partic time, position Old "<<
    533 (theInitialStringMass - 2.*SumPz + HadronE - HadronPz)/(2.*kappa)<<' '<<
    534 (theInitialStringMass - 2.*SumE  - HadronE + HadronPz)/(2.*kappa)<<G4endl;
    535 
    536 G4cout<<c1<<" Partic time, position New "<<
    537 (theInitialStringMass - 2.*SumPz + HadronE - HadronPz)/(2.*kappa)/c_light<<' '<<
    538 (theInitialStringMass - 2.*SumE  - HadronE + HadronPz)/(2.*kappa)<<G4endl;
    539 
    540 G4cout<<"fermi "<<fermi<<" 1/fermi "<<1./fermi<<' '<<"1*fermi/c "<<1.*fermi/c_light<<G4endl;
    541 G4int Uzhi; G4cin>>Uzhi;                           // Uzhi 20.06.08
    542 */
    543502      }
    544503   }
    545504
    546505//-----------------------------------------------------------------------------
    547 
    548 /*
    549 void G4VLongitudinalStringDecay::CalculateHadronTimePosition(G4double theInitialStringMass, G4KineticTrackVector* Hadrons)
    550    {
    551    // 'constituent' formation time
    552    const G4double kappa = 1.0 * GeV/fermi;
    553    for(G4int c1 = 0; c1 < Hadrons->length(); c1++)
    554       {
    555       G4double SumPz = 0;
    556       G4double SumE  = 0;
    557       for(G4int c2 = 0; c2 <= c1; c2++)
    558          {
    559          SumPz += Hadrons->at(c2)->Get4Momentum().pz();
    560          SumE  += Hadrons->at(c2)->Get4Momentum().e();   
    561          }
    562       Hadrons->at(c1)->SetFormationTime((theInitialStringMass - 2.*SumPz)/(2.*kappa));
    563       G4ThreeVector aPosition(0, 0,     (theInitialStringMass - 2.*SumE)/(2.*kappa));
    564       Hadrons->at(c1)->SetPosition(aPosition);
    565       }
    566    c1 = Hadrons->length()-1;   
    567    Hadrons->at(c1)->SetFormationTime(Hadrons->at(c1-1)->GetFormationTime());
    568    Hadrons->at(c1)->SetPosition(Hadrons->at(c1-1)->GetPosition());
    569    }
    570 */
    571 
    572 
    573 //*****************************************************************************
    574506
    575507void G4VLongitudinalStringDecay::SetSigmaTransverseMomentum(G4double aValue)
Note: See TracChangeset for help on using the changeset viewer.