@@ -2,8 +2,8 @@ R__LOAD_LIBRARY(libDelphes)
22R__LOAD_LIBRARY (libDelphesO2 )
33
44#include <algorithm> // std::shuffle
5- #include <random> // std::default_random_engine
6- #include <chrono> // std::chrono::system_clock
5+ #include <random> // std::default_random_engine
6+ #include <chrono> // std::chrono::system_clock
77
88// ROOT includes
99#include "TMath.h"
@@ -55,18 +55,16 @@ const bool do_vertexing = true;
5555// Class to hold the information for the O2 vertexing
5656class TrackAlice3 : public o2 ::track ::TrackParCov
5757{
58- using timeEst = o2 ::dataformats ::TimeStampWithError < float , float > ;
58+ using TimeEst = o2 ::dataformats ::TimeStampWithError < float , float > ;
5959
6060 public :
6161 TrackAlice3 () = default ;
6262 ~TrackAlice3 () = default ;
6363 TrackAlice3 (const TrackAlice3 & src ) = default ;
64- TrackAlice3 (const o2 ::track ::TrackParCov & src , const float t = 0 , const float te = 1 , const int label = 0 ) : o2 ::track ::TrackParCov (src ), mTimeMUS {t , te }, mLabel {label } {}
65- const timeEst & getTimeMUS () const { return mTimeMUS ; }
64+ TrackAlice3 (const o2 ::track ::TrackParCov & src , const float t = 0 , const float te = 1 , const int label = 0 ) : o2 ::track ::TrackParCov (src ), timeEst {t , te }, mLabel {label } {}
65+ const TimeEst & getTimeMUS () const { return timeEst ; }
6666 const int mLabel ;
67-
68- private :
69- timeEst mTimeMUS ; ///< time estimate in ns
67+ TimeEst timeEst ; ///< time estimate in ns
7068};
7169
7270template < typename T >
@@ -426,7 +424,7 @@ int createO2tables(const char* inputFile = "delphes.root",
426424 idxVec .emplace_back (i , o2 ::dataformats ::GlobalTrackID ::ITS );
427425 }
428426 vertexer .setStartIR ({0 , 0 });
429- const int n_vertices = vertexer .process (gsl :: span < const TrackAlice3 > { tracks_for_vertexing } ,
427+ const int n_vertices = vertexer .process (tracks_for_vertexing ,
430428 idxVec ,
431429 gsl ::span < o2 ::InteractionRecord > {bcData },
432430 vertices ,
0 commit comments