00001
00002
00003
00004
00005 #ifndef _Atlfast_CellMaker_H
00006 #define _Atlfast_CellMaker_H
00007
00008
00009
00010 #include "CLHEP/Vector/LorentzVector.h"
00011 #include "CLHEP/Vector/ThreeVector.h"
00012 #include <vector>
00013 #include <string>
00014
00015
00016 #include "GaudiKernel/ISvcLocator.h"
00017 #include "GaudiKernel/Algorithm.h"
00018 #include "GaudiKernel/MsgStream.h"
00019 #include "GaudiKernel/DataObject.h"
00020
00021 #include "HepMC/GenEvent.h"
00022 #include "HepMC/GenParticle.h"
00023
00024
00025 #include "AtlfastCode/Cell.h"
00026 #include "AtlfastCode/Calorimeter.h"
00027 #include "AtlfastCode/MagField.h"
00028 #include "AtlfastCode/HepMC_helper.h"
00029 #include "AtlfastCode/TesIO.h"
00030 #include "AtlfastCode/CommonData.h"
00031
00032
00033
00034 #define DEFAULT_inputLocation "/Event/McEventCollection"
00035 #define DEFAULT_commonDataLocation "/Event/AtlfastCommonData"
00036 #define DEFAULT_outputLocation "/Event/AtlfastCells"
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #define DEFAULT_etaCoverage 5.0
00047 #define DEFAULT_minETCell 0.0
00048
00049 #define DEFAULT_granBarrelEta 0.1
00050 #define DEFAULT_granBarrelPhi 0.1
00051 #define DEFAULT_granForwardEta 0.2
00052 #define DEFAULT_granForwardPhi 0.2
00053
00054
00055 namespace Atlfast {
00056
00064 class CellMaker : public Algorithm {
00065
00066 public:
00067
00069 CellMaker(const std::string& name, ISvcLocator* pSvcLocator);
00071 ~CellMaker();
00072
00074 StatusCode initialize();
00076 StatusCode execute();
00078
00079 StatusCode finalize();
00080
00081 private:
00083 Calorimeter* m_calorimeter;
00086 MagField* m_magField;
00089 ICellSelector* m_cellSelector;
00092 HepMC_helper::IMCselector* m_mcSelector;
00093
00094
00096 double m_etaCoverage;
00097
00099 double m_minETCell;
00101 double m_barrelForwardEta;
00103 bool m_fieldOn;
00104
00105
00109
00111 double m_granBarrelEta;
00113 double m_granBarrelPhi;
00115 double m_granForwardEta;
00117 double m_granForwardPhi;
00118
00119
00120
00121
00122
00123
00125 std::string m_inputLocation;
00127 std::string m_commonDataLocation;
00129 std::string m_outputLocation;
00130
00131 TesIO* m_tesIO;
00132 bool m_notInit;
00133 };
00134
00135 }
00136 #endif
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154