ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
JetBadChanCorrTool Class Reference

JetBadChanCorrTool. More...

#include <JetBadChanCorrTool.h>

Inheritance diagram for JetBadChanCorrTool:
Collaboration diagram for JetBadChanCorrTool:

Classes

class  ProfileData
 

Public Member Functions

 JetBadChanCorrTool (const std::string &name)
 
virtual ~JetBadChanCorrTool ()
 
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function. More...
 
virtual StatusCode decorate (const xAOD::JetContainer &jets) const override
 Decorate a jet collection without otherwise modifying it. More...
 
virtual StatusCode setupEvent ()
 
virtual void print () const
 Print the state of the tool. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 
virtual StatusCode modify (xAOD::JetContainer &jets) const override final
 Concrete implementation of the function inherited from IJetModifier. More...
 

Protected Member Functions

StatusCode correctionFromClustersBadCells (const xAOD::JetContainer &jets) const
 
StatusCode correctionFromCellsInJet (const xAOD::JetContainer &jets, const jet::CaloCellFastMap *badCellMap) const
 
float correctionFromCellsInCone (const xAOD::Jet *jet, const jet::CaloCellFastMap *badCellMap) const
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

double getProfile (double pt, double dr, int sample, double eta, double phi) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ServiceHandle< ITHistSvc > m_thistSvc
 
Gaudi::Property< std::string > m_jetContainerName {this, "JetContainer", "", "SG key for the input jet container"}
 
Gaudi::Property< int > m_nBadCellLimit {this, "NBadCellLimit", 10000, "Limit to calculate moments"}
 
Gaudi::Property< std::string > m_streamName {this, "StreamName", "/JetBadChanCorrTool/", "Stream name"}
 
Gaudi::Property< std::string > m_profileName {this, "ProfileName", "JetBadChanCorrTool.root", "Profile name"}
 
Gaudi::Property< std::string > m_profileTag {this, "ProfileTag", "", "Profile tag"}
 
Gaudi::Property< bool > m_useCone {this, "UseCone", true, "Use cone?"}
 
Gaudi::Property< bool > m_useClusters {this, "UseClusters", false, "Use clusters?"}
 
SG::ReadHandleKey< jet::CaloCellFastMapm_badCellMap_key {this, "MissingCellMap", "MissingCaloCellsMap", "SG key for missing cell map"}
 
SG::WriteDecorHandleKey< xAOD::JetContainerm_corrCellKey {this, "CorrCellDecorKey", "BchCorrCell", "SG key for cell level decoration"}
 
SG::WriteDecorHandleKey< xAOD::JetContainerm_corrDotxKey {this, "CorrDotxDecorKey", "BchCorrDotx", "SG key for DOTX decoration"}
 
SG::WriteDecorHandleKey< xAOD::JetContainerm_corrJetKey {this, "CorrJetDecorKey", "BchCorrJet", "SG key for jet level decoration"}
 
SG::WriteDecorHandleKey< xAOD::JetContainerm_corrJetForCellKey {this, "CorrJetForCellDecorKey", "BchCorrJetForCell", "SG key for JetForCell decoration"}
 
std::vector< ProfileDatam_profileDatas [CaloCell_ID::Unknown]
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

JetBadChanCorrTool.

The energy fraction of dead cells are estimated by jet-level estimator using jet profile. Some cells are already corrected in cell-level using neighboring cells, so this fraction is calculated. The estimation by jet-level for those cells corrected in cell-level is also stored to see the difference or combined the corrections.

BCH_CORR_JET= jet level estimation of the energy fraction of dead cells BCH_CORR_CELL= cell level correction, which is already corrected BCH_CORR_JET_FORCELL= jet level estimation for the corrected cells in cell level

The relation and usage of the moment is jet = jet already corrected in cell level jet x ( 1 - BCH_CORR_CELL ) = jet without cell level correction jet x ( 1 - BCH_CORR_CELL + BCH_CORR_JET ) = jet corrected by jet level estimation jet x ( 1 + BCH_CORR_JET - BCH_CORR_JET_FORCELL ) = jet with cell level correction and corrected in jet level for not covered cells

Properties:

Name Type Default

Description

ProcessNJetMax 999999
NBadCellLimit 10000 limit to calculate the moments, if exceed, giving up the calculation ie) when Calorimeter off
AttachCorrCell True switch to attach BCH_CORR_CELL
AttachCorrDOTX True switch to attach BCH_CORR_DOTX
AttachCorrJet True switch to attach BCH_CORR_JET
AttachCorrJetForCell True

switch to attach BCH_CORR_JET_FORCELL

StreamName "/JetBadChanCorrTool/" name of stream name
ProfileName "JetBadChanCorrTool.root" name of profile data
ProfileTag "" tag to select profile,"" for all in file
UseCone True boundary of correction, cone or only associated cells
ConeDr 0.4 boundary of correction in case UseCone=True
UseCalibScale False scale for calculation of the contribution of bad cells
CellCalibrator

calibration tool for cell-level correction

Definition at line 51 of file JetBadChanCorrTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ JetBadChanCorrTool()

JetBadChanCorrTool::JetBadChanCorrTool ( const std::string &  name)

Definition at line 29 of file JetBadChanCorrTool.cxx.

29  :
31  m_thistSvc( "THistSvc", name )
32 {
33  declareInterface<IJetDecorator>(this);
34 }

◆ ~JetBadChanCorrTool()

JetBadChanCorrTool::~JetBadChanCorrTool ( )
virtualdefault

Member Function Documentation

◆ correctionFromCellsInCone()

float JetBadChanCorrTool::correctionFromCellsInCone ( const xAOD::Jet jet,
const jet::CaloCellFastMap badCellMap 
) const
protected

Definition at line 247 of file JetBadChanCorrTool.cxx.

247  {
248 
249  ATH_MSG_DEBUG( " Missing cells for cone search "<< badCellMap->size() << " jet="<< jet->index() << " R="
250  << jet->getSizeParameter() << " input="<< jet->getInputType() << " jet_eta="<<jet->eta() ) ;
251 
252  double corr_jet_cone=0;
253 
254  double rawPt = jet->jetP4(xAOD::JetEMScaleMomentum).Pt();
255 
256  double jeteta = jet->eta();
257  double jetphi = jet->phi();
258  std::vector<jet::CellPosition> closeCells = badCellMap->cellsInDeltaR(jeteta,jetphi, jet->getSizeParameter() );
259  std::vector<jet::CellPosition>::iterator itr = closeCells.begin();
260  std::vector<jet::CellPosition>::iterator itrE = closeCells.end();
261 
262  for(; itr!=itrE; ++itr){
263 
264  double cell_eta = itr->x();
265  double cell_phi = itr->phi();
266 
267  CaloCell_ID::CaloSample sampling = itr->sampling();
268 
269  double dr = xAOD::P4Helpers::deltaR(jeteta, jetphi, cell_eta, cell_phi);
270  double frac_cell = getProfile(rawPt, dr, sampling, cell_eta, cell_phi);
271 
272  corr_jet_cone += frac_cell;
273  }
274 
275  return corr_jet_cone;
276 }

◆ correctionFromCellsInJet()

StatusCode JetBadChanCorrTool::correctionFromCellsInJet ( const xAOD::JetContainer jets,
const jet::CaloCellFastMap badCellMap 
) const
protected

Definition at line 165 of file JetBadChanCorrTool.cxx.

165  {
166 
171 
172  for(const xAOD::Jet* jet : jets){
173 
175  double rawPt = p4.Pt();
176  double rawE = p4.E();
177 
178  // jet moments, fraction
179  double corr_jet_associate=0;
180  double corr_jet_forcell=0;
181  double corr_cell=0;
182  double corr_dotx=0;
183 
186 
187  for( ;cellIt!=cellItE; ++cellIt) {
188 
189  const CaloDetDescrElement * dde = (*cellIt)->caloDDE();
190  const CaloCell *cell = *cellIt;
191  double cellWeight = cellIt.weight();
192 
193  double cell_energy = cell->e() * cellWeight;
194 
195  CaloCell_ID::CaloSample sampling = dde->getSampling();
196 
197  bool considerBad = cell->badcell();
198  // for bad channels in jet
199  if(considerBad){
200 
201  // determine if this comes from a deadOTX
202  bool isOTX = false;
203  if(!(dde->is_tile()))
204  if(cell->provenance() & 0x0200)
205  isOTX = true;
206 
207  double dr = xAOD::P4Helpers::deltaR(jet->eta(),jet->phi(),dde->eta(), dde->phi());
208  double frac_cell = getProfile(rawPt, dr, sampling, dde->eta(), dde->phi());
209 
210  double frac = frac_cell * cellWeight;
211 
212  corr_jet_associate += frac;
213 
214  // corrected in cell-level
215  if(cell_energy!=0){
216  // for cryo.
217  if(isOTX)
218  corr_dotx += cell_energy;
219  else
220  corr_cell += cell_energy;
221 
222  corr_jet_forcell += frac;
223  }
224  }
225  } // loop over cells
226 
227  const double inv_rawE = 1. / rawE;
228  corr_cell *= inv_rawE;
229  corr_dotx *= inv_rawE;
230  ATH_MSG( DEBUG ) << "pt=" << jet->pt()/GeV << " eta=" << jet->eta() << " phi=" << jet->phi()
231  << " BCH_CORR_CELL=" << corr_cell
232  << " BCH_CORR_DOTX=" << corr_dotx
233  << " BCH_CORR_JET=" << corr_jet_associate
234  << " BCH_CORR_JET_FORCELL=" << corr_jet_forcell << endmsg;
235 
236  corrCellHandle(*jet) = corr_cell;
237  corrDotxHandle(*jet) = corr_dotx;
238  corrJetForCellHandle(*jet) = corr_jet_forcell;
239  if(m_useCone)
240  corrJetHandle(*jet) = correctionFromCellsInCone(jet, badCellMap);
241  else
242  corrJetHandle(*jet) = corr_jet_associate;
243  }
244  return StatusCode::SUCCESS;
245 }

◆ correctionFromClustersBadCells()

StatusCode JetBadChanCorrTool::correctionFromClustersBadCells ( const xAOD::JetContainer jets) const
protected

Definition at line 278 of file JetBadChanCorrTool.cxx.

278  {
279 
281 
282  for(const xAOD::Jet* jet : jets){
283 
284  double corrCell=0;
285 
286  size_t nconstit=jet->numConstituents();
287  for(size_t i=0; i<nconstit; i++) {
288  // use the raw constituents since we're interested only in one moment :
289  const xAOD::IParticle* constit = jet->rawConstituent(i);
290  if( constit->type() != xAOD::Type::CaloCluster ) continue;
291  double badE;
292  bool v = static_cast<const xAOD::CaloCluster*>(constit)->retrieveMoment( xAOD::CaloCluster::ENG_BAD_CELLS, badE);
293  if(v) corrCell += badE;
294  }
295 
296  double rawE = jet->jetP4(xAOD::JetEMScaleMomentum).E();
297  if(rawE==0) corrCellHandle(*jet) = 0;
298  else corrCellHandle(*jet) = corrCell / rawE;
299  }
300  return StatusCode::SUCCESS;
301 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ decorate()

StatusCode JetBadChanCorrTool::decorate ( const xAOD::JetContainer jets) const
overridevirtual

Decorate a jet collection without otherwise modifying it.

Implements IJetDecorator.

Definition at line 134 of file JetBadChanCorrTool.cxx.

135 {
136 
138 
139  auto handle = SG::makeHandle (m_badCellMap_key);
140  if (!handle.isValid()){
141  ATH_MSG_ERROR("Could not retieve bad cell map " << m_badCellMap_key.key());
142  return StatusCode::FAILURE;
143  }
144 
145  const auto *badCellMap = handle.cptr();
146 
147  // number of bad cells exceed the limit, set moments -1 and skip
148  if((int) badCellMap->cells().size() >m_nBadCellLimit){
153  for(const xAOD::Jet* jet : jets){
154  corrCellHandle(*jet) = -1.;
155  corrDotxHandle(*jet) = -1.;
156  corrJetHandle(*jet) = -1.;
157  corrJetForCellHandle(*jet) = -1.;
158  }
159  return StatusCode::SUCCESS;
160  }
161 
162  return correctionFromCellsInJet(jets, badCellMap);
163 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getProfile()

double JetBadChanCorrTool::getProfile ( double  pt,
double  dr,
int  sample,
double  eta,
double  phi 
) const
private

Definition at line 303 of file JetBadChanCorrTool.cxx.

303  {
304  std::vector<ProfileData>::const_iterator itr =m_profileDatas[sample].begin();
305  std::vector<ProfileData>::const_iterator itrE =m_profileDatas[sample].end();
306  for(; itr!=itrE; ++itr){
307  if((*itr).match(pt/GeV,sample,eta,phi)){
308  return (*itr).frac(dr);
309  }
310  }
311  return 0;
312 }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ initialize()

StatusCode JetBadChanCorrTool::initialize ( )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 39 of file JetBadChanCorrTool.cxx.

40 {
41  ATH_MSG_DEBUG("initializing version with data handles");
42 
43  if(!m_useClusters){
44  std::string fname = PathResolver::find_file(m_profileName, "DATAPATH");
45 
46  if(fname.empty()){
47  ATH_MSG(ERROR) << "Could not get file " << m_profileName << endmsg;
48  return StatusCode::FAILURE;
49  }
50  TFile tf(fname.c_str());
51  if(!tf.IsOpen()){
52  ATH_MSG( ERROR ) << "Could not open file " << fname << endmsg;
53  return StatusCode::FAILURE;
54  }
55  // already registered hists
56  std::vector<std::string> histsInSvc = m_thistSvc->getHists();
57 
58  TListIter next(tf.GetListOfKeys());
59  TObject *obj;
60  while((obj = next())) {
61  std::string hname=obj->GetName();
62  if(hname.find('_')==std::string::npos) continue;
63  std::string tag = hname.substr(0,hname.find('_'));
64  std::string para = hname.substr(hname.find('_')+1);
65  std::string location = m_streamName+hname;
66 
67  if(m_profileTag=="" || m_profileTag==tag){
68  // read in histo not registered yet
69  if(find(histsInSvc.begin(),histsInSvc.end(),location)==histsInSvc.end()){
70  StatusCode sc = m_thistSvc->regHist(location);
71  if(sc.isFailure()){
72  ATH_MSG( ERROR ) << "failed to read histo " << location << endmsg;
73  return StatusCode::FAILURE;
74  }
75  }
76  int sample=0;
77  double ptMin=0;
78  double ptMax=9999;
79  double etaMin=0;
80  double etaMax=5.0;
81  double phiMin=-M_PI;
82  double phiMax=M_PI;
83  int ret = sscanf(para.c_str(),"sample%d_pt%lf_%lf_eta%lf_%lf_phi%lf_%lf",
84  &sample,&ptMin,&ptMax,&etaMin,&etaMax,&phiMin,&phiMax);
85 
86  if(ret<1 || sample<0 || sample>=CaloCell_ID::Unknown) {
87  ATH_MSG( DEBUG ) << "Could not understand the name of hist " << obj->GetName() << endmsg;
88  continue;
89  }
90 
91  TH1* th=nullptr;
92  StatusCode sc = m_thistSvc->getHist(location,th);
93  if(sc.isFailure()){
94  ATH_MSG( ERROR ) << "failed to get histo " << location << endmsg;
95  return StatusCode::FAILURE;
96  }
97  m_profileDatas[sample].emplace_back((TH1D*)th,sample,ptMin,ptMax,etaMin,etaMax,phiMin,phiMax);
98  ATH_MSG( DEBUG ) << "read hist=" << th->GetName()
99  << " tag=" << tag << " sample=" << sample
100  << " ptMin=" << ptMin << " ptMax=" << ptMax
101  << " etaMin=" << etaMin << " etaMax=" << etaMax
102  << " phiMin=" << phiMin << " phiMax=" << phiMax << endmsg;
103  }
104  }
105  }
106 
107  if(m_jetContainerName.empty()){
108  ATH_MSG_ERROR("JetBadChanCorrTool needs to have its input jet container name configured!");
109  return StatusCode::FAILURE;
110  }
111 
113 
118 
119  ATH_CHECK(m_corrCellKey.initialize());
120  // These 3 aren't used if we're configured to use clusters
121  ATH_CHECK(m_corrDotxKey.initialize(!m_useClusters));
122  ATH_CHECK(m_corrJetKey.initialize(!m_useClusters));
124 
125  return StatusCode::SUCCESS;
126 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ modify()

virtual StatusCode IJetDecorator::modify ( xAOD::JetContainer jets) const
inlinefinaloverridevirtualinherited

Concrete implementation of the function inherited from IJetModifier.

Implements IJetModifier.

Definition at line 32 of file IJetDecorator.h.

32 {return decorate(jets);};

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setupEvent()

StatusCode JetBadChanCorrTool::setupEvent ( )
virtual

Definition at line 128 of file JetBadChanCorrTool.cxx.

129 {
130  return StatusCode::SUCCESS;
131 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_badCellMap_key

SG::ReadHandleKey<jet::CaloCellFastMap> JetBadChanCorrTool::m_badCellMap_key {this, "MissingCellMap", "MissingCaloCellsMap", "SG key for missing cell map"}
private

Definition at line 89 of file JetBadChanCorrTool.h.

◆ m_corrCellKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JetBadChanCorrTool::m_corrCellKey {this, "CorrCellDecorKey", "BchCorrCell", "SG key for cell level decoration"}
private

Definition at line 90 of file JetBadChanCorrTool.h.

◆ m_corrDotxKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JetBadChanCorrTool::m_corrDotxKey {this, "CorrDotxDecorKey", "BchCorrDotx", "SG key for DOTX decoration"}
private

Definition at line 91 of file JetBadChanCorrTool.h.

◆ m_corrJetForCellKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JetBadChanCorrTool::m_corrJetForCellKey {this, "CorrJetForCellDecorKey", "BchCorrJetForCell", "SG key for JetForCell decoration"}
private

Definition at line 93 of file JetBadChanCorrTool.h.

◆ m_corrJetKey

SG::WriteDecorHandleKey<xAOD::JetContainer> JetBadChanCorrTool::m_corrJetKey {this, "CorrJetDecorKey", "BchCorrJet", "SG key for jet level decoration"}
private

Definition at line 92 of file JetBadChanCorrTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_jetContainerName

Gaudi::Property<std::string> JetBadChanCorrTool::m_jetContainerName {this, "JetContainer", "", "SG key for the input jet container"}
private

Definition at line 78 of file JetBadChanCorrTool.h.

◆ m_nBadCellLimit

Gaudi::Property<int> JetBadChanCorrTool::m_nBadCellLimit {this, "NBadCellLimit", 10000, "Limit to calculate moments"}
private

Definition at line 79 of file JetBadChanCorrTool.h.

◆ m_profileDatas

std::vector<ProfileData> JetBadChanCorrTool::m_profileDatas[CaloCell_ID::Unknown]
private

Definition at line 131 of file JetBadChanCorrTool.h.

◆ m_profileName

Gaudi::Property<std::string> JetBadChanCorrTool::m_profileName {this, "ProfileName", "JetBadChanCorrTool.root", "Profile name"}
private

Definition at line 83 of file JetBadChanCorrTool.h.

◆ m_profileTag

Gaudi::Property<std::string> JetBadChanCorrTool::m_profileTag {this, "ProfileTag", "", "Profile tag"}
private

Definition at line 84 of file JetBadChanCorrTool.h.

◆ m_streamName

Gaudi::Property<std::string> JetBadChanCorrTool::m_streamName {this, "StreamName", "/JetBadChanCorrTool/", "Stream name"}
private

Definition at line 82 of file JetBadChanCorrTool.h.

◆ m_thistSvc

ServiceHandle<ITHistSvc> JetBadChanCorrTool::m_thistSvc
private

Definition at line 76 of file JetBadChanCorrTool.h.

◆ m_useClusters

Gaudi::Property<bool> JetBadChanCorrTool::m_useClusters {this, "UseClusters", false, "Use clusters?"}
private

Definition at line 87 of file JetBadChanCorrTool.h.

◆ m_useCone

Gaudi::Property<bool> JetBadChanCorrTool::m_useCone {this, "UseCone", true, "Use cone?"}
private

Definition at line 86 of file JetBadChanCorrTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
jet::JetCellAccessor::end
static const_iterator end(const xAOD::Jet *jet)
Definition: JetCellAccessor.cxx:81
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
jet::JetCellAccessor::const_iterator
Definition: JetCellAccessor.h:43
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
JetBadChanCorrTool::m_useClusters
Gaudi::Property< bool > m_useClusters
Definition: JetBadChanCorrTool.h:87
ATH_MSG
#define ATH_MSG(lvl)
Definition: AthMsgStreamMacros.h:38
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
PathResolver::find_file
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Definition: PathResolver.cxx:251
dqt_zlumi_pandas.hname
string hname
Definition: dqt_zlumi_pandas.py:279
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
JetBadChanCorrTool::m_profileTag
Gaudi::Property< std::string > m_profileTag
Definition: JetBadChanCorrTool.h:84
JetBadChanCorrTool::m_corrCellKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_corrCellKey
Definition: JetBadChanCorrTool.h:90
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
python.Constants.ERROR
int ERROR
Definition: Control/AthenaCommon/python/Constants.py:18
test_pyathena.pt
pt
Definition: test_pyathena.py:11
M_PI
#define M_PI
Definition: ActiveFraction.h:11
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
JetBadChanCorrTool::m_badCellMap_key
SG::ReadHandleKey< jet::CaloCellFastMap > m_badCellMap_key
Definition: JetBadChanCorrTool.h:89
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
xAOD::IParticle::type
virtual Type::ObjectType type() const =0
The type of the object as a simple enumeration.
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
JetBadChanCorrTool::m_corrDotxKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_corrDotxKey
Definition: JetBadChanCorrTool.h:91
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
JetBadChanCorrTool::m_corrJetKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_corrJetKey
Definition: JetBadChanCorrTool.h:92
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
JetTiledMap::TiledEtaPhiMap::size
unsigned int size() const
Definition: TiledEtaPhiMap.h:103
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
JetBadChanCorrTool::m_streamName
Gaudi::Property< std::string > m_streamName
Definition: JetBadChanCorrTool.h:82
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
JetBadChanCorrTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: JetBadChanCorrTool.h:78
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
JetBadChanCorrTool::m_profileDatas
std::vector< ProfileData > m_profileDatas[CaloCell_ID::Unknown]
Definition: JetBadChanCorrTool.h:131
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
python.TriggerHandler.th
th
Definition: TriggerHandler.py:296
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
jet::CaloCellFastMap::cellsInDeltaR
std::vector< CellPosition > cellsInDeltaR(double eta, double phi, double r) const
Definition: MissingCellListTool.h:92
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:113
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52
lumiFormat.i
int i
Definition: lumiFormat.py:85
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
xAOD::P4Helpers::deltaR
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
Definition: xAODP4Helpers.h:150
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
checkxAOD.frac
frac
Definition: Tools/PyUtils/bin/checkxAOD.py:259
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
JetBadChanCorrTool::m_nBadCellLimit
Gaudi::Property< int > m_nBadCellLimit
Definition: JetBadChanCorrTool.h:79
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
jet::JetCellAccessor::begin
static const_iterator begin(const xAOD::Jet *jet)
Definition: JetCellAccessor.cxx:76
xAOD::CaloCluster_v1::ENG_BAD_CELLS
@ ENG_BAD_CELLS
Total em-scale energy of bad cells in this cluster.
Definition: CaloCluster_v1.h:148
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CaloDetDescrElement::is_tile
bool is_tile() const
cell belongs to Tile
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:442
xAOD::JetEMScaleMomentum
@ JetEMScaleMomentum
Definition: JetTypes.h:28
JetBadChanCorrTool::getProfile
double getProfile(double pt, double dr, int sample, double eta, double phi) const
Definition: JetBadChanCorrTool.cxx:303
xAOD::JetFourMom_t
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Definition: JetTypes.h:17
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
JetBadChanCorrTool::m_profileName
Gaudi::Property< std::string > m_profileName
Definition: JetBadChanCorrTool.h:83
JetBadChanCorrTool::correctionFromClustersBadCells
StatusCode correctionFromClustersBadCells(const xAOD::JetContainer &jets) const
Definition: JetBadChanCorrTool.cxx:278
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetBadChanCorrTool::correctionFromCellsInCone
float correctionFromCellsInCone(const xAOD::Jet *jet, const jet::CaloCellFastMap *badCellMap) const
Definition: JetBadChanCorrTool.cxx:247
a
TList * a
Definition: liststreamerinfos.cxx:10
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
h
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
IJetDecorator::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const =0
Decorate a jet collection without otherwise modifying it.
CaloDetDescrElement::getSampling
CaloCell_ID::CaloSample getSampling() const
cell sampling
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:395
JetBadChanCorrTool::correctionFromCellsInJet
StatusCode correctionFromCellsInJet(const xAOD::JetContainer &jets, const jet::CaloCellFastMap *badCellMap) const
Definition: JetBadChanCorrTool.cxx:165
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
JetBadChanCorrTool::m_useCone
Gaudi::Property< bool > m_useCone
Definition: JetBadChanCorrTool.h:86
JetBadChanCorrTool::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: JetBadChanCorrTool.h:76
jet::JetCellAccessor::const_iterator::weight
weight_t weight() const
Accessor for weight associated to this cell.
Definition: JetCellAccessor.h:54
CaloDetDescrElement::eta
float eta() const
cell eta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:344
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
CaloDetDescrElement::phi
float phi() const
cell phi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:346
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
python.PyAthena.obj
obj
Definition: PyAthena.py:132
SG::DataProxy
Definition: DataProxy.h:45
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
JetBadChanCorrTool::m_corrJetForCellKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_corrJetForCellKey
Definition: JetBadChanCorrTool.h:93
fitman.k
k
Definition: fitman.py:528