5991{
5992 if (!gROOT->GetClass("TMultiLayerPerceptron")) {
5993 gSystem->Load("libMLP");
5994 }
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 Float_t dT_InBT_To_TestBT=0;
6023 Float_t dR_InBT_To_TestBT=0;
6024 Float_t dR_TestBT_To_InBT=0;
6025 Float_t zDist_TestBT_To_InBT=0;
6026 Float_t SpatialDist_TestBT_To_InBT=0;
6027 Float_t zDiff_TestBT_To_InBT=0;
6028 Float_t dT_NextBT_To_TestBT=0;
6029 Float_t dR_NextBT_To_TestBT=0;
6030 Float_t mean_dT_2before=0;
6031 Float_t mean_dR_2before=0;
6032 Float_t mean_dT_before=0;
6033 Float_t mean_dR_before=0;
6034 Float_t mean_dT_same=0;
6035 Float_t mean_dR_same=0;
6036 Float_t mean_dT_after=0;
6037 Float_t mean_dR_after=0;
6038 Float_t mean_dT_2after=0;
6039 Float_t mean_dR_2after=0;
6040
6041 Float_t min_dT_2before=0;
6042 Float_t min_dR_2before=0;
6043 Float_t min_dT_before=0;
6044 Float_t min_dR_before=0;
6045 Float_t min_dT_same=0;
6046 Float_t min_dR_same=0;
6047 Float_t min_dT_after=0;
6048 Float_t min_dR_after=0;
6049 Float_t min_dT_2after=0;
6050 Float_t min_dR_2after=0;
6051 Int_t nseg_1before=0;
6052 Int_t nseg_2before=0;
6053 Int_t nseg_3before=0;
6054 Int_t nseg_1after=0;
6055 Int_t nseg_2after=0;
6056 Int_t nseg_3after=0;
6057 Int_t nseg_same=0;
6059
6060 TString layout="";
6061
6063
6064 if (ann_inputneurons==5) {
6065 layout="@dT_InBT_To_TestBT,@dR_InBT_To_TestBT,@dR_TestBT_To_InBT,@zDiff_TestBT_To_InBT,@SpatialDist_TestBT_To_InBT:6:5:type";
6066 }
6067 if (ann_inputneurons==10) {
6068 layout="@dT_InBT_To_TestBT,@dR_InBT_To_TestBT,@dR_TestBT_To_InBT,@zDiff_TestBT_To_InBT,SpatialDist_TestBT_To_InBT,nseg_2before,nseg_1before,nseg_same,nseg_1after,nseg_2after:11:10:type";
6069 }
6070 if (ann_inputneurons==20) {
6071 layout="@dT_InBT_To_TestBT,@dR_InBT_To_TestBT,@dR_TestBT_To_InBT,@zDiff_TestBT_To_InBT,SpatialDist_TestBT_To_InBT,nseg_2before,nseg_1before,nseg_same,nseg_1after,nseg_2after,mean_dT_2before,mean_dT_before,mean_dT_same,mean_dT_after,mean_dT_2after,mean_dR_2before,mean_dR_before,mean_dR_same,mean_dR_after,mean_dR_2after:21:20:type";
6072 }
6073 if (ann_inputneurons==30) {
6074 layout="@dT_InBT_To_TestBT,@dR_InBT_To_TestBT,@dR_TestBT_To_InBT,@zDiff_TestBT_To_InBT,SpatialDist_TestBT_To_InBT,nseg_2before,nseg_1before,nseg_same,nseg_1after,nseg_2after,mean_dT_2before,mean_dT_before,mean_dT_same,mean_dT_after,mean_dT_2after,mean_dR_2before,mean_dR_before,mean_dR_same,mean_dR_after,mean_dR_2after,min_dT_2before,min_dT_before,min_dT_same,min_dT_after,min_dT_2after,min_dR_2before,min_dR_before,min_dR_same,min_dR_after,min_dR_2after:31:30:type";
6075 }
6076
6077 cout << "ann_inputneurons: " << ann_inputneurons << endl;
6078 cout << "Layout of ANN: " << layout << endl;
6079
6080
6081 TMlpANN =
new TMultiLayerPerceptron(layout,
simu,
"(Entry$)%2",
"(Entry$+1)%2");
6082
6083 return;
6084}
TMultiLayerPerceptron * TMlpANN
Definition: ShowRec.h:340
Double_t CUT_PARAMETER[10]
Definition: ShowRec.h:78
TTree * simu
Definition: testBGReduction_By_ANN.C:12
Int_t type
Definition: testBGReduction_By_ANN.C:15