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 #include "AtlfastEvent/ReconstructedParticleCollection.h"
00044 #include "AtlfastEvent/Cell.h"
00045 #include "AtlfastEvent/CellCollection.h"
00046 #include "AtlfastEvent/Cluster.h"
00047 #include "AtlfastEvent/ClusterCollection.h"
00048
00049 #include "AtlfastEvent/IKinematic.h"
00050 #include "AtlfastUtils/KinematicHelper.h"
00051 #include "AtlfastUtils/TesIO.h"
00052
00053
00054
00055
00056
00057
00058
00059
00060 namespace Atlfast {
00061 using std::string;
00066 class Isolator : public Algorithm {
00067
00068 public:
00069
00070
00071
00072
00073
00074
00075
00076
00077 Isolator( const std::string& name, ISvcLocator* pSvcLocator ) ;
00078
00079 virtual ~Isolator();
00080
00081
00082
00083
00084
00085
00086 StatusCode initialize() ;
00087 StatusCode execute() ;
00088 StatusCode finalize() ;
00089
00090
00091
00092 private:
00093
00094
00095
00096
00097
00098
00099 double m_rClusterMatch;
00100
00101
00102 double m_rClusterIsolation;
00103
00104
00105 double m_eClusterIsolation;
00106
00107
00108 double m_rCellIsolation;
00109
00110
00111 double m_eCellIsolation;
00112
00113
00114 std::string m_inputLocation ;
00115
00116
00117 std::string m_isolatedOutputLocation ;
00118 std::string m_nonIsolatedOutputLocation ;
00119
00120
00121 std::string m_cellLocation ;
00122 std::string m_clusterLocation ;
00123
00124
00125
00126 TesIO* m_tesIO;
00127
00128
00129
00130
00131
00132 KinematicHelper m_kinehelp ;
00133 HepMC_helper::IMCselector* m_visibleToCal;
00134
00135
00136
00137
00138
00139
00140
00141 bool isIsolated(
00142 MsgStream&,
00143 ReconstructedParticleCollection::iterator,
00144 std::vector<Cell*>& ,
00145 std::vector<Cluster*>&
00146
00147 );
00148
00149 };
00150
00151 }
00152
00153
00154 #endif