Skip to content

Remove commented const_cast in TrigTauClusterCnv_p1.cxx

Susumu Oda requested to merge oda/athena:master-TrigCaloEventTPCnv-v2 into master

http://goetz.web.cern.ch/goetz/mutable_2019-07-13.html#Cnv_Trigger,

nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +35

    33	
    34	  for( int i=0; i<NUMEMSAMP; i++ ){
    35	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMRadius(i,persObj->m_EMRadius[i]);
    36	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWide(i,persObj->m_EMenergyNor[i]);
    37	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyNarrow(i,persObj->m_EMenergyNar[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +36

    34	  for( int i=0; i<NUMEMSAMP; i++ ){
    35	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMRadius(i,persObj->m_EMRadius[i]);
    36	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWide(i,persObj->m_EMenergyNor[i]);
    37	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyNarrow(i,persObj->m_EMenergyNar[i]);
    38	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyMedium(i,persObj->m_EMenergyWid[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +37

    35	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMRadius(i,persObj->m_EMRadius[i]);
    36	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWide(i,persObj->m_EMenergyNor[i]);
    37	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyNarrow(i,persObj->m_EMenergyNar[i]);
    38	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyMedium(i,persObj->m_EMenergyWid[i]);
    39	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWidth(i,persObj->m_EMenergyWidth[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +38

    36	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWide(i,persObj->m_EMenergyNor[i]);
    37	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyNarrow(i,persObj->m_EMenergyNar[i]);
    38	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyMedium(i,persObj->m_EMenergyWid[i]);
    39	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWidth(i,persObj->m_EMenergyWidth[i]);
    40	
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +39

    37	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyNarrow(i,persObj->m_EMenergyNar[i]);
    38	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyMedium(i,persObj->m_EMenergyWid[i]);
    39	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setEMenergyWidth(i,persObj->m_EMenergyWidth[i]);
    40	
    41	  }
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +44

    42	
    43	  for( int i=0; i<NUMHADSAMP; i++ ){
    44	//    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADRadius(i,persObj->m_HADRadius[i]);
    45	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWide(i,persObj->m_HADenergyNor[i]);
    46	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyNarrow(i,persObj->m_HADenergyNar[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +45

    43	  for( int i=0; i<NUMHADSAMP; i++ ){
    44	//    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADRadius(i,persObj->m_HADRadius[i]);
    45	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWide(i,persObj->m_HADenergyNor[i]);
    46	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyNarrow(i,persObj->m_HADenergyNar[i]);
    47	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyMedium(i,persObj->m_HADenergyWid[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +46

    44	//    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADRadius(i,persObj->m_HADRadius[i]);
    45	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWide(i,persObj->m_HADenergyNor[i]);
    46	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyNarrow(i,persObj->m_HADenergyNar[i]);
    47	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyMedium(i,persObj->m_HADenergyWid[i]);
    48	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWidth(i,persObj->m_HADenergyWidth[i]);
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +47

    45	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWide(i,persObj->m_HADenergyNor[i]);
    46	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyNarrow(i,persObj->m_HADenergyNar[i]);
    47	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyMedium(i,persObj->m_HADenergyWid[i]);
    48	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWidth(i,persObj->m_HADenergyWidth[i]);
    49	
nightly/master/2019-07-13T2149:Trigger/TrigEvent/TrigCaloEventTPCnv/src/TrigTauClusterCnv_p1.cxx +48

    46	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyNarrow(i,persObj->m_HADenergyNar[i]);
    47	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyMedium(i,persObj->m_HADenergyWid[i]);
    48	    (const_cast<TrigTauClusterDetails&> (*pDetails)).setHADenergyWidth(i,persObj->m_HADenergyWidth[i]);
    49	
    50	  }
Edited by Susumu Oda

Merge request reports

Loading