1024 Log(2,
"EdbShowAlg_N3::Execute",
"DOING MAIN SHOWER RECONSTRUCTION HERE");
1027 Log(2,
"EdbShowAlg_N3::Execute",
"Warning: No InitiatorBTs in the array. Return now");
1033 cout <<
"EdbShowAlg_N3::Execute()...FILL THE ROUTINE WITH THE CODE FROM ShowReco PROGRAM." << endl;
1043 TTree *eANNTrainingsTree =
new TTree(
"TreeSignalBackgroundBT",
"TreeSignalBackgroundBT");
1044 eANNTrainingsTree->Branch(
"N3_Type", &
eANN_Inputtype,
"N3_Type/I");
1045 eANNTrainingsTree->Branch(
"N3_Inputvar",
eANN_Inputvar,
"N3_Inputvar[24]/D");
1054 Bool_t StillToLoop=kTRUE;
1058 Int_t NLoopedPattern=0;
1060 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_N3::Execute--- STEP for patternloop direction = " << STEP << endl;
1066 cout <<
"Loop over InBTs N=" <<
eInBTArrayN << endl;
1073 if (
gEDBDEBUGLEVEL==2)
if ((i%1)==0) cout <<
eInBTArrayN <<
" InBT in total, still to do:"<<Form(
"%4d",i)<<
"\r\r\r\r"<<flush;
1099 RecoShower -> AddSegment(InBT);
1100 cout <<
"Segment (InBT) " << InBT <<
" was added to RecoShower." << endl;
1110 ActualPID= InBT->
PID() ;
1111 newActualPID= InBT->
PID() ;
1113 while (StillToLoop) {
1114 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_N3::Execute--- --- Doing patterloop " << ActualPID << endl;
1117 int patterloop_cnt=ActualPID;
1119 for (Int_t btloop_cnt=0; btloop_cnt<
eAli->
GetPattern(ActualPID)->GetN(); ++btloop_cnt) {
1142 cout <<
"// TO BE CHECKED WHERE THE FUNCTION GetDistToAxis(InBTClone, seg); IS!!" << endl;
1148 cout <<
"// TO BE CHECKED WHERE THE FUNCTION GetdeltaThetaSingleAngles(InBT, seg); IS!!" << endl;
1153 cout <<
"// TO BE CHECKED WHERE THE FUNCTION GetdMinDist(InBT, seg); IS!!" << endl;
1168 Double_t EvalValue=0;
1169 Double_t N3_Evalvar4[4];
1170 Double_t N3_Evalvar8[8];
1171 Double_t N3_Evalvar12[12];
1172 Double_t N3_Evalvar16[16];
1173 Double_t N3_Evalvar20[20];
1174 Double_t N3_Evalvar24[24];
1207 cout <<
"TO BE DONE" << endl;
1222 if (Segment->
X()==InBT->
X()&&Segment->
Y()==InBT->
Y()) {
1226 RecoShower -> AddSegment(Segment);
1228 cout <<
"Segment " << Segment <<
" was added to &RecoShower : " << &RecoShower << endl;
1232 newActualPID=ActualPID+STEP;
1235 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_N3::Execute--- --- newActualPID= " << newActualPID << endl;
1236 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_N3::Execute--- --- NLoopedPattern= " << NLoopedPattern << endl;
1238 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_N3::Execute--- --- StillToLoop= " << StillToLoop << endl;
1243 if (newActualPID>
eLastPlate_eAliPID) cout <<
"EdbShowAlg_N3::Execute--- ---Stopp Loop since: newActualPID>eLastPlate_eAliPID"<<endl;
1248 if (newActualPID<
eLastPlate_eAliPID) cout <<
"EdbShowAlg_N3::Execute--- ---Stopp Loop since: newActualPID<eLastPlate_eAliPID"<<endl;
1252 if (NLoopedPattern>
eNumberPlate_eAliPID) cout <<
"EdbShowAlg_N3::Execute--- ---Stopp Loop since: NLoopedPattern>eNumberPlate_eAliPID"<<endl;
1254 ActualPID=newActualPID;
1276 Log(2,
"EdbShowAlg_N3::Execute",
"eRecoShowerArray():Entries = %d",
eRecoShowerArray->GetEntries());
1277 Log(2,
"EdbShowAlg_N3::Execute",
"DOING MAIN SHOWER RECONSTRUCTION HERE...done.");
EdbPattern * GetPattern(int id) const
Definition: EdbPattern.cxx:1887
Float_t X() const
Definition: EdbSegP.h:170
Float_t Z() const
Definition: EdbSegP.h:150
Float_t Y() const
Definition: EdbSegP.h:171
void PrintNice() const
Definition: EdbSegP.cxx:418
Int_t PID() const
Definition: EdbSegP.h:145
EdbSegP * GetSegment(int i) const
Definition: EdbPattern.h:66
TFile * eANNTrainingsTreeFile
Definition: EdbShowAlg_NN.h:153
Double_t eANN_OutputValue
Definition: EdbShowAlg_NN.h:159
void Transform_eAli(EdbSegP *InitiatorBT, Float_t ExtractSize)
Definition: EdbShowAlg.cxx:107
void SetRecoShowerArrayN(Int_t RecoShowerArrayN)
Definition: EdbShowAlg.h:117
TObjArray * eRecoShowerArray
Definition: EdbShowAlg.h:70
Int_t eFirstPlate_eAliPID
Definition: EdbShowAlg.h:65
Int_t eLastPlate_eAliPID
Definition: EdbShowAlg.h:66
Int_t eInBTArrayN
Definition: EdbShowAlg.h:63
TObjArray * eInBTArray
Definition: EdbShowAlg.h:62
EdbPVRec * eAli
Definition: EdbShowAlg.h:59
Int_t eNumberPlate_eAliPID
Definition: EdbShowAlg.h:68
Definition: EdbShowerP.h:28
Int_t N() const
Definition: EdbShowerP.h:412
void Update()
Definition: EdbShowerP.cxx:975
Double_t params[3]
Definition: testBGReduction_By_ANN.C:84