SND@LHC Software
Loading...
Searching...
No Matches
ecalMaximum.cxx
Go to the documentation of this file.
1
#include "
ecalMaximum.h
"
2
3
#include "
ecalCell.h
"
4
5
#include "TMath.h"
6
7
#include <list>
8
9
using namespace
std;
10
11
ecalMaximum::ecalMaximum
(
ecalCell
* cell, Double_t z)
12
: TObject(),
13
fCell(cell),
14
fCX(0.),
15
fCY(0.),
16
fX(0.),
17
fY(0.),
18
fMark(0),
19
fTheta(0)
20
{
21
Double_t me=cell->
GetEnergy
();
22
Double_t e;
23
Int_t i;
24
list<ecalCell*> cells;
25
list<ecalCell*>::const_iterator p;
26
27
fCX
=cell->
GetCenterX
();
28
fCY
=cell->
GetCenterY
();
29
fX
=cell->
GetEnergy
()*
fCX
;
30
fY
=cell->
GetEnergy
()*
fCY
;
31
32
33
cell->
GetNeighborsList
(cells);
34
for
(p=cells.begin();p!=cells.end();++p)
35
{
36
fX
+=(*p)->GetEnergy()*(*p)->GetCenterX();
37
fY
+=(*p)->GetEnergy()*(*p)->GetCenterY();
38
}
39
fX
/=me;
fY
/=me;
40
}
41
42
ClassImp
(
ecalMaximum
)
ecalCell
Definition
ecalCell.h:17
ecalCell::GetNeighborsList
void GetNeighborsList(std::list< ecalCell * > &neib) const
Definition
ecalCell.h:48
ecalCell::GetCenterX
Float_t GetCenterX() const
Definition
ecalCell.h:35
ecalCell::GetCenterY
Float_t GetCenterY() const
Definition
ecalCell.h:36
ecalCell::GetEnergy
Float_t GetEnergy() const
Definition
ecalCell.h:42
ecalMaximum
Definition
ecalMaximum.h:10
ecalMaximum::fCY
Double_t fCY
Definition
ecalMaximum.h:35
ecalMaximum::fX
Double_t fX
Definition
ecalMaximum.h:37
ecalMaximum::fCX
Double_t fCX
Definition
ecalMaximum.h:34
ecalMaximum::ecalMaximum
ecalMaximum()
Definition
ecalMaximum.h:13
ecalMaximum::fY
Double_t fY
Definition
ecalMaximum.h:38
ecalCell.h
ClassImp
ClassImp(ecalContFact) ecalContFact
Definition
ecalContFact.cxx:8
ecalMaximum.h
ecal
ecalMaximum.cxx
Generated by
1.9.8