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

TrigEgammaFastElectronReAlgo is a Trigger Fex Algorithm that retrieves the TrigEMCluster container and the TrackCollection containers and then creates a TrigElectron Container with a subset of calorimeter-ID selection variables that are calculated (eg. E/p) The algo will apply some very loose selection cuts to the TrigElectronContainer created which is of TrigParticle type TrigElectron The TrigElectron conatiner will then be retrieved by the hypothesis algorithm TrigEgammaFastElectronHypo that will perform the corresponding fast electron selection. More...

#include <TrigEgammaFastElectronReAlgo.h>

Inheritance diagram for TrigEgammaFastElectronReAlgo:
Collaboration diagram for TrigEgammaFastElectronReAlgo:

Public Member Functions

 TrigEgammaFastElectronReAlgo (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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
 

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

bool extrapolate (const EventContext &ctx, const CaloDetDescrManager &caloDD, const xAOD::TrigEMCluster *, const xAOD::TrackParticle *, double &, double &) const
 
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...
 

Static Private Member Functions

static double getCaloPt (const xAOD::TrigElectron *el)
 
static double getTkPt (const xAOD::TrigElectron *el)
 

Private Attributes

Gaudi::Property< bool > m_acceptAll {this, "AcceptAll", false, "Build electrons for all tracks"}
 
Gaudi::Property< float > m_clusEtthr {this, "ClusEt", 20.0*Gaudi::Units::GeV , " lower limit on cluster Et"}
 
Gaudi::Property< float > m_trackPtthr {this, "TrackPt", 5.0*Gaudi::Units::GeV , "lower limit on TrackPt cut" }
 
Gaudi::Property< float > m_calotrkdeta_noextrap {this, "CaloTrackdEtaNoExtrap", 0.5, "Upper limit on DEta between Calo cluster and Track for track preselection before extrapolation"}
 
Gaudi::Property< float > m_trackPtthr_highet {this, "TrackPtHighEt", 2.0*Gaudi::Units::GeV , "lower limit on TrackPt cut High Et Cluster (20GeV)"}
 
Gaudi::Property< float > m_calotrkdeta_noextrap_highet {this, "CaloTrackdEtaNoExtrapHighEt", 0, "upper limit on DEta between Calo cluster and Track for track preselection before extrapolation for High Et cluster (20GeV)"}
 
Gaudi::Property< float > m_calotrackdeta {this, "CaloTrackdETA", 0, "Upper limit on DEta between Calo cluster and Track"}
 
Gaudi::Property< float > m_calotrackdphi {this, "CaloTrackdPHI", 0, "Upper limit on DPhi between Calo cluster and Track"}
 
Gaudi::Property< float > m_calotrackdeoverp_low {this, "CaloTrackdEoverPLow", 0, "lower limit on E(calo)/p(track)"}
 
Gaudi::Property< float > m_calotrackdeoverp_high {this, "CaloTrackdEoverPHigh", 0, "upper limit on track E(calo)/p(track)"}
 
Gaudi::Property< float > m_RCAL {this, "RCalBarrelFace", 1470.0*Gaudi::Units::mm , "Radius of inner face of the barrel calorimeter"}
 
Gaudi::Property< float > m_ZCAL {this, "ZCalEndcapFace", 3800.0*Gaudi::Units::mm, "z of the inner face of endcap calorimeter"}
 
ToolHandle< Trk::IParticleCaloExtensionToolm_caloExtensionTool
 
SG::ReadHandleKey< TrigRoiDescriptorCollectionm_roiCollectionKey
 
SG::ReadHandleKey< xAOD::TrigEMClusterContainerm_TrigEMClusterContainerKey
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_TrackParticleContainerKey
 
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloDetDescrMgrKey
 
SG::WriteHandleKey< xAOD::TrigElectronContainerm_outputElectronsKey
 
SG::WriteHandleKey< xAOD::TrigElectronContainerm_outputDummyElectronsKey
 
ToolHandle< GenericMonitoringToolm_monTool { this, "MonTool", "", "Monitoring tool" }
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. 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

TrigEgammaFastElectronReAlgo is a Trigger Fex Algorithm that retrieves the TrigEMCluster container and the TrackCollection containers and then creates a TrigElectron Container with a subset of calorimeter-ID selection variables that are calculated (eg. E/p) The algo will apply some very loose selection cuts to the TrigElectronContainer created which is of TrigParticle type TrigElectron The TrigElectron conatiner will then be retrieved by the hypothesis algorithm TrigEgammaFastElectronHypo that will perform the corresponding fast electron selection.

Definition at line 49 of file TrigEgammaFastElectronReAlgo.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigEgammaFastElectronReAlgo()

TrigEgammaFastElectronReAlgo::TrigEgammaFastElectronReAlgo ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 28 of file TrigEgammaFastElectronReAlgo.cxx.

29  : AthReentrantAlgorithm(name, pSvcLocator)
30 {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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()

StatusCode TrigEgammaFastElectronReAlgo::execute ( const EventContext &  ctx) const
overridevirtual

< monitor preselection between track eta and cluster before extrapolation

Create a TrigElectron corresponding to this candidate assume cluster quantities give better estimate of transverse energy (probably a safe assumption for large pT) and that track parameters at perigee give better estimates of angular quantities

Definition at line 74 of file TrigEgammaFastElectronReAlgo.cxx.

75 {
76  using namespace xAOD;
77 
78  ATH_MSG_DEBUG( "Executing " <<name());
79 
80  auto trigElecColl = SG::makeHandle (m_outputElectronsKey, ctx);
81  ATH_CHECK( trigElecColl.record (std::make_unique<xAOD::TrigElectronContainer>(),
82  std::make_unique<xAOD::TrigEMClusterAuxContainer>()) );
83 
84  ATH_MSG_DEBUG( "Made WriteHandle " << m_outputElectronsKey );
85 
86  auto trigDummyElecColl = SG::makeHandle (m_outputDummyElectronsKey, ctx);
87 
88  ATH_MSG_DEBUG( "Made Dummy WriteHandle " << m_outputDummyElectronsKey );
89  ATH_CHECK( trigDummyElecColl.record (std::make_unique<xAOD::TrigElectronContainer>(),
90  std::make_unique<xAOD::TrigEMClusterAuxContainer>()) );
91 
92  auto roiCollection = SG::makeHandle(m_roiCollectionKey, ctx);
93  ATH_MSG_DEBUG( "Made handle " << m_roiCollectionKey );
94 
95 
96  if (roiCollection->size()==0) {
97  ATH_MSG_DEBUG(" RoI collection size = 0");
98  return StatusCode::SUCCESS;
99  }
100 
101  const TrigRoiDescriptor* roiDescriptor = *(roiCollection->begin());
102 
103  ATH_MSG_DEBUG(" RoI ID = " << (roiDescriptor)->roiId() << ": Eta = " << (roiDescriptor)->eta()
104  << ", Phi = " << (roiDescriptor)->phi());
105 
106  float calo_eta(999), calo_phi(999), calo_et(-1);
107 
108  auto clusterCont = SG::makeHandle (m_TrigEMClusterContainerKey, ctx);
109  ATH_MSG_DEBUG( "Made handle " << m_TrigEMClusterContainerKey );
110 
111  //JTB Should only be 1 cluster in each RoI
112 
113  const xAOD::TrigEMCluster *emCluster=(*clusterCont->begin());
115 
116  // copy relevant quantities to local variables
117  calo_eta = emCluster->eta();
118  calo_phi = emCluster->phi();
119  calo_et = emCluster->et();
120 
121 
122  // Transverse em energy
123  ATH_MSG_DEBUG("Cluster: ET=" << calo_et);
124  ATH_MSG_DEBUG("searching a matching track: loop over tracks");
125 
127  ATH_MSG_DEBUG( "Made handle " << m_TrackParticleContainerKey );
128 
129 
130  if (tracks->size() == 0){
131  return StatusCode::SUCCESS; // Exit early if there are no tracks
132  }
133 
134  size_t coll_size = tracks->size();
135  trigElecColl->reserve(coll_size);
136 
137  // monitoring
138  std::vector<float> calotrkdeta_noextrap_mon;
139 
140  auto caloPtMon = Monitored::Collection("PtCalo", *trigElecColl, getCaloPt );
141  auto trackPtMon = Monitored::Collection("PtTrack", *trigElecColl, getTkPt );
142  auto caloTrackDEtaMon = Monitored::Collection("CaloTrackdEta", *trigElecColl, &xAOD::TrigElectron::trkClusDeta );
143  auto caloTrackDPhiMon = Monitored::Collection("CaloTrackdPhi", *trigElecColl, &xAOD::TrigElectron::trkClusDphi );
144  auto etOverPtMon = Monitored::Collection("CaloTrackEoverP", *trigElecColl, &xAOD::TrigElectron::etOverPt );
145  auto caloTrackDEtaNoExtrapMon = Monitored::Collection("CaloTrackdEtaNoExtrapMon", calotrkdeta_noextrap_mon );
146 
147  auto mon = Monitored::Group(m_monTool, caloPtMon, trackPtMon, caloTrackDEtaMon, caloTrackDPhiMon, etOverPtMon, caloTrackDEtaNoExtrapMon );
148 
149  // Make Dummy Electron
150  xAOD::TrigElectron* trigDummyElec = new xAOD::TrigElectron();
151 
153 
154  trigDummyElecColl->push_back(trigDummyElec);
155  trigDummyElec->init( 0, 0, 0, 0, clusEL, trackDummyEL);
156 
157  //Pick the Calo Det Descr
158  SG::ReadCondHandle<CaloDetDescrManager> caloDetDescrMgrHandle{
159  m_caloDetDescrMgrKey, ctx};
160  ATH_CHECK(caloDetDescrMgrHandle.isValid());
161  const CaloDetDescrManager* caloDD = *caloDetDescrMgrHandle;
162 
163  // loop over tracks
164  for(unsigned int track_index = 0; track_index < tracks->size(); track_index++)
165  {
166  const xAOD::TrackParticle_v1* trkIter = (*tracks)[track_index];
167  ATH_MSG_DEBUG("Track loop starts");
168  ATH_MSG_VERBOSE("AlgoId = " << (trkIter)->patternRecoInfo());
169  ATH_MSG_VERBOSE("At perigee:");
170  ATH_MSG_DEBUG(" Pt = " << std::abs((trkIter)->pt()));
171  ATH_MSG_DEBUG(" phi = " << std::abs((trkIter)->phi0()));
172  ATH_MSG_DEBUG(" eta = " << std::abs((trkIter)->eta()));
173  ATH_MSG_DEBUG(" z0 = " << std::abs((trkIter)->z0()));
174  ATH_MSG_DEBUG(" d0 = " << std::abs((trkIter)->d0()));
175  // ============================================= //
176  // Pt cut
177  float trkPt = std::abs((trkIter)->pt());
178  float etoverpt = std::abs(calo_et/trkPt);
179  float calotrkdeta_noextrap = (trkIter)->eta() - calo_eta;
180 
181  double etaAtCalo=999.;
182  double phiAtCalo=999.;
183  if(m_acceptAll){
184  if(!extrapolate(ctx,*caloDD,emCluster,trkIter,etaAtCalo,phiAtCalo)){
185  ATH_MSG_VERBOSE("extrapolator failed");
186  continue;
187  }
188  else{
189  ATH_MSG_VERBOSE("REGTEST: TrigElectron: cluster index = " << clusEL.index() <<
190  " eta = " << etaAtCalo << " phi = " << phiAtCalo);
191 
192  xAOD::TrigElectron* trigElec = new xAOD::TrigElectron();
193  trigElecColl->push_back(trigElec);
195  trigElec->init( roiDescriptor->roiWord(),
196  etaAtCalo, phiAtCalo, etoverpt,
197  clusEL,
198  trackEL);
199  calotrkdeta_noextrap_mon.push_back(calotrkdeta_noextrap);
200  }
201  }else {
202 
203  ATH_MSG_DEBUG("Apply cuts on track with index: "<<track_index);
204  if(trkPt < m_trackPtthr){
205  ATH_MSG_DEBUG("Failed track pt cut " << trkPt);
206  continue;
207  }
208  if(std::abs(calotrkdeta_noextrap) > m_calotrkdeta_noextrap){
209  ATH_MSG_DEBUG("Failed pre extrapolation calo track deta " << calotrkdeta_noextrap);
210  continue;
211  }
212  if(calo_et > m_clusEtthr){
213  if(trkPt < m_trackPtthr_highet){
214  ATH_MSG_DEBUG("Failed track pt cut for high et cluster");
215  continue;
216  }
217  if(calotrkdeta_noextrap > m_calotrkdeta_noextrap_highet){
218  ATH_MSG_DEBUG("Failed pre extrapolation calo track deta for high et");
219  continue;
220  }
221  }
222  if (etoverpt < m_calotrackdeoverp_low){
223  ATH_MSG_DEBUG("failed low cut on ET/PT");
224  continue;
225  }
226  if (etoverpt > m_calotrackdeoverp_high){
227  ATH_MSG_DEBUG("failed high cut on ET/PT");
228  continue;
229  }
230  if(!extrapolate(ctx,*caloDD,emCluster,trkIter,etaAtCalo,phiAtCalo)){
231  ATH_MSG_DEBUG("extrapolator failed 1");
232  continue;
233  }
234  // all ok: do track-matching cuts
235  ATH_MSG_DEBUG("extrapolated eta/phi=" << etaAtCalo << "/" << phiAtCalo);
236  // match in eta
237  float dEtaCalo = std::abs(etaAtCalo - calo_eta);
238  ATH_MSG_DEBUG("deta = " << dEtaCalo);
239  if ( dEtaCalo > m_calotrackdeta){
240  ATH_MSG_DEBUG("failed eta match cut " << dEtaCalo);
241  continue;
242  }
243  // match in phi: deal with differences larger than Pi
244  float dPhiCalo = std::abs(phiAtCalo - calo_phi);
245  dPhiCalo = ( dPhiCalo < M_PI ? dPhiCalo : 2*M_PI - dPhiCalo );
246  ATH_MSG_DEBUG("dphi = " << dPhiCalo);
247  if ( dPhiCalo > m_calotrackdphi) {
248  ATH_MSG_DEBUG("failed phi match cut " << dPhiCalo);
249  continue;
250  }
251  // all cuts passed
257  ATH_MSG_DEBUG("pT of trackEL: "<<(*trackEL)->pt());
258 
259  ATH_MSG_DEBUG("REGTEST: TrigElectron: cluster index = " << clusEL.index() <<
260  " track index= " << track_index << " eta = " << etaAtCalo << " phi = " << phiAtCalo <<
261  " deta = " << dEtaCalo << "dphi = " << dPhiCalo);
262  xAOD::TrigElectron* trigElec = new xAOD::TrigElectron();
263  trigElecColl->push_back(trigElec);
264  trigElec->init( roiDescriptor->roiWord(),
265  etaAtCalo, phiAtCalo, etoverpt,
266  clusEL,
267  trackEL);
268 
269  ATH_MSG_DEBUG(" deta = " << dEtaCalo << " deta = " << trigElec->trkClusDeta()
270  << " dphi = " << dPhiCalo << " dphi = " << trigElec->trkClusDphi()
271  << " caloEta = " << calo_eta << " caloEta = " << trigElec->caloEta()
272  << " caloPhi = " << calo_phi << " calophi = " << trigElec->caloPhi()
273  << " etaAtCalo = " << etaAtCalo << " etaAtCalo = " << trigElec->trkEtaAtCalo()
274  << " phiAtCalo = " << phiAtCalo << " phiAtCalo = " << trigElec->trkPhiAtCalo()
275  );
276  calotrkdeta_noextrap_mon.push_back(calotrkdeta_noextrap);
277 
278  }
279 
280  }
281 
282 
283  ATH_MSG_DEBUG("REGTEST: returning an xAOD::TrigElectronContainer with size "<< trigElecColl->size() << ".");
284 
285  return StatusCode::SUCCESS;
286 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ extrapolate()

bool TrigEgammaFastElectronReAlgo::extrapolate ( const EventContext &  ctx,
const CaloDetDescrManager caloDD,
const xAOD::TrigEMCluster clus,
const xAOD::TrackParticle trk,
double &  etaAtCalo,
double &  phiAtCalo 
) const
private

Definition at line 288 of file TrigEgammaFastElectronReAlgo.cxx.

291  {
292 
293  // use the provided EM cluster to "guide" the extrapolation
294  // 1st figure which layer we want to shoot at
295  // in this case we chose between EMB2 or EME2
296  // given the cluster.
297  std::vector<CaloSampling::CaloSample> samples;
300  samples.push_back(CaloSampling::CaloSample::EME2);
301  } else {
302  samples.push_back(CaloSampling::CaloSample::EMB2);
303  }
304 
305  // create the surfaces we want to reach.
306  // Aka either a cylinder for EME2 or a disc for EMB2
307  std::vector<std::unique_ptr<Trk::Surface>> caloSurfaces =
308  m_caloExtensionTool->caloSurfacesFromLayers(samples, clus->eta(), caloDD);
309 
310  // And then try to reach them
311  const auto extension = m_caloExtensionTool->surfaceCaloExtension(
312  ctx, trk->perigeeParameters(), samples, caloSurfaces,
314 
315  if (extension.empty()) {
316  ATH_MSG_VERBOSE("extrapolator failed 1");
317  return false;
318  }
319  // We target exactly one EMB2 or EME2 (the vector has 1 entry if not empty)
320  etaAtCalo = extension[0].second->position().eta();
321  phiAtCalo = extension[0].second->position().phi();
322 
323  ATH_MSG_VERBOSE("Hit sampling :" << extension.at(0).first << " at eta : "
324  << etaAtCalo << " at phi : " << phiAtCalo);
325 
326  return true;
327 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ getCaloPt()

static double TrigEgammaFastElectronReAlgo::getCaloPt ( const xAOD::TrigElectron el)
inlinestaticprivate

Definition at line 63 of file TrigEgammaFastElectronReAlgo.h.

63  {
64  if(!el) return -999.0;
65  return el->pt();
66  }

◆ getTkPt()

static double TrigEgammaFastElectronReAlgo::getTkPt ( const xAOD::TrigElectron el)
inlinestaticprivate

Definition at line 68 of file TrigEgammaFastElectronReAlgo.h.

68  {
69  if(!el) return -999.0;
70  return (el->trackParticle() ? el->trackParticle()->pt() : -999);
71  }

◆ initialize()

StatusCode TrigEgammaFastElectronReAlgo::initialize ( )
overridevirtual

Definition at line 33 of file TrigEgammaFastElectronReAlgo.cxx.

34 {
35  ATH_MSG_DEBUG("Initialization:");
36 
37  if (!m_monTool.empty()) {
38  ATH_MSG_DEBUG("Retrieving monTool");
39  CHECK(m_monTool.retrieve());
40  } else {
41  ATH_MSG_DEBUG("No monTool configured => NO MONITOING");
42  }
43 
44  if ( m_caloExtensionTool.retrieve().isFailure() ) {
45  ATH_MSG_ERROR("Unable to locate TrackExtrapolator tool ");
46  return StatusCode::FAILURE;
47  }
48 
49  // print out settings
50  ATH_MSG_DEBUG("Initialization completed successfully:");
51  ATH_MSG_DEBUG( "AcceptAll = "<< (m_acceptAll==true ? "True" : "False"));
52  ATH_MSG_DEBUG("TrackPt = " << m_trackPtthr);
53  ATH_MSG_DEBUG("TrackPtHighEt = " << m_trackPtthr_highet);
54  ATH_MSG_DEBUG("ClusEt = " << m_clusEtthr);
55  ATH_MSG_DEBUG("CaloTrackdEtaNoExtrap= " << m_calotrkdeta_noextrap);
56  ATH_MSG_DEBUG("CaloTrackdEtaNoExtrapHighEt= " << m_calotrkdeta_noextrap_highet);
57  ATH_MSG_DEBUG("CaloTrackdETA = " << m_calotrackdeta);
58  ATH_MSG_DEBUG("CaloTrackdPHI = " << m_calotrackdphi);
59  ATH_MSG_DEBUG("CaloTrackdEoverPLow = " << m_calotrackdeoverp_low);
60  ATH_MSG_DEBUG("CaloTrackdEoverPHigh = " << m_calotrackdeoverp_high);
61 
63  ATH_CHECK( m_TrigEMClusterContainerKey.initialize() );
66  ATH_CHECK( m_outputElectronsKey.initialize() );
67  ATH_CHECK( m_outputDummyElectronsKey.initialize() );
68 
69  return StatusCode::SUCCESS;
70 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_acceptAll

Gaudi::Property<bool> TrigEgammaFastElectronReAlgo::m_acceptAll {this, "AcceptAll", false, "Build electrons for all tracks"}
private

Definition at line 80 of file TrigEgammaFastElectronReAlgo.h.

◆ m_caloDetDescrMgrKey

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

Definition at line 114 of file TrigEgammaFastElectronReAlgo.h.

◆ m_caloExtensionTool

ToolHandle<Trk::IParticleCaloExtensionTool> TrigEgammaFastElectronReAlgo::m_caloExtensionTool
private
Initial value:
{
this, "ParticleCaloExtensionTool",
"Trk::ParticleCaloExtensionTool/ParticleCaloExtensionTool",
"Tool to extrapolate Track to Calo inner surface"}

Definition at line 94 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrackdeoverp_high

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrackdeoverp_high {this, "CaloTrackdEoverPHigh", 0, "upper limit on track E(calo)/p(track)"}
private

Definition at line 89 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrackdeoverp_low

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrackdeoverp_low {this, "CaloTrackdEoverPLow", 0, "lower limit on E(calo)/p(track)"}
private

Definition at line 88 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrackdeta

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrackdeta {this, "CaloTrackdETA", 0, "Upper limit on DEta between Calo cluster and Track"}
private

Definition at line 86 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrackdphi

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrackdphi {this, "CaloTrackdPHI", 0, "Upper limit on DPhi between Calo cluster and Track"}
private

Definition at line 87 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrkdeta_noextrap

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrkdeta_noextrap {this, "CaloTrackdEtaNoExtrap", 0.5, "Upper limit on DEta between Calo cluster and Track for track preselection before extrapolation"}
private

Definition at line 83 of file TrigEgammaFastElectronReAlgo.h.

◆ m_calotrkdeta_noextrap_highet

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_calotrkdeta_noextrap_highet {this, "CaloTrackdEtaNoExtrapHighEt", 0, "upper limit on DEta between Calo cluster and Track for track preselection before extrapolation for High Et cluster (20GeV)"}
private

Definition at line 85 of file TrigEgammaFastElectronReAlgo.h.

◆ m_clusEtthr

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_clusEtthr {this, "ClusEt", 20.0*Gaudi::Units::GeV , " lower limit on cluster Et"}
private

Definition at line 81 of file TrigEgammaFastElectronReAlgo.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_monTool

ToolHandle< GenericMonitoringTool > TrigEgammaFastElectronReAlgo::m_monTool { this, "MonTool", "", "Monitoring tool" }
private

Definition at line 131 of file TrigEgammaFastElectronReAlgo.h.

◆ m_outputDummyElectronsKey

SG::WriteHandleKey<xAOD::TrigElectronContainer> TrigEgammaFastElectronReAlgo::m_outputDummyElectronsKey
private
Initial value:
{ this,
"DummyElectronsName",
"Electrons",
"output Dummy Electron container name "}

Definition at line 126 of file TrigEgammaFastElectronReAlgo.h.

◆ m_outputElectronsKey

SG::WriteHandleKey<xAOD::TrigElectronContainer> TrigEgammaFastElectronReAlgo::m_outputElectronsKey
private
Initial value:
{
this,
"ElectronsName",
"Electrons",
"output Electron container name "}

Definition at line 120 of file TrigEgammaFastElectronReAlgo.h.

◆ m_RCAL

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_RCAL {this, "RCalBarrelFace", 1470.0*Gaudi::Units::mm , "Radius of inner face of the barrel calorimeter"}
private

Definition at line 90 of file TrigEgammaFastElectronReAlgo.h.

◆ m_roiCollectionKey

SG::ReadHandleKey<TrigRoiDescriptorCollection> TrigEgammaFastElectronReAlgo::m_roiCollectionKey
private
Initial value:
{ this,
"RoIs",
"rois",
"input RoI Collection name"}

Definition at line 99 of file TrigEgammaFastElectronReAlgo.h.

◆ m_TrackParticleContainerKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> TrigEgammaFastElectronReAlgo::m_TrackParticleContainerKey
private
Initial value:
{ this,
"TrackParticlesName",
"Tracks",
"input TrackParticle container name"}

Definition at line 109 of file TrigEgammaFastElectronReAlgo.h.

◆ m_trackPtthr

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_trackPtthr {this, "TrackPt", 5.0*Gaudi::Units::GeV , "lower limit on TrackPt cut" }
private

Definition at line 82 of file TrigEgammaFastElectronReAlgo.h.

◆ m_trackPtthr_highet

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_trackPtthr_highet {this, "TrackPtHighEt", 2.0*Gaudi::Units::GeV , "lower limit on TrackPt cut High Et Cluster (20GeV)"}
private

Definition at line 84 of file TrigEgammaFastElectronReAlgo.h.

◆ m_TrigEMClusterContainerKey

SG::ReadHandleKey<xAOD::TrigEMClusterContainer> TrigEgammaFastElectronReAlgo::m_TrigEMClusterContainerKey
private
Initial value:
{ this,
"TrigEMClusterName",
"clusters",
"input TrigEMCluster Container name"}

Definition at line 104 of file TrigEgammaFastElectronReAlgo.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_ZCAL

Gaudi::Property<float> TrigEgammaFastElectronReAlgo::m_ZCAL {this, "ZCalEndcapFace", 3800.0*Gaudi::Units::mm, "z of the inner face of endcap calorimeter"}
private

Definition at line 91 of file TrigEgammaFastElectronReAlgo.h.


The documentation for this class was generated from the following files:
TrigEgammaFastElectronReAlgo::extrapolate
bool extrapolate(const EventContext &ctx, const CaloDetDescrManager &caloDD, const xAOD::TrigEMCluster *, const xAOD::TrackParticle *, double &, double &) const
Definition: TrigEgammaFastElectronReAlgo.cxx:288
xAOD::TrigElectron_v1
Class describing an electron reconstructed in the HLT.
Definition: TrigElectron_v1.h:39
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
xAOD::TrigEMCluster_v1::eta
float eta() const
get Eta (calibrated)
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
TrigEgammaFastElectronReAlgo::m_calotrackdphi
Gaudi::Property< float > m_calotrackdphi
Definition: TrigEgammaFastElectronReAlgo.h:87
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
InDetAccessor::phi0
@ phi0
Definition: InDetAccessor.h:33
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
test_pyathena.pt
pt
Definition: test_pyathena.py:11
M_PI
#define M_PI
Definition: ActiveFraction.h:11
TrigRoiDescriptor::roiWord
virtual unsigned int roiWord() const override final
Definition: TrigRoiDescriptor.h:135
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
TrigEgammaFastElectronReAlgo::m_calotrackdeoverp_low
Gaudi::Property< float > m_calotrackdeoverp_low
Definition: TrigEgammaFastElectronReAlgo.h:88
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAOD::TrigElectron_v1::trkClusDeta
float trkClusDeta() const
The absolute value of the track-calo eta measurement difference.
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
xAOD::TrigElectron_v1::trkEtaAtCalo
float trkEtaAtCalo() const
Get the track's pseudorapidity extrapolated to the calorimeter.
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
TrigEgammaFastElectronReAlgo::m_calotrkdeta_noextrap_highet
Gaudi::Property< float > m_calotrkdeta_noextrap_highet
Definition: TrigEgammaFastElectronReAlgo.h:85
TrigEgammaFastElectronReAlgo::m_caloExtensionTool
ToolHandle< Trk::IParticleCaloExtensionTool > m_caloExtensionTool
Definition: TrigEgammaFastElectronReAlgo.h:94
xAOD::TrackParticle_v1::perigeeParameters
const Trk::Perigee & perigeeParameters() const
Returns the Trk::MeasuredPerigee track parameters.
Definition: TrackParticle_v1.cxx:485
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
xAOD::TrigEMCluster_v1::phi
float phi() const
get Phi (calibrated)
TrigEgammaFastElectronReAlgo::getTkPt
static double getTkPt(const xAOD::TrigElectron *el)
Definition: TrigEgammaFastElectronReAlgo.h:68
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
TrigEgammaFastElectronReAlgo::m_calotrackdeoverp_high
Gaudi::Property< float > m_calotrackdeoverp_high
Definition: TrigEgammaFastElectronReAlgo.h:89
xAOD::TrigElectron_v1::trkPhiAtCalo
float trkPhiAtCalo() const
Get the track's azimuthal angle extrapolated to the calorimeter.
TrigEgammaFastElectronReAlgo::getCaloPt
static double getCaloPt(const xAOD::TrigElectron *el)
Definition: TrigEgammaFastElectronReAlgo.h:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::roiId
setTeId setLumiBlock roiId
Definition: L2StandAloneMuon_v1.cxx:331
TRT::Track::d0
@ d0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:62
TrigEgammaFastElectronReAlgo::m_clusEtthr
Gaudi::Property< float > m_clusEtthr
Definition: TrigEgammaFastElectronReAlgo.h:81
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
TrigEgammaFastElectronReAlgo::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition: TrigEgammaFastElectronReAlgo.h:80
xAOD::TrigElectron_v1::etOverPt
float etOverPt() const
Get for the electron.
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
TrigEgammaFastElectronReAlgo::m_trackPtthr_highet
Gaudi::Property< float > m_trackPtthr_highet
Definition: TrigEgammaFastElectronReAlgo.h:84
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
TrigEgammaFastElectronReAlgo::m_outputElectronsKey
SG::WriteHandleKey< xAOD::TrigElectronContainer > m_outputElectronsKey
Definition: TrigEgammaFastElectronReAlgo.h:120
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
TrigEgammaFastElectronReAlgo::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition: TrigEgammaFastElectronReAlgo.h:99
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Trk::nonInteracting
@ nonInteracting
Definition: ParticleHypothesis.h:25
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::TrigElectron_v1::init
void init(uint32_t roi, float trkEtaAtCalo, float trkPhiAtCalo, float etOverPt, const EMClusterLink_t &clLink, const TrackParticleLink_t &tpLink)
Initialisation function, setting most properties of the object.
xAOD::TrigElectron
TrigElectron_v1 TrigElectron
Declare the latest version of the class.
Definition: Event/xAOD/xAODTrigEgamma/xAODTrigEgamma/TrigElectron.h:16
TrigEgammaFastElectronReAlgo::m_outputDummyElectronsKey
SG::WriteHandleKey< xAOD::TrigElectronContainer > m_outputDummyElectronsKey
Definition: TrigEgammaFastElectronReAlgo.h:126
TrigEgammaFastElectronReAlgo::m_trackPtthr
Gaudi::Property< float > m_trackPtthr
Definition: TrigEgammaFastElectronReAlgo.h:82
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
TrigEgammaFastElectronReAlgo::m_TrigEMClusterContainerKey
SG::ReadHandleKey< xAOD::TrigEMClusterContainer > m_TrigEMClusterContainerKey
Definition: TrigEgammaFastElectronReAlgo.h:104
TrigEgammaFastElectronReAlgo::m_TrackParticleContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackParticleContainerKey
Definition: TrigEgammaFastElectronReAlgo.h:109
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
plotBeamSpotMon.mon
mon
Definition: plotBeamSpotMon.py:67
TrigEgammaFastElectronReAlgo::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: TrigEgammaFastElectronReAlgo.h:114
TrigEgammaFastElectronReAlgo::m_calotrackdeta
Gaudi::Property< float > m_calotrackdeta
Definition: TrigEgammaFastElectronReAlgo.h:86
xAOD::TrigElectron_v1::trkClusDphi
float trkClusDphi() const
The absolute value of the track-calo phi measurement difference.
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
TrigEgammaFastElectronReAlgo::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigEgammaFastElectronReAlgo.h:131
xAOD::TrigEMCluster_v1::et
float et() const
get Et (calibrated)
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TrigEgammaFastElectronReAlgo::m_calotrkdeta_noextrap
Gaudi::Property< float > m_calotrkdeta_noextrap
Definition: TrigEgammaFastElectronReAlgo.h:83
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
xAOD::TrigElectron_v1::caloPhi
float caloPhi() const
Azimuthal angle ( ) of the electron in the calorimeter.
xAOD::TrigEMCluster_v1
Description of a trigger EM cluster.
Definition: TrigEMCluster_v1.h:28
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
xAOD::TrigEMCluster_v1::energy
float energy() const
get Energy (calibrated)
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
xAOD::TrigElectron_v1::caloEta
float caloEta() const
Pseudorapidity ( ) of the electron in the calorimeter.
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >