|
ATLAS Offline Software
|
Go to the documentation of this file.
25 #include "GaudiKernel/GaudiException.h"
30 #define MSG_DEBUG(log, x) \
31 do { if (log.level()<=MSG::DEBUG) { log << MSG::DEBUG << x << endmsg; } } while (0)
38 egDetailContainer_p1::const_iterator
it = pers->begin();
40 for( ;
it != pers->end(); ++
it ){
42 const std::vector<float>& egParams =
it->m_egDetailFloatParams;
43 const std::vector<unsigned int>& egEnum =
it->m_egDetailEnumParams;
45 assert( egEnum.size() == egParams.size() );
47 if (
it->m_className ==
"EMShower" ) {
50 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
55 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
56 <<
" Index " << egEnum[
i] <<
endmsg;
64 else if (
it->m_className ==
"EMTrackMatch" ) {
67 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
77 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
86 else if (
it->m_className ==
"EMConvert" ) {
89 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
94 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
95 <<
" Index " << egEnum[
i] <<
endmsg;
103 else if (
it->m_className ==
"EMBremFit" ) {
106 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
111 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
112 <<
" Index " << egEnum[
i] <<
endmsg;
119 else if (
it->m_className ==
"EMTrackFit" ) {
122 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
127 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
128 <<
" Index " << egEnum[
i] <<
endmsg;
136 else if (
it->m_className ==
"EMErrorDetail" ) {
139 for (
unsigned int i=0;
i< egEnum.size();
i++ ) {
144 msg << MSG::ERROR <<
"Read unknown parameter for " <<
it->m_className
145 <<
" Index " << egEnum[
i] <<
endmsg;
154 msg << MSG::ERROR <<
"Read unknown egDetail type: " <<
it->m_className <<
endmsg;
161 MSG_DEBUG(
msg,
"finished egDetailContainer perstoTrans");
169 throw GaudiException(
"Deprecated method, we have evolved to use egDetail_p2.Please migrate to use egDetailContainerCnv_p2::transToPers",
"egDetailContainerCnv_p1::transToPers", StatusCode::FAILURE);
virtual void persToTrans(const egDetailContainer_p1 *persObj, egDetailContainer *transObj, MsgStream &msg)
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
general set method for parameters
virtual bool hasParameter(egammaParameters::ParamDef) const
virtual bool hasParameter(egammaParameters::ParamDef) const override
virtual bool hasParameter(egammaParameters::ParamDef) const
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
general set method for parameters
virtual bool hasParameter(egammaParameters::ParamDef) const
virtual bool hasParameter(egammaParameters::ParamDef) const
virtual void transToPers(const egDetailContainer *transObj, egDetailContainer_p1 *persObj, MsgStream &msg)
void set_linkIndex(int)
Index of track this EMTrackFit is associated with.
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
void clear()
Erase all the elements in the collection.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
general set method for parameters
#define MSG_DEBUG(log, x)
@ EtaCorrMag
eta of the track extrapolated to the first sampling (NB : should be equivalent to etaSampling1
virtual void set_linkIndex(int value) override
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
virtual bool hasParameter(egammaParameters::ParamDef) const
void set_linkIndex(int)
Set link index.
@ etaSampling1
eta position at sampling 1 for track extrapolated from the last hit.
@ EoverP
ratio of the cluster energy and the track momentum
void set_parameter(egammaParameters::ParamDef, double, bool overwrite=false)
general parameter setting