00001
00002
00003
00004
00005 #ifndef ATLFAST_CELLMAKER_H
00006 #define ATLFAST_CELLMAKER_H
00007
00008 #include <string>
00009
00010
00011 #include "GaudiKernel/Algorithm.h"
00012
00013
00014 namespace HepMC_helper{
00015 class IMCselector;
00016 }
00017
00018
00019
00020
00021 #define DEFAULT_inputLocation "/Event/McEventCollection"
00022 #define DEFAULT_commonDataLocation "/Event/AtlfastCommonData"
00023 #define DEFAULT_outputLocation "/Event/AtlfastCells"
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #define DEFAULT_etaCoverage 5.0
00034 #define DEFAULT_minETCell 0.0
00035
00036 #define DEFAULT_granBarrelEta 0.1
00037 #define DEFAULT_granBarrelPhi 0.1
00038 #define DEFAULT_granForwardEta 0.2
00039 #define DEFAULT_granForwardPhi 0.2
00040
00041 class ISvcLocator;
00042
00043 namespace Atlfast {
00044 class Calorimeter;
00045 class MagField;
00046 class TesIO;
00047 class ICellSelector;
00055 class CellMaker : public Algorithm {
00056
00057 public:
00058
00060 CellMaker(const std::string& name, ISvcLocator* pSvcLocator);
00062 ~CellMaker();
00063
00065 StatusCode initialize();
00067 StatusCode execute();
00069
00070 StatusCode finalize();
00071
00072 private:
00074 Calorimeter* m_calorimeter;
00077 MagField* m_magField;
00080 ICellSelector* m_cellSelector;
00083 HepMC_helper::IMCselector* m_mcSelector;
00084
00085
00087 double m_etaCoverage;
00088
00090 double m_minETCell;
00092 double m_barrelForwardEta;
00094 bool m_fieldOn;
00095
00096
00100
00102 double m_granBarrelEta;
00104 double m_granBarrelPhi;
00106 double m_granForwardEta;
00108 double m_granForwardPhi;
00109
00110
00111
00112
00113
00114
00116 std::string m_inputLocation;
00118 std::string m_commonDataLocation;
00120 std::string m_outputLocation;
00121
00122 TesIO* m_tesIO;
00123 bool m_notInit;
00124 };
00125
00126 }
00127 #endif
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145