Fixed (ininfluential) bug on TestHit method
authorvicinanz <vicinanz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jul 2002 09:38:28 +0000 (09:38 +0000)
committervicinanz <vicinanz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jul 2002 09:38:28 +0000 (09:38 +0000)
TOF/AliTOFDigitMap.cxx
TOF/AliTOFHitMap.cxx
TOF/AliTOFReconstructionerV2.cxx
TOF/AliTOFReconstructionerV2.h
TOF/AliTOFTrackV2.h

index 86bff8928c36c17de3a46c92a4ff3ab6d61affb1..7f5f70437278ff745ddc13abf7548182eadbc754 100644 (file)
@@ -172,7 +172,7 @@ FlagType AliTOFDigitMap::TestHit(Int_t *vol) const
 // Check if hit cell is empty, used or unused
 //
     Int_t inf=fDigitMap[CheckedIndex(vol)];
-    if (inf < 0) {
+    if (inf > 0) {
        return kUsed;
     } else if (inf == 0) {
        return kEmpty;
index 137910b9e210b1cc23cd1a9e4aa6e8f16bb5f78a..947c25524247389aef89a8dd01fda1fe5ad67359 100644 (file)
@@ -15,6 +15,9 @@
 
 /* 
 $Log$
+Revision 1.3  2001/12/19 09:33:32  hristov
+Index corrected
+
 Revision 1.2  2001/11/22 11:30:30  hristov
 Correct log field
 
@@ -182,7 +185,7 @@ FlagType AliTOFHitMap::TestHit(Int_t *vol) const
 // Check if hit cell is empty, used or unused
 //
     Int_t inf=fHitMap[CheckedIndex(vol)];
-    if (inf < 0) {
+    if (inf > 0) {
        return kUsed;
     } else if (inf == 0) {
        return kEmpty;
index ce70672aa93ed9e1f117909ffc677a54cb5c2d1b..7286a91cd7b9644db8d1b79093664580090be602 100644 (file)
@@ -997,3 +997,15 @@ void AliTOFReconstructionerV2::Comparison(Int_t* rtIndex)
     } // if(TOF)
   } // end loop on primary tracks
 }
+
+//__________________________________________________________________
+Bool_t AliTOFReconstructionerV2::operator==(const AliTOFReconstructionerV2 & tofrecv2)const
+{
+  // Equal operator.
+  // Reconstructioner are equal if their fField, fNDummyTracks, fScaleSigmaFactor and fStep are equal
+  if( (fField==tofrecv2.fField)&&(fNDummyTracks==tofrecv2.fNDummyTracks)&&(fScaleSigmaFactor==tofrecv2.fScaleSigmaFactor)&&(fStep==tofrecv2.fStep))
+    return kTRUE ;
+  else
+    return kFALSE ;
+}
index a664f5a3b97eda5fc54f2c4ca7c820630f74caaf..6e139f512af162c692d85c8374c44aaad7115aff 100644 (file)
@@ -27,7 +27,7 @@ public:
   AliTOFReconstructionerV2(const AliTOFReconstructionerV2 & rec);
   virtual ~AliTOFReconstructionerV2() ; // dtor   
   Bool_t        BackPropagation(){return kTRUE;};
-  void          CreateNTuple();
+  //void          CreateNTuple();
   void          Comparison(Int_t* rtIndex); // for MC comparison
   virtual void  Exec(Option_t* option); // do the main work
   Int_t         GetDbgFlag()           const   {return fdbg;}
index df38dc204c2e77c9d54f8afd40b74f93693b2c1e..caec5f0e92e8e89f28a37b02c426ff301a7b7d41 100644 (file)
@@ -19,7 +19,6 @@ class AliTOFTrackV2 : public TObject{
 
  public:
   AliTOFTrackV2();
-  AliTOFTrackV2(Int_t trackLabel, Float_t tpcMom, Float_t dEdX, Float_t* tpcXYZ, Float_t* tpcPtPz, Float_t* trdXYZ, Float_t* trdPxPyPz);
   AliTOFTrackV2(Int_t trackLabel, Int_t matchingStatus, Float_t tpcMom, Float_t dEdX, Float_t* tpcXYZ, Float_t* tpcPtPz, Float_t* trdXYZ, Float_t* trdPxPyPz);
   ~AliTOFTrackV2(){};