<commit_before>#include "AliHBTTrackPoints.h"
//_________________________________
////////////////////////////////////////////////////////////
//                                                        //
// class AliHBTTrackPoints                                //
//                                                        //
// used by Anti-Merging cut                               //
// contains set of poits the lay on track trajectory      //
// according to reconstructed track parameters -          //
// NOT CLUSTERS POSITIONS!!!                              //
// Anti-Merging cut is applied only on tracks coming from //
// different events (that are use to fill deniminators)   //
//                                                        //
////////////////////////////////////////////////////////////
#include "AliTrackReference.h"

#include "AliTPCtrack.h"
#include "AliESDtrack.h"

#include <TMath.h>
#include <TClonesArray.h>

ClassImp(AliHBTTrackPoints)

Int_t AliHBTTrackPoints::fgDebug = 0;
AliHBTTrackPoints::AliHBTTrackPoints():
 fN(0),
 fX(0x0),
 fY(0x0),
 fZ(0x0)
{
  //constructor
}
AliHBTTrackPoints::AliHBTTrackPoints(const AliHBTTrackPoints& in):
 TObject(in),
 fN(in.fN),
 fX(new Float_t[fN]),
 fY(new Float_t[fN]),
 fZ(new Float_t[fN])
{
//cpy constructor
  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = in.fX[i];
     fY[i] = in.fY[i];
     fZ[i] = in.fZ[i];
   }
}
/***************************************************************/

AliHBTTrackPoints& AliHBTTrackPoints::operator=(const AliHBTTrackPoints& in)
{
  //Assigment operator
  if(this == &in) return *this;
  TObject::operator=((const TObject&)in);
  
  if (in.fN <= 0)
   {
    delete [] fX;
    delete [] fY;
    delete [] fZ;
    fN = 0;
    fX = 0x0;
    fY = 0x0;
    fZ = 0x0;
    return *this;
   }
   
  if ( fN != in.fN )
   {
    delete [] fX;
    delete [] fY;
    delete [] fZ;
    fN = in.fN;
    fX = new Float_t[fN];
    fY = new Float_t[fN];
    fZ = new Float_t[fN];
   }

  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = in.fX[i];
     fY[i] = in.fY[i];
     fZ[i] = in.fZ[i];
   }

  return *this;
}
/***************************************************************/

AliHBTTrackPoints::AliHBTTrackPoints(Int_t n, AliESDtrack* track, Float_t mf, Float_t dr, Float_t r0):
 fN(n),
 fX(new Float_t[fN]),
 fY(new Float_t[fN]),
 fZ(new Float_t[fN])
{
  //constructor
  //mf - magnetic field in kG - needed to calculated curvature out of Pt
  //r0 - starting radius
  //dr - calculate points every dr cm, default every 30cm
  if (track == 0x0)
   {
     Error("AliHBTTrackPoints","ESD track is null");
     fN = 0;
     delete [] fX;
     delete [] fY;
     delete [] fZ;
     fX = fY = fZ = 0x0;
     return;
   }
  
  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = 0.0;
     fY[i] = 0.0;
     fZ[i] = 0.0;
   }
  
  Double_t x;
  Double_t par[5];
  track->GetInnerExternalParameters(x,par);     //get properties of the track
  if (x == 0)
   {
     Error("AliHBTTrackPoints","This ESD track does not contain TPC information");
     return;
   }

  if (mf == 0.0)
   {
     Error("AliHBTTrackPoints","Zero Magnetic field passed as parameter.");
     return;
   }
   
//  Double_t alpha = track->GetInnerAlpha();<commit_msg>Too Fast -> ESD modifications not yet commited<commit_after>#include "AliHBTTrackPoints.h"
//_________________________________
////////////////////////////////////////////////////////////
//                                                        //
// class AliHBTTrackPoints                                //
//                                                        //
// used by Anti-Merging cut                               //
// contains set of poits the lay on track trajectory      //
// according to reconstructed track parameters -          //
// NOT CLUSTERS POSITIONS!!!                              //
// Anti-Merging cut is applied only on tracks coming from //
// different events (that are use to fill deniminators)   //
//                                                        //
////////////////////////////////////////////////////////////
#include "AliTrackReference.h"

#include "AliTPCtrack.h"
#include "AliESDtrack.h"

#include <TMath.h>
#include <TClonesArray.h>

ClassImp(AliHBTTrackPoints)

Int_t AliHBTTrackPoints::fgDebug = 0;
AliHBTTrackPoints::AliHBTTrackPoints():
 fN(0),
 fX(0x0),
 fY(0x0),
 fZ(0x0)
{
  //constructor
}
AliHBTTrackPoints::AliHBTTrackPoints(const AliHBTTrackPoints& in):
 TObject(in),
 fN(in.fN),
 fX(new Float_t[fN]),
 fY(new Float_t[fN]),
 fZ(new Float_t[fN])
{
//cpy constructor
  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = in.fX[i];
     fY[i] = in.fY[i];
     fZ[i] = in.fZ[i];
   }
}
/***************************************************************/

AliHBTTrackPoints& AliHBTTrackPoints::operator=(const AliHBTTrackPoints& in)
{
  //Assigment operator
  if(this == &in) return *this;
  TObject::operator=((const TObject&)in);
  
  if (in.fN <= 0)
   {
    delete [] fX;
    delete [] fY;
    delete [] fZ;
    fN = 0;
    fX = 0x0;
    fY = 0x0;
    fZ = 0x0;
    return *this;
   }
   
  if ( fN != in.fN )
   {
    delete [] fX;
    delete [] fY;
    delete [] fZ;
    fN = in.fN;
    fX = new Float_t[fN];
    fY = new Float_t[fN];
    fZ = new Float_t[fN];
   }

  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = in.fX[i];
     fY[i] = in.fY[i];
     fZ[i] = in.fZ[i];
   }

  return *this;
}
/***************************************************************/

AliHBTTrackPoints::AliHBTTrackPoints(Int_t n, AliESDtrack* track, Float_t mf, Float_t dr, Float_t r0):
 fN(n),
 fX(new Float_t[fN]),
 fY(new Float_t[fN]),
 fZ(new Float_t[fN])
{
  //constructor
  //mf - magnetic field in kG - needed to calculated curvature out of Pt
  //r0 - starting radius
  //dr - calculate points every dr cm, default every 30cm
  if (track == 0x0)
   {
     Error("AliHBTTrackPoints","ESD track is null");
     fN = 0;
     delete [] fX;
     delete [] fY;
     delete [] fZ;
     fX = fY = fZ = 0x0;
     return;
   }
  
  for (Int_t i = 0; i < fN; i++)
   {
     fX[i] = 0.0;
     fY[i] = 0.0;
     fZ[i] = 0.0;
   }
  
  TMath::Hypot(dr,r0)+mf;//just to shut up compilers warning
//  Double_t x;
//  Double_t par[5];
//  track->GetInnerExternalParameters(x,par);     //get properties of the track
//  if (x == 0)
//   {
//     Error("AliHBTTrackPoints","This ESD track does not contain TPC information");
//     return;
//   }
//
//  if (mf == 0.0)
//   {
//     Error("AliHBTTrackPoints","Zero Magnetic field passed as parameter.");
//     return;
//   }
   
//  Double_t alpha = track->GetInnerAlpha();
{'fraction_non_alphanumeric': 0.2123557984213722, 'fraction_numerical': 0.011687917425622344, 'mean_word_length': 1.8315427589170605, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7290386', 'n_tokens_mistral': 2378, 'n_tokens_neox': 2317, 'n_words': 539}