|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CaloEvent/CaloCluster.h"
8 #include "CaloEvent/CaloClusterContainer.h"
29 std::vector<double>
vals;
37 ((*xaod).*setter) (sNew,
vals[iSamp]);
48 const std::string&
name,
53 declareInterface< ICaloClusterCnvTool >(
this );
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;
186 return StatusCode::SUCCESS;
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.
bool hasSampling(const sampling_type &theSampling) const
Checks if certain sampling contributes to cluster.
CaloSampling::CaloSample CaloSample
void setAltM(flt_t)
Set mass for singal state ALTCALIBRATED.
Storable container for CaloCluster.
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
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.
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
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
Principal data class for CaloCell clusters.
#define CHECK(...)
Evaluate an expression and check for errors.
const double & getValue() const
returns the value of this moment
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.
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.
setBGCode setTAP setLVL2ErrorBits bool
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.
double getVariable(const variable_type &varType, const sampling_type &samType, bool useLink=true) const
General sampling variable access.
virtual double phi() const
Retrieve phi independent of signal state.