ATLAS Offline Software
TauShotVariableHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 #ifndef TAURECTOOLS_TAUSHOTVARIABLEHELPERS_H
14 #define TAURECTOOLS_TAUSHOTVARIABLEHELPERS_H
15 
16 #include "xAODPFlow/PFO.h"
19 
21 #include "GaudiKernel/ToolHandle.h"
22 
23 class CaloCell_ID;
24 
25 namespace TauShotVariableHelpers {
26 
27  ANA_MSG_HEADER(msgHelperFunction)
28 
29 
30  const CaloCell* getNeighbour(const CaloCell* cell,
32  const CaloCell_ID* calo_id,
33  const LArNeighbours::neighbourOption& option);
34 
36  std::vector<std::vector<const CaloCell*>> getCellBlock(const xAOD::PFO& shot,
37  const CaloCell_ID* calo_id);
38 
40  float ptWindow(const std::vector<std::vector<const CaloCell*>>& shotCells,
41  int windowSize,
42  const ToolHandle<IHadronicCalibrationTool>& caloWeightTool);
43 
44 }
45 
46 #endif // TAURECTOOLS_TAUSHOTVARIABLEHELPERS_H
LArNeighbours::neighbourOption
neighbourOption
Definition: LArNeighbours.h:12
TauShotVariableHelpers
implementation of photon shot variable calculation
Definition: TauShotVariableHelpers.cxx:17
TauShotVariableHelpers::getCellBlock
std::vector< std::vector< const CaloCell * > > getCellBlock(const xAOD::PFO &shot, const CaloCell_ID *calo_id)
Get cell block with (currently) 2 x 5 cells in correct order for variable calculations.
Definition: TauShotVariableHelpers.cxx:48
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
ANA_MSG_HEADER
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:113
PFO.h
DMTest::links
links
Definition: CLinks_v1.cxx:22
MessageCheck.h
macros for messaging and checking status codes
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
TauShotVariableHelpers::ptWindow
float ptWindow(const std::vector< std::vector< const CaloCell * >> &shotCells, int windowSize, const ToolHandle< IHadronicCalibrationTool > &caloWeightTool)
pt in a window of (currently) 2 x windowSize cells
Definition: TauShotVariableHelpers.cxx:158
xAOD::PFO_v1
Class describing a particle flow object.
Definition: PFO_v1.h:35
TauShotVariableHelpers::getNeighbour
const CaloCell * getNeighbour(const CaloCell *cell, const CaloClusterCellLink &links, const CaloCell_ID *calo_id, const LArNeighbours::neighbourOption &option)
Obtain the required neighbour cell.
Definition: TauShotVariableHelpers.cxx:22
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
IHadronicCalibrationTool.h
LArNeighbours.h