00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ATLFAST_ISOLATOR_H
00025 #define ATLFAST_ISOLATOR_H
00026
00027
00028 #include <string>
00029 #include <vector>
00030
00031
00032 #include "GaudiKernel/ISvcLocator.h"
00033 #include "GaudiKernel/IAlgorithm.h"
00034 #include "GaudiKernel/Algorithm.h"
00035 #include "GaudiKernel/MsgStream.h"
00036 #include "GaudiKernel/DataObject.h"
00037 #include "GaudiKernel/ObjectVector.h"
00038
00039 #include "HepMC/GenParticle.h"
00040
00041
00042 #include "AtlfastEvent/ReconstructedParticle.h"
00043
00044 #include "AtlfastEvent/CollectionDefs.h"
00045 #include "AtlfastEvent/Cell.h"
00046 #include "AtlfastEvent/Cluster.h"
00047
00048 #ifndef ATLFAST_COLLECTIONDEFS_H
00049 #include "AtlfastEvent/CollectionDefs.h"
00050 #endif
00051
00052 #include "AtlfastEvent/IKinematic.h"
00053 #include "AtlfastUtils/KinematicHelper.h"
00054 #include "AtlfastUtils/TesIO.h"
00055
00056
00057
00058
00059
00060
00061
00062
00063 namespace Atlfast {
00064 using std::string;
00069 class Isolator : public Algorithm {
00070
00071 public:
00072
00073
00074
00075
00076
00077
00078
00079
00080 Isolator( const std::string& name, ISvcLocator* pSvcLocator ) ;
00081
00082 virtual ~Isolator();
00083
00084
00085
00086
00087
00088
00089 StatusCode initialize() ;
00090 StatusCode execute() ;
00091 StatusCode finalize() ;
00092
00093
00094
00095 private:
00096
00097
00098
00099
00100
00101
00102 double m_rClusterMatch;
00103
00104
00105 double m_rClusterIsolation;
00106
00107
00108 double m_eClusterIsolation;
00109
00110
00111 double m_rCellIsolation;
00112
00113
00114 double m_eCellIsolation;
00115
00116
00117 std::string m_inputLocation ;
00118
00119
00120 std::string m_isolatedOutputLocation ;
00121 std::string m_nonIsolatedOutputLocation ;
00122
00123
00124 std::string m_cellLocation ;
00125 std::string m_clusterLocation ;
00126
00127
00128
00129 TesIO* m_tesIO;
00130
00131
00132
00133
00134
00135 KinematicHelper m_kinehelp ;
00136 HepMC_helper::IMCselector* m_visibleToCal;
00137
00138
00139
00140
00141
00142
00143
00144 bool isIsolated(
00145 MsgStream&,
00146 ReconstructedParticleCollection::iterator,
00147 std::vector<Cell*>& ,
00148 std::vector<Cluster*>&
00149
00150 );
00151
00152 };
00153
00154 }
00155
00156
00157 #endif