Skip to content
Snippets Groups Projects
Commit 08bbf25c authored by Xythere's avatar Xythere
Browse files

Monster Project

parent d97181a0
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
/vol0/nptool/Outputs/Simulation/SimulatedTree.root
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Theta
Action= Copy
Value= 30 43 56 69 82 95 108
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Phi
Action= Copy
Value= 30 50 70 90 110 130 150
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Monster
R= 1668.5 mm
THETA= @Theta deg
PHI= @Phi deg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% An Isotropic Source to be used as EventGenerator %%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Energy are given in MeV , Position in mm %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Isotropic
EnergyLow= 1 MeV
EnergyHigh= 1 MeV
%EnergyDistribution= flat
%EnergyDistribution= Watt
%EnergyDistribution= 0.38*sqrt(x)*exp(-x/0.847212)
%EnergyDistribution= 1.5*TMath::SinH(sqrt(1.3*x))*exp(-0.89*x)
%EnergyDistribution= FromHisto
%EnergyDistributionHist= hEx.root hEx
HalfOpenAngleMin= 0
HalfOpenAngleMax= 180
x0= 0
y0= 0
z0= 0 mm
Multiplicity= 1
Particle= neutron
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Supported particle type: proton, neutron, deuton, triton, He3 , alpha
/*****************************************************************************
* Copyright (C) 2009-2016 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: XAUTHORX contact address: XMAILX *
* *
* Creation Date : XMONTHX XYEARX *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class describe Monster analysis project *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
*****************************************************************************/
#include<iostream>
using namespace std;
#include"Analysis.h"
#include"NPAnalysisFactory.h"
#include"NPDetectorManager.h"
////////////////////////////////////////////////////////////////////////////////
Analysis::Analysis(){
}
////////////////////////////////////////////////////////////////////////////////
Analysis::~Analysis(){
}
////////////////////////////////////////////////////////////////////////////////
void Analysis::Init(){
Monster= (TMonsterPhysicsPhysics*) m_DetectorManager->GetDetector("Monster");
}
////////////////////////////////////////////////////////////////////////////////
void Analysis::TreatEvent(){
}
////////////////////////////////////////////////////////////////////////////////
void Analysis::End(){
}
////////////////////////////////////////////////////////////////////////////////
// Construct Method to be pass to the DetectorFactory //
////////////////////////////////////////////////////////////////////////////////
NPL::VAnalysis* Analysis::Construct(){
return (NPL::VAnalysis*) new Analysis();
}
////////////////////////////////////////////////////////////////////////////////
// Registering the construct method to the factory //
////////////////////////////////////////////////////////////////////////////////
extern "C"{
class proxy{
public:
proxy(){
NPL::AnalysisFactory::getInstance()->SetConstructor(Analysis::Construct);
}
};
proxy p;
}
#ifndef Analysis_h
#define Analysis_h
/*****************************************************************************
* Copyright (C) 2009-2016 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: XAUTHORX contact address: XMAILX *
* *
* Creation Date : XMONTHX XYEARX *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class describe Monster analysis project *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
*****************************************************************************/
#include"NPVAnalysis.h"
#include"TMonsterPhysics.h"
class Analysis: public NPL::VAnalysis{
public:
Analysis();
~Analysis();
public:
void Init();
void TreatEvent();
void End();
static NPL::VAnalysis* Construct();
private:
TMonsterPhysics* Monster;
};
#endif
cmake_minimum_required (VERSION 2.8)
# Setting the policy to match Cmake version
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
# include the default NPAnalysis cmake file
include("../../NPLib/ressources/CMake/NPAnalysis.cmake")
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Theta
Action= Copy
Value= 30 43 56 69 82 95 108
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias Phi
Action= Copy
Value= 30 50 70 90 110 130 150
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Monster
R= 1668.5 mm
THETA= @Theta deg
PHI= @Phi deg
Shape= Cylindrical
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EmPhysicsList Option4
DefaultCutOff 1
DriftElectronPhysics 0
IonBinaryCascadePhysics 0
NPIonInelasticPhysics 0
EmExtraPhysics 0
HadronElasticPhysics 0
StoppingPhysics 0
OpticalPhysics 0
HadronPhysicsINCLXX 0
HadronPhysicsQGSP_BIC_HP 0
HadronPhysicsQGSP_BERT_HP 0
Decay 0
Menate_R 0
NeutronHP 1
/run/beamOn 1000000
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