00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef ATLFAST_B
00030 #define ATLFAST__B
00031
00032
00033 #ifndef STD_VECTOR_H
00034 #include <vector>
00035 #define STD_VECTOR_H
00036 #endif
00037
00038 #ifndef STD_STRING_H
00039 #include <string>
00040 #define STD_STRING_H
00041 #endif
00042
00043
00044 #ifndef GAUDIKERNEL_ALGORITHM_H
00045 #include "GaudiKernel/Algorithm.h"
00046 #define GAUDIKERNEL_ALGORITHM_H
00047 #endif
00048
00049
00050
00051
00052
00053
00054
00055 #define DEFAULT_AtlfBjetSwitch 1
00056 #define DEFAULT_AtlfCalSwitch 1
00057 #define DEFAULT_AtlfTauSwitch 1
00058 #define DEFAULT_AtlfTauVetoSwitch 0
00059 #define DEFAULT_AtlfTrigMuoSwitch 0
00060 #define DEFAULT_AtlfBNSet 1 //Choose the set of efficiencies and pt dependent factors
00061 #define DEFAULT_TauEff 0.5 //Tau jet tagging efficiency
00062 #define DEFAULT_TauVetoOption 1 //For the atlfTauVeto(int ind) method
00063 #define DEFAULT_JetCorrFile "ptcorrectionjet.dat"
00064 #define DEFAULT_CJetCorrFile "ptcorrectioncjet.dat"
00065 #define DEFAULT_RandomSeed 1234567
00066
00067
00068
00069
00070
00071
00072 #define DEFAULT_inputLocation "/Event/AtlfastJets"
00073 #define DEFAULT_outputLocation "/Event/AtlfastCalJets"
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086 class MsgStream;
00087 class ISvcLocator;
00088
00089
00090
00091 class RandFlat;
00092 class HepRandomEngine;
00093
00094 namespace Atlfast {
00101 class TesIO;
00102 class Jet;
00103
00104 class AtlfastB : public Algorithm
00105 {
00106
00107 private:
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136 int m_atlfBNSet;
00137
00138
00139 float m_epsib;
00140 float m_epsic;
00141 float m_epsij;
00142 float m_epsitau;
00143
00144
00145
00146 string m_corrjfile;
00147 string m_corrcfile;
00148
00149
00150 float m_corrj[5][15];
00151 float m_corrc[5][15];
00152
00153
00154 int m_indtauveto;
00155
00156
00157
00158
00159
00160
00161
00162
00163 int m_iAtlfBje;
00164 int m_iAtlfCal;
00165 int m_iAtlfTau;
00166 int m_iAtlfTauVeto;
00167 int m_iAtlfTrigMuo;
00168
00169
00170
00171 bool m_notInit;
00172 TesIO* m_tesIO;
00173 int m_randomSeed;
00174 HepRandomEngine* m_pRandomEngine;
00175 RandFlat* m_pRandFlatGenerator;
00176
00177 std::vector<Jet*> m_Jets;
00178 std::vector<Jet*>::iterator m_it;
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189 std::string m_inputLocation ;
00190 std::string m_outputLocation ;
00191
00192 public:
00193
00194
00195
00196
00197
00198
00199
00200
00201 AtlfastB( const std::string& name, ISvcLocator* pSvcLocator ) ;
00202 virtual ~AtlfastB();
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213 StatusCode atlfBje(int nset);
00214 StatusCode atlfCal();
00215 StatusCode atlfTau(float epsitau);
00216 StatusCode tautag(double pt, double eta, double efftau, double &rjet);
00217 StatusCode atlfTauVeto(int ind);
00218 StatusCode tauveto(double pt, int ind, double &efftau, double &effjet);
00219 StatusCode atlfTrigMuo();
00220
00221
00222 double fitcoreb(double pt);
00223 double fitcoreu(double pt);
00224
00225
00226
00227
00228
00229 StatusCode initialize() ;
00230 StatusCode execute() ;
00231 StatusCode finalize() ;
00232
00233 };
00234
00235
00236 }
00237
00238 #endif
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254