]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRIGGER/AliTrigConnector.cxx
Updates
[u/mrichter/AliRoot.git] / TRIGGER / AliTrigConnector.cxx
index 0a82cc74fff754cc40057c5be6bf7368f590d9f8..39eb51ea77f3351298655ff117b3f1a5a2dcc182 100644 (file)
 
 ClassImp(AliTrigConnector)
 
-//______________________________________________________________________________
-AliTrigConnector::AliTrigConnector(const AliTrigConnector &other)
-                 :TNamed(other),
-                  fFeeder(other.fFeeder),
-                  fOutput(other.fOutput),
-                  fNclients(other.fNclients),
-                  fArraySize(other.fArraySize),
-                  fInputs(0),
-                  fDevices(0)
-{
-// Copy ctor.
-  if (fArraySize && other.fInputs) {
-    fInputs = new UInt_t[fArraySize];
-    memcpy(fInputs, other.fInputs, fNclients*sizeof(UInt_t));
-    fDevices = new TObjArray(fArraySize);
-    for (Int_t i=0; i<fNclients; i++) fDevices->Add(other.fDevices->At(i));
-  }   
-}                        
-
 //______________________________________________________________________________
 AliTrigConnector::~AliTrigConnector()
 {
@@ -61,28 +42,7 @@ AliTrigConnector::~AliTrigConnector()
 }
 
 //______________________________________________________________________________
-AliTrigConnector& AliTrigConnector::operator=(const AliTrigConnector &other)
-{
-// Assignment
-  if (&other == this) return *this;
-  TNamed::operator=(other);
-  fFeeder = other.fFeeder;
-  fOutput = other.fOutput;
-  fNclients = other.fNclients;
-  fArraySize = other.fArraySize;
-  fInputs = 0;
-  fDevices = 0;
-  if (fArraySize && other.fInputs) {
-    fInputs = new UInt_t[fArraySize];
-    memcpy(fInputs, other.fInputs, fNclients*sizeof(UInt_t));
-    fDevices = new TObjArray(fArraySize);
-    for (Int_t i=0; i<fNclients; i++) fDevices->Add(other.fDevices->At(i));
-  }     
-  return *this;
-}
-
-//______________________________________________________________________________
-void AliTrigConnector::Connect(AliTrigDevice *client, UInt_t input)
+void AliTrigConnector::Connect(AliTrigDevice *client, Int_t input)
 {
 // Adds the device and its input to the list of clients.
   // Loop array of inputs to check if this input is already connected.
@@ -93,19 +53,19 @@ void AliTrigConnector::Connect(AliTrigDevice *client, UInt_t input)
       return;
     } 
   }
-  if (!client->SetInputType(fFeeder->GetOutputType(fOutput))) {
-    Fatal("Cannot connect output slot #%d (type %s) of device %s to input slot #%d of device %s. Aborting",
-            fOutput, fFeeder->GetInputType(fOutput), fFeeder->GetName(), input, client->GetName());
-  }          
+//  if (strcmp(client->GetInputType(fFeeder->GetOutputType(fOutput))) {
+//    Fatal("Cannot connect output slot #%d (type %s) of device %s to input slot #%d of device %s. Aborting",
+//            fOutput, fFeeder->GetInputType(fOutput), fFeeder->GetName(), input, client->GetName());
+//  }          
   if (!fArraySize) {
     fArraySize = 8;
-    fInputs = new UInt_t[fArraySize];
+    fInputs = new Int_t[fArraySize];
     fDevices = new TObjArray(fArraySize);
   }
   if (fNclients >= fArraySize) {
     fArraySize *= 2;
-    UInt_t *array = new UInt_t[fArraySize];
-    memcpy(array, fInputs, fNclients*sizeof(UInt_t));
+    Int_t *array = new Int_t[fArraySize];
+    memcpy(array, fInputs, fNclients*sizeof(Int_t));
     delete [] fInputs;
     fInputs = array;
   }