1595 cout <<
"EdbShowAlg_RC::Execute()" << endl;
1596 cout <<
"EdbShowAlg_RC::Execute DOING MAIN SHOWER RECONSTRUCTION HERE" << endl;
1602 Bool_t StillToLoop=kTRUE;
1606 Int_t NLoopedPattern=0;
1608 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_SA::Execute--- STEP for patternloop direction = " << STEP << endl;
1611 if (
gEDBDEBUGLEVEL>2) cout <<
"EdbShowAlg_RC::Execute Loop over InBTs:" << endl;
1620 if (
gEDBDEBUGLEVEL==2)
if ((i%100)==0) cout <<
eInBTArrayN <<
" InBT in total, still to do:"<<Form(
"%4d",i)<<
"\r\r\r\r"<<flush;
1633 Float_t
X0=InBT->
X();
1634 Float_t
Y0=InBT->
Y();
1639 RecoShower -> AddSegment(InBT);
1640 if (
gEDBDEBUGLEVEL>4) cout <<
"Segment (InBT) " << Segment <<
" was added to RecoShower." << endl;
1650 ActualPID= InBT->
PID() ;
1651 newActualPID= InBT->
PID() ;
1653 while (StillToLoop) {
1654 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- --- Doing patterloop " << ActualPID <<
" for patterns Z position=" <<
eAli_Sub->
GetPattern(ActualPID)->
Z() << endl;
1656 for (Int_t btloop_cnt=0; btloop_cnt<
eAli_Sub->
GetPattern(ActualPID)->GetN(); ++btloop_cnt) {
1663 if (Segment->
MCEvt() > 0 )
if ( Segment->
MCEvt()!=InBT->
MCEvt() )
continue;
1664 if ( Abs(Segment->
X()-
X0) > 7000 )
continue;
1665 if ( Abs(Segment->
Y()-
Y0) > 7000 )
continue;
1674 if (Segment->
X()==InBT->
X()&&Segment->
Y()==InBT->
Y()) {
1678 RecoShower -> AddSegment(Segment);
1680 if (
gEDBDEBUGLEVEL>4) cout <<
"Segment " << Segment <<
" was added at &Segment : " << &Segment << endl;
1684 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- --- ActualPID= " << newActualPID <<
" done. Reconstructed shower has up to now: " << RecoShower->
N() <<
" Segments." << endl;
1687 newActualPID=ActualPID+STEP;
1690 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- --- newActualPID= " << newActualPID << endl;
1691 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- --- NLoopedPattern= " << NLoopedPattern << endl;
1693 if (
gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- --- StillToLoop= " << StillToLoop << endl;
1698 if (newActualPID>
eLastPlate_eAliPID) cout <<
"EdbShowAlg_RC::Execute--- ---Stop Loop since: newActualPID>eLastPlate_eAliPID"<<endl;
1703 if (newActualPID<eLastPlate_eAliPID && gEDBDEBUGLEVEL>3) cout <<
"EdbShowAlg_RC::Execute--- ---Stop Loop since: newActualPID<eLastPlate_eAliPID"<<endl;
1709 ActualPID=newActualPID;
1727 if (RecoShower->
N()>1) {
1733 Log(3,
"EdbShowAlg_RC::Execute()",
"InBT # %d RecoShower->N()<=1: Dont add shower to RecoShowerArray. Delete this shower for memory safing.");
1748 cout <<
"EdbShowAlg_RC::eRecoShowerArray() Entries: " <<
eRecoShowerArray->GetEntries() << endl;
1749 cout <<
"EdbShowAlg_RC::Execute()...done." << endl;
bool Log(int level, const char *location, const char *fmt,...)
Definition: EdbLog.cxx:75
void Print() const
Definition: EdbPattern.cxx:1853
EdbPattern * GetPattern(int id) const
Definition: EdbPattern.cxx:1887
Float_t X() const
Definition: EdbSegP.h:170
Float_t Y() const
Definition: EdbSegP.h:171
void PrintNice() const
Definition: EdbSegP.cxx:418
Int_t PID() const
Definition: EdbSegP.h:145
Int_t MCEvt() const
Definition: EdbSegP.h:142
Float_t Z() const
Definition: EdbPattern.h:87
EdbSegP * GetSegment(int i) const
Definition: EdbPattern.h:66
Bool_t FindPrecedingBTs(EdbSegP *s, EdbSegP *InBT, EdbPVRec *gAli, EdbShowerP *shower)
Definition: EdbShowAlg.cxx:1772
Bool_t GetConeOrTubeDistanceToBTOfShowerArray(EdbSegP *sa, EdbSegP *InBT, EdbShowerP *shower, Double_t CylinderRadius, Double_t ConeAngle)
Definition: EdbShowAlg.cxx:1829
void Transform_eAli(EdbSegP *InitiatorBT, Float_t ExtractSize)
Definition: EdbShowAlg.cxx:107
void AddRecoShowerArray(EdbShowerP *shower)
Definition: EdbShowAlg.h:120
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
Int_t eNumberPlate_eAliPID
Definition: EdbShowAlg.h:68
EdbPVRec * eAli_Sub
Definition: EdbShowAlg.h:74
Int_t eActualAlgParametersetNr
Definition: EdbShowAlg.h:54
Definition: EdbShowerP.h:28
Int_t N() const
Definition: EdbShowerP.h:412
void PrintNice()
Definition: EdbShowerP.cxx:2339
void PrintSegments()
Definition: EdbShowerP.cxx:2367
void PrintBasics()
Definition: EdbShowerP.cxx:2360
void Update()
Definition: EdbShowerP.cxx:975
float X0
Definition: emthickness.cpp:69
float Y0
Definition: emthickness.cpp:70
gEDBDEBUGLEVEL
Definition: energy.C:7
#define NULL
Definition: nidaqmx.h:84