Possibility to extact time stamp from SDD calibration objects (useful to monitor...
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Aug 2009 16:44:56 +0000 (16:44 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Aug 2009 16:44:56 +0000 (16:44 +0000)
ITS/AliITSDriftSpeedArraySDD.cxx
ITS/AliITSDriftSpeedArraySDD.h

index 6c6e33c..aad7ef6 100644 (file)
@@ -59,6 +59,14 @@ void AliITSDriftSpeedArraySDD::PrintAll() const{
   }
 }
 //______________________________________________________________________
+UInt_t AliITSDriftSpeedArraySDD::GetTimestamp(Int_t iElement){
+  // returns time stamp
+  if(!fDriftSpeedSDD.IsSorted()) fDriftSpeedSDD.Sort();
+  if(fNEvents<iElement) return 0;
+  AliITSDriftSpeedSDD *d=(AliITSDriftSpeedSDD*)fDriftSpeedSDD.At(iElement);
+  return d->GetEventTimestamp();
+}
+//______________________________________________________________________
 Double_t AliITSDriftSpeedArraySDD::GetDriftSpeed(Int_t iEvent, Double_t iAnode){
   // returns drift speed for given event number and anode
   if(!fDriftSpeedSDD.IsSorted()) fDriftSpeedSDD.Sort();
index 6ac5b2a..b8245d2 100644 (file)
@@ -28,6 +28,8 @@ class AliITSDriftSpeedArraySDD : public TObject{
   void AddDriftSpeed(AliITSDriftSpeedSDD* drSpeed);
 
   void PrintAll() const;
+  UInt_t GetTimestamp(Int_t iElement);
+
   Double_t GetDriftSpeed(Int_t iEvent, Double_t iAnode);
 
  protected: