Skip to content
Snippets Groups Projects
Commit bc498ee4 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* adding QFS file and solving dictionnary generation issue for the

Physics folder
parent c849d175
No related branches found
No related tags found
No related merge requests found
add_custom_command(OUTPUT NPReactionDict.cxx COMMAND ../scripts/build_dict.sh NPReaction.h NPReactionDict.cxx NPReaction.rootmap libNPPhysics.so NPPhysicsLinkDef.h DEPENDS NPReaction.h) add_custom_command(OUTPUT NPNucleusDict.cxx COMMAND ../scripts/build_dict.sh NPNucleus.h NPNucleusDict.cxx NPNucleus.rootmap libNPPhysics.so NPNucleusLinkDef.h DEPENDS NPNucleus.h NPNucleusLinkDef.h)
add_custom_command(OUTPUT NPEnergyLossDict.cxx COMMAND ../scripts/build_dict.sh NPEnergyLoss.h NPEnergyLossDict.cxx NPEnergyLoss.rootmap libNPPhysics.so NPPhysicsLinkDef.h DEPENDS NPEnergyLoss.h) add_custom_command(OUTPUT NPReactionDict.cxx COMMAND ../scripts/build_dict.sh NPReaction.h NPReactionDict.cxx NPReaction.rootmap libNPPhysics.so NPReactionLinkDef.h DEPENDS NPReaction.h NPReactionLinkDef.h)
add_custom_command(OUTPUT NPQFSDict.cxx COMMAND ../scripts/build_dict.sh NPQFS.h NPQFSDict.cxx NPQFS.rootmap libNPPhysics.so NPQFSLinkDef.h DEPENDS NPQFS.h NPQFSLinkDef.h)
add_custom_command(OUTPUT NPDecayDict.cxx COMMAND ../scripts/build_dict.sh NPDecay.h NPDecayDict.cxx NPDecay.rootmap libNPPhysics.so NPDecayLinkDef.h DEPENDS NPDecay.h NPDecayLinkDef.h)
add_custom_command(OUTPUT NPEnergyLossDict.cxx COMMAND ../scripts/build_dict.sh NPEnergyLoss.h NPEnergyLossDict.cxx NPEnergyLoss.rootmap libNPPhysics.so NPEnergyLossLinkDef.h DEPENDS NPEnergyLoss.h NPEnergyLossLinkDef.h)
add_custom_command(OUTPUT TInitialConditionsDict.cxx COMMAND ../scripts/build_dict.sh TInitialConditions.h TInitialConditionsDict.cxx TInitialConditions.rootmap libNPInitialConditions.so DEPENDS TInitialConditions.h) add_custom_command(OUTPUT TInitialConditionsDict.cxx COMMAND ../scripts/build_dict.sh TInitialConditions.h TInitialConditionsDict.cxx TInitialConditions.rootmap libNPInitialConditions.so DEPENDS TInitialConditions.h)
...@@ -8,7 +14,7 @@ add_custom_command(OUTPUT TInteractionCoordinatesDict.cxx COMMAND ../scripts/bui ...@@ -8,7 +14,7 @@ add_custom_command(OUTPUT TInteractionCoordinatesDict.cxx COMMAND ../scripts/bui
add_custom_command(OUTPUT TReactionConditionsDict.cxx COMMAND ../scripts/build_dict.sh TReactionConditions.h TReactionConditionsDict.cxx TReactionConditions.rootmap libNPReactionConditions.so DEPENDS TReactionConditions.h) add_custom_command(OUTPUT TReactionConditionsDict.cxx COMMAND ../scripts/build_dict.sh TReactionConditions.h TReactionConditionsDict.cxx TReactionConditions.rootmap libNPReactionConditions.so DEPENDS TReactionConditions.h)
add_library(NPPhysics SHARED NPDecay.cxx NPBeam.cxx NPEnergyLoss.cxx NPFunction.cxx NPNucleus.cxx NPReaction.cxx NPReactionDict.cxx NPEnergyLossDict.cxx ) add_library(NPPhysics SHARED NPDecay.cxx NPBeam.cxx NPEnergyLoss.cxx NPFunction.cxx NPNucleus.cxx NPReaction.cxx NPQFS.cxx NPNucleusDict.cxx NPReactionDict.cxx NPQFSDict.cxx NPEnergyLossDict.cxx )
target_link_libraries(NPPhysics ${ROOT_LIBRARIES} Physics NPCore) target_link_libraries(NPPhysics ${ROOT_LIBRARIES} Physics NPCore)
add_library(NPInitialConditions SHARED TInitialConditions.cxx TInitialConditionsDict.cxx ) add_library(NPInitialConditions SHARED TInitialConditions.cxx TInitialConditionsDict.cxx )
...@@ -21,4 +27,4 @@ add_library(NPReactionConditions SHARED TReactionConditions.cxx TReactionConditi ...@@ -21,4 +27,4 @@ add_library(NPReactionConditions SHARED TReactionConditions.cxx TReactionConditi
target_link_libraries(NPReactionConditions ${ROOT_LIBRARIES} ) target_link_libraries(NPReactionConditions ${ROOT_LIBRARIES} )
install(FILES NPDecay.h NPBeam.h NPEnergyLoss.h NPFunction.h NPNucleus.h NPReaction.h TInitialConditions.h TInteractionCoordinates.h TReactionConditions.h DESTINATION ${CMAKE_INCLUDE_OUTPUT_DIRECTORY}) install(FILES NPDecay.h NPBeam.h NPEnergyLoss.h NPFunction.h NPNucleus.h NPReaction.h NPQFS.h TInitialConditions.h TInteractionCoordinates.h TReactionConditions.h DESTINATION ${CMAKE_INCLUDE_OUTPUT_DIRECTORY})
#ifndef __Beam__ #ifndef NPBeam_h
#define __Beam__ #define NPBeam_h
/***************************************************************************** /*****************************************************************************
* Copyright (C) 2009-2016 this file is part of the NPTool Project * * Copyright (C) 2009-2016 this file is part of the NPTool Project *
* * * *
......
#ifdef __CINT__
#pragma link C++ defined_in "./NPDecay.h";
#endif
#ifdef __CINT__
#pragma link C++ defined_in "./NPEnergyLoss.h";
#endif
...@@ -39,6 +39,9 @@ using namespace std; ...@@ -39,6 +39,9 @@ using namespace std;
ClassImp(Nucleus)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Nucleus::Nucleus(){ Nucleus::Nucleus(){
//----------- Default Constructor ---------- //----------- Default Constructor ----------
......
#ifndef __NUCLEUS__ #ifndef NPNUCLEUS_h
#define __NUCLEUS__ #define NPNUCLEUS_h
/***************************************************************************** /*****************************************************************************
* Copyright (C) 2009-2016 this file is part of the NPTool Project * * Copyright (C) 2009-2016 this file is part of the NPTool Project *
* * * *
...@@ -155,6 +155,8 @@ namespace NPL { ...@@ -155,6 +155,8 @@ namespace NPL {
double GetSXp(unsigned int X) const; double GetSXp(unsigned int X) const;
void PrintThreshold() const; void PrintThreshold() const;
ClassDef(Nucleus,0)
}; };
} }
#endif #endif
#ifdef __CINT__
#pragma link C++ defined_in "NPNucleus.h";
#endif
#ifdef __CINT__ #ifdef __CINT__
#pragma link C++ defined_in "./NPReaction.h"; #pragma link C++ defined_in "./NPReaction.h";
#pragma link C++ defined_in "./NPBeam.h"; #pragma link C++ defined_in "./NPQFSReaction.h";
#pragma link C++ defined_in "./NPNucleus.h"; //#pragma link C++ defined_in "./NPBeam.h";
//#pragma link C++ defined_in "./NPNucleus.h";
#pragma link C++ defined_in "./NPEnergyLoss.h"; #pragma link C++ defined_in "./NPEnergyLoss.h";
#pragma link C++ defined_in "./NPDecay.h"; #pragma link C++ defined_in "./NPDecay.h";
#endif #endif
/*****************************************************************************
* Copyright (C) 2009-2019 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* *
* Original Author : F. Flavigny contact address: flavigny@ipno.in2p3.fr *
* *
* Creation Date : April 2019 *
* Last update : April 2019 *
*---------------------------------------------------------------------------*
* Decription: *
* This class deal with Quasi Free Scattering Reaction in which a cluster *
* or a nucleon is removed from a projectile by interaction with a target *
* nucleon (proton target in general) *
* *
* Labeling is: *
* A --> i ==> B + (i -> a) => B + 1 + 2 *
* *
* where: *
* + A is the beam nucleus *
* + i is the target nucleon (proton) *
* *
* + B is the residual fragment (beam-like) *
* + 1 is the scattered target nucleon (former i) *
* + 2 is the knocked-out cluster/nucleon (noted a) in the intermediate *
*---------------------------------------------------------------------------*
* Comment: *
* + *
* *
*****************************************************************************/
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <sstream>
#include <cmath>
#include <vector>
#include "NPQFS.h"
#include "NPCore.h"
#include "NPOptionManager.h"
#include "NPFunction.h"
// Use CLHEP System of unit and Physical Constant
#include "NPGlobalSystemOfUnits.h"
#include "NPPhysicalConstants.h"
#ifdef NP_SYSTEM_OF_UNITS_H
using namespace NPUNITS;
#endif
// ROOT
#include"TF1.h"
ClassImp(QFS)
/*
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
QFS::QFS(){
fVerboseLevel=0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
QFS::~QFS(){
}
*/
#ifndef NPQFS_h
#define NPQFS_h
/*****************************************************************************/
/*****************************************************************************
* Copyright (C) 2009-2019 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* *
* Original Author : F. Flavigny contact address: flavigny@ipno.in2p3.fr *
* *
* Creation Date : April 2019 *
* Last update : April 2019 *
*---------------------------------------------------------------------------*
* Decription: *
* This class deal with Quasi Free Scattering Reaction in which a cluster *
* or a nucleon is removed from a projectile by interaction with a target *
* nucleon (proton target in general) *
* *
* Labeling is: *
* A --> i ==> B + (i -> a) => B + 1 + 2 *
* *
* where: *
* + A is the beam nucleus *
* + i is the target nucleon (proton) *
* *
* + B is the residual fragment (beam-like) *
* + 1 is the scattered target nucleon (former i) *
* + 2 is the knocked-out cluster/nucleon (noted a) in the intermediate *
*---------------------------------------------------------------------------*
* Comment: *
* + *
* *
*****************************************************************************/
// C++ header
#include <string>
// NPL
#include "NPNucleus.h"
#include "NPInputParser.h"
using namespace NPL;
// ROOT header
#include "TLorentzVector.h"
#include "TLorentzRotation.h"
#include "TVector3.h"
#include "TGraph.h"
#include "TCanvas.h"
#include "TH1F.h"
#include "TRandom3.h"
using namespace std;
namespace NPL{
class QFS{
public: // Constructors and Destructors
QFS(){};
~QFS(){};
private:
int fVerboseLevel;
ClassDef(QFS,0)
};
}
#endif
#ifdef __CINT__
#pragma link C++ class QFS+;
#endif
#ifndef __REACTION__ #ifndef NPREACTION_h
#define __REACTION__ #define NPREACTION_h
/***************************************************************************** /*****************************************************************************
* Copyright (C) 2009-2016 this file is part of the NPTool Project * * Copyright (C) 2009-2016 this file is part of the NPTool Project *
* * * *
......
#ifdef __CINT__
#pragma link C++ class Reaction+;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment