/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * * * Primary Authors: * * Copyright 2009 Matthias Kretz * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #ifndef ALIHLTTPCCAPARAMETERS_H #define ALIHLTTPCCAPARAMETERS_H namespace AliHLTTPCCAParameters { /// Global parameters enum { MaxNStations = 10, // number of stations MinimumHitsForRecoTrack = 3 }; // Transform CALocal coordinates in global x y z coordinates and back // CALocal coor are: X0 is normal to the station module, X2 is paralel to magnetic field. X0 X1 X2 are right handed coordinates void CALocalToGlobal( float x0, float x1, float x2, float angle, float& x, float& y, float &z ); void GlobalToCALocal( float x, float y, float z, float angle, float& x0, float& x1, float& x2 ); } // namespace AliHLTTPCCAParameters //namespace Parameters{ using namespace AliHLTTPCCAParameters; } namespace AliHLTTPCCAPParameters{ /// parameters for global Performance /** * MC track is reconstructable if: * - it have at least MinimumHitsForMCTrack hits * - momentum of it is not lower than AliHLTTPCCAParameters::ExtraThreshold */ enum{ /** * The minimum number of hits for a MCtrack to be reconstructable */ MinimumHitsForMCTrack = 4, /** * The minimum number of hits for a MCtrack to be reconstructable */ MinimumMCPointsForMCTrack = 4, /** * MCTrack is reconstructed if correspondent recoTrack has NHits >= MinimumHitsForRecoTrack */ MinimumHitsForRecoTrack = AliHLTTPCCAParameters::MinimumHitsForRecoTrack }; // enum /** * if p < ExtraThreshold => track is not reconstructable */ static const float ExtraThreshold = 0.1; /** * if p < RefThreshold => track is not reference track */ static const float RefThreshold = 1.; /** * max percent of one MCTrack MCPoints in current track should be more than this value, then thrack is not ghost. */ static const float MinTrackPurity = .7; } // namespace AliHLTTPCCAPParameters namespace PParameters{ using namespace AliHLTTPCCAPParameters; } #endif // ALIHLTTPCCAPARAMETERS_H