#include <CBNT_Atlfast.h>
Collaboration diagram for Atlfast::CBNT_Atlfast:
Public Methods | |
CBNT_Atlfast (const std::string &name, ISvcLocator *pSvcLocator) | |
~CBNT_Atlfast () | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Methods | |
StatusCode | accessNtuple () |
std::pair< int, int > | getParentCodes (MCparticleCollection::const_iterator &) |
Private Attributes | |
std::string | m_NtupleLocID |
NTuple::Tuple * | p_nt |
TesIO * | m_tesIO |
std::string | m_atlfastEventLocation |
member variables pointing to locations in the TES | |
std::string | m_jetLocation |
std::string | m_jetBLocation |
std::string | m_electronLocation |
std::string | m_isolatedMuonLocation |
std::string | m_nonIsolatedMuonLocation |
std::string | m_photonLocation |
std::string | m_trackLocation |
std::string | m_mcTruthLocation |
std::string | m_bPhysicsLocation |
std::string | m_triggerLocation |
std::string | m_eventHeaderLocation |
JetRecalibrator * | m_jetCal |
NTuple::Item< long > | m_isub |
NTuple::Item< long > | m_njetb |
NTuple::Item< long > | m_njetc |
NTuple::Item< long > | m_njettau |
NTuple::Item< float > | m_pxmiss |
NTuple::Item< float > | m_pymiss |
NTuple::Item< float > | m_pxnue |
NTuple::Item< float > | m_pynue |
NTuple::Item< long > | m_njet |
Jets. | |
NTuple::Array< long > | m_codejet |
NTuple::Array< float > | m_pxjet |
NTuple::Array< float > | m_pyjet |
NTuple::Array< float > | m_pzjet |
NTuple::Array< float > | m_eejet |
NTuple::Array< float > | m_ptcalo |
NTuple::Array< float > | m_ptbjet |
NTuple::Array< float > | m_ptujet |
NTuple::Item< long > | m_njetB |
AtlfastB (=corrected) Jets. | |
NTuple::Array< long > | m_codejetB |
NTuple::Array< float > | m_pxjetB |
NTuple::Array< float > | m_pyjetB |
NTuple::Array< float > | m_pzjetB |
NTuple::Array< float > | m_eejetB |
NTuple::Item< long > | m_nele |
Electrons. | |
NTuple::Array< long > | m_codeele |
NTuple::Array< float > | m_pxele |
NTuple::Array< float > | m_pyele |
NTuple::Array< float > | m_pzele |
NTuple::Array< float > | m_eeele |
NTuple::Item< long > | m_nmuo |
Muons. | |
NTuple::Array< long > | m_codemuo |
NTuple::Array< float > | m_pxmuo |
NTuple::Array< float > | m_pymuo |
NTuple::Array< float > | m_pzmuo |
NTuple::Array< float > | m_eemuo |
NTuple::Item< long > | m_nmux |
NTuple::Array< long > | m_codemux |
NTuple::Array< float > | m_pxmux |
NTuple::Array< float > | m_pymux |
NTuple::Array< float > | m_pzmux |
NTuple::Array< float > | m_eemux |
NTuple::Item< long > | m_npho |
Photons. | |
NTuple::Array< long > | m_codepho |
NTuple::Array< float > | m_pxpho |
NTuple::Array< float > | m_pypho |
NTuple::Array< float > | m_pzpho |
NTuple::Array< float > | m_eepho |
NTuple::Item< long > | m_npart |
Particle. | |
NTuple::Array< long > | m_kppart |
NTuple::Array< long > | m_kspart |
NTuple::Array< long > | m_kfpart |
NTuple::Array< long > | m_kpmoth |
NTuple::Array< long > | m_kfmoth |
NTuple::Array< float > | m_pxpart |
NTuple::Array< float > | m_pypart |
NTuple::Array< float > | m_pzpart |
NTuple::Array< float > | m_eepart |
NTuple::Item< long > | m_nbphys |
Bphys. | |
NTuple::Array< long > | m_kbphys |
NTuple::Array< long > | m_kfbphys |
NTuple::Array< long > | m_pxphys |
NTuple::Array< long > | m_pybphys |
NTuple::Array< long > | m_pzbphys |
NTuple::Array< long > | m_eebphys |
NTuple::Array< long > | m_vxphys |
NTuple::Array< long > | m_vybphys |
NTuple::Array< long > | m_vzbphys |
|
Definition at line 44 of file CBNT_Atlfast.cxx. References m_atlfastEventLocation, m_bPhysicsLocation, m_electronLocation, m_eventHeaderLocation, m_isolatedMuonLocation, m_jetBLocation, m_jetLocation, m_mcTruthLocation, m_nonIsolatedMuonLocation, m_NtupleLocID, and m_photonLocation.
00045 : Algorithm(name, pSvcLocator), 00046 m_NtupleLocID("/FILE1/CBNT/51") { 00047 m_atlfastEventLocation = "/Event/Atlfast"; 00048 m_jetLocation = "/Event/AtlfastJets"; 00049 m_jetBLocation = "/Event/AtlfastBJets"; 00050 m_electronLocation = "/Event/AtlfastIsolatedElectrons"; 00051 m_isolatedMuonLocation = "/Event/AtlfastIsolatedMuons"; 00052 m_nonIsolatedMuonLocation = "/Event/AtlfastNonIsolatedMuons"; 00053 m_photonLocation = "/Event/AtlfastIsolatedPhotons"; 00054 m_mcTruthLocation = "/Event/McEventCollection"; 00055 m_bPhysicsLocation = "/Event/AtlfastBPhysics"; 00056 m_eventHeaderLocation = "/Event/AtlfastEventHeader"; 00057 00058 declareProperty( "AtlfastEventLocation", m_atlfastEventLocation ); 00059 declareProperty( "JetLocation", m_jetLocation ); 00060 declareProperty( "JetBLocation", m_jetBLocation ); 00061 declareProperty( "ElectronLocation", m_electronLocation ); 00062 declareProperty( "IsolatedMuonLocation", m_isolatedMuonLocation ); 00063 declareProperty( "NonIsolatedMuonLocation", m_nonIsolatedMuonLocation ); 00064 declareProperty( "PhotonLocation", m_photonLocation ); 00065 declareProperty( "McTruthLocation", m_mcTruthLocation ); 00066 declareProperty( "BPhysicsLocation", m_bPhysicsLocation ); 00067 declareProperty( "EventHeaderLocation", m_eventHeaderLocation ); 00068 declareProperty("NtupleLocID",m_NtupleLocID); 00069 00070 } |
|
Definition at line 71 of file CBNT_Atlfast.cxx. References m_jetCal, and m_tesIO.
|
|
Definition at line 78 of file CBNT_Atlfast.cxx. References accessNtuple(), m_codeele, m_codejet, m_codejetB, m_codemuo, m_codemux, m_codepho, m_eeele, m_eejet, m_eejetB, m_eemuo, m_eemux, m_eepart, m_eepho, m_electronLocation, m_eventHeaderLocation, m_isolatedMuonLocation, m_isub, m_jetCal, m_jetLocation, m_kfmoth, m_kfpart, m_kpmoth, m_kppart, m_kspart, m_mcTruthLocation, m_nele, m_njet, m_njetb, m_njetB, m_njetc, m_njettau, m_nmuo, m_nmux, m_nonIsolatedMuonLocation, m_npart, m_npho, m_photonLocation, m_ptbjet, m_ptcalo, m_ptujet, m_pxele, m_pxjet, m_pxjetB, m_pxmiss, m_pxmuo, m_pxmux, m_pxnue, m_pxpart, m_pxpho, m_pyele, m_pyjet, m_pyjetB, m_pymiss, m_pymuo, m_pymux, m_pynue, m_pypart, m_pypho, m_pzele, m_pzjet, m_pzjetB, m_pzmuo, m_pzmux, m_pzpart, m_pzpho, m_tesIO, and p_nt.
00078 { 00079 00080 StatusCode sc; 00081 00082 MsgStream log(messageService(), name()); 00083 00084 // access already booked ntuple m_NtupleLocID 00085 sc = accessNtuple(); 00086 if (!sc) { 00087 return StatusCode::FAILURE; 00088 } 00089 00090 NTuple::Tuple* nt=p_nt; 00091 00092 //check the properties 00093 00094 //declare more variables 00095 00096 log << MSG::DEBUG << "declare more variables" << endreq; 00097 00098 // Electrons 00099 sc = nt->addItem ("ATLFAST/NELE" , m_nele, 0, 12 ); 00100 sc = nt->addItem ("ATLFAST/KFELE" , m_nele, m_codeele); 00101 sc = nt->addItem ("ATLFAST/PXELE" , m_nele, m_pxele); 00102 sc = nt->addItem ("ATLFAST/PYELE" , m_nele, m_pyele); 00103 sc = nt->addItem ("ATLFAST/PZELE" , m_nele, m_pzele); 00104 sc = nt->addItem ("ATLFAST/EEELE" , m_nele, m_eeele); 00105 // Photons 00106 sc = nt->addItem ("ATLFAST/NPHO" , m_npho, 0, 12 ); 00107 sc = nt->addItem ("ATLFAST/KFPHO" , m_npho, m_codepho); 00108 sc = nt->addItem ("ATLFAST/PXPHO" , m_npho, m_pxpho); 00109 sc = nt->addItem ("ATLFAST/PYPHO" , m_npho, m_pypho); 00110 sc = nt->addItem ("ATLFAST/PZPHO" , m_npho, m_pzpho); 00111 sc = nt->addItem ("ATLFAST/EEPHO" , m_npho, m_eepho); 00112 // Muons (isolated) 00113 sc = nt->addItem ("ATLFAST/NMUO" , m_nmuo, 0, 12 ); 00114 sc = nt->addItem ("ATLFAST/KFMUO" , m_nmuo, m_codemuo); 00115 sc = nt->addItem ("ATLFAST/PXMUO" , m_nmuo, m_pxmuo); 00116 sc = nt->addItem ("ATLFAST/PYMUO" , m_nmuo, m_pymuo); 00117 sc = nt->addItem ("ATLFAST/PZMUO" , m_nmuo, m_pzmuo); 00118 sc = nt->addItem ("ATLFAST/EEMUO" , m_nmuo, m_eemuo); 00119 // MuonsX (non-isolated) 00120 sc = nt->addItem ("ATLFAST/NMUX" , m_nmux, 0, 12 ); 00121 sc = nt->addItem ("ATLFAST/KFMUX" , m_nmux, m_codemux); 00122 sc = nt->addItem ("ATLFAST/PXMUX" , m_nmux, m_pxmux); 00123 sc = nt->addItem ("ATLFAST/PYMUX" , m_nmux, m_pymux); 00124 sc = nt->addItem ("ATLFAST/PZMUX" , m_nmux, m_pzmux); 00125 sc = nt->addItem ("ATLFAST/EEMUX" , m_nmux, m_eemux); 00126 // Jets 00127 sc = nt->addItem ("ATLFAST/NJET" , m_njet, 0, 40 ); 00128 sc = nt->addItem ("ATLFAST/KFJET" , m_njet, m_codejet); 00129 sc = nt->addItem ("ATLFAST/PXJET" , m_njet, m_pxjet); 00130 sc = nt->addItem ("ATLFAST/PYJET" , m_njet, m_pyjet); 00131 sc = nt->addItem ("ATLFAST/PZJET" , m_njet, m_pzjet); 00132 sc = nt->addItem ("ATLFAST/EEJET" , m_njet, m_eejet); 00133 sc = nt->addItem ("ATLFAST/PTcalo" , m_njet, m_ptcalo); 00134 sc = nt->addItem ("ATLFAST/PTbjet" , m_njet, m_ptbjet); 00135 sc = nt->addItem ("ATLFAST/PTujet" , m_njet, m_ptujet); 00136 // Jets calibrated by AtlfastB 00137 sc = nt->addItem ("ATLFAST/NJETB" , m_njetB, 0, 40 ); 00138 sc = nt->addItem ("ATLFAST/KFJETB" , m_njetB, m_codejetB); 00139 sc = nt->addItem ("ATLFAST/PXJETB" , m_njetB, m_pxjetB); 00140 sc = nt->addItem ("ATLFAST/PYJETB" , m_njetB, m_pyjetB); 00141 sc = nt->addItem ("ATLFAST/PZJETB" , m_njetB, m_pzjetB); 00142 sc = nt->addItem ("ATLFAST/EEJETB" , m_njetB, m_eejetB); 00143 // History 00144 sc = nt->addItem ("ATLFAST/NPART" , m_npart, 0, 40 ); 00145 sc = nt->addItem ("ATLFAST/KPPART" , m_npart, m_kppart); 00146 sc = nt->addItem ("ATLFAST/KSPART" , m_npart, m_kspart); 00147 sc = nt->addItem ("ATLFAST/KFPART" , m_npart, m_kfpart); 00148 sc = nt->addItem ("ATLFAST/KPMOTH" , m_npart, m_kpmoth); 00149 sc = nt->addItem ("ATLFAST/KFMOTH" , m_npart, m_kfmoth); 00150 sc = nt->addItem ("ATLFAST/PXPART" , m_npart, m_pxpart); 00151 sc = nt->addItem ("ATLFAST/PYPART" , m_npart, m_pypart); 00152 sc = nt->addItem ("ATLFAST/PZPART" , m_npart, m_pzpart); 00153 sc = nt->addItem ("ATLFAST/EEPART" , m_npart, m_eepart); 00154 // Missing 00155 sc = nt->addItem ("ATLFAST/ISUB" , m_isub); 00156 sc = nt->addItem ("ATLFAST/JETB" , m_njetb); 00157 sc = nt->addItem ("ATLFAST/JETC" , m_njetc); 00158 sc = nt->addItem ("ATLFAST/JETTAU" , m_njettau); 00159 sc = nt->addItem ("ATLFAST/PXMISS" , m_pxmiss); 00160 sc = nt->addItem ("ATLFAST/PYMISS" , m_pymiss); 00161 sc = nt->addItem ("ATLFAST/PXNUE" , m_pxnue); 00162 sc = nt->addItem ("ATLFAST/PYNUE" , m_pynue); 00163 00164 00165 m_jetCal = new JetRecalibrator(); 00166 m_tesIO = new TesIO(); 00167 00168 HeaderPrinter hp("Atlfast StandardNtuleMaker:", log); 00169 hp.add("MC location ", m_mcTruthLocation); 00170 hp.add("Electron Location ", m_electronLocation); 00171 hp.add("Photon Location ", m_photonLocation); 00172 hp.add("Isolated Muon Location ", m_isolatedMuonLocation); 00173 hp.add("Non-Isolated Muon Location ", m_nonIsolatedMuonLocation); 00174 hp.add("Jet Location ", m_jetLocation); 00175 hp.add("EventHeaderLocation ", m_eventHeaderLocation ); 00176 hp.print(); 00177 return StatusCode::SUCCESS; 00178 00179 } |
|
Definition at line 184 of file CBNT_Atlfast.cxx. References Atlfast::JetRecalibrator::bCalibrate(), getParentCodes(), m_codeele, m_codejet, m_codejetB, m_codemuo, m_codemux, m_codepho, m_eeele, m_eejet, m_eejetB, m_eemuo, m_eemux, m_eepart, m_eepho, m_electronLocation, m_isolatedMuonLocation, m_isub, m_jetBLocation, m_jetCal, m_jetLocation, m_kfmoth, m_kfpart, m_kpmoth, m_kppart, m_kspart, m_nele, m_njet, m_njetb, m_njetB, m_njetc, m_njettau, m_nmuo, m_nmux, m_nonIsolatedMuonLocation, m_npart, m_npho, m_photonLocation, m_ptbjet, m_ptcalo, m_ptujet, m_pxele, m_pxjet, m_pxjetB, m_pxmiss, m_pxmuo, m_pxmux, m_pxnue, m_pxpart, m_pxpho, m_pyele, m_pyjet, m_pyjetB, m_pymiss, m_pymuo, m_pymux, m_pynue, m_pypart, m_pypho, m_pzele, m_pzjet, m_pzjetB, m_pzmuo, m_pzmux, m_pzpart, m_pzpho, m_tesIO, and Atlfast::JetRecalibrator::uCalibrate().
00184 { 00185 00186 MsgStream log(messageService(), name()); 00187 log << MSG::DEBUG << "in execute() ..." << endreq; 00188 00189 log << MSG::DEBUG << " -> retrieving all Atlfast stuff"<< endreq; 00190 00191 00192 00193 00194 //------------------- 00195 // Retrieve Electrons 00196 //------------------- 00197 std::vector<ReconstructedParticle*> rp; 00198 if(!m_tesIO->copy<ReconstructedParticleCollection>(rp,m_electronLocation)){ 00199 log <<MSG::DEBUG << "Could not find Electrons"<<endreq; 00200 } 00201 log << MSG::DEBUG << "processing Electrons: " <<rp.size()<< endreq; 00202 00203 std::vector<ReconstructedParticle*>::const_iterator irp = rp.begin(); 00204 00205 m_nele = 0; 00206 for (; irp != rp.end(); ++irp) { 00207 m_codeele[m_nele] = (*irp)->pdg_id(); 00208 m_pxele[m_nele] = (*irp)->momentum().px(); 00209 m_pyele[m_nele] = (*irp)->momentum().py(); 00210 m_pzele[m_nele] = (*irp)->momentum().pz(); 00211 m_eeele[m_nele] = (*irp)->momentum().e(); 00212 if (++m_nele == m_nele->range().distance() ) { 00213 log << MSG::WARNING << "Electron list truncated in Ntuple" << endreq; 00214 break; 00215 } 00216 } 00217 00218 //------------------- 00219 // Retrieve Photons 00220 //------------------- 00221 00222 rp.clear(); 00223 if(!m_tesIO->copy <ReconstructedParticleCollection>(rp, m_photonLocation)){ 00224 log <<MSG::DEBUG << "Could not find Photons"<<endreq; 00225 } 00226 log << MSG::DEBUG << "processing Photons: " <<rp.size()<< endreq; 00227 00228 irp = rp.begin(); 00229 00230 m_npho = 0; 00231 for (; irp != rp.end(); ++irp) { 00232 m_codepho[m_npho] = (*irp)->pdg_id(); 00233 m_pxpho[m_npho] = (*irp)->momentum().px(); 00234 m_pypho[m_npho] = (*irp)->momentum().py(); 00235 m_pzpho[m_npho] = (*irp)->momentum().pz(); 00236 m_eepho[m_npho] = (*irp)->momentum().e(); 00237 if (++m_npho == m_npho->range().distance() ) { 00238 log << MSG::WARNING << "Photon list truncated in Ntuple" << endreq; 00239 break; 00240 } 00241 } 00242 00243 //------------------- 00244 // Retrieve Isolated Muons 00245 //------------------- 00246 00247 rp.clear(); 00248 if(!m_tesIO->copy 00249 <ReconstructedParticleCollection>(rp, m_isolatedMuonLocation)){ 00250 log <<MSG::DEBUG << "Could not find Isolated Muons"<<endreq; 00251 } 00252 log << MSG::DEBUG << "Isolated Muons: " <<rp.size()<< endreq; 00253 00254 irp = rp.begin(); 00255 00256 m_nmuo = 0; 00257 00258 for (; irp != rp.end(); ++irp) { 00259 m_codemuo[m_nmuo] = (*irp)->pdg_id(); 00260 m_pxmuo[m_nmuo] = (*irp)->momentum().px(); 00261 m_pymuo[m_nmuo] = (*irp)->momentum().py(); 00262 m_pzmuo[m_nmuo] = (*irp)->momentum().pz(); 00263 m_eemuo[m_nmuo] = (*irp)->momentum().e(); 00264 if (++m_nmuo == m_nmuo->range().distance() ) { 00265 log << MSG::WARNING 00266 << "Isolated Muon list truncated in Ntuple" << endreq; 00267 break; 00268 } 00269 } 00270 00271 //------------------- 00272 // Retrieve NonIsolated Muons 00273 //------------------- 00274 00275 rp.clear(); 00276 if(!m_tesIO->copy 00277 <ReconstructedParticleCollection >(rp, m_nonIsolatedMuonLocation)){ 00278 log <<MSG::DEBUG << "Could not find non Isolated muons"<<endreq; 00279 } 00280 log << MSG::DEBUG << "NonIsolated Muons: " <<rp.size()<< endreq; 00281 irp = rp.begin(); 00282 00283 m_nmux = 0; 00284 00285 for (; irp != rp.end(); ++irp) { 00286 m_codemux[m_nmux] = (*irp)->pdg_id(); 00287 m_pxmux[m_nmux] = (*irp)->momentum().px(); 00288 m_pymux[m_nmux] = (*irp)->momentum().py(); 00289 m_pzmux[m_nmux] = (*irp)->momentum().pz(); 00290 m_eemux[m_nmux] = (*irp)->momentum().e(); 00291 if (++m_nmux == m_nmux->range().distance() ) { 00292 log << MSG::WARNING 00293 << "Non-isolated Muon list truncated in Ntuple" << endreq; 00294 break; 00295 } 00296 } 00297 00298 //------------------- 00299 // Retrieve Jets 00300 //------------------- 00301 00302 std::vector<Jet*> jv; 00303 if(!m_tesIO->copy<JetCollection >(jv, m_jetLocation)){ 00304 log <<MSG::DEBUG << "Could not find Jets"<<endreq; 00305 } 00306 log << MSG::DEBUG << "Processing Jets: " <<jv.size()<< endreq; 00307 00308 std::vector<Jet*>::const_iterator ijv = jv.begin(); 00309 00310 m_njet = 0; 00311 00312 for (; ijv != jv.end(); ++ijv) { 00313 m_codejet[m_njet]= (*ijv)->pdg_id(); 00314 m_pxjet[m_njet] = (*ijv)->px(); 00315 m_pyjet[m_njet] = (*ijv)->py(); 00316 m_pzjet[m_njet] = (*ijv)->pz(); 00317 m_eejet[m_njet] = (*ijv)->e(); 00318 m_ptcalo[m_njet] = (*ijv)->pT(); 00319 m_ptbjet[m_njet] = m_jetCal->bCalibrate( (*ijv)->pT() ); 00320 m_ptujet[m_njet] = m_jetCal->uCalibrate( (*ijv)->pT() ); 00321 if ( ++m_njet == m_njet->range().distance() ) break; 00322 } 00323 log << MSG::DEBUG << " Jets in ntuple" << endreq; 00324 00325 00326 //------------------- 00327 // Retrieve AtlfastB Jets 00328 //------------------- 00329 00330 std::vector<Jet*> jvb; 00331 if(!m_tesIO->copy<JetCollection >(jvb, m_jetBLocation)){ 00332 log <<MSG::DEBUG << "Could not find AtlfastB Jets"<<endreq; 00333 } 00334 log << MSG::DEBUG << "Processing AtlfastB Jets: " <<jvb.size()<< endreq; 00335 00336 ijv = jvb.begin(); 00337 00338 m_njetB = 0; 00339 00340 for (; ijv != jvb.end(); ++ijv) { 00341 m_codejetB[m_njetB]= (*ijv)->pdg_id(); 00342 m_pxjetB[m_njetB] = (*ijv)->px(); 00343 m_pyjetB[m_njetB] = (*ijv)->py(); 00344 m_pzjetB[m_njetB] = (*ijv)->pz(); 00345 m_eejetB[m_njetB] = (*ijv)->e(); 00346 if ( ++m_njetB == m_njetB->range().distance() ) break; 00347 } 00348 log << MSG::DEBUG << " AtlfastB Jets in ntuple" << endreq; 00349 00350 00351 MCparticleCollection mc; 00352 00353 HepMC_helper::All* all= new HepMC_helper::All; 00354 TesIoStat stat = m_tesIO->getMC(mc, all); 00355 delete all; 00356 00357 if(stat){ 00358 log << MSG::DEBUG << " found MC truth" << endreq; 00359 }else{ 00360 log << MSG::ERROR << " MC truth not found in TES" << endreq; 00361 } 00362 00363 MCparticleCollection::const_iterator imc = mc.begin(); 00364 m_npart=0; 00365 00366 HepMC_helper::IsStatusxx isf(3); 00367 00368 for(;imc != mc.end(); ++imc){ 00369 if(isf(*imc)){ 00370 m_kppart[m_npart] = (*imc)->barcode(); 00371 m_kspart[m_npart] = (*imc)->status()%100; 00372 m_kfpart[m_npart] = (*imc)->pdg_id(); 00373 std::pair<int, int> parentCodes = getParentCodes(imc); 00374 m_kfmoth[m_npart] = parentCodes.first; 00375 m_kpmoth[m_npart] = parentCodes.second; 00376 m_pxpart[m_npart] = (*imc)->momentum().x(); 00377 m_pypart[m_npart] = (*imc)->momentum().y(); 00378 m_pzpart[m_npart] = (*imc)->momentum().z(); 00379 m_eepart[m_npart] = (*imc)->momentum().e(); 00380 ++m_npart; 00381 } 00382 00383 if ( m_npart == m_npart->range().distance() ) break; 00384 } 00385 00386 log << MSG::DEBUG << " Particles in ntuple" << endreq; 00387 00388 const DataHandle<EventHeader> theEventHeader; 00389 if(!(m_tesIO->getDH(theEventHeader))){ 00390 log << MSG::ERROR<<"Could not find the event header in the TES"<<endreq; 00391 } 00392 00393 if(theEventHeader.isValid()){ 00394 m_isub = 0; 00395 m_njetb = theEventHeader->nBJets(); 00396 m_njetc = theEventHeader->nCJets(); 00397 m_njettau= theEventHeader->nTauJets(); 00398 m_pxmiss = theEventHeader->pMiss().x(); 00399 m_pymiss = theEventHeader->pMiss().y(); 00400 m_pxnue = theEventHeader->pEscaped().x(); 00401 m_pynue = theEventHeader->pEscaped().y(); 00402 } else { 00403 log << MSG::ERROR << " Invalid EventHeader data handle" << endreq; 00404 } 00405 00406 log << MSG::DEBUG << " EventHeader quantities are in ntuple" << endreq; 00407 00408 00409 return StatusCode::SUCCESS; 00410 00411 } |
|
Definition at line 432 of file CBNT_Atlfast.cxx.
00432 { 00433 // MsgStream log(messageService(), name()); 00434 //log << MSG::INFO << "in finalize() ..." << endreq; 00435 return StatusCode::SUCCESS; 00436 } |
|
Definition at line 440 of file CBNT_Atlfast.cxx. References m_NtupleLocID, and p_nt. Referenced by initialize().
00440 { 00441 MsgStream log(messageService(), name()); 00442 00443 //try to access it 00444 NTuplePtr nt(ntupleService(),"/NTUPLES"+m_NtupleLocID); 00445 00446 if (nt) 00447 { 00448 p_nt=nt; 00449 log << MSG::INFO << "Ntuple " <<m_NtupleLocID 00450 << " reaccessed! " << endreq; 00451 return StatusCode::SUCCESS; 00452 } else 00453 { 00454 log << MSG::FATAL << "Cannot reaccess " << m_NtupleLocID << endreq; 00455 return StatusCode::FAILURE; 00456 } 00457 } |
|
Definition at line 414 of file CBNT_Atlfast.cxx. Referenced by execute().
00415 { 00416 00417 HepMC::GenVertex* gv = (*imc)->production_vertex(); 00418 if ( gv == 0 ){ return std::pair<int, int>(0,0);} 00419 00420 if ( gv->particles_in_size() == 0 ) { return std::pair<int, int>(0,0); } 00421 00422 HepMC::GenVertex::particle_iterator 00423 pi = gv->particles_begin(HepMC::parents); 00424 if( *pi == 0 ){ return std::pair<int, int>(0,0); } 00425 00426 00427 return std::pair<int, int>( (*pi)->pdg_id(), (*pi)->barcode() ); 00428 } |
|
Definition at line 22 of file CBNT_Atlfast.h. Referenced by accessNtuple(), and CBNT_Atlfast(). |
|
Definition at line 23 of file CBNT_Atlfast.h. Referenced by accessNtuple(), and initialize(). |
|
Definition at line 26 of file CBNT_Atlfast.h. Referenced by execute(), initialize(), and ~CBNT_Atlfast(). |
|
member variables pointing to locations in the TES
Definition at line 29 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(). |
|
Definition at line 30 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), execute(), and initialize(). |
|
Definition at line 31 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), and execute(). |
|
Definition at line 32 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), execute(), and initialize(). |
|
Definition at line 33 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), execute(), and initialize(). |
|
Definition at line 34 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), execute(), and initialize(). |
|
Definition at line 35 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), execute(), and initialize(). |
|
Definition at line 36 of file CBNT_Atlfast.h. |
|
Definition at line 37 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), and initialize(). |
|
Definition at line 38 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(). |
|
Definition at line 39 of file CBNT_Atlfast.h. |
|
Definition at line 40 of file CBNT_Atlfast.h. Referenced by CBNT_Atlfast(), and initialize(). |
|
Definition at line 42 of file CBNT_Atlfast.h. Referenced by execute(), initialize(), and ~CBNT_Atlfast(). |
|
Definition at line 46 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 47 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 47 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 47 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 48 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 48 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 48 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 48 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Jets.
Definition at line 50 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 51 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 52 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 52 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 52 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 52 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 53 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 53 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 53 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
AtlfastB (=corrected) Jets.
Definition at line 55 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 56 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 57 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 57 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 57 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 57 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Electrons.
Definition at line 59 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 60 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 61 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 61 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 61 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 61 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Muons.
Definition at line 63 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 64 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 65 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 65 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 65 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 65 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 66 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 67 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 68 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 68 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 68 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 68 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Photons.
Definition at line 70 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 71 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 72 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 72 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 72 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 72 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Particle.
Definition at line 91 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 92 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 92 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 92 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 93 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 93 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 94 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 94 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 94 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Definition at line 94 of file CBNT_Atlfast.h. Referenced by execute(), and initialize(). |
|
Bphys.
Definition at line 96 of file CBNT_Atlfast.h. |
|
Definition at line 97 of file CBNT_Atlfast.h. |
|
Definition at line 97 of file CBNT_Atlfast.h. |
|
Definition at line 98 of file CBNT_Atlfast.h. |
|
Definition at line 98 of file CBNT_Atlfast.h. |
|
Definition at line 98 of file CBNT_Atlfast.h. |
|
Definition at line 98 of file CBNT_Atlfast.h. |
|
Definition at line 99 of file CBNT_Atlfast.h. |
|
Definition at line 99 of file CBNT_Atlfast.h. |
|
Definition at line 99 of file CBNT_Atlfast.h. |