Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
phys_tree/Particle.h
Go to the documentation of this file.
1
//
2
// File: Particle.h
3
// Created: Thu Oct 29 09:49:51 EDT 2009
4
// Creator: davidl (on Darwin Amelia.local 9.8.0 i386)
5
//
6
7
#ifndef _Particle_
8
#define _Particle_
9
10
#include <TObject.h>
11
#include <TVector3.h>
12
#include <TLorentzVector.h>
13
14
class
Particle
:
public
TObject{
15
16
public
:
17
18
Particle
(){};
19
~Particle
(){};
20
21
// Data members
22
TLorentzVector
p
;
// paritcle 4-momentum
23
TVector3
x
;
// vertex position
24
Bool_t
is_fiducial
;
// True if particle is in fiducial region based on particle type
25
Double_t
chisq
;
26
Int_t
Ndof
;
27
Double_t
FOM_pid
;
28
29
// This is used to sort a TClonesArray of this type of object
30
Bool_t
IsSortable
(
void
)
const
{
return
kTRUE;}
31
Int_t
Compare
(
const
TObject *a)
const
{
32
Double32_t diff = ((
Particle
*)
this
)->p.E() - ((
Particle
*)a)->p.E();
33
Int_t idiff = diff>0.0 ? +1:(diff<0.0 ? -1:0);
34
return
idiff;
35
}
36
37
// Copy constructor
38
Particle
&
operator=
(
const
Particle
&prt){
39
this->
p
= prt.
p
;
40
this->
x
= prt.
x
;
41
this->
is_fiducial
= prt.
is_fiducial
;
42
this->
chisq
= prt.
chisq
;
43
this->
Ndof
= prt.
Ndof
;
44
this->
FOM_pid
= prt.
FOM_pid
;
45
return
*
this
;
46
}
47
48
private
:
49
ClassDef
(
Particle
,1);
50
51
};
52
53
#endif // _Particle_
Particle::~Particle
~Particle()
Definition:
phys_tree/Particle.h:19
Particle
Definition:
mc_tree/Particle.h:15
Particle::ClassDef
ClassDef(Particle, 1)
Particle::x
TVector3 x
Definition:
mc_tree/Particle.h:41
Particle::Ndof
Int_t Ndof
Definition:
phys_tree/Particle.h:26
Particle::IsSortable
Bool_t IsSortable(void) const
Definition:
phys_tree/Particle.h:30
Particle::operator=
Particle & operator=(const Particle &prt)
Definition:
phys_tree/Particle.h:38
Particle::FOM_pid
Double_t FOM_pid
Definition:
phys_tree/Particle.h:27
Particle::is_fiducial
Bool_t is_fiducial
Definition:
mc_tree/Particle.h:46
Particle::p
TLorentzVector p
Definition:
mc_tree/Particle.h:37
Particle::Compare
Int_t Compare(const TObject *a) const
Definition:
phys_tree/Particle.h:31
Particle::Particle
Particle()
Definition:
phys_tree/Particle.h:18
Particle::chisq
Double_t chisq
Definition:
phys_tree/Particle.h:25
plugins
Analysis
phys_tree
Particle.h
Generated on Fri Jul 26 2019 14:02:39 for Hall-D Software by
1.8.5