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

TrigTRTHTHCounter gives back the number of TRT high-threshold hits based on the code of HIPsFilterAlg by Sergey Burdin @migrated from TrigTRTHTHCounter.h & cxx. More...

#include <TrigTRTHTHCounter.h>

Inheritance diagram for TrigTRTHTHCounter:
Collaboration diagram for TrigTRTHTHCounter:

Public Member Functions

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

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

const TRT_IDm_trtHelper {nullptr}
 TRT ID helper. More...
 
float m_maxCaloEta {1.7}
 
Gaudi::Property< float > m_etaHalfWidth {this, "EtaHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"}
 
Gaudi::Property< float > m_phiHalfWidth {this, "PhiHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"}
 
Gaudi::Property< bool > m_doFullScan {this, "doFullScan", false , "Whether to use all RoI"}
 
Gaudi::Property< float > m_roadWidth {this, "RoadWidth", 4. , "Width of road in mm"}
 
Gaudi::Property< int > m_nBinCoarse {this, "nBinCoarse", 14 , "Number of coarse bins used while phi centering"}
 
Gaudi::Property< int > m_nBinFine {this, "nBinFine", 14 , "Number of fine bins used while phi centering"}
 
Gaudi::Property< float > m_wedgeMinEta {this, "WedgeMinEta", 0 , "Min eta for wedge algorithm"}
 
Gaudi::Property< float > m_roadMaxEta {this, "RoadMaxEta", 1.06 , "Max eta for road algorithm (barrel only)"}
 
Gaudi::Property< int > m_wedgeNBin {this, "WedgeNBin", 5 , "Number of fine bins to consider in the wedge algorithm"}
 
SG::ReadHandleKey< TrigRoiDescriptorCollectionm_roiCollectionKey
 
SG::ReadHandleKey< InDet::TRT_DriftCircleContainerm_trtDCContainerKey
 
SG::WriteHandleKey< xAOD::TrigRNNOutputContainerm_trigRNNOutputKey
 
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

TrigTRTHTHCounter gives back the number of TRT high-threshold hits based on the code of HIPsFilterAlg by Sergey Burdin @migrated from TrigTRTHTHCounter.h & cxx.

Author
Jiri Masik Jiri..nosp@m.Masi.nosp@m.k@hep.nosp@m..man.nosp@m.chest.nosp@m.er.a.nosp@m.c.uk

Definition at line 41 of file TrigTRTHTHCounter.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

◆ TrigTRTHTHCounter()

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

Definition at line 34 of file TrigTRTHTHCounter.cxx.

35  : AthReentrantAlgorithm(name, pSvcLocator)
36 {}

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 TrigTRTHTHCounter::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 59 of file TrigTRTHTHCounter.cxx.

59  {
60 
61  ATH_MSG_DEBUG( "Executing " <<name());
62 
63  auto trigRNNOutputColl = SG::makeHandle (m_trigRNNOutputKey, ctx);
64  ATH_CHECK(trigRNNOutputColl.record (std::make_unique<xAOD::TrigRNNOutputContainer>(),
65  std::make_unique<xAOD::TrigRNNOutputAuxContainer>()));
66 
67  ATH_MSG_DEBUG( "Made WriteHandle " << m_trigRNNOutputKey );
68 
69  auto roiCollection = SG::makeHandle(m_roiCollectionKey, ctx);
70  ATH_MSG_DEBUG( "Made handle " << m_roiCollectionKey );
71 
72  if (roiCollection->size()==0) {
73  ATH_MSG_DEBUG(" RoI collection size = 0");
74  return StatusCode::SUCCESS;
75  }
76 
77  const TrigRoiDescriptor* roiDescriptor = *(roiCollection->begin());
78 
79  ATH_MSG_DEBUG(" RoI ID = " << (roiDescriptor)->roiId()
80  << ": Eta = " << (roiDescriptor)->eta()
81  << ", Phi = " << (roiDescriptor)->phi());
82 
83 
84  std::vector<float> trththits{0,-999,0,-999,-999,-999};
85 
86  //Vectors to hold the count of total and HT TRT hits in the coarse bins
87  std::vector<int> count_httrt_c(m_nBinCoarse);
88  std::vector<int> count_tottrt_c(m_nBinCoarse);
89 
90  //Vectors to hold the count of total and HT TRT hits in the fine bins
91  std::vector<int> count_httrt(3*m_nBinFine);
92  std::vector<int> count_tottrt(3*m_nBinFine);
93 
94  //Vector to hold TRT hits that are within RoI
95  std::vector<TRT_hit> hit;
96 
97  //Sanity check of the ROI size
98  double deltaEta= std::abs(roiDescriptor->etaPlus()-roiDescriptor->etaMinus());
99  double deltaPhi= std::abs(CxxUtils::deltaPhi(roiDescriptor->phiPlus(),roiDescriptor->phiMinus()));
100 
101  ATH_MSG_DEBUG( "roiDescriptor->etaPlus() in TrigTRTHTHCounter:"<<roiDescriptor->etaPlus());
102  ATH_MSG_DEBUG( "roiDescriptor->etaMinus() in TrigTRTHTHCounter:"<<roiDescriptor->etaMinus());
103  ATH_MSG_DEBUG( "deltaEta in TrigTRTHTHCounter:"<<deltaEta);
104 
105  float phiTolerance = 0.001;
106  float etaTolerance = 0.001;
107 
108  if((m_etaHalfWidth - deltaEta/2.) > etaTolerance)
109  ATH_MSG_WARNING ( "ROI eta range too small : " << deltaEta);
110 
111  if((m_phiHalfWidth - deltaPhi/2.) > phiTolerance)
112  ATH_MSG_WARNING ( "ROI phi range too small : " << deltaPhi);
113 
114  float coarseWedgeHalfWidth = m_phiHalfWidth/m_nBinCoarse;
115  float fineWedgeHalfWidth = coarseWedgeHalfWidth/m_nBinFine;
116 
117  //Code will only proceed if the RoI eta is not too large; used to limit rate from endcap
118  if ( std::abs(roiDescriptor->eta())<=m_maxCaloEta ){
119 
121  ATH_MSG_DEBUG( "Made handle " << m_trtDCContainerKey );
122 
123  if (trtDCC->size() == 0){
124  return StatusCode::SUCCESS; // Exit early if there are no tracks
125  }
126 
127  InDet::TRT_DriftCircleContainer::const_iterator trtdriftContainerItr = trtDCC->begin();
128  InDet::TRT_DriftCircleContainer::const_iterator trtdriftContainerItrE = trtDCC->end();
129 
130  for (; trtdriftContainerItr != trtdriftContainerItrE; ++trtdriftContainerItr) {
131 
132  InDet::TRT_DriftCircleCollection::const_iterator trtItr = (*trtdriftContainerItr)->begin();
133  InDet::TRT_DriftCircleCollection::const_iterator trtEnd = (*trtdriftContainerItr)->end();
134 
135  for(; trtItr!=trtEnd; ++trtItr){
136 
137  // find out which detector element the hit belongs to
138  const InDetDD::TRT_BaseElement *det = (*trtItr)->detectorElement();
139  Identifier ID = (*trtItr)->identify();
140  const Amg::Vector3D& strawcenter = det->strawCenter(m_trtHelper->straw(ID));
141 
142  bool hth = false;
143  float hphi = strawcenter.phi();
144  float heta = strawcenter.eta();
145  float R = strawcenter.perp();
146 
147  if ((*trtItr)->highLevel()) hth = true;
148 
149  //hit needs to be stored
150  if(hth_eta_match((roiDescriptor)->eta(), heta, m_etaHalfWidth))
151  hit.push_back(make_hit(hphi,R,hth));
152 
153 
154  //First, define coarse wedges in phi, and count the TRT hits in these wedges
155  int countbin=0;
156  if(std::abs(CxxUtils::deltaPhi(hphi, static_cast<float>(roiDescriptor->phi()))) < 0.1){
157  float startValue = roiDescriptor->phi() - m_phiHalfWidth + coarseWedgeHalfWidth;
158  float endValue = roiDescriptor->phi() + m_phiHalfWidth;
159  float increment = 2*coarseWedgeHalfWidth;
160  for(float roibincenter = startValue; roibincenter < endValue; roibincenter += increment){
161  if (std::abs(CxxUtils::deltaPhi(hphi,roibincenter))<=coarseWedgeHalfWidth && hth_eta_match((roiDescriptor)->eta(), heta, m_etaHalfWidth)) {
162  if(hth) count_httrt_c.at(countbin) += 1.;
163  count_tottrt_c.at(countbin) += 1.;
164  break; //the hit has been assigned to one of the coarse wedges, so no need to continue the for loop
165  }
166  countbin++;
167  }
168  }
169  ATH_MSG_VERBOSE ( "timeOverThreshold=" << (*trtItr)->timeOverThreshold()
170  << " highLevel=" << (*trtItr)->highLevel()
171  << " rawDriftTime=" << (*trtItr)->rawDriftTime()
172  << " barrel_ec=" << m_trtHelper->barrel_ec(ID)
173  << " phi_module=" << m_trtHelper->phi_module(ID)
174  << " layer_or_wheel=" << m_trtHelper->layer_or_wheel(ID)
175  << " straw_layer=" << m_trtHelper->straw_layer(ID)
176  << " straw=" << m_trtHelper->straw(ID)
177  << " scR=" << det->strawCenter(m_trtHelper->straw(ID)).perp()
178  << " scPhi=" << hphi
179  << " scEta=" << heta);
180  } // end of loop over TRT drift circle collection
181  } //end of loop over TRT drift circle container
182  } //end of check to see if RoI eta is not too large
183 
184  //Now figure out which of the coarse bins in phi has the max number of HT TRT hits
185  int maxHits = 0; //used to keep track of the max number of HT TRT hits in a coarse bin
186  int dist = 0; //used to keep track of which coarse bin has the max number of HT TRT hits
187 
188  for (size_t iw = 0; iw < count_httrt_c.size(); iw++){
189  if(maxHits <= count_httrt_c[iw]){
190  maxHits = count_httrt_c[iw];
191  dist = iw;
192  }
193  }
194 
195  //Value of dist can range between 0 and (m_nBinCoarse-1)
196  float center_pos_phi=roiDescriptor->phi()+(2*dist+1-m_nBinCoarse)*coarseWedgeHalfWidth;
197 
198  //Now, define fine wedges in phi, centered around the best coarse wedge, and count the TRT hits in these fine wedges
199  for(size_t v=0;v<hit.size();v++){
200  int countbin=0;
201  if(std::abs(CxxUtils::deltaPhi(hit[v].phi, center_pos_phi)) < 0.01){
202  float startValue = center_pos_phi - 3*coarseWedgeHalfWidth + fineWedgeHalfWidth;
203  float endValue = center_pos_phi + 3*coarseWedgeHalfWidth;
204  float increment = 2*fineWedgeHalfWidth;
205  for(float roibincenter = startValue; roibincenter < endValue; roibincenter += increment){
206  if (std::abs(CxxUtils::deltaPhi(hit[v].phi,roibincenter))<=fineWedgeHalfWidth) {
207  if(hit[v].isHT) count_httrt.at(countbin) += 1.;
208  count_tottrt.at(countbin) += 1.;
209  break; //the hit has been assigned to one of the fine wedges, so no need to continue the for loop
210  }
211  countbin++;
212  }
213  }
214  }
215 
216  //Now figure out which of the fine bins in phi has the max number of HT TRT hits
217  maxHits = 0; //used to keep track of the max number of HT TRT hits in a fine bin
218  dist = 0; //used to keep track of which fine bin has the max number of HT TRT hits
219 
220  for (size_t iw = 0; iw < count_httrt.size(); iw++){
221  if(maxHits <= count_httrt[iw]){
222  maxHits = count_httrt[iw];
223  dist = iw;
224  }
225  }
226 
227  //Value of dist can range between 0 and (3*m_nBinFine-1)
228  center_pos_phi+=(2*dist+1-3*m_nBinFine)*fineWedgeHalfWidth;
229 
230  //Count the number of total and HT TRT hits for the road algorithm
231  int trthit=0, trthit_ht=0;
232  for(size_t v=0;v<hit.size();v++){
233  if (dist2COR(hit[v].R,hit[v].phi,center_pos_phi)<=m_roadWidth){
234  if(hit[v].isHT) trthit_ht+=1;
235  trthit+=1;
236  }
237  }
238 
239  if (trthit!=0&&(std::abs(roiDescriptor->eta())<=m_roadMaxEta)){
240  trththits[0] = trthit_ht;
241  trththits[1] = (float)trthit_ht/trthit;
242  }
243 
244  //Count the number of total and HT TRT hits for the wedge algorithm
245  trthit = 0;
246  trthit_ht = 0;
247 
248  for (int k=0;k<(2*m_wedgeNBin+1);k++){
249  int binNumber = dist+k-m_wedgeNBin;
250  //Even though we are supposed to use 2*m_wedgeNBin+1 fine bins,
251  //need to make sure that binNumber is sensible
252  if(binNumber >= 0 && binNumber < (int)count_httrt.size()){
253  trthit += count_tottrt.at(binNumber);
254  trthit_ht += count_httrt.at(binNumber);
255  }
256  }
257 
258  if (trthit!=0&&(std::abs(roiDescriptor->eta())>=m_wedgeMinEta)){
259  trththits[2] = trthit_ht;
260  trththits[3] = (float)trthit_ht/trthit;
261  }
262 
263  trththits[4]=roiDescriptor->eta();
264  trththits[5]=roiDescriptor->phi();
265 
266  ATH_MSG_VERBOSE ( "trthits with road algorithm : " << trththits[0]);
267  ATH_MSG_VERBOSE ( "fHT with road algorithm : " << trththits[1]);
268  ATH_MSG_VERBOSE ( "trthits with wedge algorithm : " << trththits[2]);
269  ATH_MSG_VERBOSE ( "fHT with wedge algorithm : " << trththits[3]);
270  ATH_MSG_VERBOSE ( "ROI eta : " << trththits[4]);
271 
272  //Writing to xAOD
273  xAOD::TrigRNNOutput* rnnOutput = new xAOD::TrigRNNOutput();
274  trigRNNOutputColl->push_back(rnnOutput);
275  rnnOutput->setRnnDecision(trththits);
276 
277  ATH_MSG_DEBUG("REGTEST: returning an xAOD::TrigRNNOutputContainer with size "<< trigRNNOutputColl->size() << ".");
278 
279  return StatusCode::SUCCESS;
280 }

◆ 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 }

◆ 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  }

◆ initialize()

StatusCode TrigTRTHTHCounter::initialize ( )
overridevirtual

Definition at line 38 of file TrigTRTHTHCounter.cxx.

39 {
40  ATH_MSG_DEBUG ( "Initialising this TrigTRTHTHCounter: " << name());
41 
42  // Get a TRT identifier helper
43  ATH_CHECK( detStore()->retrieve(m_trtHelper, "TRT_ID") );
44 
45  if (!m_doFullScan){
46  ATH_MSG_INFO ( "PhiHalfWidth: " << m_phiHalfWidth << " EtaHalfWidth: "<< m_etaHalfWidth);
47  } else {
48  ATH_MSG_INFO ( "FullScan mode");
49  }
50 
53  ATH_CHECK( m_trigRNNOutputKey.initialize() );
54 
55  return StatusCode::SUCCESS;
56 }

◆ 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_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_doFullScan

Gaudi::Property<bool> TrigTRTHTHCounter::m_doFullScan {this, "doFullScan", false , "Whether to use all RoI"}
private

Definition at line 58 of file TrigTRTHTHCounter.h.

◆ m_etaHalfWidth

Gaudi::Property<float> TrigTRTHTHCounter::m_etaHalfWidth {this, "EtaHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"}
private

Definition at line 56 of file TrigTRTHTHCounter.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_maxCaloEta

float TrigTRTHTHCounter::m_maxCaloEta {1.7}
private

Definition at line 53 of file TrigTRTHTHCounter.h.

◆ m_monTool

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

Definition at line 82 of file TrigTRTHTHCounter.h.

◆ m_nBinCoarse

Gaudi::Property<int> TrigTRTHTHCounter::m_nBinCoarse {this, "nBinCoarse", 14 , "Number of coarse bins used while phi centering"}
private

Definition at line 60 of file TrigTRTHTHCounter.h.

◆ m_nBinFine

Gaudi::Property<int> TrigTRTHTHCounter::m_nBinFine {this, "nBinFine", 14 , "Number of fine bins used while phi centering"}
private

Definition at line 61 of file TrigTRTHTHCounter.h.

◆ m_phiHalfWidth

Gaudi::Property<float> TrigTRTHTHCounter::m_phiHalfWidth {this, "PhiHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"}
private

Definition at line 57 of file TrigTRTHTHCounter.h.

◆ m_roadMaxEta

Gaudi::Property<float> TrigTRTHTHCounter::m_roadMaxEta {this, "RoadMaxEta", 1.06 , "Max eta for road algorithm (barrel only)"}
private

Definition at line 63 of file TrigTRTHTHCounter.h.

◆ m_roadWidth

Gaudi::Property<float> TrigTRTHTHCounter::m_roadWidth {this, "RoadWidth", 4. , "Width of road in mm"}
private

Definition at line 59 of file TrigTRTHTHCounter.h.

◆ m_roiCollectionKey

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

Definition at line 66 of file TrigTRTHTHCounter.h.

◆ m_trigRNNOutputKey

SG::WriteHandleKey<xAOD::TrigRNNOutputContainer> TrigTRTHTHCounter::m_trigRNNOutputKey
private
Initial value:
{ this,
"RNNOutputName",
"RNNOutput",
"output RNN container name "}

Definition at line 77 of file TrigTRTHTHCounter.h.

◆ m_trtDCContainerKey

SG::ReadHandleKey<InDet::TRT_DriftCircleContainer> TrigTRTHTHCounter::m_trtDCContainerKey
private
Initial value:
{this,
"TRT_DC_ContainerName",
"TRT_DriftCircleContainer",
"TRT DriftCircle Container"}

Definition at line 71 of file TrigTRTHTHCounter.h.

◆ m_trtHelper

const TRT_ID* TrigTRTHTHCounter::m_trtHelper {nullptr}
private

TRT ID helper.

Definition at line 51 of file TrigTRTHTHCounter.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_wedgeMinEta

Gaudi::Property<float> TrigTRTHTHCounter::m_wedgeMinEta {this, "WedgeMinEta", 0 , "Min eta for wedge algorithm"}
private

Definition at line 62 of file TrigTRTHTHCounter.h.

◆ m_wedgeNBin

Gaudi::Property<int> TrigTRTHTHCounter::m_wedgeNBin {this, "WedgeNBin", 5 , "Number of fine bins to consider in the wedge algorithm"}
private

Definition at line 64 of file TrigTRTHTHCounter.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::TrigRNNOutput_v2
Definition: TrigRNNOutput_v2.h:24
TrigTRTHTHCounter::m_doFullScan
Gaudi::Property< bool > m_doFullScan
Definition: TrigTRTHTHCounter.h:58
TrigTRTHTHCounter::m_trtHelper
const TRT_ID * m_trtHelper
TRT ID helper.
Definition: TrigTRTHTHCounter.h:51
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ID
std::vector< Identifier > ID
Definition: CalibHitIDCheck.h:24
TRTCalib_Extractor.det
det
Definition: TRTCalib_Extractor.py:36
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
xAOD::deltaPhi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Definition: L2StandAloneMuon_v1.cxx:160
TrigTRTHTHCounter::m_roadWidth
Gaudi::Property< float > m_roadWidth
Definition: TrigTRTHTHCounter.h:59
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
TrigTRTHTHCounter::m_etaHalfWidth
Gaudi::Property< float > m_etaHalfWidth
Definition: TrigTRTHTHCounter.h:56
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
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
TrigTRTHTHCounter::m_wedgeNBin
Gaudi::Property< int > m_wedgeNBin
Definition: TrigTRTHTHCounter.h:64
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
xAOD::TrigRNNOutput
TrigRNNOutput_v2 TrigRNNOutput
Define the latest version of the RingerRings class.
Definition: Event/xAOD/xAODTrigRinger/xAODTrigRinger/TrigRNNOutput.h:17
TrigTRTHTHCounter::m_nBinCoarse
Gaudi::Property< int > m_nBinCoarse
Definition: TrigTRTHTHCounter.h:60
TRT_ID::straw
int straw(const Identifier &id) const
Definition: TRT_ID.h:902
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TrigTRTHTHCounter::m_wedgeMinEta
Gaudi::Property< float > m_wedgeMinEta
Definition: TrigTRTHTHCounter.h:62
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TrigTRTHTHCounter::m_trigRNNOutputKey
SG::WriteHandleKey< xAOD::TrigRNNOutputContainer > m_trigRNNOutputKey
Definition: TrigTRTHTHCounter.h:77
TrigTRTHTHCounter::m_nBinFine
Gaudi::Property< int > m_nBinFine
Definition: TrigTRTHTHCounter.h:61
hth_eta_match
bool hth_eta_match(float caleta, float trteta, float etaWindow)
Definition: TrigTRTHTHCounter.cxx:28
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
P4Helpers::deltaEta
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition: P4Helpers.h:66
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
TrigTRTHTHCounter::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition: TrigTRTHTHCounter.h:66
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TrigTRTHTHCounter::m_roadMaxEta
Gaudi::Property< float > m_roadMaxEta
Definition: TrigTRTHTHCounter.h:63
TrigTRTHTHCounter::m_trtDCContainerKey
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_trtDCContainerKey
Definition: TrigTRTHTHCounter.h:71
AnalysisUtils::Delta::R
double R(const INavigable4Momentum *p1, const double v_eta, const double v_phi)
Definition: AnalysisMisc.h:49
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_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: TRT_ID.h:866
TRT_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
make_hit
TRT_hit make_hit(float phi, float R, bool isHT)
Definition: TrigTRTHTHCounter.cxx:22
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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
TrigTRTHTHCounter::m_phiHalfWidth
Gaudi::Property< float > m_phiHalfWidth
Definition: TrigTRTHTHCounter.h:57
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
dist2COR
float dist2COR(float R, float phi1, float phi2)
Definition: TrigTRTHTHCounter.cxx:9
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
CxxUtils::deltaPhi
T deltaPhi(T phiA, T phiB)
Return difference phiA - phiB in range [-pi, pi].
Definition: phihelper.h:42
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
python.PyAthena.v
v
Definition: PyAthena.py:154
RoiDescriptor::etaPlus
virtual double etaPlus() const override final
gets eta at zedPlus
Definition: RoiDescriptor.h:115
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
RoiDescriptor::phi
virtual double phi() const override final
Methods to retrieve data members.
Definition: RoiDescriptor.h:100
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
RoiDescriptor::eta
virtual double eta() const override final
Definition: RoiDescriptor.h:101
TrigTRTHTHCounter::m_maxCaloEta
float m_maxCaloEta
Definition: TrigTRTHTHCounter.h:53
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
RoiDescriptor::phiPlus
virtual double phiPlus() const override final
gets phiPlus
Definition: RoiDescriptor.h:118
RoiDescriptor::etaMinus
virtual double etaMinus() const override final
gets eta at zMinus
Definition: RoiDescriptor.h:116
xAOD::TrigRNNOutput_v2::setRnnDecision
void setRnnDecision(const std::vector< float > &d)
RoiDescriptor::phiMinus
virtual double phiMinus() const override final
gets phiMinus
Definition: RoiDescriptor.h:119
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
readCCLHist.float
float
Definition: readCCLHist.py:83
fitman.k
k
Definition: fitman.py:528
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:57
ServiceHandle< ICondSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14