#include <ecalMaximumLocator.h>
Definition at line 10 of file ecalMaximumLocator.h.
◆ ecalMaximumLocator() [1/3]
ecalMaximumLocator::ecalMaximumLocator |
( |
| ) |
|
◆ ecalMaximumLocator() [2/3]
ecalMaximumLocator::ecalMaximumLocator |
( |
const char * |
name, |
|
|
Int_t |
verbose |
|
) |
| |
◆ ~ecalMaximumLocator()
ecalMaximumLocator::~ecalMaximumLocator |
( |
| ) |
|
◆ ecalMaximumLocator() [3/3]
◆ ClassDef()
◆ ECut()
Double_t ecalMaximumLocator::ECut |
( |
| ) |
const |
|
inline |
◆ Exec()
void ecalMaximumLocator::Exec |
( |
const Option_t * |
option | ) |
|
|
virtual |
Definition at line 73 of file ecalMaximumLocator.cxx.
74{
75 list<ecalCell*> all;
76 list<ecalCell*> cells;
77 list<ecalCell*>::const_iterator
p;
78 list<ecalCell*>::const_iterator
r;
79 Double_t e;
85
89 for(p=all.begin();
p!=all.end();++
p)
90 {
91 e=(*p)->GetEnergy();
92 r1=(*p)->GetCenterX();
r1*=
r1;
93 t=(*p)->GetCenterY();
t*=
t;
94 r1=TMath::Sqrt(r1*r1+t*t);
96 continue;
97 (*p)->GetNeighborsList(cells);
98 for(r=cells.begin();
r!=cells.end();++
r)
99 {
100 if ((*r)->GetEnergy()<e) continue;
101 if ((*r)->GetEnergy()==e)
102 {
103 r2=(*r)->GetCenterX();
r2*=
r2;
104 t=(*r)->GetCenterY();
t*=
t;
105 r2=TMath::Sqrt(r2*r2+t*t);
106 if (r1>=r2) continue;
107 }
108 break;
109 }
110 if (r!=cells.end())
111 continue;
112
114 }
115 if (fVerbose>9)
116 Info("Exec", "%d maximums found", n);
117}
void GetCells(std::list< ecalCell * > &cells) const
ecalInf * GetEcalInf() const
◆ Finish()
void ecalMaximumLocator::Finish |
( |
| ) |
|
|
virtual |
◆ Init()
InitStatus ecalMaximumLocator::Init |
( |
| ) |
|
|
virtual |
Definition at line 41 of file ecalMaximumLocator.cxx.
42{
43 FairRootManager* fManager=FairRootManager::Instance();
44 if (!fManager)
45 {
46 Fatal("Init", "Can't find a Root Manager.");
47 return kFATAL;
48 }
51 {
52 Fatal("Init()", "Can't find calorimeter structure in the system.");
53 return kFATAL;
54 }
55 fMaximums=
new TClonesArray(
"ecalMaximum", 3000);
56 fManager->Register(
"EcalMaximums",
"ECAL",
fMaximums, kFALSE);
58 return kSUCCESS;
59}
◆ InitPython()
TClonesArray * ecalMaximumLocator::InitPython |
( |
ecalStructure * |
structure | ) |
|
◆ operator=()
◆ SetECut()
void ecalMaximumLocator::SetECut |
( |
Double_t |
ecut = 0.005 | ) |
|
|
inline |
◆ fECut
Double_t ecalMaximumLocator::fECut |
|
private |
◆ fEvent
Int_t ecalMaximumLocator::fEvent |
|
private |
◆ fMaximums
TClonesArray* ecalMaximumLocator::fMaximums |
|
private |
◆ fStr
The documentation for this class was generated from the following files: