Atlfast::GlobalEventData Class Reference

Contains static member variables to be read by all the classes. More...

#include <GlobalEventData.h>

Collaboration diagram for Atlfast::GlobalEventData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int lumi ()
bool fieldOn ()
double barrelForwardEta ()
int randSeed ()
HepMC_helper::IMCselectorvisibleToCal ()
HepMC_helper::IMCselectorvisibleToAtlas ()
std::vector< int > invisibles ()
std::string mcLocation ()
bool adjustMissETForIsolation ()
std::vector< int > monopoleIDs ()
bool justHardScatter ()
void set_adjustMissEtForIsolation (bool adjustMissEtForIsolation)

Static Public Member Functions

static GlobalEventDataInstance ()

Private Member Functions

void setValues (int lumi, bool fieldOn, double barrelForwardEta, int randSeed, std::vector< int > invisibles, std::string mcLocation, std::vector< int > monopoleIDs, bool justHardScatter)
 GlobalEventData ()

Private Attributes

int m_lumi
bool m_fieldOn
double m_barrelForwardEta
int m_randSeed
HepMC_helper::IMCselectorm_visibleToCal
HepMC_helper::IMCselectorm_visibleToAtlas
std::vector< int > m_invisibles
std::string m_mcLocation
bool m_adjustMissEtForIsolation
std::vector< int > m_monopoleIDs
bool m_justHardScatter

Static Private Attributes

static GlobalEventDatam_instance

Friends

class GlobalEventDataMaker

Detailed Description

Contains static member variables to be read by all the classes.

This Class is designed to replace the nasty CommonData which has to be initialised on the first event 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 30 of file GlobalEventData.h.


Constructor & Destructor Documentation

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

A private constructor to stop class being instantiated

Definition at line 77 of file GlobalEventData.h.

00077 {};


Member Function Documentation

int Atlfast::GlobalEventData::lumi (  )  [inline]

Returns luminosity setting

Definition at line 35 of file GlobalEventData.h.

00035 {return m_lumi;}

bool Atlfast::GlobalEventData::fieldOn (  )  [inline]

Returns magnetic field flag

Definition at line 37 of file GlobalEventData.h.

00037 {return m_fieldOn;}

double Atlfast::GlobalEventData::barrelForwardEta (  )  [inline]

Returns eta boundary between barrel and forward regions

Definition at line 39 of file GlobalEventData.h.

00039 {return m_barrelForwardEta;}

int Atlfast::GlobalEventData::randSeed (  )  [inline]

Returns random seed

Definition at line 41 of file GlobalEventData.h.

00041 {return m_randSeed;}

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

Returns selector for particles visible to the calorimeter

Definition at line 43 of file GlobalEventData.h.

00043 {return m_visibleToCal;}

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

Returns selector for particles visible to ATLAS

Definition at line 45 of file GlobalEventData.h.

00045 {return m_visibleToAtlas;}

std::vector<int> Atlfast::GlobalEventData::invisibles (  )  [inline]

Returns invisibles list

Definition at line 47 of file GlobalEventData.h.

00047 {return m_invisibles;}

std::string Atlfast::GlobalEventData::mcLocation (  )  [inline]

Returns StoreGate MC location

Definition at line 49 of file GlobalEventData.h.

00049 {return m_mcLocation;}

bool Atlfast::GlobalEventData::adjustMissETForIsolation (  )  [inline]

Returns flag for making a missing ET adjustment

Definition at line 51 of file GlobalEventData.h.

std::vector<int> Atlfast::GlobalEventData::monopoleIDs (  )  [inline]

Returns list of monopole IDs

Definition at line 53 of file GlobalEventData.h.

00053 {return m_monopoleIDs;}

bool Atlfast::GlobalEventData::justHardScatter (  )  [inline]

Returns flag for considering just the hard scatter

Definition at line 55 of file GlobalEventData.h.

00055 {return m_justHardScatter;}

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

Singleton Instance method to return pointer

Definition at line 29 of file GlobalEventData.cxx.

00029                                              {
00030     if(m_instance == 0){
00031       m_instance = new GlobalEventData();
00032     }
00033     return m_instance;
00034   }

void Atlfast::GlobalEventData::set_adjustMissEtForIsolation ( bool  adjustMissEtForIsolation  )  [inline]

Sets flag for making a missing ET adjustment

Definition at line 62 of file GlobalEventData.h.

00063       {m_adjustMissEtForIsolation = adjustMissEtForIsolation;}

void Atlfast::GlobalEventData::setValues ( int  lumi,
bool  fieldOn,
double  barrelForwardEta,
int  randSeed,
std::vector< int >  invisibles,
std::string  mcLocation,
std::vector< int >  monopoleIDs,
bool  justHardScatter 
) [private]

Methods for setting CommonData values

Definition at line 36 of file GlobalEventData.cxx.

00043                                                        {
00044     m_lumi = lumi;
00045     m_fieldOn = fieldOn;
00046     m_barrelForwardEta = barrelForwardEta;
00047     m_randSeed = randSeed;
00048     m_invisibles = invisibles;
00049     m_mcLocation = mcLocation;
00050     m_adjustMissEtForIsolation = true;
00051     m_monopoleIDs = monopoleIDs;
00052     m_justHardScatter = justHardScatter;
00053 
00054     std::vector<int> temp = m_invisibles;
00055     HepMC_helper::IMCselector* selector;
00056     std::vector<HepMC_helper::IMCselector*> selectors;
00057     temp.push_back(ParticleCodes::MUON);
00058 
00059     selector = new HepMC_helper::IsFromHardScatter();
00060     selectors.push_back( selector ); 
00061     
00062     selector = new HepMC_helper::IsFinalState();
00063     selectors.push_back( selector ); 
00064     
00065     selector = new HepMC_helper::RejectType(temp);
00066     selectors.push_back( selector ); 
00067     
00068     
00069     try{
00070       selector = new HepMC_helper::BFieldCutter(m_fieldOn);
00071     }catch(std::string errMsg){
00072       std::cerr<<"GlobalEventData: error makign a BFieldCutter "
00073                <<errMsg
00074                <<std::endl;
00075     }catch(...){
00076       std::cerr<<"GlobalEventData: error makign a BFieldCutter "
00077                <<std::endl;
00078     }      
00079     selectors.push_back(selector);
00080     
00081 
00082     m_visibleToCal = new HepMC_helper::NCutter(selectors); 
00083     
00084     // make a selector of invisibles to Atlas
00085     // neutrinos, muons out of acceptance and user selected pdg ids.
00086     std::vector<HepMC_helper::IMCselector*>::iterator iter;
00087 
00088     for(iter=selectors.begin(); iter!=selectors.end(); delete *iter, ++iter);
00089     selectors.erase(selectors.begin(), selectors.end());
00090 
00091     selector = new HepMC_helper::IsFromHardScatter();
00092     selectors.push_back( selector ); 
00093     
00094     selector = new HepMC_helper::IsFinalState();
00095     selectors.push_back( selector ); 
00096     
00097     selector = new HepMC_helper::Unseen(m_invisibles);
00098     selectors.push_back( selector ); 
00099     
00100     m_visibleToAtlas = new HepMC_helper::NCutter(selectors); 
00101 
00102     for(iter=selectors.begin(); iter!=selectors.end(); delete *iter, ++iter);
00103   }


Friends And Related Function Documentation

friend class GlobalEventDataMaker [friend]

Definition at line 33 of file GlobalEventData.h.


Member Data Documentation

int Atlfast::GlobalEventData::m_lumi [private]

The events Luninosity

Definition at line 77 of file GlobalEventData.h.

bool Atlfast::GlobalEventData::m_fieldOn [private]

Definition at line 80 of file GlobalEventData.h.

double Atlfast::GlobalEventData::m_barrelForwardEta [private]

On/Off switch B-field

Definition at line 81 of file GlobalEventData.h.

int Atlfast::GlobalEventData::m_randSeed [private]

Geometry info

Definition at line 82 of file GlobalEventData.h.

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

randm seed for Smearer

Definition at line 83 of file GlobalEventData.h.

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

4-v Selector

Definition at line 84 of file GlobalEventData.h.

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

4-v Selector

Definition at line 85 of file GlobalEventData.h.

std::string Atlfast::GlobalEventData::m_mcLocation [private]

ids of invis partcles

Definition at line 86 of file GlobalEventData.h.

bool Atlfast::GlobalEventData::m_adjustMissEtForIsolation [private]

Storegate key for the mc data

Definition at line 87 of file GlobalEventData.h.

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

Adjust missing ET for isolation?

Definition at line 88 of file GlobalEventData.h.

bool Atlfast::GlobalEventData::m_justHardScatter [private]

PDG ID for magnetic monopoles

Definition at line 89 of file GlobalEventData.h.

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

pointer to self

Definition at line 92 of file GlobalEventData.h.


The documentation for this class was generated from the following files:
Generated on Mon Sep 24 14:19:39 2007 for AtlfastAlgs by  doxygen 1.5.1