CDF II
CDF KITS
source navigation ]
diff markup ]
identifier search ]
freetext search ]
file search ]
 
Architecture: i386 ]
Version: 4.10.4 ] [ 4.10.5 ] [ 4.8.4 ] [ 4.8.4l3s ] [ 4.8.5 ] [ 4.9.0 ] [ 4.9.1 ] [ 4.9.1.hpt3 ] [ 4.9.1hpt3 ] [ 4.9.1top1 ] [ 5.0.0 ] [ 5.1.0 ] [ 5.1.0beamonly ] [ 5.1.1 ] [ 5.2.0 ] [ 5.3.0 ] [ 5.3.1 ] [ 5.3.1dsp ] [ 5.3.3 ] [ 5.3.3_nt ] [ 5.3.4 ] [ 6.1.1 ] [ 6.1.1b ] [ 6.1.2 ] [ 6.1.3 ] [ 6.1.4 ] [ 6.1.4int3 ] [ 6.1.4mc ] [ 6.1.4mc_a ] [ 6.1.6 ] [ development ]

001 //--------------------------------------------------------------------------
002 // File and Version Information:
003 //      $Id: cdfGen.cc,v 1.13 2005/01/06 18:02:43 syjun Exp $
004 //
005 // created July 30 2001, Elena Gerchtein (CMU)
006 //
007 //------------------------------------------------------------------------
008 
009 //-----------------------
010 // This Class's Header --
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 // Constructors --
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   // this should be before filters
054   aMod = new HepRootManager(); add(aMod); aMod->setEnabled(false);
055 
056   //gen input manager - input module
057   add( new GenInputManager() );
058 
059   //random number generators manager
060   aMod = new RandomModule("RandomGenManager", "Random number generators manager");
061   add(aMod); aMod->setEnabled(true);
062 
063   //Had. Scat. generators
064    aSeq = new HardScatGenSequence();
065   add( aSeq );
066 
067   // Decay Packages
068   aSeq = new DecayPackageSequence();
069   add( aSeq );
070 
071   // generator output manager:
072   // writes HEPG bank from HEPEVT commonblock;
073   // checks that only one generator (I) is enabled.
074   
075   aMod = new GenOutputManager();
076   add( aMod );
077   aMod->setEnabled(true);
078 
079   // currently writes HEPG by its own since MI does not work
080   // placed AFTER GenOutputManager for the same reason
081   aSeq = new MinBiasSequence();
082   add( aSeq );
083 
084   // Primary vertex generation
085   aMod = new GenPrimVertModule(); 
086   add( aMod );
087   aMod->setEnabled(true);
088 
089   aSeq = new GenTrigSequence();
090   add( aSeq );  
091 }
092 
093 //--------------
094 // Destructor --
095 //--------------
096 
097 AppUserBuild::~AppUserBuild( )
098 {
099 }
100 const char * AppUserBuild::rcsId( ) const
101 {
102    return rcsid;
103 }

source navigation ] diff markup ] identifier search ] freetext search ] file search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!

Send problems or questions to cdfcode@fnal.gov