New class for reconstructed trigger tracks
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Jan 2004 17:51:48 +0000 (17:51 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Jan 2004 17:51:48 +0000 (17:51 +0000)
MUON/AliMUONTriggerTrack.cxx [new file with mode: 0644]
MUON/AliMUONTriggerTrack.h [new file with mode: 0644]

diff --git a/MUON/AliMUONTriggerTrack.cxx b/MUON/AliMUONTriggerTrack.cxx
new file mode 100644 (file)
index 0000000..29f0a62
--- /dev/null
@@ -0,0 +1,92 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* */
+
+///////////////////////////////////////////////////
+//
+// Reconstructed Trigger track
+// in
+// ALICE
+// dimuon
+// spectrometer
+// note: equivalent to AliMUONTriggerTrack for tracking,
+// no need for a AliMUONTriggerTrackParam
+///////////////////////////////////////////////////
+
+#include <Riostream.h> // for cout
+#include <stdlib.h> // for exit()
+
+#include <TClonesArray.h>
+#include <TMath.h>
+#include <TMatrixD.h>
+#include <TObjArray.h>
+
+#include "AliMUONEventReconstructor.h" 
+#include "AliMUONTriggerTrack.h"
+
+//__________________________________________________________________________
+AliMUONTriggerTrack::AliMUONTriggerTrack()
+{
+    fEventReconstructor = 0;
+    fx11 = 0.;
+    fy11 = 0.;
+    fthetax = 0.;
+    fthetay = 0.;
+}
+//__________________________________________________________________________
+AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, AliMUONEventReconstructor* EventReconstructor)
+{
+    fEventReconstructor = EventReconstructor; // link back to EventReconstructor
+    fx11 = x11;
+    fy11 = y11;
+    fthetax = thetax;
+    fthetay = thetay;
+}
+
+//__________________________________________________________________________
+AliMUONTriggerTrack::~AliMUONTriggerTrack()
+{
+  // Destructor
+    ;
+    
+}
+
+//__________________________________________________________________________
+AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& MUONTriggerTrack):TObject(MUONTriggerTrack)
+{
+  fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
+  fx11 = MUONTriggerTrack.fx11;
+  fy11 = MUONTriggerTrack.fy11;
+  fthetax = MUONTriggerTrack.fthetax;
+  fthetay = MUONTriggerTrack.fthetay;
+}
+      
+//__________________________________________________________________________
+AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
+MUONTriggerTrack)
+{
+    if (this == &MUONTriggerTrack)
+       return *this;
+    
+    fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
+    fx11 = MUONTriggerTrack.fx11;
+    fy11 = MUONTriggerTrack.fy11;
+    fthetax = MUONTriggerTrack.fthetax;
+    fthetay = MUONTriggerTrack.fthetay;
+    return *this;
+}
+
+
diff --git a/MUON/AliMUONTriggerTrack.h b/MUON/AliMUONTriggerTrack.h
new file mode 100644 (file)
index 0000000..8379df8
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef ALIMUONTRIGGERTRACK_H
+#define ALIMUONTRIGGERTRACK_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/*$Id$*/
+
+///////////////////////////////////////////////////
+// Reconstructed trigger track in ALICE dimuon spectrometer
+///////////////////////////////////////////////////
+
+
+class TObjArray;
+class AliMUONEventReconstructor;
+
+class AliMUONTriggerTrack : public TObject {
+ public:
+    AliMUONTriggerTrack(); // Constructor
+    virtual ~AliMUONTriggerTrack(); // Destructor
+    AliMUONTriggerTrack (const AliMUONTriggerTrack& AliMUONTriggerTrack); // copy constructor
+    AliMUONTriggerTrack& operator=(const AliMUONTriggerTrack& AliMUONTriggerTrack); // assignment operator
+    AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, AliMUONEventReconstructor* EventReconstructor); // Constructor
+    Float_t GetX11() const {return fx11;}
+    Float_t GetY11() const {return fy11;}
+    Float_t GetThetax() const {return fthetax;}
+    Float_t GetThetay() const {return fthetay;}    
+        
+protected:
+  private:
+  AliMUONEventReconstructor* fEventReconstructor; //!   Pointer to EventReconstructor
+  Float_t fx11;    // x position of fired Y strip in MC11
+  Float_t fy11;    // y position of fired X strip in MC11
+  Float_t fthetax; // track theta angle in X   
+  Float_t fthetay; // track theta angle in Y
+  
+  ClassDef(AliMUONTriggerTrack, 2) // Reconstructed trigger track in ALICE dimuon spectrometer
+    };
+       
+#endif