|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include <boost/scoped_ptr.hpp>
28 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
41 if (!caloCellInHandle.
isValid()) {
42 ATH_MSG_ERROR (
"Could not retrieve HiveDataObj with key " << caloCellInHandle.
key());
43 return StatusCode::FAILURE;
47 std::vector<const CaloCell*> removed_cells;
50 if (!removedClustersHandle.
isValid()){
51 ATH_MSG_ERROR (
"Could not retrieve HiveDataObj with key " << removedClustersHandle.
key());
52 return StatusCode::FAILURE;
56 for (
auto cluster : *removed_clusters_cont){
57 for(
auto cell_it = cluster->cell_cbegin(); cell_it != cluster->cell_cend(); cell_it++){
58 removed_cells.push_back(*cell_it);
68 std::vector<CaloCell_ID::SUBCALO> emSubCaloBlocks;
70 boost::scoped_ptr<CaloCellList> cellList(
new CaloCellList(caloDDMgr,cellContainer,emSubCaloBlocks));
72 cellList->select(tau.
eta(), tau.
phi(), 0.4);
76 int sampling =
cell->caloDDE()->getSampling();
77 if (sampling > 7)
continue;
89 return StatusCode::SUCCESS;
std::string find(const std::string &s)
return a remapped string
const_pointer_type cptr()
Dereference the pointer.
virtual double eta() const
The pseudorapidity ( ) of the particle.
TauPi0CreateROI(const std::string &name)
virtual double phi() const
The azimuthal angle ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
Gaudi::Property< bool > m_removeElectronCells
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_removedClusterInputContainer
virtual StatusCode executePi0CreateROI(xAOD::TauJet &pTau, CaloConstCellContainer &Pi0CellContainer, boost::dynamic_bitset<> &map) const override
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
Container class for CaloCell.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
CaloCellContainer that can accept const cell pointers.
virtual StatusCode initialize() override
Tool initializer.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
SG::ReadHandleKey< CaloCellContainer > m_caloCellInputContainer