Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244737
MPIMultiplicity.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
MPIMultiplicity.cc
View Options
// -*- C++ -*-
//
// This is the implementation of the non-inlined, non-templated member
// functions of the MPIMultiplicity class.
//
#include
"MPIMultiplicity.h"
#include
"ThePEG/Interface/ClassDocumentation.h"
#include
"ThePEG/Interface/Reference.h"
#include
"ThePEG/Persistency/PersistentOStream.h"
#include
"ThePEG/Persistency/PersistentIStream.h"
using
namespace
Herwig
;
using
namespace
ThePEG
;
MPIMultiplicity
::~
MPIMultiplicity
()
{}
void
MPIMultiplicity
::
analyze
(
tEventPtr
event
,
long
,
int
loop
,
int
state
)
{
if
(
loop
>
0
||
state
!=
0
||
!
event
)
return
;
if
(
!
theShowerHandler
->
IsMPIOn
())
return
;
theRealMult
+=
generator
()
->
eventHandler
()
->
currentCollision
()
->
subProcesses
().
size
()
-
1
;
theRequestedMult
+=
theMPIHandler
->
multiplicity
();
}
LorentzRotation
MPIMultiplicity
::
transform
(
tEventPtr
)
const
{
return
LorentzRotation
();
// Return the Rotation to the frame in which you want to perform the analysis.
}
void
MPIMultiplicity
::
analyze
(
const
tPVector
&
particles
)
{
AnalysisHandler
::
analyze
(
particles
);
// Calls analyze() for each particle.
}
void
MPIMultiplicity
::
analyze
(
tPPtr
)
{}
void
MPIMultiplicity
::
persistentOutput
(
PersistentOStream
&
os
)
const
{
os
<<
theShowerHandler
<<
theMPIHandler
;
}
void
MPIMultiplicity
::
persistentInput
(
PersistentIStream
&
is
,
int
)
{
is
>>
theShowerHandler
>>
theMPIHandler
;
}
ClassDescription
<
MPIMultiplicity
>
MPIMultiplicity
::
initMPIMultiplicity
;
// Definition of the static class description member.
void
MPIMultiplicity
::
Init
()
{
static
ClassDocumentation
<
MPIMultiplicity
>
documentation
(
"There is no documentation for the MPIMultiplicity class"
);
static
Reference
<
MPIMultiplicity
,
ShowerHandler
>
interfaceShowerHandler
(
"ShowerHandler"
,
"A reference to the ShowerHandler"
,
&
MPIMultiplicity
::
theShowerHandler
,
true
,
false
,
true
,
false
,
false
);
static
Reference
<
MPIMultiplicity
,
MPIHandler
>
interfaceMPIHandler
(
"MPIHandler"
,
"A reference to the MPIHandler"
,
&
MPIMultiplicity
::
theMPIHandler
,
true
,
false
,
true
,
false
,
false
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 4:45 AM (7 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6542642
Default Alt Text
MPIMultiplicity.cc (2 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment