Fork me on GitHub

Changeset c18dca6 in git


Ignore:
Timestamp:
07/09/20 17:05:26 (5 weeks ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
master
Children:
3051ea17, 4e5ed02, 6f004b5
Parents:
942a705
Message:

added ACTS track covariance to internat Delphes candidates

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    r942a705 rc18dca6  
    2828
    2929#include "classes/DelphesClasses.h"
    30 
    3130#include "classes/DelphesFactory.h"
    3231#include "classes/SortableObject.h"
     
    140139  PositionError(0.0, 0.0, 0.0, 0.0),
    141140  Area(0.0, 0.0, 0.0, 0.0),
     141  TrackCovarianceACTS(6),
    142142  L(0),
    143143  D0(0), ErrorD0(0),
     
    377377  object.SoftDroppedSubJet1 = SoftDroppedSubJet1;
    378378  object.SoftDroppedSubJet2 = SoftDroppedSubJet2;
    379 
     379  object.TrackCovarianceACTS = TrackCovarianceACTS;
    380380  object.fFactory = fFactory;
    381381  object.fArray = 0;
     
    434434  InitialPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
    435435  Area.SetXYZT(0.0, 0.0, 0.0, 0.0);
     436  TrackCovarianceACTS.Zero();
    436437  L = 0.0;
    437438  ErrorT = 0.0;
  • classes/DelphesClasses.h

    r942a705 rc18dca6  
    3333
    3434#include "TLorentzVector.h"
     35#include "TMatrixDSym.h"
    3536#include "TObject.h"
    3637#include "TRef.h"
     
    699700  Float_t SumPt;
    700701
     702  // ACTS compliant 6x6 track covariance (D, z0, phi0, theta, q/p, time)
     703
     704  TMatrixDSym TrackCovarianceACTS;
     705
    701706  // vertex variables
    702707
  • modules/TrackCovariance.cc

    r942a705 rc18dca6  
    114114    candidate->Momentum.SetVectM(track.GetObsP(), mass);
    115115    candidate->InitialPosition.SetXYZT(track.GetObsX().X(),track.GetObsX().Y(),track.GetObsX().Z(),candidatePosition.T());
     116   
     117    // save full ACTS friendly covariance matrix internally (6x6: D, z0, phi0, theta, q/p, time)
     118    candidate->TrackCovarianceACTS = track.GetCovACTS();
    116119
    117120    pt = candidate->Momentum.Pt();
     
    149152    candidate->TrackResolution = dp / p;
    150153
     154
    151155    candidate->AddCandidate(mother);
    152156
Note: See TracChangeset for help on using the changeset viewer.