ATLAS Offline Software
AtlfInfoCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 #include "JetTagInfo/AtlfInfo.h"
12 
13 #include "GaudiKernel/MsgStream.h"
14 
15 namespace Analysis {
16 
17  void AtlfInfoCnv_p1::transToPers (const AtlfInfo *transObj,
18  AtlfInfo_p1 *persObj,
19  MsgStream &msg)
20  {
22  persObj->m_BaseTagInfo = baseToPersistent(&m_baseTagCnv, transObj, msg);
23 
25  persObj->m_isBTagged = transObj->isBTagged();
26  persObj->m_isTauTagged = transObj->isTauTagged();
27  persObj->m_isTau1PTagged = transObj->isTau1PTagged();
28  persObj->m_isTau3PTagged = transObj->isTau3PTagged();
29 
30  persObj->m_calFactLight = transObj->LightHypoCalFactor();
31  persObj->m_calFactTau = transObj->TauHypoCalFactor();
32  persObj->m_calFactTau1P3P = transObj->Tau1P3PHypoCalFactor();
33  persObj->m_calFactB = transObj->BHypoCalFactor();
34 
35  persObj->m_distanceToBQuark = transObj->deltaRMinTo ("B");
36  persObj->m_distanceToCQuark = transObj->deltaRMinTo ("C");
37  persObj->m_distanceToTLepton = transObj->deltaRMinTo ("T");
38  }
39 
41  AtlfInfo *transObj,
42  MsgStream &msg)
43  {
45  fillTransFromPStore (&m_baseTagCnv, persObj->m_BaseTagInfo, transObj, msg);
46  //m_baseTagCnv.persToTrans(&persObj->m_BaseTagInfo, transObj, msg);
47 
49  transObj->isBTagged (persObj->m_isBTagged);
50  transObj->isTauTagged (persObj->m_isTauTagged);
51  transObj->isTau1PTagged (persObj->m_isTau1PTagged);
52  transObj->isTau3PTagged (persObj->m_isTau3PTagged);
53 
54  transObj->LightHypoCalFactor (persObj->m_calFactLight);
55  transObj->TauHypoCalFactor (persObj->m_calFactTau);
56  transObj->Tau1P3PHypoCalFactor (persObj->m_calFactTau1P3P);
57  transObj->BHypoCalFactor (persObj->m_calFactB);
58 
59  transObj->deltaRMinTo ("B", persObj->m_distanceToBQuark);
60  transObj->deltaRMinTo ("C", persObj->m_distanceToCQuark);
61  transObj->deltaRMinTo ("T", persObj->m_distanceToTLepton);
62 
63  }
64 
65 }
Analysis::AtlfInfo_p1::m_isTauTagged
bool m_isTauTagged
Definition: AtlfInfo_p1.h:27
Analysis::AtlfInfo_p1::m_distanceToBQuark
float m_distanceToBQuark
Definition: AtlfInfo_p1.h:34
Analysis::AtlfInfo::isTau3PTagged
void isTau3PTagged(bool b)
Definition: AtlfInfo.h:40
Analysis::AtlfInfo_p1::m_isBTagged
bool m_isBTagged
Definition: AtlfInfo_p1.h:26
Analysis::AtlfInfo_p1::m_calFactLight
float m_calFactLight
Definition: AtlfInfo_p1.h:30
Analysis::AtlfInfo::TauHypoCalFactor
void TauHypoCalFactor(float c)
Definition: AtlfInfo.h:44
Analysis::AtlfInfo::isBTagged
void isBTagged(bool b)
Definition: AtlfInfo.h:34
BaseTagInfoCnv_p1.h
Analysis::AtlfInfo_p1::m_calFactB
float m_calFactB
Definition: AtlfInfo_p1.h:33
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
Analysis::AtlfInfo_p1
Definition: AtlfInfo_p1.h:17
Analysis::AtlfInfo_p1::m_calFactTau
float m_calFactTau
Definition: AtlfInfo_p1.h:31
Analysis::AtlfInfo_p1::m_isTau3PTagged
bool m_isTau3PTagged
Definition: AtlfInfo_p1.h:29
Analysis::AtlfInfo::LightHypoCalFactor
void LightHypoCalFactor(float c)
Definition: AtlfInfo.h:42
Analysis::AtlfInfo::isTauTagged
void isTauTagged(bool b)
Definition: AtlfInfo.h:36
Analysis::AtlfInfo
Definition: AtlfInfo.h:16
Analysis::AtlfInfo::isTau1PTagged
void isTau1PTagged(bool b)
Definition: AtlfInfo.h:38
Analysis::AtlfInfoCnv_p1::transToPers
virtual void transToPers(const AtlfInfo *transObj, AtlfInfo_p1 *persObj, MsgStream &log)
Definition: AtlfInfoCnv_p1.cxx:17
Analysis::AtlfInfo_p1::m_distanceToCQuark
float m_distanceToCQuark
Definition: AtlfInfo_p1.h:35
Analysis::AtlfInfo::deltaRMinTo
void deltaRMinTo(const std::string &, float)
min deltaR to b,c quarks/tau lepton:
Definition: AtlfInfo.cxx:84
Analysis::AtlfInfo::BHypoCalFactor
void BHypoCalFactor(float c)
Definition: AtlfInfo.h:48
Analysis::AtlfInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: AtlfInfoCnv_p1.h:41
AtlfInfo.h
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::AtlfInfo_p1::m_isTau1PTagged
bool m_isTau1PTagged
Definition: AtlfInfo_p1.h:28
Analysis::AtlfInfo_p1::m_calFactTau1P3P
float m_calFactTau1P3P
Definition: AtlfInfo_p1.h:32
Analysis::AtlfInfoCnv_p1::persToTrans
virtual void persToTrans(const AtlfInfo_p1 *persObj, AtlfInfo *transObj, MsgStream &log)
Definition: AtlfInfoCnv_p1.cxx:40
Analysis::AtlfInfo::Tau1P3PHypoCalFactor
void Tau1P3PHypoCalFactor(float c)
Definition: AtlfInfo.h:46
Analysis::AtlfInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Definition: AtlfInfo_p1.h:24
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::AtlfInfo_p1::m_distanceToTLepton
float m_distanceToTLepton
Definition: AtlfInfo_p1.h:36
AtlfInfoCnv_p1.h