|
ATLAS Offline Software
|
Implementation of the ICaloClusterCnvTool interface.
More...
#include <CaloClusterCnvTool.h>
|
| CaloClusterCnvTool (const std::string &type, const std::string &name, const IInterface *parent) |
| Regular AlgTool constructor. More...
|
|
virtual StatusCode | convert (const CaloCluster *aod, xAOD::CaloCluster *xaod, CaloClusterCellLinkContainer *ccclc=0) const override |
| Function that fill an existing xAOD::CaloCluster object with info. More...
|
|
virtual StatusCode | convert (const CaloClusterContainer *aod, xAOD::CaloClusterContainer *xaod) const override |
| Function usable by TrigBStoxAODTool. 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 |
|
Implementation of the ICaloClusterCnvTool interface.
This tool holds the code doing the actual heavy lifting in
converting an old CaloCluster object into an xAOD::CaloCluster
one. It is used both by the package's main algorithm, and the
trigger code when reading old BS files.
- Author
- Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
-
Walter Lampl Walte.nosp@m.r.La.nosp@m.mpl@c.nosp@m.ern..nosp@m.ch
Definition at line 29 of file CaloClusterCnvTool.h.
◆ StoreGateSvc_t
◆ CaloClusterCnvTool()
xAODMaker::CaloClusterCnvTool::CaloClusterCnvTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Regular AlgTool constructor.
Definition at line 47 of file CaloClusterCnvTool.cxx.
53 declareInterface< ICaloClusterCnvTool >(
this );
◆ convert() [1/2]
Function that fill an existing xAOD::CaloCluster object with info.
Implements xAODMaker::ICaloClusterCnvTool.
Definition at line 56 of file CaloClusterCnvTool.cxx.
76 if( ccc && ( !ccc->
empty() ) ) {
80 for( ; cit != cit_e; ++cit ) {
81 xaod->
addCell( cit.getElement().index(), cit.getParameter() );
94 ATH_MSG_DEBUG(
"Found cluster with empty list of constituents" );
127 copyClusterVariables (aod, xaod,
130 copyClusterVariables (aod, xaod,
133 copyClusterVariables (aod, xaod,
141 const std::vector< CaloClusterBadChannelData >* bcvec =
144 badChanList.emplace_back( bcd.getEta(), bcd.getPhi(),
145 bcd.getLayer(), bcd.getFlag().packedData() );
154 for( ; mom_itr != mom_end; ++mom_itr ) {
169 return StatusCode::SUCCESS;
◆ convert() [2/2]
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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
◆ inputHandles()
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.
◆ interfaceID()
static const InterfaceID& xAODMaker::ICaloClusterCnvTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
MomentType
enums to identify different moments
double phi0() const
Returns raw of cluster seed.
Container class for CaloCellLink.
Const iterator class for DataVector/DataList.
ClusterSize
Enumeration to identify different cluster sizes.
void setRawM(flt_t)
Set mass for singal state UNCALIBRATED.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void setAltM(flt_t)
Set mass for singal state ALTCALIBRATED.
void setAltEta(flt_t)
Set for signal state ALTCALIBRATED.
const CaloCellContainer * getContainer(const CaloCell *pCell) const
public container access: retrieve Container for given object pointer
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
void insertMoment(MomentType type, double value)
void setBadChannelList(const CaloClusterBadChannelList &bcl)
bool setLink(CaloClusterCellLinkContainer *CCCL, IProxyDict *sg=nullptr)
Set up an ElementLink to a CaloClusterCellLink object.
void setCalEta(flt_t)
Set for signal state CALIBRATED.
void setSamplingPattern(const unsigned sp, const bool clearSamplingVars=false)
Set sampling pattern (one bit per sampling.
bool setEnergy(const CaloSample sampling, const float e)
Set energy for a given sampling. Returns false if the sample isn't part of the cluster.
#define ATH_MSG_VERBOSE(x)
unsigned int samplingPattern() const
Get sampling bitmask.
void setTime(flt_t)
Set cluster time.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual void setOwner(IDataHandleHolder *o)=0
MomentType
Enums to identify different moments.
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
CaloCompositeCellBase< CaloClusterNavigable >::cell_iterator cell_iterator
Iterator on CaloCell s.
Description of a calorimeter cluster.
std::vector< CaloClusterBadChannelData > CaloClusterBadChannelList
void setCalPhi(flt_t)
Set for signal state CALIBRATED.
virtual object_iter end() const
end iterator for public object access
void setRawE(flt_t)
Set Energy for signal state UNCALIBRATED.
void setCalM(flt_t)
Set mass for singal state CALIBRATED.
void setPhi0(flt_t)
Set raw of cluster seed.
const badChannelList * getBadChannel() const
moment_iterator beginMoment(bool useLink=true) const
First iterator on moment store.
void setAltE(flt_t)
Set Energy for signal state ALTCALIBRATED.
void setRawEta(flt_t)
Set for signal state UNCALIBRATED.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const double & getValue() const
returns the value of this moment
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
moment_type getMomentType() const
Function access to moment type.
virtual object_iter begin() const
begin iterator for public object access
double getTime() const
Access cluster time.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void setCalE(flt_t)
Set Energy for signal state CALIBRATED.
Container class for CaloCell.
moment_iterator endMoment(bool useLink=true) const
Last iterator on moment store.
const CaloClusterMoment & getMoment() const
Function access to CaloClusterMoment.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void addCellLink(CaloClusterCellLink *CCCL)
unsigned int getClusterSize() const
Get cluster size.
void setClusterSize(const ClusterSize)
Get cluster size.
virtual double eta() const
Retrieve eta independent of signal state.
bool addCell(const unsigned index, const double weight)
Method to add a cell to the cluster (Beware: Kinematics not updated!)
virtual double e() const
Retrieve energy independent of signal state.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool setPhi(const CaloSample sampling, const float phi)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
double eta0() const
Returns raw of cluster seed.
bool setEta(const CaloSample sampling, const float eta)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
virtual double m() const
Retrieve mass independent of signal state.
void setAltPhi(flt_t)
Set for signal state ALTCALIBRATED.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual bool isCellLinkValid() const
bool empty() const noexcept
Returns true if the collection is empty.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
void setRawPhi(flt_t)
Set for signal state UNCALIBRATED.
virtual double phi() const
Retrieve phi independent of signal state.