#include <GlobalEventData.h>
Collaboration diagram for Atlfast::GlobalEventData:
Public Methods | |
int | lumi () |
Methods for returning CommanData values. | |
bool | fieldOn () |
double | barrelForwardEta () |
int | randSeed () |
HepMC_helper::IMCselector * | visibleToCal () |
HepMC_helper::IMCselector * | visibleToAtlas () |
Static Public Methods | |
GlobalEventData * | Instance () |
Singleton Instance method to return pointer. | |
Public Attributes | |
friend | GlobalEventDataMaker |
Private Methods | |
void | setValues (int, bool, double, int, std::vector< int >) |
Methods for setting CommanData values. | |
GlobalEventData () | |
A private constructor to stop class being instantiated. | |
Private Attributes | |
int | m_lumi |
The events Luninosity. | |
bool | m_fieldOn |
double | m_barrelForwardEta |
On/Off switch B-field. | |
int | m_randSeed |
Geometry info. | |
HepMC_helper::IMCselector * | m_visibleToCal |
randm seed for Smearer | |
HepMC_helper::IMCselector * | m_visibleToAtlas |
4-v Selector | |
std::vector< int > | m_invisibles |
4-v Selector | |
Static Private Attributes | |
GlobalEventData * | m_instance = 0 |
pointer to self |
These variables will be set by a GlobalEventDataMaker algorithm in its initialise method. It is based on the Design Patterns Singleton
Definition at line 32 of file GlobalEventData.h.
|
A private constructor to stop class being instantiated.
Definition at line 49 of file GlobalEventData.h. Referenced by Instance().
00049 {}; |
|
Methods for returning CommanData values.
Definition at line 37 of file GlobalEventData.h. References m_lumi. Referenced by Atlfast::TrackMaker::initialize(), Atlfast::JetMaker::initialize(), Atlfast::DefaultReconstructedParticleMaker::initialize(), Atlfast::CellMaker::initialize(), and Atlfast::AtlfastProtoJetMaker::initialize().
00037 {return m_lumi;} |
|
Definition at line 38 of file GlobalEventData.h. References m_fieldOn. Referenced by Atlfast::CellMaker::initialize().
00038 {return m_fieldOn;} |
|
Definition at line 39 of file GlobalEventData.h. References m_barrelForwardEta. Referenced by Atlfast::JetMaker::initialize(), and Atlfast::AtlfastProtoJetMaker::initialize().
00039 {return m_barrelForwardEta;} |
|
Definition at line 40 of file GlobalEventData.h. References m_randSeed. Referenced by Atlfast::TrackMaker::initialize(), Atlfast::JetMaker::initialize(), Atlfast::DefaultReconstructedParticleMaker::initialize(), Atlfast::CellMaker::initialize(), Atlfast::AtlfastProtoJetMaker::initialize(), and Atlfast::AtlfastB::initialize().
00040 {return m_randSeed;} |
|
Definition at line 41 of file GlobalEventData.h. References m_visibleToCal.
00041 {return m_visibleToCal;} |
|
Definition at line 42 of file GlobalEventData.h. References m_visibleToAtlas.
00042 {return m_visibleToAtlas;} |
|
Singleton Instance method to return pointer.
Definition at line 28 of file GlobalEventData.cxx. References GlobalEventData(), and m_instance.
00028 { 00029 if(m_instance == 0){ 00030 m_instance = new GlobalEventData(); 00031 } 00032 return m_instance; 00033 } |
|
Methods for setting CommanData values.
Definition at line 35 of file GlobalEventData.cxx. References m_barrelForwardEta, m_fieldOn, m_invisibles, m_lumi, m_randSeed, m_visibleToAtlas, and m_visibleToCal. Referenced by Atlfast::GlobalEventDataMaker::initialize().
00035 { 00036 m_lumi = l; 00037 m_fieldOn = fo; 00038 m_barrelForwardEta = bfe; 00039 m_randSeed = rs; 00040 m_invisibles = inv; 00041 00042 00043 std::vector<int> temp = m_invisibles; 00044 HepMC_helper::IMCselector* selector; 00045 std::vector<HepMC_helper::IMCselector*> selectors; 00046 temp.push_back(ParticleCodes::MUON); 00047 00048 00049 00050 selector = new HepMC_helper::IsFinalState(); 00051 selectors.push_back( selector ); 00052 00053 00054 selector = new HepMC_helper::RejectType(temp); 00055 selectors.push_back( selector ); 00056 00057 00058 selector = new HepMC_helper::BFieldCutter(m_fieldOn); 00059 selectors.push_back(selector); 00060 00061 00062 00063 m_visibleToCal = new HepMC_helper::NCutter(selectors); 00064 00065 // make a selector of invisibles to Atlas 00066 // neutrinos, muons out of acceptance and user selected pdg ids. 00067 std::vector<HepMC_helper::IMCselector*>::iterator iter; 00068 00069 for(iter=selectors.begin(); iter!=selectors.end(); delete *iter, ++iter); 00070 selectors.erase(selectors.begin(), selectors.end()); 00071 00072 00073 selector = new HepMC_helper::IsFinalState(); 00074 selectors.push_back( selector ); 00075 00076 selector = new HepMC_helper::Unseen(m_invisibles); 00077 selectors.push_back( selector ); 00078 00079 m_visibleToAtlas = new HepMC_helper::NCutter(selectors); 00080 00081 for(iter=selectors.begin(); iter!=selectors.end(); delete *iter, ++iter); 00082 } |
|
Definition at line 35 of file GlobalEventData.h. |
|
The events Luninosity.
Definition at line 51 of file GlobalEventData.h. Referenced by lumi(), and setValues(). |
|
Definition at line 52 of file GlobalEventData.h. Referenced by fieldOn(), and setValues(). |
|
On/Off switch B-field.
Definition at line 53 of file GlobalEventData.h. Referenced by barrelForwardEta(), and setValues(). |
|
Geometry info.
Definition at line 54 of file GlobalEventData.h. Referenced by randSeed(), and setValues(). |
|
randm seed for Smearer
Definition at line 55 of file GlobalEventData.h. Referenced by setValues(), and visibleToCal(). |
|
4-v Selector
Definition at line 56 of file GlobalEventData.h. Referenced by setValues(), and visibleToAtlas(). |
|
4-v Selector
Definition at line 57 of file GlobalEventData.h. Referenced by setValues(). |
|
pointer to self
Definition at line 26 of file GlobalEventData.cxx. Referenced by Instance(). |