Particle ID and event selection
Classes | Public Member Functions | Public Attributes | Protected Attributes | List of all members
Candidate Class Reference
Inheritance diagram for Candidate:
ProtonCandidate ElectronCandidate KaonCandidate PhotonCandidate PionCandidate ProtonCandidate

Classes

enum  Level
 This is the enum for some cut levels. More...
 
enum  MagField
 This is the enum for magnetic field configuation. More...
 

Public Member Functions

 Candidate (int ipart)
 
void setINBENDING ()
 
void setOUTBENDING ()
 
void setPxyz (Number px, Number py, Number pz)
 
void setVZ (Number vz)
 
void setBETA (Number beta)
 
void setCHI2PID (Number chi2pid)
 
void setDVZ (Number dvz)
 
void setPID (Number pid)
 
void setStatus (Number status)
 
void setNPHE (Number nphe)
 
void setPCALsector (Number sector)
 
void setPCALenergy (Number energy)
 
void setECINenergy (Number energy)
 
void setECOUTenergy (Number energy)
 
void setPCALvw (Number lv, Number lw)
 
void setPCALxyz (Number x, Number y, Number z)
 
Integer getPCALsector ()
 
Integer getDCsector ()
 
Float getDC1x ()
 
Float getDC1y ()
 
Float getDC1z ()
 
void setDCxyz (int region, Number x, Number y, Number z)
 

Public Attributes

final int ipart
 

Protected Attributes

MagField field = MagField.INBENDING
 magnetic field, INBENDING by default
 
Float nphe = null
 number of photoelectrons
 
Integer pcal_sector = null
 pcal sector
 
Float pcal_energy = null
 energy deposited in PCAL
 
Float ecin_energy = 0f
 energy deposited in ECin
 
Float ecout_energy = 0f
 energy deposited in ECout
 
Float pcal_lv = null
 distance on V-side
 
Float pcal_lw = null
 distance on W-side
 
Float pcal_x = null
 X from PCAL.
 
Float pcal_y = null
 Y from PCAL.
 
Float pcal_z = null
 Z from PCAL.
 
Float p = null
 momentum
 
Float px = null
 px momentum
 
Float py = null
 px momentum
 
Float pz = null
 px momentum
 
Float vz = null
 z vertex
 
Float beta = null
 beta value
 
Float chi2pid = null
 chi2pid value
 
Float dvz = null
 the difference between trigger particle vz and candidate vz
 
Float traj_x1 = null
 x-position of the track at the detector surface (cm) at region 1
 
Float traj_y1 = null
 y-position of the track at the detector surface (cm) at region 1
 
Float traj_z1 = null
 z-position of the track at the detector surface (cm) at region 1
 
Float traj_x2 = null
 x-position of the track at the detector surface (cm) at region 2
 
Float traj_y2 = null
 y-position of the track at the detector surface (cm) at region 2
 
Float traj_z2 = null
 z-position of the track at the detector surface (cm) at region 2
 
Float traj_x3 = null
 x-position of the track at the detector surface (cm) at region 3
 
Float traj_y3 = null
 y-position of the track at the detector surface (cm) at region 3
 
Float traj_z3 = null
 z-position of the track at the detector surface (cm) at region 3
 
Integer pid = null
 particle PID
 
Integer dc_sector = null
 dc sector
 
Short status = null
 particle status
 

Class Documentation

◆ uconn::utils::pid::Candidate::Level

enum uconn::utils::pid::Candidate::Level

This is the enum for some cut levels.

Enumerator
LOOSE loose
LOOSEST loosest
MEDIUM medium
TIGHT tight

◆ uconn::utils::pid::Candidate::MagField

enum uconn::utils::pid::Candidate::MagField

This is the enum for magnetic field configuation.

Enumerator
INBENDING inbending
OUTBENDING outbending

Constructor & Destructor Documentation

◆ Candidate()

Candidate ( int  ipart)
inline

A cosntructor

Parameters
ipartparticle index
29 {
30 this.ipart = ipart;
31 }

Member Function Documentation

◆ getDC1x()

Float getDC1x ( )
inline
Returns
DC1 x
228 {
229 return traj_x1;
230 }
Float traj_x1
x-position of the track at the detector surface (cm) at region 1
Definition: Candidate.java:55

◆ getDC1y()

Float getDC1y ( )
inline
Returns
DC1 y
236 {
237 return traj_y1;
238 }
Float traj_y1
y-position of the track at the detector surface (cm) at region 1
Definition: Candidate.java:56

◆ getDC1z()

Float getDC1z ( )
inline
Returns
DC1 z
244 {
245 return traj_z1;
246 }
Float traj_z1
z-position of the track at the detector surface (cm) at region 1
Definition: Candidate.java:57

◆ getDCsector()

Integer getDCsector ( )
inline
Returns
dc sector
220 {
221 return dc_sector;
222 }
Integer dc_sector
dc sector
Definition: Candidate.java:65

◆ getPCALsector()

Integer getPCALsector ( )
inline
Returns
pcal sector
212 {
213 return pcal_sector;
214 }
Integer pcal_sector
pcal sector
Definition: Candidate.java:38

◆ setBETA()

void setBETA ( Number  beta)
inline
Parameters
betaset beta value for particle
110 {
111 this.beta = beta==null ? null : beta.floatValue();
112 }
Float beta
beta value
Definition: Candidate.java:52

◆ setCHI2PID()

void setCHI2PID ( Number  chi2pid)
inline
Parameters
chi2pidset chi2pid value
118 {
119 this.chi2pid = chi2pid==null ? null : chi2pid.floatValue();
120 }
Float chi2pid
chi2pid value
Definition: Candidate.java:53

◆ setDCxyz()

void setDCxyz ( int  region,
Number  x,
Number  y,
Number  z 
)
inline
Parameters
regionspecify DC region
xx-coordinate in DC region
yy-coordinate in DC region
zz-coordinate in DC region
275 {
276 if(region==1) {
277 this.traj_x1 = x==null ? null : x.floatValue();
278 this.traj_y1 = y==null ? null : y.floatValue();
279 this.traj_z1 = z==null ? null : z.floatValue();
280 } else if(region==2) {
281 this.traj_x2 = x==null ? null : x.floatValue();
282 this.traj_y2 = y==null ? null : y.floatValue();
283 this.traj_z2 = z==null ? null : z.floatValue();
284 if(traj_x2!=null && traj_y2!=null && traj_z2!=null) this.dc_sector = getDCsector(traj_x2, traj_y2, traj_z2);
285 } else if(region==3) {
286 this.traj_x3 = x==null ? null : x.floatValue();
287 this.traj_y3 = y==null ? null : y.floatValue();
288 this.traj_z3 = z==null ? null : z.floatValue();
289 }
290 }
Float traj_x3
x-position of the track at the detector surface (cm) at region 3
Definition: Candidate.java:61
Integer getDCsector()
Definition: Candidate.java:220
Float traj_x2
x-position of the track at the detector surface (cm) at region 2
Definition: Candidate.java:58
Float traj_y2
y-position of the track at the detector surface (cm) at region 2
Definition: Candidate.java:59
Float traj_z2
z-position of the track at the detector surface (cm) at region 2
Definition: Candidate.java:60
Float traj_z3
z-position of the track at the detector surface (cm) at region 3
Definition: Candidate.java:63
Float traj_y3
y-position of the track at the detector surface (cm) at region 3
Definition: Candidate.java:62

◆ setDVZ()

void setDVZ ( Number  dvz)
inline
Parameters
dvzset the difference between vertex z position of candidate and trigger particle
126 {
127 this.dvz = dvz==null ? null : dvz.floatValue();
128 }
Float dvz
the difference between trigger particle vz and candidate vz
Definition: Candidate.java:54

◆ setECINenergy()

void setECINenergy ( Number  energy)
inline
Parameters
energyset ECIN energy
174 {
175 this.ecin_energy = energy==null ? null : energy.floatValue();
176 }
Float ecin_energy
energy deposited in ECin
Definition: Candidate.java:40

◆ setECOUTenergy()

void setECOUTenergy ( Number  energy)
inline
Parameters
energyset ECOUT energy
182 {
183 this.ecout_energy = energy==null ? null : energy.floatValue();
184 }
Float ecout_energy
energy deposited in ECout
Definition: Candidate.java:41

◆ setINBENDING()

void setINBENDING ( )
inline

set inbending magnetic field

72 {
73 this.field = MagField.INBENDING;
74 }
MagField field
magnetic field, INBENDING by default
Definition: Candidate.java:36
INBENDING
inbending
Definition: Candidate.java:12

◆ setNPHE()

void setNPHE ( Number  nphe)
inline
Parameters
npheset number of photoelectrons
150 {
151 this.nphe = nphe==null ? null : nphe.floatValue();
152 }
Float nphe
number of photoelectrons
Definition: Candidate.java:37

◆ setOUTBENDING()

void setOUTBENDING ( )
inline

set outbending magnetic field

80 {
81 this.field = MagField.OUTBENDING;
82 }
OUTBENDING
outbending
Definition: Candidate.java:13

◆ setPCALenergy()

void setPCALenergy ( Number  energy)
inline
Parameters
energyset PCAL energy
166 {
167 this.pcal_energy = energy==null ? null : energy.floatValue();
168 }
Float pcal_energy
energy deposited in PCAL
Definition: Candidate.java:39

◆ setPCALsector()

void setPCALsector ( Number  sector)
inline
Parameters
sectorset PCAL sector
158 {
159 this.pcal_sector = sector==null ? null : sector.intValue();
160 }

◆ setPCALvw()

void setPCALvw ( Number  lv,
Number  lw 
)
inline
Parameters
lvset PCAL lv
lwset PCAL lw
191 {
192 this.pcal_lv = lv==null ? null : lv.floatValue();
193 this.pcal_lw = lw==null ? null : lw.floatValue();
194 }
Float pcal_lw
distance on W-side
Definition: Candidate.java:43
Float pcal_lv
distance on V-side
Definition: Candidate.java:42

◆ setPCALxyz()

void setPCALxyz ( Number  x,
Number  y,
Number  z 
)
inline
Parameters
xset PCAL x
yset PCAL y
zset PCAL z
202 {
203 this.pcal_x = x==null ? null : x.floatValue();
204 this.pcal_y = y==null ? null : y.floatValue();
205 this.pcal_z = z==null ? null : z.floatValue();
206 }
Float pcal_z
Z from PCAL.
Definition: Candidate.java:46
Float pcal_y
Y from PCAL.
Definition: Candidate.java:45
Float pcal_x
X from PCAL.
Definition: Candidate.java:44

◆ setPID()

void setPID ( Number  pid)
inline
Parameters
pidset particle PID
134 {
135 this.pid = pid==null ? null : pid.intValue();
136 }
Integer pid
particle PID
Definition: Candidate.java:64

◆ setPxyz()

void setPxyz ( Number  px,
Number  py,
Number  pz 
)
inline
Parameters
pxset px momentum
pyset py momentum
pzset pz momentum
90 {
91 this.px = px==null ? null : px.floatValue();
92 this.py = py==null ? null : py.floatValue();
93 this.pz = pz==null ? null : pz.floatValue();
94 if(this.px!=null && this.py!=null && this.pz!=null)
95 this.p = (float) Math.sqrt(this.px*this.px + this.py*this.py + this.pz*this.pz);
96 }
Float py
px momentum
Definition: Candidate.java:49
Float px
px momentum
Definition: Candidate.java:48
Float p
momentum
Definition: Candidate.java:47
Float pz
px momentum
Definition: Candidate.java:50

◆ setStatus()

void setStatus ( Number  status)
inline
Parameters
statusset particle status
142 {
143 this.status = status==null ? null : status.shortValue();
144 }
Short status
particle status
Definition: Candidate.java:66

◆ setVZ()

void setVZ ( Number  vz)
inline
Parameters
vzset vertex z position
102 {
103 this.vz = vz==null ? null : vz.floatValue();
104 }
Float vz
z vertex
Definition: Candidate.java:51

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