Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 07:47:21

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #include "ActsPlugins/Mille/ActsToMille.hpp"
0010 
0011 namespace ActsPlugins::ActsToMille {
0012 
0013 /// this is a placeholder, which will be replaced by actual functionality
0014 void dumpToMille(const ActsAlignment::detail::TrackAlignmentState&,
0015                  MilleRecord* record) {
0016   // call into Mille to test for linkage
0017   if (record) {
0018     // write a single dummy measurement to test the I/O functionality
0019     record->addData(
0020         -0.005f,                       // measurement
0021         0.008f,                        // uncertainty
0022         std::vector<unsigned int>{1},  // indices of local parameters
0023         std::vector<double>{1.},       // derivates by local parameters
0024         std::vector<int>{42},          // indices of alignment parameters
0025         std::vector<double>{-1.});     // derivatives by alignment parameters
0026   }
0027 }
0028 }  // namespace ActsPlugins::ActsToMille