ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <TTree.h>
7
8namespace VKalVrtAthena {
9
10 //------------------------------------------------------------
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) {}
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 }
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) {}
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 }
34
35}
IntersectionPos_barrel(const char *name, const double &r)
void setBranchAddress(TTree *, const char *collectionName="RecoTrk")
void setBranchAddress(TTree *, const char *collectionName="RecoTrk")
IntersectionPos_endcap(const char *name, const double &zpos, const double &rmin, const double &rmax)
int r
Definition globals.cxx:22
STL namespace.