ATLAS Offline Software
Reconstruction
VKalVrt
VrtSecInclusive
src
IntersectionPos.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
#include "
VrtSecInclusive/IntersectionPos.h
"
6
#include <TTree.h>
7
8
namespace
VKalVrtAthena
{
9
10
//------------------------------------------------------------
11
IntersectionPos_barrel::IntersectionPos_barrel
(
const
char
*
name
,
const
double
&
r
)
12
: m_name (
name
), m_x(
new
std::vector<
double
> ), m_y(
new
std::vector<
double
> ), m_z(
new
std::vector<
double
> ), m_radius(
r
) {}
13
IntersectionPos_barrel::~IntersectionPos_barrel
() {
delete
m_x
;
delete
m_y
;
delete
m_z
; }
14
void
IntersectionPos_barrel::clear
() {
m_x
->clear();
m_y
->clear();
m_z
->clear(); }
15
void
IntersectionPos_barrel::setBranchAddress
( TTree *
t
,
const
char
* collectionName ) {
16
t
->Branch( Form(
"%s_Int_%sX"
, collectionName,
m_name
.c_str()), &
m_x
);
17
t
->Branch( Form(
"%s_Int_%sY"
, collectionName,
m_name
.c_str()), &
m_y
);
18
t
->Branch( Form(
"%s_Int_%sZ"
, collectionName,
m_name
.c_str()), &
m_z
);
19
}
20
int
IntersectionPos_barrel::bec
() {
return
barrel
; }
21
22
23
//------------------------------------------------------------
24
IntersectionPos_endcap::IntersectionPos_endcap
(
const
char
*
name
,
const
double
& zpos,
const
double
& rmin,
const
double
& rmax)
25
: m_name (
name
), m_x(
new
std::vector<
double
> ), m_y(
new
std::vector<
double
> ), m_z(
new
std::vector<
double
> ), m_zpos(zpos), m_rmin(rmin), m_rmax(rmax) {}
26
IntersectionPos_endcap::~IntersectionPos_endcap
() {
delete
m_x
;
delete
m_y
;
delete
m_z
; }
27
void
IntersectionPos_endcap::clear
() {
m_x
->clear();
m_y
->clear();
m_z
->clear(); }
28
void
IntersectionPos_endcap::setBranchAddress
( TTree *
t
,
const
char
* collectionName ) {
29
t
->Branch( Form(
"%s_Int_%sX"
, collectionName,
m_name
.c_str()), &
m_x
);
30
t
->Branch( Form(
"%s_Int_%sY"
, collectionName,
m_name
.c_str()), &
m_y
);
31
t
->Branch( Form(
"%s_Int_%sZ"
, collectionName,
m_name
.c_str()), &
m_z
);
32
}
33
int
IntersectionPos_endcap::bec
() {
return
endcap
; }
34
35
}
beamspotman.r
def r
Definition:
beamspotman.py:676
VKalVrtAthena::IntersectionPos_endcap::IntersectionPos_endcap
IntersectionPos_endcap(const char *name, const double &zpos, const double &rmin, const double &rmax)
Definition:
IntersectionPos.cxx:24
VKalVrtAthena::IntersectionPos_barrel::m_y
std::vector< double > * m_y
Definition:
IntersectionPos.h:51
VKalVrtAthena::IntersectionPos_barrel::IntersectionPos_barrel
IntersectionPos_barrel(const char *name, const double &r)
Definition:
IntersectionPos.cxx:11
CSV_InDetExporter.new
new
Definition:
CSV_InDetExporter.py:145
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
VKalVrtAthena::IntersectionPos_endcap::bec
int bec()
Definition:
IntersectionPos.cxx:33
VKalVrtAthena::IntersectionPos_barrel::m_z
std::vector< double > * m_z
Definition:
IntersectionPos.h:52
VKalVrtAthena::IntersectionPos::endcap
@ endcap
Definition:
IntersectionPos.h:29
VKalVrtAthena::IntersectionPos_endcap::m_x
std::vector< double > * m_x
Definition:
IntersectionPos.h:76
VKalVrtAthena
Definition:
AANT_Tools.cxx:25
VKalVrtAthena::IntersectionPos_endcap::~IntersectionPos_endcap
virtual ~IntersectionPos_endcap()
Definition:
IntersectionPos.cxx:26
VKalVrtAthena::IntersectionPos_barrel::bec
int bec()
Definition:
IntersectionPos.cxx:20
VKalVrtAthena::IntersectionPos_barrel::m_name
std::string m_name
Definition:
IntersectionPos.h:49
VKalVrtAthena::IntersectionPos_endcap::clear
void clear()
Definition:
IntersectionPos.cxx:27
VKalVrtAthena::IntersectionPos_endcap::setBranchAddress
void setBranchAddress(TTree *, const char *collectionName="RecoTrk")
Definition:
IntersectionPos.cxx:28
xAOD::double
double
Definition:
CompositeParticle_v1.cxx:159
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
VKalVrtAthena::IntersectionPos_endcap::m_name
std::string m_name
Definition:
IntersectionPos.h:75
VKalVrtAthena::IntersectionPos_barrel::~IntersectionPos_barrel
virtual ~IntersectionPos_barrel()
Definition:
IntersectionPos.cxx:13
VKalVrtAthena::IntersectionPos_barrel::clear
void clear()
Definition:
IntersectionPos.cxx:14
VKalVrtAthena::IntersectionPos_barrel::m_x
std::vector< double > * m_x
Definition:
IntersectionPos.h:50
VKalVrtAthena::IntersectionPos::barrel
@ barrel
Definition:
IntersectionPos.h:29
VKalVrtAthena::IntersectionPos_barrel::setBranchAddress
void setBranchAddress(TTree *, const char *collectionName="RecoTrk")
Definition:
IntersectionPos.cxx:15
VKalVrtAthena::IntersectionPos_endcap::m_z
std::vector< double > * m_z
Definition:
IntersectionPos.h:78
IntersectionPos.h
VKalVrtAthena::IntersectionPos_endcap::m_y
std::vector< double > * m_y
Definition:
IntersectionPos.h:77
Generated on Sun Dec 22 2024 21:11:51 for ATLAS Offline Software by
1.8.18