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

#include <CscPeakThresholdClusterBuilderTool.h>

Inheritance diagram for CscPeakThresholdClusterBuilderTool:
Collaboration diagram for CscPeakThresholdClusterBuilderTool:

Public Member Functions

 CscPeakThresholdClusterBuilderTool (const std::string &type, const std::string &aname, const IInterface *)
 
 ~CscPeakThresholdClusterBuilderTool ()
 
StatusCode initialize ()
 AlgTool InterfaceID. More...
 
StatusCode getClusters (std::vector< IdentifierHash > &idVect, std::vector< IdentifierHash > &selectedIdVect, Muon::CscPrepDataContainer *object)
 
StatusCode finalize ()
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

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

int make_clusters (bool measphi, const std::vector< const Muon::CscStripPrepData * > &strips, Muon::CscPrepDataCollection *&collection)
 
StatusCode getClusters (IdentifierHash idVect, std::vector< IdentifierHash > &selectedIdVect, Muon::CscPrepDataContainer *pclusters)
 
StatusCode getClusters (std::vector< IdentifierHash > &selectedIdVect, Muon::CscPrepDataContainer *pclusters)
 
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

double m_qpeak_threshold_eta
 
double m_qpeak_threshold_phi
 
double m_q3sum_threshold_eta
 
double m_q3sum_threshold_phi
 
SG::ReadHandleKey< Muon::CscStripPrepDataContainerm_digit_key
 
SG::WriteHandle< Muon::CscPrepDataContainerm_cluster_handle
 
ToolHandle< ICscStripFitterm_pstrip_fitter
 
ToolHandle< ICscClusterFitterm_pfitter_def
 
ToolHandle< ICscClusterFitterm_pfitter_prec
 
ToolHandle< ICscClusterFitterm_pfitter_split
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc
 
SG::ReadCondHandleKey< MuonGM::MuonDetectorManagerm_DetectorManagerKey
 retrieve MuonDetectorManager from the conditions store 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

Definition at line 73 of file CscPeakThresholdClusterBuilderTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ CscPeakThresholdClusterBuilderTool()

CscPeakThresholdClusterBuilderTool::CscPeakThresholdClusterBuilderTool ( const std::string &  type,
const std::string &  aname,
const IInterface *  parent 
)

Definition at line 66 of file CscPeakThresholdClusterBuilderTool.cxx.

67  :
68  AthAlgTool(type, aname, parent), m_digit_key("CSC_Measurements") {
69  declareInterface<ICscClusterBuilder>(this);
70 
71  declareProperty("qpeak_threshold_eta", m_qpeak_threshold_eta = 21000.0);
72  declareProperty("qpeak_threshold_phi", m_qpeak_threshold_phi = 33000.0);
73  declareProperty("q3sum_threshold_eta", m_q3sum_threshold_eta = 38000.0);
74  declareProperty("q3sum_threshold_phi", m_q3sum_threshold_phi = 33000.0);
75  declareProperty("digit_key", m_digit_key);
76 }

◆ ~CscPeakThresholdClusterBuilderTool()

CscPeakThresholdClusterBuilderTool::~CscPeakThresholdClusterBuilderTool ( )
default

Member Function Documentation

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ finalize()

StatusCode CscPeakThresholdClusterBuilderTool::finalize ( )

Definition at line 324 of file CscPeakThresholdClusterBuilderTool.cxx.

324  {
325  ATH_MSG_VERBOSE("Finalizing " << name());
326  return StatusCode::SUCCESS;
327 }

◆ getClusters() [1/3]

StatusCode CscPeakThresholdClusterBuilderTool::getClusters ( IdentifierHash  idVect,
std::vector< IdentifierHash > &  selectedIdVect,
Muon::CscPrepDataContainer pclusters 
)
private

Definition at line 148 of file CscPeakThresholdClusterBuilderTool.cxx.

149  {
150  // identifiers of collections already decoded and stored in the container will be skipped
151  if (pclusters->indexFindPtr(givenHashId) != nullptr) {
152  decodedIds.push_back(givenHashId);
153  ATH_MSG_DEBUG("A collection already exists in the container for offline id hash. " << (int)givenHashId);
154  return StatusCode::SUCCESS;
155  }
156 
157  // Retrieve the CSC digits for this event.
159  if (pdigcon.isValid()) {
160  ATH_MSG_DEBUG("Retrieved strip container " << m_digit_key.key() << " with " << pdigcon->size() << " entries.");
161  } else {
162  ATH_MSG_WARNING("Failure to retrieve strip container " << m_digit_key.key());
163  return StatusCode::SUCCESS;
164  }
165 
166  //**********************************************
167  // retrieve specific collection for the givenID
168  const CscStripPrepDataCollection* col = pdigcon->indexFindPtr(givenHashId);
169  if (nullptr == col) {
170  unsigned int coll_hash = givenHashId;
171  ATH_MSG_WARNING("Specific CSC Strip PrepData collection retrieving failed for collection hash = " << coll_hash);
172  return StatusCode::SUCCESS;
173  }
174 
175  ATH_MSG_DEBUG("Retrieved " << col->size() << " CSC Strip PrepDatas.");
176 
177  Identifier colid = col->identify();
178  int istation = m_idHelperSvc->cscIdHelper().stationName(colid) - 49;
179  int zsec = m_idHelperSvc->cscIdHelper().stationEta(colid);
180  int phisec = m_idHelperSvc->cscIdHelper().stationPhi(colid);
181 
182  ATH_MSG_DEBUG(" Strip collection " << chamber(istation, zsec, phisec) << " has " << col->size() << " strips");
183 
184  // Create arrays to hold digits and cathode plane parameters.
185  vector<const CscStripPrepData*> strips[8];
186  int maxstrip[8] = {0, 0, 0, 0, 0, 0, 0, 0};
187 
188  // retrieve MuonDetectorManager from the conditions store
190  const MuonGM::MuonDetectorManager* MuonDetMgr = DetectorManagerHandle.cptr();
191  if (MuonDetMgr == nullptr) {
192  ATH_MSG_ERROR("Null pointer to the MuonDetectorManager conditions object");
193  return StatusCode::FAILURE;
194  }
195 
197  // Loop over digits and fill these arrays.
198  for (CscStripPrepDataCollection::const_iterator idig = col->begin(); idig != col->end(); ++idig) {
199  const CscStripPrepData& dig = **idig;
200  Identifier did = dig.identify();
201  hash = dig.collectionHash();
202  const CscReadoutElement* pro = MuonDetMgr->getCscReadoutElement(did);
203  int wlay = m_idHelperSvc->cscIdHelper().wireLayer(did);
204  int measphi = m_idHelperSvc->cscIdHelper().measuresPhi(did);
205  int idx = 2 * (wlay - 1) + measphi;
206  // First entry for a cathode plane, initialize.
207  if (maxstrip[idx] == 0) {
208  maxstrip[idx] = pro->maxNumberOfStrips(measphi);
209  for (int istrip = 0; istrip < maxstrip[idx]; ++istrip) strips[idx].push_back(nullptr);
210  }
211  int istrip = m_idHelperSvc->cscIdHelper().strip(did) - 1;
212  if (istrip < 0 || istrip >= maxstrip[idx]) {
213  ATH_MSG_WARNING("Invalid strip number");
214  continue;
215  }
216  strips[idx][istrip] = &dig;
217  }
218 
219  // Cluster.
220  CscPrepDataCollection* newCollection = nullptr;
221  for (int measphi = 0; measphi < 2; ++measphi) {
222  for (int wlay = 1; wlay < 5; ++wlay) {
223  int idx = 2 * (wlay - 1) + measphi;
224  if (maxstrip[idx]) {
225  make_clusters(measphi, strips[idx], newCollection);
226  ATH_MSG_DEBUG(" " << wlay << "th layer ");
227  }
228  }
229  }
230  if (newCollection) {
231  if (pclusters->addCollection(newCollection, hash).isFailure()) {
232  ATH_MSG_ERROR("Couldn't add CscPrepdataCollection to container!");
233  return StatusCode::FAILURE;
234  }
235  decodedIds.push_back(hash); // Record that this collection contains data
236  }
237 
238  return StatusCode::SUCCESS;
239 }

◆ getClusters() [2/3]

StatusCode CscPeakThresholdClusterBuilderTool::getClusters ( std::vector< IdentifierHash > &  idVect,
std::vector< IdentifierHash > &  selectedIdVect,
Muon::CscPrepDataContainer object 
)
virtual

Implements ICscClusterBuilder.

Definition at line 124 of file CscPeakThresholdClusterBuilderTool.cxx.

125  {
126  // clear output vector of selected data collections containing data
127  decodedIds.clear();
128 
129  if (!givenIDs.empty()) {
130  for (unsigned int i = 0; i < givenIDs.size(); ++i) {
131  if (getClusters(givenIDs[i], decodedIds, object).isFailure()) {
132  ATH_MSG_ERROR("Unable to decode CSC RDO " << i << "th into CSC PrepRawData");
133  return StatusCode::RECOVERABLE;
134  }
135  }
136  } else {
137  // Clusterization is done for every area
138  if (getClusters(decodedIds, object).isFailure()) {
139  ATH_MSG_ERROR("Unable to decode CSC RDO into CSC PrepRawData");
140  return StatusCode::RECOVERABLE;
141  }
142  }
143  return StatusCode::SUCCESS;
144 }

◆ getClusters() [3/3]

StatusCode CscPeakThresholdClusterBuilderTool::getClusters ( std::vector< IdentifierHash > &  selectedIdVect,
Muon::CscPrepDataContainer pclusters 
)
private

Definition at line 243 of file CscPeakThresholdClusterBuilderTool.cxx.

243  {
244  // Retrieve the CSC digits for this event.
245 
247  if (pdigcon.isValid()) {
248  ATH_MSG_DEBUG("Retrieved strip container " << m_digit_key.key() << " with " << pdigcon->size() << " entries.");
249  } else {
250  ATH_MSG_WARNING("Failure to retrieve strip container " << m_digit_key.key());
251  return StatusCode::SUCCESS;
252  }
253 
254  // Loop over digit collections.
255  // This a loop over chambers (each with 4 wire planes).
256  const CscStripPrepDataContainer& con = *pdigcon;
257  for (CscStripPrepDataContainer::const_iterator icol = con.begin(); icol != con.end(); ++icol) {
259  Identifier colid = col.identify();
260  int istation = m_idHelperSvc->cscIdHelper().stationName(colid) - 49;
261  int zsec = m_idHelperSvc->cscIdHelper().stationEta(colid);
262  int phisec = m_idHelperSvc->cscIdHelper().stationPhi(colid);
263  ATH_MSG_DEBUG(" Strip collection " << chamber(istation, zsec, phisec) << " has " << col.size() << " strips");
264 
265  // Create arrays to hold digits and cathode plane parameters.
266  vector<const CscStripPrepData*> strips[8];
267  int maxstrip[8] = {0, 0, 0, 0, 0, 0, 0, 0};
268 
269  // retrieve MuonDetectorManager from the conditions store
271  const MuonGM::MuonDetectorManager* MuonDetMgr = DetectorManagerHandle.cptr();
272  if (MuonDetMgr == nullptr) {
273  ATH_MSG_ERROR("Null pointer to the MuonDetectorManager conditions object");
274  return StatusCode::FAILURE;
275  }
276 
278  // Loop over digits and fill these arrays.
279  for (CscStripPrepDataCollection::const_iterator idig = col.begin(); idig != col.end(); ++idig) {
280  const CscStripPrepData& dig = **idig;
281  Identifier did = dig.identify();
282  hash = dig.collectionHash();
283  const CscReadoutElement* pro = MuonDetMgr->getCscReadoutElement(did);
284  int wlay = m_idHelperSvc->cscIdHelper().wireLayer(did);
285  int measphi = m_idHelperSvc->cscIdHelper().measuresPhi(did);
286  int idx = 2 * (wlay - 1) + measphi;
287  // First entry for a cathode plane, initialize.
288  if (maxstrip[idx] == 0) {
289  maxstrip[idx] = pro->maxNumberOfStrips(measphi);
290  for (int istrip = 0; istrip < maxstrip[idx]; ++istrip) strips[idx].push_back(nullptr);
291  }
292  int istrip = m_idHelperSvc->cscIdHelper().strip(did) - 1;
293  if (istrip < 0 || istrip >= maxstrip[idx]) {
294  ATH_MSG_WARNING("Invalid strip number");
295  continue;
296  }
297  strips[idx][istrip] = &dig;
298  }
299 
300  // Cluster.
301  CscPrepDataCollection* newCollection = nullptr;
302  for (int measphi = 0; measphi < 2; ++measphi) {
303  for (int wlay = 1; wlay < 5; ++wlay) {
304  int idx = 2 * (wlay - 1) + measphi;
305  if (maxstrip[idx]) {
306  make_clusters(measphi, strips[idx], newCollection);
307  ATH_MSG_DEBUG(" " << wlay << "th layer ");
308  }
309  }
310  }
311  if (newCollection) {
312  if (pclusters->addCollection(newCollection, hash).isFailure()) {
313  ATH_MSG_ERROR("Couldn't add CscPrepdataCollection to container!");
314  return StatusCode::FAILURE;
315  }
316  decodedIds.push_back(hash); // Record that this collection contains data
317  }
318  } // end loop over chambers
319 
320  return StatusCode::SUCCESS;
321 }

◆ initialize()

StatusCode CscPeakThresholdClusterBuilderTool::initialize ( )

AlgTool InterfaceID.

Definition at line 86 of file CscPeakThresholdClusterBuilderTool.cxx.

86  {
87  ATH_MSG_DEBUG("Initializing " << name());
88  ATH_CHECK(m_digit_key.initialize());
89  // Display algorithm properties.
90  ATH_MSG_DEBUG("Properties for " << name() << ":");
91  ATH_MSG_DEBUG(" Cluster qpeak threshold is eta/phi " << m_qpeak_threshold_eta << "/" << m_qpeak_threshold_phi);
92  ATH_MSG_DEBUG(" Cluster q3sum threshold is eta/phi " << m_q3sum_threshold_eta << "/" << m_q3sum_threshold_phi);
93  ATH_MSG_DEBUG(" Strip fitter is " << m_pstrip_fitter.typeAndName());
94  ATH_MSG_DEBUG(" Default cluster fitter is " << m_pfitter_def.typeAndName());
95  ATH_MSG_DEBUG(" Precision cluster fitter is " << m_pfitter_prec.typeAndName());
96  ATH_MSG_DEBUG(" Split cluster fitter is " << m_pfitter_split.typeAndName());
97  ATH_MSG_DEBUG(" Input digit key is " << m_digit_key.key());
98 
99  // Retrieve the strip fitting tool.
100  ATH_CHECK(m_pstrip_fitter.retrieve());
101  ATH_MSG_DEBUG("Retrieved strip fitting tool " << m_pstrip_fitter);
102 
103  // Retrieve the default cluster fitting tool.
104  ATH_CHECK(m_pfitter_def.retrieve());
105  ATH_MSG_DEBUG("Retrieved CSC default cluster fitting tool");
106 
107  // Retrieve the precision cluster fitting tool.
108  ATH_CHECK(m_pfitter_prec.retrieve());
109  ATH_MSG_DEBUG("Retrieved CSC precision cluster fitting tool");
110 
111  // Retrieve the split cluster fitting tool.
112  ATH_CHECK(m_pfitter_split.retrieve());
113  ATH_MSG_DEBUG("Retrieved CSC split cluster fitting tool");
114 
115  // retrieve MuonDetectorManager from the conditions store
117  ATH_CHECK(m_idHelperSvc.retrieve());
118 
119  return StatusCode::SUCCESS;
120 }

◆ inputHandles()

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

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& ICscClusterBuilder::interfaceID ( )
inlinestaticinherited

Must declare this, with name of interface

Definition at line 30 of file ICscClusterBuilder.h.

30  {
32  static const InterfaceID IID_ICscClusterBuilder("ICscClusterBuilder", 1, 0);
33  return IID_ICscClusterBuilder;
34  }

◆ make_clusters()

int CscPeakThresholdClusterBuilderTool::make_clusters ( bool  measphi,
const std::vector< const Muon::CscStripPrepData * > &  strips,
Muon::CscPrepDataCollection *&  collection 
)
private

Definition at line 338 of file CscPeakThresholdClusterBuilderTool.cxx.

339  {
340  // CscPrepDataCollection* newCollection = 0;
341 
342  // Loop over channels.
343  unsigned int maxstrip = strips.size();
344 
345  ATH_MSG_DEBUG(" Clustering for " << setaphi(measphi) << " plane with " << maxstrip << " strips");
346 
347  // Loop over strips and fetch the charge and time for each.
348  // Also set flag indicating if this strip is active, i.e. should be included
349  // in a cluster.
351  std::vector<bool> astrip;
352  IdentifierHash cscHashId;
353 
354  for (unsigned int istrip = 0; istrip < strips.size(); ++istrip) {
355  const CscStripPrepData* pstrip = strips[istrip];
357  res.charge = 0.0;
358  res.time = -666.;
359  bool active = false;
360 
361  if (pstrip) {
362  if (!newCollection) {
363  Identifier elementId = m_idHelperSvc->cscIdHelper().elementID(pstrip->identify());
364  cscHashId = pstrip->collectionHash();
365  newCollection = new CscPrepDataCollection(cscHashId);
366  newCollection->setIdentifier(elementId);
367  }
368  if (!m_pstrip_fitter) {
369  ATH_MSG_WARNING("Unable to locate strip fitter");
370  return 1;
371  }
372  res = m_pstrip_fitter->fit(*pstrip);
373  active = res.charge > 0.0; // Allow all the positive charged strips...
374  // Log message.
375  ATH_MSG_DEBUG(" Strip " << setw(3) << istrip + 1 << ": charge= " << setw(7) << int(res.charge) << " time=" << setw(3)
376  << int(res.time + 0.5));
377  // if ( active ) *m_log << " *";
378  // else *m_log << " .";
379  // if ( res.status ) *m_log << " x";
380  // else *m_log << " o";
381  // *m_log );
382  }
383 
384  // if (res.charge == 0.0) res.charge =40.;
385  stripfits.push_back(res);
386  astrip.push_back(active);
387  }
388 
389  // Loop over strips and create clusters.
390  bool incluster = false;
391  int first_strip = 0; // First strip in the cluster.
392  double qpeak = 0;
394  std::vector<const CscStripPrepData*> clusterStrips;
395  std::vector<Identifier> prd_digit_ids;
396  for (unsigned int istrip = 0; istrip < strips.size(); ++istrip) {
397  const CscStripPrepData* pstrip = strips[istrip];
398  ICscClusterFitter::StripFit sfit = stripfits[istrip];
399  double q = sfit.charge;
400 
401  // If the current strip is not active, skip it.
402  if (!astrip[istrip]) continue;
403  assert(pstrip != 0);
404 
405  // First strip in cluster: initialize a new cluster.
406  if (!incluster) {
407  incluster = true;
408  qpeak = q;
409  first_strip = istrip;
410  sfits.clear();
411  clusterStrips.clear();
412  prd_digit_ids.clear();
413  incluster = true;
414  }
415 
416  // Add strip to the current cluster.
417  sfits.push_back(sfit);
418  clusterStrips.push_back(pstrip);
419  prd_digit_ids.push_back(pstrip->identify());
420  if (q > qpeak) qpeak = q;
421 
422  // If this is not the last strip in the plane, and the next
423  // strip is active, add the next strip to the cluster.
424  if (istrip != maxstrip - 1 && astrip[istrip + 1]) continue;
425 
427  // Create a cluster
428  ATH_MSG_VERBOSE(" Creating cluster");
429 
430  // QPeak Threshold Requirement.................
431 
432  if (qpeak < (measphi ? m_qpeak_threshold_phi : m_qpeak_threshold_eta)) { // discard cluster and find new one....
433  incluster = false;
434  continue;
435  }
436 
437  int fitresult = 99;
438  std::vector<ICscClusterFitter::Result> results;
439  // Precision fit.
440  if (!measphi && m_pfitter_prec) {
441  ATH_MSG_VERBOSE(" Performing precision fit with " << m_pfitter_prec);
442 
443  results = m_pfitter_prec->fit(sfits);
444  fitresult = results[0].fitStatus;
445 
446  ATH_MSG_VERBOSE(" Precision fit result return=" << fitresult);
447  }
448 
449  if (fitresult == 6) { // in case of multipeak cluster
450  ATH_MSG_VERBOSE(" Performing split fit with " << m_pfitter_split);
451 
452  results = m_pfitter_split->fit(sfits);
453  fitresult = results[0].fitStatus;
454 
455  for (unsigned int i = 0; i < results.size(); ++i) ATH_MSG_VERBOSE(" Split fit result return=" << results[i].fitStatus);
456  }
457  // if splitcluster is succeeded, fitresult should be either 20 or 21
458  // if not, it's 19.
459 
460  // Default fit.
461  if (measphi || (fitresult > 0 && fitresult < 20)) { // including measphi case
462  ATH_MSG_VERBOSE(" Performing default fit with " << m_pfitter_def);
464  if (!measphi) res = results[0];
465  CscClusterStatus oldclustatus = res.clusterStatus;
466  results = m_pfitter_def->fit(sfits);
467  res = results[0];
468  fitresult = results[0].fitStatus;
469  if (fitresult) {
470  ATH_MSG_VERBOSE(" Default fit failed: return=" << fitresult);
471  return 1;
472  } else {
473  ATH_MSG_VERBOSE(" Default fit succeeded");
474  }
475  // Keep the status from the first fit if it is defined.
476  if (oldclustatus != Muon::CscStatusUndefined) {
477  res.clusterStatus = oldclustatus;
478  // we want to keep oldcluster status
479  results[0] = res;
480  }
481  }
482 
483  // retrieve MuonDetectorManager from the conditions store
485  const MuonGM::MuonDetectorManager* MuonDetMgr = DetectorManagerHandle.cptr();
486  if (MuonDetMgr == nullptr) {
487  ATH_MSG_ERROR("Null pointer to the MuonDetectorManager conditions object");
488  return 0;
489  }
490 
491  // Check results.
492  unsigned int nresults = results.size();
493  for (unsigned int ire = 0; ire < nresults; ++ire) {
494  if (results[ire].qpeak < (measphi ? m_qpeak_threshold_phi : m_qpeak_threshold_eta)) continue;
495  double q3sum = results[ire].qleft + results[ire].qpeak + results[ire].qright;
496  if (q3sum < (measphi ? m_q3sum_threshold_phi : m_q3sum_threshold_eta)) continue;
497 
498  CscClusterStatus clustatus = results[ire].clusterStatus;
499  Muon::CscTimeStatus timeStatus = results[ire].timeStatus;
500  double pos = results[ire].position;
501  double err = results[ire].dposition;
502  unsigned int id_strip = results[ire].strip;
503  double cluster_charge = results[ire].charge;
504  double cluster_time = results[ire].time;
505  if (clustatus == Muon::CscStatusUndefined) ATH_MSG_DEBUG(" Csc Cluster Status is not defined.");
506 
507  if (id_strip >= sfits.size()) {
508  ATH_MSG_WARNING(" Fit size check failed: ");
509  return 1;
510  }
511  // Fetch the strip used to identify this cluster.
512  const CscStripPrepData* pstrip_id = nullptr;
513  if (id_strip < clusterStrips.size()) pstrip_id = clusterStrips[id_strip];
514  if (!pstrip_id) {
515  ATH_MSG_WARNING(" Fit ID check failed: ");
516  return 1;
517  }
518 
519  // Create ATLAS CSC cluster.
520  Identifier cluster_id = pstrip_id->identify();
521  IdentifierHash cluster_hash = pstrip_id->collectionHash();
522  int zsec = m_idHelperSvc->cscIdHelper().stationEta(cluster_id);
523  int wlay = m_idHelperSvc->cscIdHelper().wireLayer(cluster_id);
524  // This local position is in the muon (not tracking) coordinate system.
525  // const CscReadoutElement* pro = pstrip_id->detectorElement();
526  const CscReadoutElement* pro = MuonDetMgr->getCscReadoutElement(cluster_id);
527  Amg::Vector3D local_pos = pro->nominalLocalClusterPos(zsec, wlay, measphi, pos);
528  auto cov = Amg::MatrixX(1, 1);
529  (cov)(0, 0) = err * err;
530  Amg::Vector2D plpos(measphi ? local_pos.y() : local_pos.z(), measphi ? local_pos.z() : local_pos.y());
531 
532  if (msgLvl(MSG::DEBUG)) {
533  ATH_MSG_DEBUG(" Cluster parameters: " << nresults);
534  ATH_MSG_DEBUG(" ID strip: " << first_strip + id_strip << "(" << first_strip << ":" << id_strip << ")");
535  ATH_MSG_DEBUG(" local position: " << plpos.x() << " " << plpos.y());
536  ATH_MSG_DEBUG(" error: " << Amg::toString(cov));
537  ATH_MSG_DEBUG(" charge: " << cluster_charge);
538  ATH_MSG_DEBUG(" time: " << cluster_time);
539  ATH_MSG_DEBUG(" status: " << Muon::toString(clustatus));
540  }
541  std::vector<Identifier> prd_digit_ids_submit;
542  unsigned int fstrip = results[ire].fstrip;
543  unsigned int lstrip = results[ire].lstrip;
544  prd_digit_ids_submit.reserve(lstrip + 1);
545  for (unsigned int ids_index = fstrip; ids_index < lstrip + 1; ++ids_index) {
546  if (ids_index >= prd_digit_ids.size())
547  ATH_MSG_WARNING(" bad index " << ids_index << " maximum " << prd_digit_ids.size());
548  else
549  prd_digit_ids_submit.push_back(prd_digit_ids[ids_index]);
550  }
551 
552  CscPrepData* pclus = new CscPrepData(cluster_id,
553  cluster_hash,
554  plpos,
555  prd_digit_ids_submit,
556  cov,
557  pro,
558  int(cluster_charge + 0.5),
559  cluster_time,
560  clustatus,
561  timeStatus);
562  pclus->setHashAndIndex(newCollection->identifyHash(),
563  newCollection->size());
564 
565  newCollection->push_back(pclus);
566  }
567  // Reset incluster.
568  incluster = false;
569  } // end loop over strips
570  return 0;
571 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

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

Perform system initialization for an algorithm.

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

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

◆ sysStart()

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

Handle START transition.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ m_cluster_handle

SG::WriteHandle<Muon::CscPrepDataContainer> CscPeakThresholdClusterBuilderTool::m_cluster_handle
private

Definition at line 111 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_DetectorManagerKey

SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> CscPeakThresholdClusterBuilderTool::m_DetectorManagerKey
private
Initial value:
{
this,
"DetectorManagerKey",
"MuonDetectorManager",
"Key of input MuonDetectorManager condition data",
}

retrieve MuonDetectorManager from the conditions store

Definition at line 144 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_digit_key

SG::ReadHandleKey<Muon::CscStripPrepDataContainer> CscPeakThresholdClusterBuilderTool::m_digit_key
private

Definition at line 110 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> CscPeakThresholdClusterBuilderTool::m_idHelperSvc
private
Initial value:
{
this,
"MuonIdHelperSvc",
"Muon::MuonIdHelperSvc/MuonIdHelperSvc",
}

Definition at line 137 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_pfitter_def

ToolHandle<ICscClusterFitter> CscPeakThresholdClusterBuilderTool::m_pfitter_def
private
Initial value:
{
this,
"default_fitter",
"SimpleCscClusterFitter/SimpleCscClusterFitter",
}

Definition at line 121 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_pfitter_prec

ToolHandle<ICscClusterFitter> CscPeakThresholdClusterBuilderTool::m_pfitter_prec
private
Initial value:
{
this,
"precision_fitter",
"QratCscClusterFitter/QratCscClusterFitter",
}

Definition at line 126 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_pfitter_split

ToolHandle<ICscClusterFitter> CscPeakThresholdClusterBuilderTool::m_pfitter_split
private
Initial value:
{
this,
"split_fitter",
"CscSplitClusterFitter/CscSplitClusterFitter",
}

Definition at line 131 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_pstrip_fitter

ToolHandle<ICscStripFitter> CscPeakThresholdClusterBuilderTool::m_pstrip_fitter
private
Initial value:
{
this,
"strip_fitter",
"CalibCscStripFitter/CalibCscStripFitter",
}

Definition at line 114 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_q3sum_threshold_eta

double CscPeakThresholdClusterBuilderTool::m_q3sum_threshold_eta
private

Definition at line 108 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_q3sum_threshold_phi

double CscPeakThresholdClusterBuilderTool::m_q3sum_threshold_phi
private

Definition at line 109 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_qpeak_threshold_eta

double CscPeakThresholdClusterBuilderTool::m_qpeak_threshold_eta
private

Definition at line 106 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_qpeak_threshold_phi

double CscPeakThresholdClusterBuilderTool::m_qpeak_threshold_phi
private

Definition at line 107 of file CscPeakThresholdClusterBuilderTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
CscPeakThresholdClusterBuilderTool::m_qpeak_threshold_eta
double m_qpeak_threshold_eta
Definition: CscPeakThresholdClusterBuilderTool.h:106
verify_menu_config.results
results
Definition: verify_menu_config.py:67
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
IdentifiableContainerMT::addCollection
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
Definition: IdentifiableContainerMT.h:297
Muon::CscStripPrepDataCollection
MuonPrepDataCollection< CscStripPrepData > CscStripPrepDataCollection
Definition: MuonPrepDataCollection.h:111
calibdata.chamber
chamber
Definition: calibdata.py:32
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
MuonGM::CscReadoutElement::nominalLocalClusterPos
Amg::Vector3D nominalLocalClusterPos(int eta, int wireLayer, int measPhi, double x0) const
ignores internal alignment parameters, hence gives generally incorrect answer (local here is the stat...
Definition: CscReadoutElement.cxx:410
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CscPeakThresholdClusterBuilderTool::m_q3sum_threshold_eta
double m_q3sum_threshold_eta
Definition: CscPeakThresholdClusterBuilderTool.h:108
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
ICscStripFitter::Result::charge
double charge
Definition: ICscStripFitter.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
CscPeakThresholdClusterBuilderTool::m_qpeak_threshold_phi
double m_qpeak_threshold_phi
Definition: CscPeakThresholdClusterBuilderTool.h:107
CscPeakThresholdClusterBuilderTool::getClusters
StatusCode getClusters(std::vector< IdentifierHash > &idVect, std::vector< IdentifierHash > &selectedIdVect, Muon::CscPrepDataContainer *object)
Definition: CscPeakThresholdClusterBuilderTool.cxx:124
MuonGM::CscReadoutElement
Definition: CscReadoutElement.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
Muon::CscStripPrepData::collectionHash
virtual const IdentifierHash collectionHash() const final
returns the IdentifierHash corresponding to the channel.
Definition: CscStripPrepData.h:158
atlasStyleMacro.icol
int icol
Definition: atlasStyleMacro.py:13
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
python.Dumpers.aname
string aname
Definition: Dumpers.py:5546
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
Muon::CscStripPrepData
Class representing the raw data of one CSC strip (for clusters look at Muon::CscPrepData).
Definition: CscStripPrepData.h:40
Muon::toString
std::string toString(CscStripStatus cstat)
Return a string description of a CSC cluster status flag.
Definition: CscStripStatus.h:48
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
MuonGM::CscReadoutElement::maxNumberOfStrips
int maxNumberOfStrips(int measuresPhi) const
Definition: CscReadoutElement.cxx:162
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ICscClusterFitter::Result
Definition: ICscClusterFitter.h:52
Trk::active
@ active
Definition: Layer.h:48
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonGM::MuonDetectorManager::getCscReadoutElement
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:225
Trk::PrepRawData::setHashAndIndex
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
Muon::CscPrepData
Class representing clusters from the CSC.
Definition: CscPrepData.h:39
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CscPeakThresholdClusterBuilderTool::m_pfitter_split
ToolHandle< ICscClusterFitter > m_pfitter_split
Definition: CscPeakThresholdClusterBuilderTool.h:131
CscPeakThresholdClusterBuilderTool::make_clusters
int make_clusters(bool measphi, const std::vector< const Muon::CscStripPrepData * > &strips, Muon::CscPrepDataCollection *&collection)
Definition: CscPeakThresholdClusterBuilderTool.cxx:338
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Muon::CscStripPrepDataContainer
MuonPrepDataContainerT< CscStripPrepData > CscStripPrepDataContainer
Definition: MuonPrepDataContainer.h:99
ICscStripFitter::Result
Definition: ICscStripFitter.h:25
Muon::CscStatusUndefined
@ CscStatusUndefined
Undefined, should not happen, most likely indicates a problem.
Definition: CscClusterStatus.h:94
CscPeakThresholdClusterBuilderTool::m_pfitter_prec
ToolHandle< ICscClusterFitter > m_pfitter_prec
Definition: CscPeakThresholdClusterBuilderTool.h:126
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
CscPeakThresholdClusterBuilderTool::m_pstrip_fitter
ToolHandle< ICscStripFitter > m_pstrip_fitter
Definition: CscPeakThresholdClusterBuilderTool.h:114
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
CscPeakThresholdClusterBuilderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: CscPeakThresholdClusterBuilderTool.h:137
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Muon::CscPrepDataCollection
MuonPrepDataCollection< CscPrepData > CscPrepDataCollection
Definition: MuonPrepDataCollection.h:109
fitman.fitresult
fitresult
Definition: fitman.py:590
CscPeakThresholdClusterBuilderTool::m_q3sum_threshold_phi
double m_q3sum_threshold_phi
Definition: CscPeakThresholdClusterBuilderTool.h:109
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
CscPeakThresholdClusterBuilderTool::m_pfitter_def
ToolHandle< ICscClusterFitter > m_pfitter_def
Definition: CscPeakThresholdClusterBuilderTool.h:121
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
query_example.col
col
Definition: query_example.py:7
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
IdentifiableContainerMT::indexFindPtr
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
Definition: IdentifiableContainerMT.h:289
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:50
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
extractSporadic.q
list q
Definition: extractSporadic.py:98
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
ICscClusterFitter::StripFitList
std::vector< StripFit > StripFitList
Definition: ICscClusterFitter.h:40
Muon::CscClusterStatus
CscClusterStatus
Enum to represent the cluster status - see the specific enum values for more details.
Definition: CscClusterStatus.h:23
CscPeakThresholdClusterBuilderTool::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
retrieve MuonDetectorManager from the conditions store
Definition: CscPeakThresholdClusterBuilderTool.h:144
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CscPeakThresholdClusterBuilderTool::m_digit_key
SG::ReadHandleKey< Muon::CscStripPrepDataContainer > m_digit_key
Definition: CscPeakThresholdClusterBuilderTool.h:110
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
Muon::CscTimeStatus
CscTimeStatus
Enum to represent the cluster time measurement status - see the specific enum values for more details...
Definition: CscTimeStatus.h:24
Identifier
Definition: IdentifierFieldParser.cxx:14