From 7e1e7362d39eef00cb441598c4770ab33d90955f Mon Sep 17 00:00:00 2001 From: matta <matta@npt> Date: Mon, 18 Oct 2010 14:42:33 +0000 Subject: [PATCH] * Adding configs folder to the repository - this optional folder of analysis project is there to hold the configuration file of each detector. - Each of this file hold value that can be set-up for custom analysis (threshold,...) as well as the channel that should be turned of --- NPAnalysis/10He_Riken/configs/ConfigMust2.dat | 4 +++ NPAnalysis/10He_Riken/src/Analysis.cc | 29 ------------------- NPLib/MUST2/TMust2Physics.cxx | 3 +- 3 files changed, 6 insertions(+), 30 deletions(-) create mode 100644 NPAnalysis/10He_Riken/configs/ConfigMust2.dat diff --git a/NPAnalysis/10He_Riken/configs/ConfigMust2.dat b/NPAnalysis/10He_Riken/configs/ConfigMust2.dat new file mode 100644 index 000000000..de05eaf79 --- /dev/null +++ b/NPAnalysis/10He_Riken/configs/ConfigMust2.dat @@ -0,0 +1,4 @@ +ConfigMust2 + MAX_STRIP_MULTIPLICITY 1 + STRIP_ENERGY_MATCHING_TOLERANCE 10 + MUST2 DISABLE_ALL MM4 diff --git a/NPAnalysis/10He_Riken/src/Analysis.cc b/NPAnalysis/10He_Riken/src/Analysis.cc index e47cbdaaf..c58c1c4d4 100644 --- a/NPAnalysis/10He_Riken/src/Analysis.cc +++ b/NPAnalysis/10He_Riken/src/Analysis.cc @@ -81,35 +81,6 @@ int main(int argc,char** argv) // TPlasticPhysics* Pl = (TPlasticPhysics*) myDetector -> m_Detector["Plastic"] ; // TSSSDPhysics* ThinSi = (TSSSDPhysics*) myDetector -> m_Detector["SSSD"] ; - -RootOutput::getInstance()->GetList()->Add(myHist1D); - - TCutG *cut3He_MUST2 = new TCutG("Cut3HeMUST2",11); - cut3He_MUST2->SetPoint(0,-1.49426,24.2781); - cut3He_MUST2->SetPoint(1,15.3161,14.3151); - cut3He_MUST2->SetPoint(2,47.069,7.6732); - cut3He_MUST2->SetPoint(3,110.575,4.35222); - cut3He_MUST2->SetPoint(4,308.563,2.25477); - cut3He_MUST2->SetPoint(5,310.431,1.20604); - cut3He_MUST2->SetPoint(6,232.917,1.11864); - cut3He_MUST2->SetPoint(7,89.0948,2.42955); - cut3He_MUST2->SetPoint(8,32.1264,6.71186); - cut3He_MUST2->SetPoint(9,1.30747,11.9555); - cut3He_MUST2->SetPoint(10,-1.49426,24.2781); - - TCutG *cut3He_M2_SSSD = new TCutG("Cut3HeM2SSSD",11); - cut3He_M2_SSSD->SetPoint(0,7.44252,1.45432); - cut3He_M2_SSSD->SetPoint(1,40.6322,0.684984); - cut3He_M2_SSSD->SetPoint(2,95.9483,0.406912); - cut3He_M2_SSSD->SetPoint(3,218.649,0.216896); - cut3He_M2_SSSD->SetPoint(4,362.471,0.101033); - cut3He_M2_SSSD->SetPoint(5,355.431,0.0315148); - cut3He_M2_SSSD->SetPoint(6,100.977,0.0315148); - cut3He_M2_SSSD->SetPoint(7,25.546,0.314221); - cut3He_M2_SSSD->SetPoint(8,3.41954,0.995498); - cut3He_M2_SSSD->SetPoint(9,3.41954,1.40797); - cut3He_M2_SSSD->SetPoint(10,7.44252,1.45432); - cout << " ///////// Starting Analysis ///////// "<< endl << endl ; int i ,N=Chain -> GetEntries(); diff --git a/NPLib/MUST2/TMust2Physics.cxx b/NPLib/MUST2/TMust2Physics.cxx index 67242b875..7371b1082 100644 --- a/NPLib/MUST2/TMust2Physics.cxx +++ b/NPLib/MUST2/TMust2Physics.cxx @@ -1107,7 +1107,8 @@ void TMust2Physics::InitializeRootInput() inputChain->SetBranchStatus( "MUST2" , true ) ; //added for compatibility with Riken file inputChain->SetBranchStatus( "Must2" , true ) ; - inputChain->SetBranchStatus( "fMM_*" , true ) ; + + inputChain->SetBranchStatus( "fMM_*" , true ) ; inputChain->SetBranchAddress( "MUST2" , &EventData ) ; inputChain->SetBranchAddress( "Must2" , &EventData ) ; } -- GitLab