|
ATLAS Offline Software
|
#include <egammaLargeClusterMaker.h>
|
| egammaLargeClusterMaker (const std::string &type, const std::string &name, const IInterface *parent) |
| @bried constructor More...
|
|
virtual StatusCode | initialize () override final |
| initialize method More...
|
|
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *collection) const override final |
| execute on container More...
|
|
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *collection) const=0 |
| Execute on an entire collection of clusters. More...
|
|
virtual StatusCode | execute (xAOD::CaloClusterContainer *collection) final |
| Execute on an entire collection of clusters. 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 | execute (xAOD::CaloClusterContainer *collection) final |
| Execute on an entire collection of clusters. More...
|
|
This tool takes the EM CaloCluster used by egamma objects and builds large 7x11 clusters around
- Author
- J. Mitrevski
-
C. Anastopoulos
Definition at line 33 of file egammaLargeClusterMaker.h.
◆ StoreGateSvc_t
◆ egammaLargeClusterMaker()
egammaLargeClusterMaker::egammaLargeClusterMaker |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ 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]
◆ execute() [1/4]
execute on container
Implements CaloClusterCollectionProcessor.
Definition at line 39 of file egammaLargeClusterMaker.cxx.
44 ATH_MSG_ERROR(
"A null collection was passed, which should never happen");
45 return StatusCode::FAILURE;
57 ATH_CHECK(caloDetDescrMgrHandle.isValid());
64 for (
const auto* cluster : *inputClusters) {
75 if (!cluster->inBarrel() && !cluster->inEndcap()) {
88 auto eta = cluster->etaSample(sam);
89 auto phi = cluster->phiSample(sam);
91 if ((
eta == 0. &&
phi == 0.) || std::abs(
eta) > 100) {
100 int sampling_or_module = 0;
114 <<
" phi = " <<
phi);
120 auto deta = dde->
deta();
121 auto dphi = dde->
dphi();
129 calc.fill(*calodetdescrmgr, cellcoll.ptr(), cluster->etaSample(sam),
132 if (
sc.isFailure()) {
136 double etamax =
calc.etarmax();
137 double phimax =
calc.phirmax();
153 if (cluster->inBarrel()) {
171 auto eta = cluster->etaSample(sam);
172 auto phi = cluster->phiSample(sam);
174 if ((
eta == 0. &&
phi == 0.) || std::abs(
eta) > 100) {
176 <<
eta <<
" phi = " <<
phi <<
" Eeme2 = "
185 int sampling_or_module = 0;
195 subcalo, sampling_or_module, emec,
eta,
phi);
200 <<
" phi = " <<
phi);
206 auto deta = dde->
deta();
207 auto dphi = dde->
dphi();
222 *calodetdescrmgr, cellcoll.ptr(), cluster->etaSample(sam),
226 if (
sc.isFailure()) {
230 double etamax =
calc.etarmax();
231 double phimax =
calc.phirmax();
233 newCluster->setEta0(etamax);
234 newCluster->setPhi0(phimax);
236 std::map<CaloSampling::CaloSample, double> caloSamV;
249 if (!caloSamV.empty()) {
252 std::vector<const CaloCell*>
cells;
255 for (
auto s : caloSamV) {
256 myList.select(cluster->etaSample(sam), cluster->phiSample(sam),
258 cells.insert(
cells.end(), myList.begin(), myList.end());
264 int index = cellcoll.ptr()->findIndex(
cell->caloDDE()->calo_hash());
268 newCluster->addCell(
index, 1.);
273 return StatusCode::SUCCESS;
◆ execute() [2/4]
virtual StatusCode CaloClusterCollectionProcessor::execute |
Execute on an entire collection of clusters.
- Parameters
-
collection | The container of clusters. param ctx The event context. |
◆ execute() [3/4]
virtual StatusCode CaloClusterCollectionProcessor::execute |
|
inlinefinal |
Execute on an entire collection of clusters.
- Parameters
-
collection | The container of clusters. (deprecated) |
Definition at line 49 of file CaloClusterCollectionProcessor.h.
51 return execute (Gaudi::Hive::currentContext(), collection);
◆ execute() [4/4]
|
inlinefinalvirtualinherited |
Execute on an entire collection of clusters.
- Parameters
-
collection | The container of clusters. (deprecated) |
Definition at line 49 of file CaloClusterCollectionProcessor.h.
51 return execute (Gaudi::Hive::currentContext(), collection);
◆ 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
◆ initialize()
StatusCode egammaLargeClusterMaker::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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& CaloClusterCollectionProcessor::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_addCellsFromOtherSamplings
Gaudi::Property<bool> egammaLargeClusterMaker::m_addCellsFromOtherSamplings |
|
private |
Initial value:{
this,
"AddCellsFromOtherSamplings",
true,
"Keep all cells from relevant samplings or just from the max sampling" }
Et cut on input forward clusters to produce large clusters.
Definition at line 139 of file egammaLargeClusterMaker.h.
◆ m_caloDetDescrMgrKey
Initial value:{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}
Definition at line 69 of file egammaLargeClusterMaker.h.
◆ m_cellsKey
Initial value:{
this,
"CellsName",
"AllCalo",
"Names of containers which contain cells"
}
Cell container.
Definition at line 62 of file egammaLargeClusterMaker.h.
◆ m_centEtThr
Gaudi::Property<double> egammaLargeClusterMaker::m_centEtThr |
|
private |
Initial value:{
this,
"CentralEtThreshold",
3000.,
"Value of Et cut on input central cluster to produce large cluster" }
Et cut on input central clusters to produce large clusters.
Definition at line 97 of file egammaLargeClusterMaker.h.
◆ m_detStore
◆ m_drEM
Gaudi::Property<double> egammaLargeClusterMaker::m_drEM |
|
private |
Initial value:{
this,
"deltaR_EM",
0.3,
"Cone size to eventually collect EME1 cells around hottest-cell"
}
Definition at line 124 of file egammaLargeClusterMaker.h.
◆ m_drFWD
Gaudi::Property<double> egammaLargeClusterMaker::m_drFWD |
|
private |
Initial value:{
this,
"deltaR_FCAL",
0.4,
"Cone size to collec cell around hottest-cell FCAL"
}
Definition at line 117 of file egammaLargeClusterMaker.h.
◆ m_evtStore
◆ m_fwdEtThr
Gaudi::Property<double> egammaLargeClusterMaker::m_fwdEtThr |
|
private |
Initial value:{
this,
"ForwardEtThreshold",
5000.,
"Value of Et cut on input forward cluster to produce large cluster" }
Et cut on input forward clusters to produce large clusters.
Definition at line 132 of file egammaLargeClusterMaker.h.
◆ m_inputClusterCollection
Initial value:{
this,
"InputClusterCollection",
"egammaClusters",
"The name of the cluster container for electrons and photons"
}
The name of the cluster container for electrons and photons.
Definition at line 54 of file egammaLargeClusterMaker.h.
◆ m_isFWD
Gaudi::Property<bool> egammaLargeClusterMaker::m_isFWD |
|
private |
Initial value:{ this,
"doFWDelesurraundingWindows",
false,
"Save FWD electron surraunding windows" }
do FWD cell
Definition at line 77 of file egammaLargeClusterMaker.h.
◆ m_neta
Gaudi::Property<double> egammaLargeClusterMaker::m_neta |
|
private |
Initial value:{
this,
"Neta",
7.0,
"Number of eta cells in each sampling in which to look for hottest cell"
}
Definition at line 82 of file egammaLargeClusterMaker.h.
◆ m_netaFWD
Gaudi::Property<double> egammaLargeClusterMaker::m_netaFWD |
|
private |
Initial value:{
this,
"NetaFWD",
6.0,
"Number of eta cells in each sampling in which to look for hottest cell"
}
Definition at line 103 of file egammaLargeClusterMaker.h.
◆ m_nphi
Gaudi::Property<double> egammaLargeClusterMaker::m_nphi |
|
private |
Initial value:{
this,
"Nphi",
7.0,
"Number of phi cell in each sampling in which to look for hottest cell"
}
Definition at line 89 of file egammaLargeClusterMaker.h.
◆ m_nphiFWD
Gaudi::Property<double> egammaLargeClusterMaker::m_nphiFWD |
|
private |
Initial value:{
this,
"NphiFWD",
6.0,
"Number of phi cell in each sampling in which to look for hottest cell"
}
Definition at line 110 of file egammaLargeClusterMaker.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
float deta() const
cell deta
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
Gaudi::Property< double > m_fwdEtThr
Et cut on input forward clusters to produce large clusters.
Gaudi::Property< bool > m_isFWD
do FWD cell
Gaudi::Property< double > m_centEtThr
Et cut on input central clusters to produce large clusters.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap
Gaudi::Property< double > m_nphiFWD
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadHandleKey< CaloCellContainer > m_cellsKey
Cell container.
Gaudi::Property< bool > m_addCellsFromOtherSamplings
Et cut on input forward clusters to produce large clusters.
virtual void setOwner(IDataHandleHolder *o)=0
Description of a calorimeter cluster.
Gaudi::Property< double > m_nphi
void setPhi0(flt_t)
Set raw of cluster seed.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< double > m_netaFWD
SUBCALO
enumeration of sub calorimeters
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< double > m_drEM
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Gaudi::Property< double > m_neta
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const override final
execute on container
bool isFCAL(const xAOD::CaloCluster *cluster)
return true if the cluster (or the majority of its energy) is in the FCAL0
StatusCode initialize(bool used=true)
float dphi() const
cell dphi
This class provides the client interface for accessing the detector description information common to...
void setClusterSize(const ClusterSize)
Get cluster size.
Gaudi::Property< double > m_drFWD
#define ATH_MSG_WARNING(x)
static void decode_sample(CaloCell_ID::SUBCALO &subCalo, bool &barrel, int &sampling_or_module, CaloCell_ID::CaloSample sample)
translate between the 2 ways to label a sub-detector:
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterCollection
The name of the cluster container for electrons and photons.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey