111 lines
4.4 KiB
C++
111 lines
4.4 KiB
C++
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
/*
|
|
* =============================================================================
|
|
*
|
|
* Filename: CexmcProductionModelData.hh
|
|
*
|
|
* Description: SCM/LAB lorentz vector of the particles in reaction
|
|
*
|
|
* Version: 1.0
|
|
* Created: 01.12.2009 18:01:33
|
|
* Revision: none
|
|
* Compiler: gcc
|
|
*
|
|
* Author: Alexey Radkov (),
|
|
* Company: PNPI
|
|
*
|
|
* =============================================================================
|
|
*/
|
|
|
|
#ifndef CEXMC_PRODUCTION_MODEL_DATA_HH
|
|
#define CEXMC_PRODUCTION_MODEL_DATA_HH
|
|
|
|
#include <iosfwd>
|
|
#include <G4ParticleDefinition.hh>
|
|
#include <G4LorentzVector.hh>
|
|
#include <G4UnitsTable.hh>
|
|
|
|
|
|
/* TODO: the data model is very restrictive for generic use, there should be
|
|
* possible to generate more than one output particles. The simplest solution is
|
|
* to add here other fields and constructors; if number of fields will be
|
|
* excessive for simple models like charge exchange then they won't be stored in
|
|
* persistent storage. Other solution is to move production model data field
|
|
* from base class CexmcProductionModel to its ancestors that can decide
|
|
* themselves which concrete data capacity they require. */
|
|
|
|
|
|
struct CexmcProductionModelData
|
|
{
|
|
CexmcProductionModelData();
|
|
|
|
CexmcProductionModelData( const G4LorentzVector & incidentParticleSCM,
|
|
const G4LorentzVector & incidentParticleLAB,
|
|
const G4LorentzVector & nucleusParticleSCM,
|
|
const G4LorentzVector & nucleusParticleLAB,
|
|
const G4LorentzVector & outputParticleSCM,
|
|
const G4LorentzVector & outputParticleLAB,
|
|
const G4LorentzVector & nucleusOutputParticleSCM,
|
|
const G4LorentzVector & nucleusOutputParticleLAB,
|
|
const G4ParticleDefinition * incidentParticle,
|
|
const G4ParticleDefinition * nucleusParticle,
|
|
const G4ParticleDefinition * outputParticle,
|
|
const G4ParticleDefinition * nucleusOutputParticle );
|
|
|
|
G4LorentzVector incidentParticleSCM;
|
|
|
|
G4LorentzVector incidentParticleLAB;
|
|
|
|
G4LorentzVector nucleusParticleSCM;
|
|
|
|
G4LorentzVector nucleusParticleLAB;
|
|
|
|
G4LorentzVector outputParticleSCM;
|
|
|
|
G4LorentzVector outputParticleLAB;
|
|
|
|
G4LorentzVector nucleusOutputParticleSCM;
|
|
|
|
G4LorentzVector nucleusOutputParticleLAB;
|
|
|
|
const G4ParticleDefinition * incidentParticle;
|
|
|
|
const G4ParticleDefinition * nucleusParticle;
|
|
|
|
const G4ParticleDefinition * outputParticle;
|
|
|
|
const G4ParticleDefinition * nucleusOutputParticle;
|
|
};
|
|
|
|
|
|
std::ostream & operator<<( std::ostream & out,
|
|
const CexmcProductionModelData & data );
|
|
|
|
|
|
#endif
|
|
|