ATLAS Offline Software
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 }
index
Definition: index.py:1
BeamBackgroundData::GetIndexSeg
int GetIndexSeg(const Trk::Segment *seg) const
This function looks for the muon segment among the beam halo muon candidates.
Definition: BeamBackgroundData.cxx:13
BeamBackgroundData::GetIndexJet
int GetIndexJet(const xAOD::Jet *jet) const
This function looks for the jet among the fake jets candidates.
Definition: BeamBackgroundData.cxx:51
BeamBackgroundData::m_numMatched
int m_numMatched
Definition: BeamBackgroundData.h:141
BeamBackgroundData::m_numJet
int m_numJet
Definition: BeamBackgroundData.h:151
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
lumiFormat.i
int i
Definition: lumiFormat.py:92
Trk::Segment
Definition: TrkEvent/TrkSegment/TrkSegment/Segment.h:56
BeamBackgroundData.h
BeamBackgroundData::m_numSegment
int m_numSegment
Definition: BeamBackgroundData.h:137
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
DeMoScan.index
string index
Definition: DeMoScan.py:362
BeamBackgroundData::GetIndexClus
int GetIndexClus(const xAOD::CaloCluster *clus) const
This function looks for the calorimeter cluster among the beam halo muon candidates.
Definition: BeamBackgroundData.cxx:32