Skip to content

Commit ddedc24

Browse files
make adept to be a plugin
1 parent a0dd640 commit ddedc24

File tree

8 files changed

+17
-7
lines changed

8 files changed

+17
-7
lines changed

SimG4Core/PhysicsLists/BuildFile.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<use name="clhep"/>
33
<use name="geant4core"/>
44
<use name="g4hepemcore"/>
5-
<use name="adept"/>
65
<use name="heppdt"/>
76
<use name="FWCore/MessageLogger"/>
87
<use name="SimG4Core/MagneticField"/>
@@ -11,4 +10,3 @@
1110
<export>
1211
<lib name="1"/>
1312
</export>
14-
<flags CXXFLAGS="-DASYNC_MODE=ON -DADEPT_USE_EXT_BFIELD=ON"/>

SimG4Core/PhysicsLists/plugins/BuildFile.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@
99
<use name="SimG4Core/PhysicsLists"/>
1010
<flags EDM_PLUGIN="1"/>
1111
</library>
12+
<iftool name="adept">
13+
<library file="adept/*.cc" name="SimG4CorePhysicsListsAdeptPlugins">
14+
<use name="SimG4Core/PhysicsLists"/>
15+
<use name="adept"/>
16+
<flags CXXFLAGS="-DASYNC_MODE=ON -DADEPT_USE_EXT_BFIELD=ON"/>
17+
<flags EDM_PLUGIN="1"/>
18+
</library>
19+
</iftool>

SimG4Core/PhysicsLists/src/CMSEmStandardPhysicsA.cc renamed to SimG4Core/PhysicsLists/plugins/adept/CMSEmStandardPhysicsA.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsA.h"
1+
#include "SimG4Core/PhysicsLists/plugins/adept/CMSEmStandardPhysicsA.h"
22
#include "SimG4Core/Physics/interface/CMSG4TrackInterface.h"
33
#include "SimG4Core/Notification/interface/CurrentG4Track.h"
44
#include "FWCore/MessageLogger/interface/MessageLogger.h"

SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsA.h renamed to SimG4Core/PhysicsLists/plugins/adept/CMSEmStandardPhysicsA.h

File renamed without changes.

SimG4Core/PhysicsLists/plugins/FTFPCMS_BERT_EMA.cc renamed to SimG4Core/PhysicsLists/plugins/adept/FTFPCMS_BERT_EMA.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "FTFPCMS_BERT_EMA.h"
2-
#include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsA.h"
2+
#include "SimG4Core/PhysicsLists/plugins/adept/CMSEmStandardPhysicsA.h"
33
#include "SimG4Core/PhysicsLists/interface/CMSHadronPhysicsFTFP_BERT.h"
44
#include "FWCore/MessageLogger/interface/MessageLogger.h"
55

File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "SimG4Core/Physics/interface/PhysicsListFactory.h"
2+
3+
4+
#include "FTFPCMS_BERT_EMA.h"
5+
6+
typedef FTFPCMS_BERT_EMA FTFP_BERT_EMA;
7+
DEFINE_PHYSICSLIST(FTFP_BERT_EMA);

SimG4Core/PhysicsLists/plugins/module.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "FTFPCMS_BERT.h"
66
#include "FTFPCMS_BERT_EML.h"
77
#include "FTFPCMS_BERT_EMM.h"
8-
#include "FTFPCMS_BERT_EMA.h"
98
#include "FTFPCMS_BERT_EMN.h"
109
#include "FTFPCMS_BERT_EMM_TRK.h"
1110
#include "FTFPCMS_BERT_HP_EMM.h"
@@ -33,8 +32,6 @@ DEFINE_PHYSICSLIST(FTFP_BERT);
3332
// EMH is aliased to EMM for the moment and forces the usage of G4HepEm.
3433
typedef FTFPCMS_BERT_EMM FTFP_BERT_EMH;
3534
DEFINE_PHYSICSLIST(FTFP_BERT_EMH);
36-
typedef FTFPCMS_BERT_EMA FTFP_BERT_EMA;
37-
DEFINE_PHYSICSLIST(FTFP_BERT_EMA);
3835
typedef FTFPCMS_BERT_EML FTFP_BERT_EML;
3936
DEFINE_PHYSICSLIST(FTFP_BERT_EML);
4037
typedef FTFPCMS_BERT_EMM FTFP_BERT_EMM;

0 commit comments

Comments
 (0)