return count;
}
+AliHLTUInt8_t* AliHLTSpacePointContainer::Alloc(int size)
+{
+ /// alloc memory for a space point data block
+ TArrayC* buffer=new TArrayC;
+ if (!buffer) return NULL;
+
+ buffer->Set(size);
+ fBuffers.push_back(buffer);
+ return reinterpret_cast<AliHLTUInt8_t*>(buffer->GetArray());
+}
+
AliHLTSpacePointContainer* AliHLTSpacePointContainer::SelectByTrack(int /*trackId*/, bool /*bAlloc*/) const
{
/// create a collection of clusters for a specific track
float sinphi=TMath::Sin(clusterphi);
float clusterx=GetX(*clusterID);
float clustery=GetY(*clusterID);
+ cout << " " << *clusterID << " " << clusterx << " " << clustery << " " << clusterphi << endl;
// rotate
float pointx= clusterx*sinphi + clustery*cosphi;
float pointy=-clusterx*cosphi + clustery*sinphi;
/// add input block from list of blank separated files to collection
int AddInputBlocks(const char* filenames, AliHLTComponentDataType dt);
+ /// alloc memory for a space point data block
+ AliHLTUInt8_t* Alloc(int size);
+
/// inherited from TObject: clear the object and reset pointer references
virtual void Clear(Option_t * /*option*/ ="");
float center[2]={0.5,0.5};
int markerColor=1;
int markerSize=1;
+ int verbosity=0;
TString strOption(option);
std::auto_ptr<TObjArray> tokens(strOption.Tokenize(" "));
markerSize=arg.Atoi();
continue;
}
+
+ key="verbosity=";
+ if (arg.BeginsWith(key)) {
+ arg.ReplaceAll(key, "");
+ verbosity=arg.Atoi();
+ continue;
+ }
}
bool bFirstPoint=true;
float sina=TMath::Sin(alpha);
float x = r*sina + point->GetU()*cosa;
float y =-r*cosa + point->GetU()*sina;
+ if (verbosity>0) {
+ HLTInfo("ID 0x%08x: x=% .4f y=% .4f alpha=% .4f", point->GetId(), r, point->GetU(), alpha);
+ }
int color=markerColor;
if (bFirstPoint) {
bFirstPoint=false;
return &(*element);
}
+AliHLTSpacePointContainer* AliHLTTrackGeometry::ConvertToSpacePoints() const
+{
+ /// create a collection of all points
+ HLTError("implementation of child method missing");
+ return NULL;
+}
+
int AliHLTTrackGeometry::AssociateSpacePoints(AliHLTSpacePointContainer& points)
{
/// associate the track space points to the calculated track points
/// get track point of id
AliHLTTrackPoint* GetTrackPoint(AliHLTUInt32_t id);
+ /// create a collection of all points
+ virtual AliHLTSpacePointContainer* ConvertToSpacePoints() const;
+
/// set the spacepoint associated with a track point
/// @param planeId track point
/// @param spacepointId space point id to be associated with track point
protected:
int AddTrackPoint(const AliHLTTrackPoint& point);
+ const vector<AliHLTTrackPoint>& TrackPoints() const {return fTrackPoints;}
+
private:
vector<AliHLTTrackPoint> fTrackPoints; // list of points