001
002
003
004
005
006
007
008
009
010
011
012 #include "Framework/APPUserBuild.hh"
013
014 #include "FrameMods/root/HepRootManager.hh"
015 #include "SimulationBase/FactoryMacros.hh"
016
017 #include "FrameMods/ManagerSequence.hh"
018 #include "FrameMods/APPFileInputModule.hh"
019 #include "FrameMods/DH/DHInputModule_2.hh"
020 #include "FrameMods/AppFileOutputModule.hh"
021 #include "SimulationObjects/addSimulationObjects.hh"
022
023 #include "generatorMods/HadScatGenSequence.hh"
024 #include "generatorMods/DecayPackageSequence.hh"
025 #include "generatorMods/MinBiasSequence.hh"
026 #include "generatorMods/GenOutputManager.hh"
027 #include "generatorMods/GenInputManager.hh"
028 #include "generatorMods/GenPrimVertModule.hh"
029
030 #include "GenTrig/GenTrigSequence.hh"
031
032 #include "r_n/RandomModule.hh"
033
034 static const char rcsid[] = "$Id: cdfGen.cc,v 1.13 2005/01/06 18:02:43 syjun Exp $";
035
036
037
038
039
040 AppUserBuild::AppUserBuild( AppFramework* theFramework )
041 : AppBuild( theFramework )
042 {
043 AppModule* aMod;
044 APPSequence* aSeq;
045
046 add( new ManagerSequence );
047 add( new APPFileInputModule );
048 add( new DHInputModule_2( "DHInput" ) );
049 add( new AppFileOutputModule( ) );
050
051 addSimulationObjects( );
052
053
054 aMod = new HepRootManager(); add(aMod); aMod->setEnabled(false);
055
056
057 add( new GenInputManager() );
058
059
060 aMod = new RandomModule("RandomGenManager", "Random number generators manager");
061 add(aMod); aMod->setEnabled(true);
062
063
064 aSeq = new HardScatGenSequence();
065 add( aSeq );
066
067
068 aSeq = new DecayPackageSequence();
069 add( aSeq );
070
071
072
073
074
075 aMod = new GenOutputManager();
076 add( aMod );
077 aMod->setEnabled(true);
078
079
080
081 aSeq = new MinBiasSequence();
082 add( aSeq );
083
084
085 aMod = new GenPrimVertModule();
086 add( aMod );
087 aMod->setEnabled(true);
088
089 aSeq = new GenTrigSequence();
090 add( aSeq );
091 }
092
093
094
095
096
097 AppUserBuild::~AppUserBuild( )
098 {
099 }
100 const char * AppUserBuild::rcsId( ) const
101 {
102 return rcsid;
103 }
Send problems or questions to cdfcode@fnal.gov