FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
analysis
rho
RhoSelector
RhoEnergyParticleSelector.cxx
Go to the documentation of this file.
1
// //
3
// Selector classes for energy selection //
4
// //
5
// Author List: //
6
// Marcel Kunze, RUB, Feb. 99 //
7
// Copyright (C) 1999-2001, Ruhr-University Bochum. //
8
// Ralf Kliemt, HIM/GSI Feb.2013 (Cleanup & Restructuring) //
9
// //
11
12
#include <math.h>
13
#include "TDatabasePDG.h"
14
15
#include "
RhoSelector/RhoEnergyParticleSelector.h
"
16
#include "
RhoBase/RhoCandidate.h
"
17
#include "
PndPidCandidate.h
"
18
19
20
21
22
ClassImp
(
RhoEnergyParticleSelector
)
23
24
TBuffer& operator>> ( TBuffer& buf,
RhoEnergyParticleSelector
*&obj )
25
{
26
obj = (
RhoEnergyParticleSelector
* ) buf.ReadObject ( RhoEnergyParticleSelector::Class() );
27
return
buf;
28
}
29
30
RhoEnergyParticleSelector::RhoEnergyParticleSelector
(
const
char
*
name
,
Double_t
cv,
Double_t
w,
const
char
* type ) :
31
RhoParticleSelectorBase
( name,type ), fCentralValue ( cv ), fWindow ( 0.5*w )
32
{}
33
34
Bool_t
RhoEnergyParticleSelector::Accept
(
RhoCandidate
*
b
)
35
{
36
if
( b == 0 ) {
return
kFALSE; }
37
SetTypeAndMass
( b );
38
return
(
fabs
( b->
E
()-
fCentralValue
) <
fWindow
);
39
}
40
41
Bool_t
RhoEnergyParticleSelector::Accept
(
PndPidCandidate
*
b
)
42
{
43
if
( b == 0 ) {
return
kFALSE; }
44
return
(
fabs
( b->
GetEnergy
()-
fCentralValue
) <
fWindow
);
45
}
46
RhoEnergyParticleSelector::RhoEnergyParticleSelector
RhoEnergyParticleSelector(const char *name="RhoEnergyParticleSelector", Double_t cv=0, Double_t w=DBL_MAX, const char *type=0)
Definition:
RhoEnergyParticleSelector.cxx:30
b
TTree * b
Definition:
GammaSpectraAnalysis.C:24
RhoEnergyParticleSelector::fWindow
Double_t fWindow
Definition:
RhoEnergyParticleSelector.h:40
PndPidCandidate::GetEnergy
Double_t GetEnergy() const
Definition:
PndPidCandidate.h:58
RhoEnergyParticleSelector.h
RhoCandidate.h
PndPidCandidate
Definition:
PndPidCandidate.h:30
RhoCandidate
Definition:
RhoCandidate.h:44
PndPidCandidate.h
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
RhoParticleSelectorBase
Definition:
RhoParticleSelectorBase.h:27
RhoEnergyParticleSelector
Definition:
RhoEnergyParticleSelector.h:26
RhoEnergyParticleSelector::Accept
virtual Bool_t Accept(RhoCandidate *b)
Definition:
RhoEnergyParticleSelector.cxx:34
fabs
friend F32vec4 fabs(const F32vec4 &a)
Definition:
P4_F32vec4.h:47
RhoParticleSelectorBase::SetTypeAndMass
void SetTypeAndMass(RhoCandidate *b)
Definition:
RhoParticleSelectorBase.cxx:143
name
TString name
Definition:
createRootGeoFile.C:82
RhoCandidate::E
Double_t E() const
Definition:
RhoCandidate.h:202
RhoEnergyParticleSelector::fCentralValue
Double_t fCentralValue
Definition:
RhoEnergyParticleSelector.h:40
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
Generated on Wed Apr 3 2019 08:44:05 for FairRoot/PandaRoot by
1.8.5