From 0e78931ae7e3b3b67e05372c8a9565444c6d51da Mon Sep 17 00:00:00 2001 From: deserevi <deserevi@nptool> Date: Wed, 14 Oct 2009 09:23:04 +0000 Subject: [PATCH] * Minor update of several files --- .../gaspardTestSpheric.detector | 83 +++++++++---------- NPAnalysis/Gaspard/RunToTreat.txt | 7 +- NPAnalysis/Gaspard/src/Analysis.cc | 2 +- NPAnalysis/macros/GeometricalEfficiency.C | 6 +- .../include/GaspardTrackerDummyShape.hh | 4 +- TODO | 2 - 6 files changed, 49 insertions(+), 55 deletions(-) diff --git a/Inputs/DetectorConfiguration/gaspardTestSpheric.detector b/Inputs/DetectorConfiguration/gaspardTestSpheric.detector index e0378a74c..96fcce7a4 100644 --- a/Inputs/DetectorConfiguration/gaspardTestSpheric.detector +++ b/Inputs/DetectorConfiguration/gaspardTestSpheric.detector @@ -9,8 +9,7 @@ GeneralTarget %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Target -% THICKNESS= 10.3 - THICKNESS= 0.0001 + THICKNESS= 10.3 ANGLE= 0 RADIUS= 12 MATERIAL= CD2 @@ -33,7 +32,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1 GPDDummyShape @@ -43,7 +42,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%2 GPDDummyShape @@ -53,7 +52,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%3 GPDDummyShape @@ -63,7 +62,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%4 GPDDummyShape @@ -73,7 +72,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5 GPDDummyShape @@ -83,7 +82,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%6 GPDDummyShape @@ -93,7 +92,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%7 GPDDummyShape @@ -103,7 +102,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%8 GPDDummyShape @@ -113,7 +112,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%9 GPDDummyShape @@ -123,7 +122,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%10 GPDDummyShape @@ -133,7 +132,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%11 GPDDummyShape @@ -143,7 +142,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%12 First Cone (forward) GPDDummyShape @@ -153,7 +152,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%13 GPDDummyShape @@ -163,7 +162,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%14 GPDDummyShape @@ -173,7 +172,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%15 GPDDummyShape @@ -183,7 +182,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%16 GPDDummyShape @@ -193,7 +192,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%17 GPDDummyShape @@ -203,7 +202,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%18 GPDDummyShape @@ -213,7 +212,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%19 GPDDummyShape @@ -223,7 +222,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%20 GPDDummyShape @@ -233,7 +232,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%21 Second Cone (forward) GPDDummyShape @@ -243,7 +242,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%22 GPDDummyShape @@ -253,7 +252,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%23 GPDDummyShape @@ -263,7 +262,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%24 GPDDummyShape @@ -273,7 +272,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%25 First Cone (backward) GPDDummyShape @@ -283,7 +282,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%26 GPDDummyShape @@ -293,7 +292,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%27 GPDDummyShape @@ -303,7 +302,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%28 GPDDummyShape @@ -313,7 +312,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%29 GPDDummyShape @@ -323,7 +322,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%30 GPDDummyShape @@ -333,7 +332,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%31 GPDDummyShape @@ -343,7 +342,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%32 GPDDummyShape @@ -353,7 +352,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%33 GPDDummyShape @@ -363,7 +362,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%34 Second Cone (backward) GPDDummyShape @@ -373,7 +372,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%35 GPDDummyShape @@ -383,7 +382,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%36 GPDDummyShape @@ -393,7 +392,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%37 GPDDummyShape @@ -403,7 +402,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%38 End Cap (forward) GPDDummyShape @@ -413,7 +412,7 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%39 End Cap (backward) GPDDummyShape @@ -423,5 +422,5 @@ GPDDummyShape BETA= 0 0 0 FIRSTSTAGE= 1 SECONDSTAGE= 1 - THIRDSTAGE= 0 + THIRDSTAGE= 1 VIS= all diff --git a/NPAnalysis/Gaspard/RunToTreat.txt b/NPAnalysis/Gaspard/RunToTreat.txt index 3a291143e..e1e642cec 100644 --- a/NPAnalysis/Gaspard/RunToTreat.txt +++ b/NPAnalysis/Gaspard/RunToTreat.txt @@ -1,8 +1,5 @@ TTreeName SimulatedTree RootFileName -% ../../Outputs/Simulation/mySimul_test.root - ../../Outputs/Simulation/mySimul.root -% ../../Outputs/Simulation/TestMarcIsotropic.root -% ../../Outputs/Simulation/TestMarc132sn.root -% ../../Outputs/Simulation/TestMarcIsotropic1detector.root +% ../../Outputs/Simulation/mySimul.root + ../../Outputs/Simulation/sn132dp_10MeVA_T1_B0_E0.root diff --git a/NPAnalysis/Gaspard/src/Analysis.cc b/NPAnalysis/Gaspard/src/Analysis.cc index 5ee4f84ab..f859ac0e6 100644 --- a/NPAnalysis/Gaspard/src/Analysis.cc +++ b/NPAnalysis/Gaspard/src/Analysis.cc @@ -78,7 +78,7 @@ int main(int argc,char** argv) ThetaStrip = ThetaCalculation (A ,TVector3(0,0,1)); // Correct for energy loss in the target -// E = DeutonTargetCD2.EvaluateInitialEnergy(E, 5.15*micrometer, ThetaStrip); + E = DeutonTargetCD2.EvaluateInitialEnergy(E, 5.15*micrometer, ThetaStrip); // Calculate excitation energy if (Theta/deg > 90) { diff --git a/NPAnalysis/macros/GeometricalEfficiency.C b/NPAnalysis/macros/GeometricalEfficiency.C index 75bbe8668..c2e43a82a 100644 --- a/NPAnalysis/macros/GeometricalEfficiency.C +++ b/NPAnalysis/macros/GeometricalEfficiency.C @@ -39,7 +39,7 @@ using namespace std ; -void GeometricalEfficiency(const char * fname = "Efficiency_10000") +void GeometricalEfficiency(const char * fname = "mySimul") { // Open output ROOT file from NPTool simulation run TString path = gSystem->Getenv("NPTOOL"); @@ -77,8 +77,8 @@ void GeometricalEfficiency(const char * fname = "Efficiency_10000") // Compute relative efficiency in % TH1F *efficiency = new TH1F("hEfficiency", "Efficiency", 180, 0, 180); -// efficiency->SetTitle("Efficiency GASPARD;#Theta [deg];#epsilon [%]"); - efficiency->SetTitle("Efficiency e530;#Theta [deg];#epsilon [%]"); + efficiency->SetTitle("Efficiency GASPARD (Spheric version);#Theta [deg];#epsilon [%]"); +// efficiency->SetTitle("Efficiency e530;#Theta [deg];#epsilon [%]"); efficiency->Divide(hDetecTheta,hEmittTheta,100); efficiency->SetMaximum(110); efficiency->Draw(); diff --git a/NPSimulation/include/GaspardTrackerDummyShape.hh b/NPSimulation/include/GaspardTrackerDummyShape.hh index 2309fcd57..79e282b2e 100644 --- a/NPSimulation/include/GaspardTrackerDummyShape.hh +++ b/NPSimulation/include/GaspardTrackerDummyShape.hh @@ -143,7 +143,7 @@ namespace GPDDUMMYSHAPE // Resolution // const G4double ResoFirstStage = 0; // = 50 keV of Resolution // Unit is MeV/2.35 const G4double ResoFirstStage = 0.0213; // = 50 keV of Resolution // Unit is MeV/2.35 - const G4double ResoSecondStage = 0.0213 * sqrt(2); // = 50 keV of resolution // Unit is MeV/2.35 + const G4double ResoSecondStage = 0.0213; // = 50 keV of resolution // Unit is MeV/2.35 const G4double ResoThirdStage = 0.0213; // = 50 keV of resolution // Unit is MeV/2.35 const G4double ResoTimeGpd = 0.212765957;// = 500ps // Unit is ns/2.35 @@ -166,7 +166,7 @@ namespace GPDDUMMYSHAPE // Second stage const G4double SecondStageFace = FirstStageFace; - const G4double SecondStageThickness = 2*mm; + const G4double SecondStageThickness = 1*mm; // Third stage const G4double ThirdStageFace = FirstStageFace; diff --git a/TODO b/TODO index 2413cd399..5bb0b745c 100644 --- a/TODO +++ b/TODO @@ -22,8 +22,6 @@ TODO for NPTool: ---------------- - + Change map's index of scorers to deal a typical case like it is now done - for the dE-E with 2 plastics. (Adrien + Nicolas) + Build a dummy detector as a simple example of how NPTool is working (Adrien) + Target work (Nicolas) + Make homogeneous treatment of materials definition wrt other detectors -- GitLab