<commit_before>// $Id$
// Main authors: <NAME> & <NAME>: 2006, 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/

// To use when per-line id is supported

class TrackletId : public TObject
{
public:
  // label, phi, theta
  // virtual void Print(const Option_t* opt="") {}
};

TEveStraightLineSet* esd_spd_tracklets(Float_t rad=8)
{
  AliESDEvent         * esd = AliEveEventManager::AssertESD();
  AliESDVertex   * pv  = esd->GetPrimaryVertex();
  AliMultiplicity* mul = esd->GetMultiplicity();

  Double_t pvx[3], pve[3];
  pv->GetXYZ(pvx);
  pv->GetSigmaXYZ(pve);

  TEveStraightLineSet* ls = new TEveStraightLineSet();

  for (Int_t i=0; i<mul->GetNumberOfTracklets(); ++i)
  {
    using namespace TMath;
    Float_t dr[3];
    Float_t phi = PiOver2() - mul->GetPhi(i); // strange people
    dr[0] = rad*Cos(phi);
    dr[1] = rad*Sin(phi);
    dr[2] = rad/Tan(mul->GetTheta(i));
    ls->AddLine(pvx[0], pvx[1], pvx[2],
		pvx[0]+dr[0], pvx[1]+dr[1], pvx[2]+dr[2]);
  }

  gEve->AddElement(ls);
  gEve->Redraw3D();

  return ls;
}<commit_msg>Remove fix for strange phi convention for SPD tracklets.<commit_after>// $Id$
// Main authors: <NAME> & <NAME>: 2006, 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/

// To use when per-line id is supported

class TrackletId : public TObject
{
public:
  // label, phi, theta
  // virtual void Print(const Option_t* opt="") {}
};

TEveStraightLineSet* esd_spd_tracklets(Float_t rad=8)
{
  AliESDEvent         * esd = AliEveEventManager::AssertESD();
  AliESDVertex   * pv  = esd->GetPrimaryVertex();
  AliMultiplicity* mul = esd->GetMultiplicity();

  Double_t pvx[3], pve[3];
  pv->GetXYZ(pvx);
  pv->GetSigmaXYZ(pve);

  TEveStraightLineSet* ls = new TEveStraightLineSet("SPD tracklets");

  for (Int_t i=0; i<mul->GetNumberOfTracklets(); ++i)
  {
    using namespace TMath;
    Float_t dr[3];
    Float_t phi = mul->GetPhi(i);
    dr[0] = rad*Cos(phi);
    dr[1] = rad*Sin(phi);
    dr[2] = rad/Tan(mul->GetTheta(i));
    ls->AddLine(pvx[0], pvx[1], pvx[2],
		pvx[0]+dr[0], pvx[1]+dr[1], pvx[2]+dr[2]);
  }

  gEve->AddElement(ls);
  gEve->Redraw3D();

  return ls;
}
{'fraction_non_alphanumeric': 0.2539454806312769, 'fraction_numerical': 0.024748923959827834, 'mean_word_length': 3.520259319286872, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1867026', 'n_tokens_mistral': 1056, 'n_tokens_neox': 960, 'n_words': 198}