|
ATLAS Offline Software
|
#include <LArDSPThresholdsCompleteCnv.h>
|
virtual LArDSPThrPersType * | createPersistent (LArDSPThrTransType *transObj) |
|
virtual LArDSPThrTransType * | createTransient () |
| method to be implemented by the developer. More...
|
|
virtual StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&pObj) override |
| Create a transient object from a POOL persistent representation. More...
|
|
virtual StatusCode | createRep (DataObject *pObj, IOpaqueAddress *&pAddr) override |
| Create a POOL persistent representation for a transient object. More...
|
|
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddr, DataObject *pObj) override |
| Create a POOL persistent representation for a transient object. More...
|
|
StatusCode objectToAttrListColl | ATLAS_NOT_THREAD_SAFE (COLL_T *obj, IOpaqueAddress *&pAddr, CondAttrListCollection *&attrListColl, Token *&token) |
| Write out objects stored in "obj" into POOL and save the tokens in a CondAttrListCollection, as well write out "obj" i.e. More...
|
|
StatusCode | attrListCollToObject (CondAttrListCollection *attrListColl, COLL_T *&obj) |
| Read in objects from POOL for the tokens stored CondAttrListCollection and save the objects in the output collection. More...
|
|
StatusCode | condMultChanCollImplToObject (const std::string &collImplToken, COLL_T *&obj) |
| Read in CondAttrListCollImpl and the objects for its tokens, saving them in the output collection. More...
|
|
virtual ELEM_P * | createPersistent (ELEM_T *obj) |
| method to be implemented by the developer. More...
|
|
virtual void | setToken (const std::string &token) override final |
| specialized version that adds persistency contextID to tokens (for reading) More...
|
|
template<class P > |
P * | poolReadObject () |
| Read object of type P. More...
|
|
ELEM_T * | poolReadObject () |
|
virtual StatusCode | transToPers (COLL_T *obj, ELEM_T *&persObj) override |
| Dummy methods not needed here. More...
|
|
virtual StatusCode | persToTrans (COLL_T *&transObj, ELEM_T *obj) override |
|
virtual StatusCode | initialize () |
| Gaudi Service Interface method implementations: More...
|
|
Placement | setPlacementForP (P &p, const std::string &key, const std::string &output) |
| Set POOL placement for type P. More...
|
|
virtual StatusCode | DataObjectToPers (DataObject *pObj, IOpaqueAddress *&pAddr) |
| Convert an object into Persistent. More...
|
|
virtual StatusCode | DataObjectToPool (IOpaqueAddress *pAddr, DataObject *pObj) |
| Write an object into POOL. More...
|
|
virtual StatusCode | PoolToDataObject (DataObject *&pObj, const Token *token, const std::string &key) |
| Read an object from POOL. More...
|
|
StatusCode | objectToPool (P *pObj, Token *&token, const std::string &key, const std::string &output) |
| Write an object into POOL returning its token. More...
|
|
StatusCode | poolToObject (const Token *&token, P *&pObj) |
| Read an object from POOL. More...
|
|
virtual bool | compareClassGuid (const Guid &clid) const |
| Compare POOL class GUID with the one of the object being read. More...
|
|
virtual Placement | setPlacement (const std::string &key, const std::string &output) |
| Set POOL placement. More...
|
|
virtual Placement | setPlacementWithType (const std::string &tname, const std::string &key, const std::string &output) |
| Set POOL placement hint for a given type. More...
|
|
virtual const DataObject * | getDataObject () const |
|
double | phiCorr (double phi) |
|
void | ipCorr (double d0, double z0, double &d0c, double &z0c, double phi0, double eta, double pt) |
|
|
std::string | m_nm |
| Message source name. More...
|
|
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More...
|
|
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More...
|
|
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More...
|
|
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More...
|
|
◆ CallMutex
◆ ClassMap
◆ ClassMapIt
◆ LArDSPThresholdsCompleteCnv()
LArDSPThresholdsCompleteCnv::LArDSPThresholdsCompleteCnv |
( |
ISvcLocator * |
svcloc | ) |
|
|
inline |
◆ addTrack()
◆ ATLAS_NOT_THREAD_SAFE()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
◆ attrListCollToObject()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
◆ classID()
◆ cleanUp()
StatusCode AthenaPoolConverter::cleanUp |
( |
const std::string & |
output | ) |
|
|
overridevirtualinherited |
Implement cleanUp for AthenaPoolConverter to do nothing.
Implements IAthenaPoolCleanUp.
Reimplemented in T_AthenaPoolCustomCnvWithKey< TRANS, PERS >, T_AthenaPoolCustomCnvWithKey< Analysis::MuonContainer, MuonContainer_PERS >, T_AthenaPoolCustomCnvWithKey< ElectronContainer, ElectronContainer_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_LocRecCorrODEvCollection, ALFA_LocRecCorrODEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TileCosmicMuonContainer, TileCosmicMuonContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigEMCluster, TrigEMCluster_PERS >, T_AthenaPoolCustomCnvWithKey< TrigMonConfigCollection, TrigMonConfigCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TileL2Container, TileL2Container_PERS >, T_AthenaPoolCustomCnvWithKey< TileBeamElemContainer, TileBeamElemContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TileMuContainer, TileMuContainer_PERS >, T_AthenaPoolCustomCnvWithKey< PhotonContainer, PhotonContainer_PERS >, T_AthenaPoolCustomCnvWithKey< Analysis ::TauDetailsContainer, TauDetailsContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigMonEvent, TrigMonEvent_PERS >, T_AthenaPoolCustomCnvWithKey< XAOD, XAOD >, T_AthenaPoolCustomCnvWithKey< AthExDecay, AthExDecay_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_ODDigitCollection, ALFA_ODDigitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TruthParticleContainer, TruthParticleContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigMonConfig, TrigMonConfig_PERS >, T_AthenaPoolCustomCnvWithKey< TileHitContainer, TileHitContainer_PERS >, T_AthenaPoolCustomCnvWithKey< AFP_SiDigiCollection, AFP_SiDigiCollection_PERS >, T_AthenaPoolCustomCnvWithKey< IParticleLinkContainer, IParticleLinkContainer_PERS >, T_AthenaPoolCustomCnvWithKey< AthExElephantino, AthExElephantino_PERS >, T_AthenaPoolCustomCnvWithKey< AthExFatObject, AthExFatObject_PERS >, T_AthenaPoolCustomCnvWithKey< AFP_SIDLocRecoEvCollection, AFP_SIDLocRecoEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< AFP_TDSimHitCollection, AFP_TDSimHitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_LocRecEvCollection, ALFA_LocRecEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< McEventCollection, McEventCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_ODHitCollection, ALFA_ODHitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TileHitVector, TileHitVector_PERS >, T_AthenaPoolCustomCnvWithKey< RecoTimingObj, RecoTimingObj_PERS >, T_AthenaPoolCustomCnvWithKey< Rec::MuonSpShowerContainer, MuonSpShowerContainer_PERS >, T_AthenaPoolCustomCnvWithKey< BCM_RDO_Container, BCM_RDO_Container_p0 >, T_AthenaPoolCustomCnvWithKey< ALFA_DigitCollection, ALFA_DigitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TileTTL1Container, TileTTL1Container_PERS >, T_AthenaPoolCustomCnvWithKey< ZdcRawChannelCollection, ZdcRawChannelCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_HitCollection, ALFA_HitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< SimulationHitCollection, SimulationHitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< MissingEtTruth, MissingEtTruth_PERS >, T_AthenaPoolCustomCnvWithKey< RingerRings, RingerRings_PERS >, T_AthenaPoolCustomCnvWithKey< MuonCaloEnergyContainer, MuonCaloEnergyContainer_PERS >, T_AthenaPoolCustomCnvWithKey< Analysis ::TauJetContainer, TauJetContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TileRawChannelContainer, TileRawChannelContainer_PERS >, T_AthenaPoolCustomCnvWithKey< AFP_SIDSimHitCollection, AFP_SIDSimHitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TileMuonReceiverContainer, TileMuonReceiverContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TRANS, TPCNV_CUR::Pers_t >, T_AthenaPoolCustomCnvWithKey< AFP_TDLocRecoEvCollection, AFP_TDLocRecoEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TrackRecordCollection, TrackRecordCollection_PERS >, T_AthenaPoolCustomCnvWithKey< LArHitFloatContainer, LArHitContainer_PERS >, T_AthenaPoolCustomCnvWithKey< MissingET, MissingET_PERS >, T_AthenaPoolCustomCnvWithKey< egDetailContainer, egDetailContainer_PERS >, T_AthenaPoolCustomCnvWithKey< CaloCalibrationHitContainer, CaloCalibrationHitContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigComposite, TrigComposite_PERS >, T_AthenaPoolCustomCnvWithKey< TrigTauCluster, TrigTauCluster_PERS >, T_AthenaPoolCustomCnvWithKey< TrigRoiDescriptor, TrigRoiDescriptor_PERS >, T_AthenaPoolCustomCnvWithKey< INav4MomAssocs, INav4MomAssocs_PERS >, T_AthenaPoolCustomCnvWithKey< CaloRingsContainer, CaloRingsContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TileDigitsContainer, TileDigitsContainer_PERS >, T_AthenaPoolCustomCnvWithKey< AUXSTORE, AUXSTORE >, T_AthenaPoolCustomCnvWithKey< ALFA_GloRecEvCollection, ALFA_GloRecEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< T, P >, T_AthenaPoolCustomCnvWithKey< LArHitContainer, LArHitContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigRNNOutput, TrigRNNOutput_PERS >, T_AthenaPoolCustomCnvWithKey< TrigTau, TrigTau_PERS >, T_AthenaPoolCustomCnvWithKey< TrigOperationalInfo, TrigOperationalInfo_PERS >, T_AthenaPoolCustomCnvWithKey< AFP_TDDigiCollection, AFP_TDDigiCollection_PERS >, T_AthenaPoolCustomCnvWithKey< MissingEtCalo, MissingEtCalo_PERS >, T_AthenaPoolCustomCnvWithKey< INav4MomLinkContainer, INav4MomLinkContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigTauTracksInfo, TrigTauTracksInfo_PERS >, T_AthenaPoolCustomCnvWithKey< eflowObjectContainer, eflowObjectContainer_p5 >, T_AthenaPoolCustomCnvWithKey< SiHitCollection, SiHitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_LocRecODEvCollection, ALFA_LocRecODEvCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TruthEtIsolationsContainer, TruthEtIsolationsContainer_PERS >, T_AthenaPoolCustomCnvWithKey< LArTTL1Container, LArTTL1Container_PERS >, T_AthenaPoolCustomCnvWithKey< ViewVector< DV >, ViewVector< DV > >, T_AthenaPoolCustomCnvWithKey< TRTUncompressedHitCollection, TRT_HitCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_CLinkEvent, ALFA_CLinkEvent_PERS >, T_AthenaPoolCustomCnvWithKey< TrigTauClusterDetails, TrigTauClusterDetails_PERS >, T_AthenaPoolCustomCnvWithKey< TrigMonEventCollection, TrigMonEventCollection_PERS >, T_AthenaPoolCustomCnvWithKey< egammaContainer, egammaContainer_PERS >, T_AthenaPoolCustomCnvWithKey< TrigOperationalInfoCollection, TrigOperationalInfoCollection_PERS >, T_AthenaPoolCustomCnvWithKey< TrigRoiDescriptorCollection, TrigRoiDescriptorCollection_PERS >, T_AthenaPoolCustomCnvWithKey< ALFA_LocRecCorrEvCollection, ALFA_LocRecCorrEvCollection_PERS >, and T_AthenaPoolCustomCnvWithKey< InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >.
Definition at line 275 of file AthenaPoolConverter.cxx.
276 ATH_MSG_DEBUG(
"AthenaPoolConverter cleanUp called for base class.");
277 return(StatusCode::SUCCESS);
◆ clear()
void Converter::clear |
( |
| ) |
|
|
inlineinherited |
◆ compareClassGuid()
|
protectedvirtualinherited |
Compare POOL class GUID with the one of the object being read.
- Parameters
-
- Returns
- true if the type of the object about to be read matches the GUID
◆ condMultChanCollImplToObject()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
Read in CondAttrListCollImpl and the objects for its tokens, saving them in the output collection.
- Parameters
-
collImplToken | [IN] CondAttrListCollImpl token |
obj | [OUT] pointer to the collection of objects. |
◆ createObj()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
overrideprotectedvirtualinherited |
Create a transient object from a POOL persistent representation.
- Parameters
-
pAddr | [IN] IOpaqueAddress of POOL persistent representation. |
pObj | [OUT] pointer to the transient object. |
Reimplemented from AthenaPoolConverter.
◆ createPersistent() [1/2]
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
protectedvirtualinherited |
◆ createPersistent() [2/2]
◆ createRep()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
overrideprotectedvirtualinherited |
Create a POOL persistent representation for a transient object.
- Parameters
-
pObj | [IN] pointer to the transient object. |
pAddr | [OUT] IOpaqueAddress of POOL persistent representation. |
Reimplemented from AthenaPoolConverter.
◆ createTransient()
method to be implemented by the developer.
It has to find out the type of the persistent object to be read (by comparing GUIDs), read it using poolReadObject(), call TLP converter to create a transient representation and return it. if the version 1 of poolReadObject is used, the persistent object HAS TO BE DELETED manually.
Reimplemented from T_AthenaPoolCoolMultChanCnv< COLL_T, ELEM_T, ELEM_P >.
Definition at line 26 of file LArDSPThresholdsCompleteCnv.cxx.
27 static const pool::Guid p0_guid(
"09607438-09CC-4E40-A1E2-23F0B021DF3D");
30 std::unique_ptr< LArDSPThresholdsSubset_p1 > col_vect( poolReadObject< LArDSPThresholdsSubset_p1 >() );
31 MsgStream
log(
msgSvc(),
"LArDSPThresholdsCompleteCnv" );
35 throw std::runtime_error(
"Unsupported persistent version of LArDSPThresholdsCompleteCnv");
◆ DataObjectToPers()
virtual StatusCode T_AthenaPoolCustCnv< COLL_T , ELEM_T >::DataObjectToPers |
( |
DataObject * |
pObj, |
|
|
IOpaqueAddress *& |
pAddr |
|
) |
| |
|
protectedvirtualinherited |
Convert an object into Persistent.
- Parameters
-
pObj | [IN] pointer to the transient object. |
key | [IN] StoreGate key (string) - placement hint to generate POOL container name |
Reimplemented from T_AthenaPoolCnvBase< COLL_T >.
◆ DataObjectToPool()
virtual StatusCode T_AthenaPoolCustCnv< COLL_T , ELEM_T >::DataObjectToPool |
( |
IOpaqueAddress * |
pAddr, |
|
|
DataObject * |
pObj |
|
) |
| |
|
protectedvirtualinherited |
Write an object into POOL.
- Parameters
-
pObj | [IN] pointer to the transient object. |
key | [IN] StoreGate key (string) - placement hint to generate POOL container name |
Reimplemented from T_AthenaPoolCnvBase< COLL_T >.
◆ detStore()
◆ fillRepRefs()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
overrideprotectedvirtualinherited |
Create a POOL persistent representation for a transient object.
- Parameters
-
pAddr | [IN] IOpaqueAddress of POOL persistent representation. |
pObj | [IN] pointer to the transient object. |
Reimplemented from AthenaPoolConverter.
◆ finalize()
StatusCode AthenaPoolConverter::finalize |
( |
| ) |
|
|
overridevirtualinherited |
◆ getDataObject()
const DataObject * AthenaPoolConverter::getDataObject |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ initialize()
|
protectedvirtualinherited |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ ipCorr()
void Converter::ipCorr |
( |
double |
d0, |
|
|
double |
z0, |
|
|
double & |
d0c, |
|
|
double & |
z0c, |
|
|
double |
phi0, |
|
|
double |
eta, |
|
|
double |
pt |
|
) |
| |
|
inlineprotectedinherited |
Definition at line 257 of file Converter.h.
261 double sd0 = (
d0 != 0 ?
d0/fabs(
d0) : 1);
262 double spt = (
pt != 0 ?
pt/fabs(
pt) : 1);
270 double rc = fabs(
pt)*15.0/(9.0*1.042);
276 double xd01,yd01,xd02,yd02;
279 xd01 = 0; yd01 =
rc+yc;
280 xd02 = 0; yd02 = -
rc+yc;
282 xd01 = xc+yc/xc*yc+sqrt(
pow((xc+yc/xc*yc),2)-xc*xc-yc*yc+rc*rc); yd01 = yc/xc*xd01;
283 xd02 = xc+yc/xc*yc-sqrt(
pow((xc+yc/xc*yc),2)-xc*xc-yc*yc+rc*rc); yd02 = yc/xc*xd02;
286 double r1 = sqrt(xd01*xd01+yd01*yd01);
287 double r2 = sqrt(xd02*xd02+yd02*yd02);
292 phiV = atan2(yd01,xd01);
294 phiV = atan2(yd02,xd02);
304 d0c = fabs(sqrt(xc*xc+yc*yc)-rc)*
sin(phiV-newphi);
307 double theta_save=
theta;
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ objectToPool()
Write an object into POOL returning its token.
- Parameters
-
pObj | [IN] pointer to the object to be written. |
token | [OUT] POOL token of the persistent representation. |
key | [IN] StoreGate key (string) - placement hint to generate POOL container name |
◆ persToTrans()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
overrideprotectedvirtualinherited |
◆ phiCorr()
double Converter::phiCorr |
( |
double |
phi | ) |
|
|
inlineprotectedinherited |
Definition at line 248 of file Converter.h.
250 if (
phi < -TMath::Pi())
phi += 2*TMath::Pi();
251 if (
phi > TMath::Pi())
phi -= 2*TMath::Pi();
◆ poolReadObject() [1/2]
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
template<class P >
Read object of type P.
This is an exception-throwing version of poolToObject() plus reading of all extending objects. Version 1 - (see createTransient() above)
- Returns
- object read from POOL (by pointer)
◆ poolReadObject() [2/2]
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
◆ PoolToDataObject()
|
protectedvirtualinherited |
Read an object from POOL.
- Parameters
-
pObj | [OUT] pointer to the transient object. |
token | [IN] POOL token of the persistent representation. |
key | [IN] SG key of the object being read. |
Reimplemented from T_AthenaPoolCnvBase< COLL_T >.
◆ poolToObject()
Read an object from POOL.
- Parameters
-
token | [IN] POOL token of the persistent representation. |
pObj | [OUT] pointer to the object read. |
◆ repSvcType()
long AthenaPoolConverter::repSvcType |
( |
| ) |
const |
|
overridevirtualinherited |
◆ selectTracks() [1/3]
Definition at line 177 of file Converter.h.
179 static int hpmap[20] = { 0, 1, 2, 7, 8, 9, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
184 while(muonitr!=muonend) {
186 bool hasInDet = (*muonitr)->hasInDetTrackParticle();
188 if(hasInDet) trackitr=(*muonitr)->inDetTrackParticle();
190 if(!hasInDet)
continue;
194 CLHEP::HepVector perigeeParams = measPer->parameters();
195 double pT = measPer->pT();
196 double eta = measPer->eta();
223 double dof = quality->quality->
numberDoF();
227 for (
int ih=0 ; ih<20 ; ih++ ) {
236 deta, dphi, dz0, dd0, dpT,
238 nStrawHits, nTrHits, bitmap, 0,
◆ selectTracks() [2/3]
Definition at line 111 of file Converter.h.
116 static int hpmap[20] = { 0, 1, 2, 7, 8, 9, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
118 while ( trackitr!=trackend ) {
122 CLHEP::HepVector perigeeParams = measPer->parameters();
123 double pT = measPer->pT();
124 double eta = measPer->eta();
147 bool expectBL =
false;
155 for (
int ih=0 ; ih<20 ; ih++ ) {
164 deta, dphi, dz0, dd0, dpT,
166 nStrawHits, nTrHits, bitmap, 0,
◆ selectTracks() [3/3]
Definition at line 56 of file Converter.h.
61 while ( trackitr!=trackend ) {
63 double eta = (*trackitr)->param()->eta();
64 double phi = (*trackitr)->param()->phi0();
65 double z0 = (*trackitr)->param()->z0();
66 double pT = (*trackitr)->param()->pT();
67 double d0 = (*trackitr)->param()->a0();
70 double deta = (*trackitr)->param()->eeta();
71 double dphi = (*trackitr)->param()->ephi0();
72 double dz0 = (*trackitr)->param()->ez0();
73 double dpT = (*trackitr)->param()->epT();
74 double dd0 = (*trackitr)->param()->ea0();
76 int algoid = (*trackitr)->algorithmId();
78 int nBlayerHits = ((*trackitr)->HitPattern() & 0x1);
79 int nPixelHits = 2*(*trackitr)->NPixelSpacePoints();
80 int nSctHits = 2*(*trackitr)->NSCT_SpacePoints();
81 int nStrawHits = (*trackitr)->NStrawHits();
82 int nTrHits = (*trackitr)->NTRHits();
85 bool expectBL =
false;
87 unsigned hitPattern = (*trackitr)->HitPattern();
88 unsigned multiPattern = 0;
90 double chi2 = (*trackitr)->chi2();
98 deta, dphi, dz0, dd0, dpT,
100 nStrawHits, nTrHits, hitPattern, multiPattern,
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setPlacement()
|
protectedvirtualinherited |
◆ setPlacementForP()
Set POOL placement for type P.
◆ setPlacementWithType()
Placement AthenaPoolConverter::setPlacementWithType |
( |
const std::string & |
tname, |
|
|
const std::string & |
key, |
|
|
const std::string & |
output |
|
) |
| |
|
protectedvirtualinherited |
Set POOL placement hint for a given type.
- Parameters
-
tname | [IN] type name. |
key | [IN] SG key. |
Definition at line 174 of file AthenaPoolConverter.cxx.
177 std::string::size_type pos1 =
output.find(
'[');
178 std::string outputConnectionSpec =
output.substr(0, pos1);
186 std::string containerName;
189 std::size_t colonPos = containerPrefix.find(
':');
190 if (colonPos != std::string::npos) {
191 dhContainerPrefix = containerPrefix.substr(0, colonPos + 1) + dhContainerPrefix;
197 std::string containerFriendPostfix;
198 while (pos1 != std::string::npos) {
199 const std::string::size_type pos2 =
output.find(
'=', pos1);
200 const std::string thisKey =
output.substr(pos1 + 1, pos2 - pos1 - 1);
201 const std::string::size_type pos3 =
output.find(
']', pos2);
202 const std::string
value =
output.substr(pos2 + 1, pos3 - pos2 - 1);
203 if (thisKey ==
"OutputCollection") {
204 dhContainerPrefix =
value;
205 }
else if (thisKey ==
"PoolContainerPrefix") {
206 containerPrefix =
value;
207 }
else if (thisKey ==
"TopLevelContainerName") {
208 containerNameHint =
value;
209 }
else if (thisKey ==
"SubLevelBranchName") {
210 branchNameHint =
value;
211 }
else if (thisKey ==
"PoolContainerFriendPostfix") {
212 containerFriendPostfix =
value;
214 pos1 =
output.find(
'[', pos3);
218 if( tname.compare(0, 10,
"DataHeader") == 0 ) {
219 if( tname.compare(10, 4,
"Form") == 0 ) {
220 containerName = dhContainerPrefix +
"Form" +
"(" + tname +
")";
222 if (
key[
key.size() - 1] ==
'/') {
223 containerName = dhContainerPrefix +
"(" +
key + tname +
")";
225 containerName = dhContainerPrefix +
"(" + tname +
")";
230 else if (tname.compare(0, 13,
"AttributeList") == 0) {
232 if( pool::ROOTRNTUPLE_StorageType.exactMatch(tech) ) {
237 tech = pool::ROOTTREE_StorageType.
type();
243 const std::string typeTok =
"<type>", keyTok =
"<key>";
244 containerName = containerPrefix + containerFriendPostfix + containerNameHint;
245 if (!branchNameHint.empty()) {
246 containerName +=
"(" + branchNameHint +
")";
248 const std::size_t pos1 = containerName.find(typeTok);
249 if (pos1 != std::string::npos) {
250 containerName.replace(pos1, typeTok.size(), tname);
252 const std::size_t pos2 = containerName.find(keyTok);
253 if (pos2 != std::string::npos) {
255 containerName.replace(pos2, keyTok.size(), tname);
257 containerName.replace(pos2, keyTok.size(),
key);
◆ setToken()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
finaloverrideprotectedvirtualinherited |
◆ storageType()
long AthenaPoolConverter::storageType |
( |
| ) |
|
|
staticinherited |
◆ tracks()
◆ transToPers()
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
|
overrideprotectedvirtualinherited |
◆ CnvFactory< LArDSPThresholdsCompleteCnv >
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_athenaPoolCnvSvc
◆ m_beamX
double Converter::m_beamX |
|
protectedinherited |
◆ m_beamY
double Converter::m_beamY |
|
protectedinherited |
◆ m_beamZ
double Converter::m_beamZ |
|
protectedinherited |
◆ m_branchNameHint
std::string AthenaPoolConverter::m_branchNameHint |
|
protectedinherited |
◆ m_classDesc
RootType AthenaPoolConverter::m_classDesc |
|
protectedinherited |
◆ m_classDescs
ClassMap AthenaPoolConverter::m_classDescs |
|
protectedinherited |
◆ m_classID
◆ m_className
std::string AthenaPoolConverter::m_className |
|
protectedinherited |
◆ m_containerNameHint
std::string AthenaPoolConverter::m_containerNameHint |
|
protectedinherited |
◆ m_containerPrefix
std::string AthenaPoolConverter::m_containerPrefix |
|
protectedinherited |
◆ m_conv_mut
◆ m_dataObject
const DataObject* AthenaPoolConverter::m_dataObject |
|
protectedinherited |
◆ m_detStore
◆ m_i_poolToken
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_persCtx
template<class COLL_T , class ELEM_T , class ELEM_P = ELEM_T>
◆ m_tracks
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
@ numberOfPixelHits
number of pixel layers on track with absence of hits
const DataObject * m_dataObject
void ipCorr(double d0, double z0, double &d0c, double &z0c, double phi0, double eta, double pt)
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Const iterator class for DataVector/DataList.
This class holds all the necessary information to guide the writing of an object in a physical place.
@ numberOfTRTHighThresholdHits
total number of TRT hits which pass the high threshold
Scalar phi() const
phi method
static constexpr const char * DataHeader
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Scalar eta() const
pseudorapidity method
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Scalar theta() const
theta method
const TrackSummary * trackSummary() const
accessor function for TrackSummary.
ServiceHandle< StoreGateSvc > m_detStore
static constexpr const char * EventTag
persistent class container of LArConditionsSubset for LArDSPThresholds data.
T_AthenaPoolCoolMultChanCnv< LArDSPThresholdsComplete, LArDSPThrTransType, LArDSPThrPersType > LArDSPThresholdsCompleteCnvBase
Placement & setContainerName(const std::string &containerName)
Set container name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
float nPixelHits(const U &p)
IMessageSvc * getMessageSvc(bool quiet=false)
int type() const
Access to full type.
@ numberOfBLayerHits
these are the hits in the 0th pixel layer?
double phiCorr(double phi)
msgSvc
Provide convenience handles for various services.
@ numberOfSCTHits
number of SCT holes
std::string m_containerPrefix
const FitQuality * fitQuality() const
accessor function for FitQuality.
double chi2(TH1 *h0, TH1 *h1)
std::string m_containerNameHint
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
Placement & setFileName(const std::string &fileName)
Set file name.
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
static constexpr const char * EventTag
MsgStream & msg() const
The standard message stream.
void addTrack(TIDA::Track *t)
static constexpr const char * DataHeader
@ numberOfTRTHits
number of TRT outliers
A summary of the information contained by a track.
const Trk::Perigee * measuredPerigee() const
Accessor method for Perigee.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DetectorType
enumerates the various detector types currently accessible from the isHit() method.
bool exactMatch(const DbType &typ) const
#define ATH_MSG_WARNING(x)
std::string m_branchNameHint
std::string m_nm
Message source name.
Placement & setTechnology(int technology)
Set technology type.
double chiSquared() const
returns the of the overall track fit
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
constexpr int pow(int base, int exp) noexcept
std::vector< TIDA::Track * > m_tracks
float nSiHits(const U &p)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const