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