Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (16 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

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

    r819 r962  
    8080        if ( old.decaying == Left )
    8181        {
     82//G4cout<<" Left "<<G4endl;
     83//G4cout<<"Pt right "<<Ptright<<G4endl;
     84//G4cout<<"Pt left  "<<Ptleft <<G4endl;
    8285                RightParton= old.RightParton;
    8386                Ptright    = old.Ptright;
     
    8588                Ptleft     = old.Ptleft - momentum->vect();
    8689                Ptleft.setZ(0.);
     90//G4cout<<"Pt right "<<Ptright<<G4endl;
     91//G4cout<<"Pt left  "<<Ptleft <<G4endl;
    8792        } else if ( old.decaying == Right )
    8893        {
     94//G4cout<<" Right "<<G4endl;
     95//G4cout<<"Pt right "<<Ptright<<G4endl;
     96//G4cout<<"Pt left  "<<Ptleft <<G4endl;
    8997                RightParton = newdecay;
    9098                Ptright     = old.Ptright - momentum->vect();
     
    92100                LeftParton  = old.LeftParton;
    93101                Ptleft      = old.Ptleft;
     102//G4cout<<"Pt right "<<Ptright<<G4endl;
     103//G4cout<<"Pt left  "<<Ptleft <<G4endl;
    94104        } else
    95105        {
     
    106116//---------------------------------------------------------------------------------
    107117
     118G4FragmentingString::G4FragmentingString(const G4FragmentingString &old,  // Uzhi
     119                                         G4ParticleDefinition * newdecay) // Uzhi
     120{                                                                         // Uzhi
     121        decaying=None;                                                    // Uzhi
     122        if ( old.decaying == Left )                                       // Uzhi
     123        {                                                                 // Uzhi
     124                RightParton= old.RightParton;                             // Uzhi
     125                LeftParton = newdecay;                                    // Uzhi
     126        } else if ( old.decaying == Right )                               // Uzhi
     127        {                                                                 // Uzhi
     128                RightParton = newdecay;                                   // Uzhi
     129                LeftParton  = old.LeftParton;                             // Uzhi
     130        } else                                                            // Uzhi
     131        {
     132                throw G4HadronicException(__FILE__, __LINE__, "G4FragmentingString::G4FragmentingString: no decay Direction defined");
     133        }
     134}
     135
     136
     137//---------------------------------------------------------------------------------
     138
    108139G4FragmentingString::~G4FragmentingString()
    109140{}
     
    215246        return std::sqrt(this->Mass2());
    216247}
     248
     249G4double G4FragmentingString::MassT2() const
     250{
     251        return Pplus*Pminus;
     252}
Note: See TracChangeset for help on using the changeset viewer.