ATLAS Offline Software
Tracking
TrkVertexFitter
TrkVKalVrtCore
src
stCnst.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Management of constraints
6
//
7
//----------------------------------------------------
8
#include "
TrkVKalVrtCore/stCnst.h
"
9
10
#include <iostream>
11
12
#include "
TrkVKalVrtCore/CommonPars.h
"
13
#include "
TrkVKalVrtCore/Derclc1.h
"
14
#include "
TrkVKalVrtCore/Derclc2.h
"
15
#include "
TrkVKalVrtCore/DerclcAng.h
"
16
#include "
TrkVKalVrtCore/Derivt.h
"
17
#include "
TrkVKalVrtCore/ForCFT.h
"
18
#include "
TrkVKalVrtCore/TrkVKalVrtCoreBase.h
"
19
20
namespace
Trk
{
21
22
void
applyConstraints
(
VKVertex
* vk) {
23
int
NCEntries = vk->
ConstraintList
.size();
24
int
NTRK = vk->
TrackList
.size();
25
for
(
int
ic
= 0;
ic
< NCEntries;
ic
++) {
26
vk->
ConstraintList
[
ic
]->applyConstraint();
27
}
28
//
29
// Effect of symmetrization
30
//
31
for
(
int
ii = 0; ii < (
int
)vk->
ConstraintList
.size(); ii++) {
32
for
(
int
ic
= 0;
ic
< (
int
)vk->
ConstraintList
[ii]->NCDim;
ic
++) {
33
vk->
ConstraintList
[ii]->h0t[
ic
].X *= 0.5;
34
vk->
ConstraintList
[ii]->h0t[
ic
].Y *= 0.5;
35
vk->
ConstraintList
[ii]->h0t[
ic
].Z *= 0.5;
36
for
(
int
it
= 0;
it
< NTRK;
it
++) {
37
vk->
ConstraintList
[ii]->f0t.at(
it
)[
ic
].X *= 0.5;
38
vk->
ConstraintList
[ii]->f0t[
it
][
ic
].Y *= 0.5;
39
vk->
ConstraintList
[ii]->f0t[
it
][
ic
].Z *= 0.5;
40
}
41
}
42
}
43
}
44
}
// namespace Trk
45
CommonPars.h
stCnst.h
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
Derclc2.h
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
Derclc1.h
Trk::applyConstraints
void applyConstraints(VKVertex *vk)
Definition:
stCnst.cxx:22
Trk::VKVertex::ConstraintList
std::vector< std::unique_ptr< VKConstraintBase > > ConstraintList
Definition:
TrkVKalVrtCoreBase.h:169
DerclcAng.h
TrkVKalVrtCoreBase.h
Trk::VKVertex::TrackList
std::vector< std::unique_ptr< VKTrack > > TrackList
Definition:
TrkVKalVrtCoreBase.h:167
grepfile.ic
int ic
Definition:
grepfile.py:33
Derivt.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
Trk::VKVertex
Definition:
TrkVKalVrtCoreBase.h:128
ForCFT.h
Generated on Mon Dec 23 2024 21:18:40 for ATLAS Offline Software by
1.8.18