ATLAS Offline Software
Loading...
Searching...
No Matches
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//----------------------------------------------------
9
10#include <iostream>
11
19
20namespace Trk {
21
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
std::vector< std::unique_ptr< VKTrack > > TrackList
std::vector< std::unique_ptr< VKConstraintBase > > ConstraintList
Ensure that the ATLAS eigen extensions are properly loaded.
void applyConstraints(VKVertex *vk)
Definition stCnst.cxx:22