Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Atlfast::GlobalEventData Class Reference

This Class is designed to replace the nasty CommonData which has to be initialised on the first event This will contain static member variables that can be read by all the classes. More...

#include <GlobalEventData.h>

Collaboration diagram for Atlfast::GlobalEventData:

Collaboration graph
[legend]
List of all members.

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


Detailed Description

This Class is designed to replace the nasty CommonData which has to be initialised on the first event This will contain static member variables that can be read by all the classes.

These variables will be set by a GlobalEventDataMaker algorithm in its initialise method. It is based on the Design Patterns Singleton

Author:
Jon Couchman

Definition at line 32 of file GlobalEventData.h.


Constructor & Destructor Documentation

Atlfast::GlobalEventData::GlobalEventData   [inline, private]
 

A private constructor to stop class being instantiated.

Definition at line 49 of file GlobalEventData.h.

Referenced by Instance().

00049 {};

Member Function Documentation

int Atlfast::GlobalEventData::lumi   [inline]
 

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;}

bool Atlfast::GlobalEventData::fieldOn   [inline]
 

Definition at line 38 of file GlobalEventData.h.

References m_fieldOn.

Referenced by Atlfast::CellMaker::initialize().

00038 {return m_fieldOn;}

double Atlfast::GlobalEventData::barrelForwardEta   [inline]
 

Definition at line 39 of file GlobalEventData.h.

References m_barrelForwardEta.

Referenced by Atlfast::JetMaker::initialize(), and Atlfast::AtlfastProtoJetMaker::initialize().

00039 {return m_barrelForwardEta;}

int Atlfast::GlobalEventData::randSeed   [inline]
 

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;}

HepMC_helper::IMCselector* Atlfast::GlobalEventData::visibleToCal   [inline]
 

Definition at line 41 of file GlobalEventData.h.

References m_visibleToCal.

00041 {return m_visibleToCal;}

HepMC_helper::IMCselector* Atlfast::GlobalEventData::visibleToAtlas   [inline]
 

Definition at line 42 of file GlobalEventData.h.

References m_visibleToAtlas.

00042 {return m_visibleToAtlas;}

GlobalEventData * Atlfast::GlobalEventData::Instance   [static]
 

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   }

void Atlfast::GlobalEventData::setValues int   ,
bool   ,
double   ,
int   ,
std::vector< int >   
[private]
 

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   }

Member Data Documentation

friend Atlfast::GlobalEventData::GlobalEventDataMaker
 

Definition at line 35 of file GlobalEventData.h.

int Atlfast::GlobalEventData::m_lumi [private]
 

The events Luninosity.

Definition at line 51 of file GlobalEventData.h.

Referenced by lumi(), and setValues().

bool Atlfast::GlobalEventData::m_fieldOn [private]
 

Definition at line 52 of file GlobalEventData.h.

Referenced by fieldOn(), and setValues().

double Atlfast::GlobalEventData::m_barrelForwardEta [private]
 

On/Off switch B-field.

Definition at line 53 of file GlobalEventData.h.

Referenced by barrelForwardEta(), and setValues().

int Atlfast::GlobalEventData::m_randSeed [private]
 

Geometry info.

Definition at line 54 of file GlobalEventData.h.

Referenced by randSeed(), and setValues().

HepMC_helper::IMCselector* Atlfast::GlobalEventData::m_visibleToCal [private]
 

randm seed for Smearer

Definition at line 55 of file GlobalEventData.h.

Referenced by setValues(), and visibleToCal().

HepMC_helper::IMCselector* Atlfast::GlobalEventData::m_visibleToAtlas [private]
 

4-v Selector

Definition at line 56 of file GlobalEventData.h.

Referenced by setValues(), and visibleToAtlas().

std::vector<int> Atlfast::GlobalEventData::m_invisibles [private]
 

4-v Selector

Definition at line 57 of file GlobalEventData.h.

Referenced by setValues().

GlobalEventData * Atlfast::GlobalEventData::m_instance = 0 [static, private]
 

pointer to self

Definition at line 26 of file GlobalEventData.cxx.

Referenced by Instance().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:18:55 2003 for AtlfastAlgs by doxygen1.3-rc1