FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
RhoEventShape Class Reference

#include <RhoEventShape.h>

Inheritance diagram for RhoEventShape:

Public Member Functions

 RhoEventShape ()
 
 RhoEventShape (RhoCandList &l)
 
virtual ~RhoEventShape ()
 
TLorentzVector P4 ()
 
Double_t M ()
 
Double_t E ()
 
Double_t P ()
 
Double_t Pt ()
 
Double_t Psum ()
 

Private Attributes

TLorentzVector fTot4Mom
 
Double_t fTotM
 
Double_t fTotE
 
Double_t fTotP
 
Double_t fTotPt
 
Double_t fTotAbsMom
 

Detailed Description

Definition at line 14 of file RhoEventShape.h.

Constructor & Destructor Documentation

RhoEventShape::RhoEventShape ( )

Definition at line 17 of file RhoEventShape.cxx.

References fTot4Mom, fTotAbsMom, fTotE, fTotM, fTotP, and fTotPt.

18 {
19  fTot4Mom = TLorentzVector(0.,0.,0.,0.);
20  //_fw2 = 0;
21  fTotM = 0;
22  fTotE = 0;
23  fTotP = 0;
24  fTotPt = 0;
25  fTotAbsMom = 0;
26 }
Double_t fTotPt
Definition: RhoEventShape.h:37
Double_t fTotP
Definition: RhoEventShape.h:36
Double_t fTotE
Definition: RhoEventShape.h:35
Double_t fTotAbsMom
Definition: RhoEventShape.h:38
Double_t fTotM
Definition: RhoEventShape.h:34
TLorentzVector fTot4Mom
Definition: RhoEventShape.h:32
RhoEventShape::RhoEventShape ( RhoCandList l)

Definition at line 28 of file RhoEventShape.cxx.

References c1, fTot4Mom, fTotAbsMom, fTotE, fTotM, fTotP, fTotPt, RhoCandList::Get(), RhoCandList::GetNumberOfTracks(), i, p1, RhoCandidate::P3(), and RhoCandidate::P4().

29 {
30  fTot4Mom = TLorentzVector(0.,0.,0.,0.);
31  fTotAbsMom = 0;
32  //Double_t fw2n = 0;
33  Int_t nl = l.GetNumberOfTracks();
34  for (Int_t i=0; i<nl; ++i) {
35  RhoCandidate* c1 = l.Get(i);
36  TVector3 p1 = c1->P3();
37  fTotAbsMom += p1.Mag();
38  fTot4Mom += c1->P4();
39 // for (Int_t j=i; j<nl; ++j) {
40 // RhoCandidate *c2 = l.Get(j);
41 // TVector3 p2 = c2->P3();
42 // Double_t cosal = p1.Dot(p2) /(p1.Mag()*p2.Mag());
43 // Double_t legendre2 = 3.*cosal*cosal - 1.;
44 // if (i == j) legendre2 = legendre2 / 2.;
45 // fw2n += legendre2 * p1.Mag() * p2.Mag();
46 // }
47  }
48  //_fw2 = fTotabsmom>0 ? fw2n/(fTotabsmom*fTotabsmom) : 0.0;
49  fTotM = fTot4Mom.M();
50  fTotE = fTot4Mom.E();
51  fTotP = fTot4Mom.Rho();
52  fTotPt = fTot4Mom.Perp();
53 }
Double_t fTotPt
Definition: RhoEventShape.h:37
Double_t fTotP
Definition: RhoEventShape.h:36
Int_t i
Definition: run_full.C:25
Double_t fTotE
Definition: RhoEventShape.h:35
Double_t fTotAbsMom
Definition: RhoEventShape.h:38
TLorentzVector P4() const
Definition: RhoCandidate.h:195
Double_t fTotM
Definition: RhoEventShape.h:34
c1
Definition: plot_dirc.C:35
Int_t GetNumberOfTracks() const
Definition: RhoCandList.cxx:72
TPad * p1
Definition: hist-t7.C:116
TLorentzVector fTot4Mom
Definition: RhoEventShape.h:32
TVector3 P3() const
Definition: RhoCandidate.h:199
RhoCandidate * Get(Int_t)
Definition: RhoCandList.cxx:94
RhoEventShape::~RhoEventShape ( )
virtual

Definition at line 55 of file RhoEventShape.cxx.

55 {}

Member Function Documentation

Double_t RhoEventShape::E ( )
inline

Definition at line 25 of file RhoEventShape.h.

References fTotE.

25 { return fTotE;}
Double_t fTotE
Definition: RhoEventShape.h:35
Double_t RhoEventShape::M ( )
inline

Definition at line 24 of file RhoEventShape.h.

References fTotM.

24 { return fTotM;}
Double_t fTotM
Definition: RhoEventShape.h:34
Double_t RhoEventShape::P ( )
inline

Definition at line 26 of file RhoEventShape.h.

References fTotP.

26 { return fTotP;}
Double_t fTotP
Definition: RhoEventShape.h:36
TLorentzVector RhoEventShape::P4 ( )
inline

Definition at line 22 of file RhoEventShape.h.

References fTot4Mom.

22 { return fTot4Mom;}
TLorentzVector fTot4Mom
Definition: RhoEventShape.h:32
Double_t RhoEventShape::Psum ( )
inline

Definition at line 28 of file RhoEventShape.h.

References fTotAbsMom.

28 { return fTotAbsMom;}
Double_t fTotAbsMom
Definition: RhoEventShape.h:38
Double_t RhoEventShape::Pt ( )
inline

Definition at line 27 of file RhoEventShape.h.

References fTotPt.

27 { return fTotPt;}
Double_t fTotPt
Definition: RhoEventShape.h:37

Member Data Documentation

TLorentzVector RhoEventShape::fTot4Mom
private

Definition at line 32 of file RhoEventShape.h.

Referenced by P4(), and RhoEventShape().

Double_t RhoEventShape::fTotAbsMom
private

Definition at line 38 of file RhoEventShape.h.

Referenced by Psum(), and RhoEventShape().

Double_t RhoEventShape::fTotE
private

Definition at line 35 of file RhoEventShape.h.

Referenced by E(), and RhoEventShape().

Double_t RhoEventShape::fTotM
private

Definition at line 34 of file RhoEventShape.h.

Referenced by M(), and RhoEventShape().

Double_t RhoEventShape::fTotP
private

Definition at line 36 of file RhoEventShape.h.

Referenced by P(), and RhoEventShape().

Double_t RhoEventShape::fTotPt
private

Definition at line 37 of file RhoEventShape.h.

Referenced by Pt(), and RhoEventShape().


The documentation for this class was generated from the following files: