#include <memory>
#include <algorithm>
#include <iostream>
+#include <iomanip>
/** ROOT macro for the implementation of ROOT specific class methods */
ClassImp(AliHLTSpacePointContainer)
std::auto_ptr<TTree> tree(new TTree(treename, treetitle));
if (!tree.get()) return NULL;
- const unsigned dimension=5;
+ const unsigned dimension=8;
float values[dimension];
memset(values, 0, sizeof(values));
const char* names[dimension]={
- "x", "y", "z", "charge", "alpha"
+ "x", "y", "z", "sigmaY2", "sigmaZ2", "charge", "qmax", "alpha"
};
for (unsigned i=0; i<dimension; i++) {
values[pos++]=GetX(*clusterID);
values[pos++]=GetY(*clusterID);
values[pos++]=GetZ(*clusterID);
+ values[pos++]=GetYWidth(*clusterID);
+ values[pos++]=GetZWidth(*clusterID);
values[pos++]=GetCharge(*clusterID);
+ values[pos++]=GetMaxSignal(*clusterID);
values[pos++]=GetPhi(*clusterID);
tree->Fill();
c.Print(out);
return out;
}
+
+ostream& operator<<(ostream &out, const AliHLTSpacePointContainer::AliHLTSpacePointProperties& p)
+{
+ // print
+ cout << p.fId;
+ return out;
+}
+
+bool operator==(const AliHLTSpacePointContainer::AliHLTSpacePointProperties& a,
+ const AliHLTSpacePointContainer::AliHLTSpacePointProperties& b) {
+ return a.fId==b.fId;
+}