ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
egammaLargeClusterMaker Class Referencefinal

#include <egammaLargeClusterMaker.h>

Inheritance diagram for egammaLargeClusterMaker:
Collaboration diagram for egammaLargeClusterMaker:

Public Member Functions

 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...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Standard Gaudi interface ID method. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< xAOD::CaloClusterContainerm_inputClusterCollection
 The name of the cluster container for electrons and photons. More...
 
SG::ReadHandleKey< CaloCellContainerm_cellsKey
 Cell container. More...
 
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloDetDescrMgrKey
 
Gaudi::Property< bool > m_isFWD
 do FWD cell More...
 
Gaudi::Property< double > m_neta
 
Gaudi::Property< double > m_nphi
 
Gaudi::Property< double > m_centEtThr
 Et cut on input central clusters to produce large clusters. More...
 
Gaudi::Property< double > m_netaFWD
 
Gaudi::Property< double > m_nphiFWD
 
Gaudi::Property< double > m_drFWD
 
Gaudi::Property< double > m_drEM
 
Gaudi::Property< double > m_fwdEtThr
 Et cut on input forward clusters to produce large clusters. More...
 
Gaudi::Property< bool > m_addCellsFromOtherSamplings
 Et cut on input forward clusters to produce large clusters. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

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.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ egammaLargeClusterMaker()

egammaLargeClusterMaker::egammaLargeClusterMaker ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

@bried constructor

Definition at line 19 of file egammaLargeClusterMaker.cxx.

23 {
24 
25  // declare interface
26  declareInterface<CaloClusterCollectionProcessor>(this);
27 }

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute() [1/4]

StatusCode egammaLargeClusterMaker::execute ( const EventContext &  ctx,
xAOD::CaloClusterContainer collection 
) const
finaloverridevirtual

execute on container

Implements CaloClusterCollectionProcessor.

Definition at line 39 of file egammaLargeClusterMaker.cxx.

41 {
42 
43  if (!collection) {
44  ATH_MSG_ERROR("A null collection was passed, which should never happen");
45  return StatusCode::FAILURE;
46  }
47 
50  // retrieve the cell containers
52 
53  // retrieve CaloDetDescr
54  SG::ReadCondHandle<CaloDetDescrManager> caloDetDescrMgrHandle{
56  };
57  ATH_CHECK(caloDetDescrMgrHandle.isValid());
58 
59  const CaloDetDescrManager* calodetdescrmgr = *caloDetDescrMgrHandle;
60 
61  DataLink<CaloCellContainer> cellLink (cellcoll.ptr(), ctx);
62 
63  // The main loop over clusters
64  for (const auto* cluster : *inputClusters) {
65 
66  if (!m_isFWD) {
67 
68  if (cluster->et() < m_centEtThr)
69  continue;
70 
71  // find the center of the cluster, copying the logic of
72  // egammaMiddleShape.cxx
73 
74  // check if cluster is in barrel or end-cap
75  if (!cluster->inBarrel() && !cluster->inEndcap()) {
76  continue;
77  }
78 
79  // check if cluster is in barrel or end-cap
80  bool in_barrel = egammaEnergyPositionAllSamples::inBarrel(*cluster, 2);
82  if (!in_barrel) {
83  sam = CaloSampling::EME2;
84  }
85 
86  // granularity in (eta,phi) in the pre sampler
87  // CaloCellList needs both enums: subCalo and CaloSample
88  auto eta = cluster->etaSample(sam);
89  auto phi = cluster->phiSample(sam);
90 
91  if ((eta == 0. && phi == 0.) || std::abs(eta) > 100) {
92  ATH_MSG_WARNING("Weird input cluster, eta = " << eta
93  << " phi = " << phi);
94  continue;
95  }
96 
97  // Should get overritten
98  bool barrel = false;
100  int sampling_or_module = 0;
101 
103  subcalo, barrel, sampling_or_module, (CaloCell_ID::CaloSample)sam);
104 
105  // Get the corresponding grannularities : needs to know where you are
106  // the easiest is to look for the CaloDetDescrElement
107 
108  const CaloDetDescrElement* dde = calodetdescrmgr->get_element(
109  CaloCell_ID::LAREM, sampling_or_module, barrel, eta, phi);
110 
111  // if object does not exist then return
112  if (!dde) {
113  ATH_MSG_WARNING("Weird input cluster eta = " << eta
114  << " phi = " << phi);
115  ATH_MSG_WARNING("No detetector element for seeding");
116  continue;
117  }
118 
119  // local granularity
120  auto deta = dde->deta();
121  auto dphi = dde->dphi();
122 
123  // search the hottest cell around the (eta,phi)
124  // (eta,phi) are defined as etaSample() and phiSample
125  // around this position a hot cell is searched for in a window
126  // (m_neta*m_deta,m_nphi*m_dphi), by default (m_neta,m_nphi)=(7,7)
128  StatusCode sc =
129  calc.fill(*calodetdescrmgr, cellcoll.ptr(), cluster->etaSample(sam),
130  cluster->phiSample(sam), m_neta * deta, m_nphi * dphi,
132  if (sc.isFailure()) {
133  ATH_MSG_WARNING("CaloLayerCalculator failed fill ");
134  continue;
135  }
136  double etamax = calc.etarmax();
137  double phimax = calc.phirmax();
138 
139  // create the new cluster
140  xAOD::CaloCluster* newCluster =
141  CaloClusterStoreHelper::makeCluster(collection, cellLink);
142  newCluster->setEta0(etamax);
143  newCluster->setPhi0(phimax);
145 
146  } else {
147  // FWD cluster collection
148  if (cluster->et() < m_fwdEtThr){
149  continue;
150  }
151 
152  // check if cluster is in EMEC or FCAL
153  if (cluster->inBarrel()) {
154  continue;
155  }
156 
157  // need some positive energy in EME2 or FCAL0 to be a good candidate
158  if (cluster->eSample(CaloSampling::EME2) <= 0 &&
159  cluster->eSample(CaloSampling::FCAL0) <= 0){
160  continue;
161  }
162 
163  // check if cluster is in FCAL or EMEC
165  bool in_EMEC = !(xAOD::EgammaHelpers::isFCAL(cluster));
166  if(in_EMEC){
167  sam = CaloSampling::EME2;
168  }
169  // granularity in (eta,phi) in the pre sampler
170  // CaloCellList needs both enums: subCalo and CaloSample
171  auto eta = cluster->etaSample(sam);
172  auto phi = cluster->phiSample(sam);
173 
174  if ((eta == 0. && phi == 0.) || std::abs(eta) > 100) {
175  ATH_MSG_WARNING("Weird input cluster, maxeta = "
176  << eta << " phi = " << phi << " Eeme2 = "
177  << cluster->eSample(CaloSampling::EME2) << " Efcal = "
178  << cluster->eSample(CaloSampling::FCAL0));
179  continue;
180  }
181 
182  // Should get overritten
183  bool emec = false;
185  int sampling_or_module = 0;
186 
188  subcalo, emec, sampling_or_module, (CaloCell_ID::CaloSample)sam);
189 
190  // Get the corresponding grannularities : needs to know where you are
191  // the easiest is to look for the CaloDetDescrElement
192  // const CaloDetDescrElement* get_element_FCAL (const
193  // CaloDetDescriptor* reg, double eta, double phi) const;
194  const CaloDetDescrElement* dde = calodetdescrmgr->get_element(
195  subcalo, sampling_or_module, emec, eta, phi);
196 
197  // if object does not exist then return
198  if (!dde) {
199  ATH_MSG_WARNING("Weird input cluster eta = " << eta
200  << " phi = " << phi);
201  ATH_MSG_WARNING("No detetector element for seeding");
202  continue;
203  }
204 
205  // local granularity
206  auto deta = dde->deta();
207  auto dphi = dde->dphi();
208 
209  // search the hottest cell around the (eta,phi)
210  // (eta,phi) are defined as etaSample() and phiSample
211  // around this position a hot cell is searched for in a window
212  // (m_neta*m_deta,m_nphi*m_dphi), by default (m_neta,m_nphi)=(6,6)
213  // for EMEC-OUTER FWD much bigger cell size
214 
215  // create the new cluster
216  xAOD::CaloCluster* newCluster =
217  CaloClusterStoreHelper::makeCluster(collection, cellLink);
218 
219  // if In EMEC
221  StatusCode sc = calc.fill(
222  *calodetdescrmgr, cellcoll.ptr(), cluster->etaSample(sam),
223  cluster->phiSample(sam), m_netaFWD * deta, m_nphiFWD * dphi,
224  (CaloSampling::CaloSample)sam, in_EMEC ? newCluster : nullptr);
225 
226  if (sc.isFailure()) {
227  ATH_MSG_WARNING("CaloLayerCalculator failed fill for FWD cluster");
228  continue;
229  }
230  double etamax = calc.etarmax();
231  double phimax = calc.phirmax();
232 
233  newCluster->setEta0(etamax);
234  newCluster->setPhi0(phimax);
235 
236  std::map<CaloSampling::CaloSample, double> caloSamV;
237  if (!in_EMEC) {
238  caloSamV[CaloSampling::FCAL0] = m_drFWD;
239  }
241  caloSamV[CaloSampling::EME1] = m_drEM;
242  if (in_EMEC) {
243  caloSamV[CaloSampling::FCAL0] = m_drFWD;
244  } else {
245  caloSamV[CaloSampling::EME2] = m_drFWD;
246  }
247  }
248 
249  if (!caloSamV.empty()) {
250  // If FCAL need to add cell to cluster in a cone.
251  // Also if we want cells from other samplings
252  std::vector<const CaloCell*> cells;
253  cells.reserve(300);
254  CaloCellList myList(calodetdescrmgr, cellcoll.ptr());
255  for (auto s : caloSamV) {
256  myList.select(cluster->etaSample(sam), cluster->phiSample(sam),
257  s.second, (CaloSampling::CaloSample)s.first);
258  cells.insert(cells.end(), myList.begin(), myList.end());
259  }
260  for (const auto* cell : cells) {
261  if (!cell || !cell->caloDDE()) {
262  continue;
263  }
264  int index = cellcoll.ptr()->findIndex(cell->caloDDE()->calo_hash());
265  if (index == -1) {
266  continue;
267  }
268  newCluster->addCell(index, 1.);
269  }
270  }
271  } // end isFWD
272  } // main loop over clusters
273  return StatusCode::SUCCESS;
274 }

◆ execute() [2/4]

virtual StatusCode CaloClusterCollectionProcessor::execute

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters. param ctx The event context.

◆ execute() [3/4]

virtual StatusCode CaloClusterCollectionProcessor::execute
inlinefinal

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters. (deprecated)

Definition at line 49 of file CaloClusterCollectionProcessor.h.

50  {
51  return execute (Gaudi::Hive::currentContext(), collection);
52  }

◆ execute() [4/4]

virtual StatusCode CaloClusterCollectionProcessor::execute ( xAOD::CaloClusterContainer collection)
inlinefinalvirtualinherited

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters. (deprecated)

Definition at line 49 of file CaloClusterCollectionProcessor.h.

50  {
51  return execute (Gaudi::Hive::currentContext(), collection);
52  }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

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

initialize method

Definition at line 30 of file egammaLargeClusterMaker.cxx.

31 {
35  return StatusCode::SUCCESS;
36 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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

Standard Gaudi interface ID method.

Definition at line 58 of file CaloClusterCollectionProcessor.h.

58 {return IID_CaloClusterCollectionProcessor;}

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ 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

SG::ReadCondHandleKey<CaloDetDescrManager> egammaLargeClusterMaker::m_caloDetDescrMgrKey
private
Initial value:
{
this,
"CaloDetDescrManager",
"CaloDetDescrManager",
"SG Key for CaloDetDescrManager in the Condition Store"
}

Definition at line 69 of file egammaLargeClusterMaker.h.

◆ m_cellsKey

SG::ReadHandleKey<CaloCellContainer> egammaLargeClusterMaker::m_cellsKey
private
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

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ 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

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ 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

SG::ReadHandleKey<xAOD::CaloClusterContainer> egammaLargeClusterMaker::m_inputClusterCollection
private
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

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
CaloDetDescrElement::deta
float deta() const
cell deta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:356
CaloClusterStoreHelper::makeCluster
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
Definition: CaloClusterStoreHelper.cxx:13
egammaLargeClusterMaker::m_fwdEtThr
Gaudi::Property< double > m_fwdEtThr
Et cut on input forward clusters to produce large clusters.
Definition: egammaLargeClusterMaker.h:132
egammaLargeClusterMaker::m_isFWD
Gaudi::Property< bool > m_isFWD
do FWD cell
Definition: egammaLargeClusterMaker.h:77
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
CaloCell_Base_ID::LARFCAL
@ LARFCAL
Definition: CaloCell_Base_ID.h:46
egammaLargeClusterMaker::m_centEtThr
Gaudi::Property< double > m_centEtThr
Et cut on input central clusters to produce large clusters.
Definition: egammaLargeClusterMaker.h:97
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloCellList
Definition: CaloCellList.h:40
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
index
Definition: index.py:1
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
egammaEnergyPositionAllSamples::inBarrel
bool inBarrel(const xAOD::CaloCluster &cluster, int is)
return boolean to know if we are in barrel/end-cap
egammaLargeClusterMaker::m_nphiFWD
Gaudi::Property< double > m_nphiFWD
Definition: egammaLargeClusterMaker.h:110
CaloDetDescrManager_Base::get_element
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
Definition: CaloDetDescrManager.cxx:159
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
egammaLargeClusterMaker::m_cellsKey
SG::ReadHandleKey< CaloCellContainer > m_cellsKey
Cell container.
Definition: egammaLargeClusterMaker.h:62
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
egammaLargeClusterMaker::m_addCellsFromOtherSamplings
Gaudi::Property< bool > m_addCellsFromOtherSamplings
Et cut on input forward clusters to produce large clusters.
Definition: egammaLargeClusterMaker.h:139
xAOD::CaloCluster_v1::setEta0
void setEta0(flt_t)
xAOD::CaloCluster_v1::SW_7_11
@ SW_7_11
Definition: CaloCluster_v1.h:105
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
egammaLargeClusterMaker::m_nphi
Gaudi::Property< double > m_nphi
Definition: egammaLargeClusterMaker.h:89
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
xAOD::CaloCluster_v1::setPhi0
void setPhi0(flt_t)
Set raw of cluster seed.
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
egammaLargeClusterMaker::m_netaFWD
Gaudi::Property< double > m_netaFWD
Definition: egammaLargeClusterMaker.h:103
CaloCell_Base_ID::SUBCALO
SUBCALO
enumeration of sub calorimeters
Definition: CaloCell_Base_ID.h:46
test_pyathena.parent
parent
Definition: test_pyathena.py:15
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
egammaLargeClusterMaker::m_drEM
Gaudi::Property< double > m_drEM
Definition: egammaLargeClusterMaker.h:124
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
egammaLargeClusterMaker::m_neta
Gaudi::Property< double > m_neta
Definition: egammaLargeClusterMaker.h:82
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
egammaLargeClusterMaker::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const override final
execute on container
Definition: egammaLargeClusterMaker.cxx:39
xAOD::EgammaHelpers::isFCAL
bool isFCAL(const xAOD::CaloCluster *cluster)
return true if the cluster (or the majority of its energy) is in the FCAL0
Definition: EgammaxAODHelpers.cxx:46
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
CaloDetDescrElement::dphi
float dphi() const
cell dphi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:358
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
xAOD::CaloCluster_v1::setClusterSize
void setClusterSize(const ClusterSize)
Get cluster size.
Definition: CaloCluster_v1.cxx:369
egammaLargeClusterMaker::m_drFWD
Gaudi::Property< double > m_drFWD
Definition: egammaLargeClusterMaker.h:117
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CaloLayerCalculator
Definition: CaloLayerCalculator.h:82
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloDetDescrManager_Base::decode_sample
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:
Definition: CaloDetDescrManager.cxx:1468
DetectorZone::barrel
@ barrel
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
CaloCell_Base_ID::LAREM
@ LAREM
Definition: CaloCell_Base_ID.h:46
egammaLargeClusterMaker::m_inputClusterCollection
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterCollection
The name of the cluster container for electrons and photons.
Definition: egammaLargeClusterMaker.h:54
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition: FastCaloSim_CaloCell_ID.h:40
beamspotnt.calc
calc
Definition: bin/beamspotnt.py:1252
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
fitman.k
k
Definition: fitman.py:528
egammaLargeClusterMaker::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: egammaLargeClusterMaker.h:69