Adding field for number of fired chips in SPD layer 1/2 (4 Bytes)
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jul 2007 14:15:34 +0000 (14:15 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jul 2007 14:15:34 +0000 (14:15 +0000)
STEER/AliMultiplicity.cxx
STEER/AliMultiplicity.h

index 1fa8f9a2e966310c6b7f9f7650bb164eba77498d..c553e7f1a820eb8426d5f7a697e7fec0553981af 100644 (file)
@@ -17,6 +17,9 @@ AliMultiplicity::AliMultiplicity():
 
 {
   // Default Constructor
+
+  fFiredChips[0] = -1;
+  fFiredChips[1] = -1;
 }
 
 //______________________________________________________________________
@@ -52,6 +55,9 @@ AliMultiplicity::AliMultiplicity(Int_t ntr, Float_t *t,  Float_t *ph, Float_t *d
       fPhisingle[i]=ps[i];
     }
   }
+
+  fFiredChips[0] = -1;
+  fFiredChips[1] = -1;
 }
 
 //______________________________________________________________________
@@ -120,6 +126,9 @@ void AliMultiplicity::Duplicate(const AliMultiplicity& m){
   memcpy(fLabels,m.fLabels,fNtracks*sizeof(Int_t));
   memcpy(fThsingle,m.fThsingle,fNsingle*sizeof(Float_t));
   memcpy(fPhisingle,m.fPhisingle,fNsingle*sizeof(Float_t));
+
+  fFiredChips[0] = m.fFiredChips[0];
+  fFiredChips[1] = m.fFiredChips[1];
 }
 
 //______________________________________________________________________
index b562b92d0dd7f0d4355226f366e19e25231434ff..a108183d63d19447ecc4fe7da29358243bed4ecf 100644 (file)
@@ -36,6 +36,9 @@ class AliMultiplicity : public TObject {
   Float_t GetPhiSingle(Int_t i) const { if(i>=0 && i<fNsingle) {return fPhisingle[i];}
   else {Error("GetPhisingle","Invalid cluster number %d",i); return -9999.;}}
 
+  Short_t GetFiredChips(Int_t layer) { return fFiredChips[layer]; }
+  void SetFiredChips(Int_t layer, Short_t firedChips) { fFiredChips[layer] = firedChips; }
+
   protected:
   void Duplicate(const AliMultiplicity &m);  // used by copy ctr.
   Int_t fNtracks;         // Number of tracklets
@@ -48,7 +51,9 @@ class AliMultiplicity : public TObject {
   Float_t *fThsingle;     //[fNsingle] array with theta values of L1 clusters
   Float_t *fPhisingle;    //[fNsingle] array with phi values of L2 clusters
 
-  ClassDef(AliMultiplicity,3);
+  Short_t fFiredChips[2]; // number of fired chips in the two SPD layers
+
+  ClassDef(AliMultiplicity,4);
 };
 
 #endif