#include "AliTPCclusterMI.h"
#include "AliTPCclusterInfo.h"
+#include "AliGeomManager.h"
#include "AliLog.h"
ClassImp(AliTPCclusterMI)
AliTPCclusterMI * o2 = (AliTPCclusterMI*)obj;
return (o2->GetY()>GetY())? -1:1;
}
+
+
+void AliTPCclusterMI::SetDetector(Int_t detector){
+ //
+ // set volume ID
+ //
+ fDetector = (UChar_t)(detector%72);
+ AliGeomManager::ELayerID id = (fDetector<36) ?
+ AliGeomManager::kTPC1 :AliGeomManager::kTPC2 ;
+ Int_t modId = (fDetector<36)?fDetector: fDetector-36;
+ SetVolumeId(AliGeomManager::LayerToVolUID(id,modId));
+}