ATLAS Offline Software
Loading...
Searching...
No Matches
BeamBackgroundData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: BeamBackgroundData.cxx 589193 2014-03-25 00:13:52Z tsulaia $
7
8
9//------------------------------------------------------------------------------
14{
15 int index = -1;
16
17 for(int i=0; i<m_numSegment; i++) {
18 if(seg == GetIndexSeg(i)) {
19 index = i;
20 break;
21 }
22 }
23
24 return index;
25}
26
27
28//------------------------------------------------------------------------------
33{
34 int index = -1;
35
36 for(int i=0; i<m_numMatched; i++) {
37 if(clus == GetIndexClus(i)) {
38 index = i;
39 break;
40 }
41 }
42
43 return index;
44}
45
46
47//------------------------------------------------------------------------------
52{
53 int index = -1;
54
55 for(int i=0; i<m_numJet; i++) {
56 if(jet == GetIndexJet(i)) {
57 index = i;
58 break;
59 }
60 }
61
62 return index;
63}
int GetIndexJet(const xAOD::Jet *jet) const
This function looks for the jet among the fake jets candidates.
int GetIndexSeg(const Trk::Segment *seg) const
This function looks for the muon segment among the beam halo muon candidates.
int GetIndexClus(const xAOD::CaloCluster *clus) const
This function looks for the calorimeter cluster among the beam halo muon candidates.
Base class for all TrackSegment implementations, extends the common MeasurementBase.
Definition index.py:1
Jet_v1 Jet
Definition of the current "jet version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.