1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // This is the class for perfoming the monitoring process. //
21 // It checks if a raw data file exists, loops over the events in the raw //
22 // data file, reconstructs TPC and ITS clusters and tracks, fills the //
23 // monitor histograms and sends the updated histograms to the clients. //
24 // Then the raw data file is deleted and it waits for a new file. //
26 ///////////////////////////////////////////////////////////////////////////////
29 #include "AliMonitorProcess.h"
30 #include "AliMonitorTPC.h"
31 #include "AliMonitorITS.h"
32 #include "AliMonitorV0s.h"
33 #include "AliMonitorHLT.h"
34 #include "AliMonitorHLTHough.h"
35 #include "AliRawReaderRoot.h"
36 #include "AliLoader.h"
39 #include "AliTPCclustererMI.h"
40 #include "AliTPCtrackerMI.h"
42 #include "AliITSclustererV2.h"
43 #include "AliITStrackerV2.h"
44 #include "AliITSLoader.h"
45 #include "AliV0vertexer.h"
48 #include <TServerSocket.h>
50 #include <TGridResult.h>
53 #include <AliLevel3.h>
54 #include <AliL3Transform.h>
55 #include <AliL3StandardIncludes.h>
56 #include <AliL3HoughMaxFinder.h>
57 #include <AliL3Hough.h>
60 ClassImp(AliMonitorProcess)
63 const Int_t AliMonitorProcess::fgkPort = 9327;
66 //_____________________________________________________________________________
67 AliMonitorProcess::AliMonitorProcess(const char* alienDir,
68 const char* fileNameGalice)
70 // initialize the monitoring process and the monitor histograms
72 fGrid = TGrid::Connect("alien", gSystem->Getenv("USER"));
73 if (!fGrid || fGrid->IsZombie() || !fGrid->IsConnected()) {
75 Fatal("AliMonitorProcess", "could not connect to alien");
78 fLogicalFileName = "";
81 fRunLoader = AliRunLoader::Open(fileNameGalice);
82 if (!fRunLoader) Fatal("AliMonitorProcess",
83 "could not get run loader from file %s",
86 fRunLoader->CdGAFile();
87 fTPCParam = AliTPC::LoadTPCParam(gFile);
88 if (!fTPCParam) Fatal("AliMonitorProcess", "could not load TPC parameters");
90 fRunLoader->LoadgAlice();
91 gAlice = fRunLoader->GetAliRun();
92 if (!gAlice) Fatal("AliMonitorProcess", "no gAlice object found");
93 AliITS* its = (AliITS*) gAlice->GetModule("ITS");
94 if (!its) Fatal("AliMonitorProcess", "no ITS detector found");
95 fITSgeom = its->GetITSgeom();
96 if (!fITSgeom) Fatal("AliMonitorProcess", "could not load ITS geometry");
99 // Init TPC parameters for HLT
100 Bool_t isinit=AliL3Transform::Init(const_cast<char*>(fileNameGalice),kTRUE);
102 cerr << "Could not create transform settings, please check log for error messages!" << endl;
111 fWriteHistoList = kFALSE;
113 fTopFolder = new TFolder("Monitor", "monitor histograms");
114 fTopFolder->SetOwner(kTRUE);
116 fMonitors.Add(new AliMonitorTPC(fTPCParam));
117 fMonitors.Add(new AliMonitorITS(fITSgeom));
118 fMonitors.Add(new AliMonitorV0s);
120 fMonitors.Add(new AliMonitorHLT(fTPCParam));
121 fMonitors.Add(new AliMonitorHLTHough(fTPCParam));
124 for (Int_t iMonitor = 0; iMonitor < fMonitors.GetEntriesFast(); iMonitor++) {
125 ((AliMonitor*) fMonitors[iMonitor])->CreateHistos(fTopFolder);
128 TIterator* iFolder = fTopFolder->GetListOfFolders()->MakeIterator();
129 while (TFolder* folder = (TFolder*) iFolder->Next()) folder->SetOwner(kTRUE);
132 fFile = TFile::Open("monitor_tree.root", "RECREATE");
133 if (!fFile || !fFile->IsOpen()) {
134 Fatal("AliMonitorProcess", "could not open file for tree");
136 fTree = new TTree("MonitorTree", "tree for monitoring");
137 for (Int_t iMonitor = 0; iMonitor < fMonitors.GetEntriesFast(); iMonitor++) {
138 ((AliMonitor*) fMonitors[iMonitor])->CreateBranches(fTree);
142 fServerSocket = new TServerSocket(fgkPort, kTRUE);
143 fServerSocket->SetOption(kNoBlock, 1);
144 fDisplaySocket = NULL;
145 CheckForConnections();
154 //_____________________________________________________________________________
155 AliMonitorProcess::AliMonitorProcess(const AliMonitorProcess& process) :
158 Fatal("AliMonitorProcess", "copy constructor not implemented");
161 //_____________________________________________________________________________
162 AliMonitorProcess& AliMonitorProcess::operator = (const AliMonitorProcess&
165 Fatal("operator =", "assignment operator not implemented");
169 //_____________________________________________________________________________
170 AliMonitorProcess::~AliMonitorProcess()
178 delete fServerSocket;
180 delete fDisplaySocket;
187 gSystem->Unlink("monitor_tree.root");
195 //_____________________________________________________________________________
196 const char* AliMonitorProcess::GetRevision()
202 //_____________________________________________________________________________
203 void AliMonitorProcess::SetStatus(EStatus status)
205 // set the current status and process system events
208 gSystem->ProcessEvents();
212 //_____________________________________________________________________________
213 void AliMonitorProcess::Run()
215 // run the monitor process:
216 // check for a raw data file, process the raw data file and delete it
222 while (!CheckForNewFile()) {
223 CheckForConnections();
225 if (fStopping) break;
228 if (fStopping) break;
240 //_____________________________________________________________________________
241 void AliMonitorProcess::Stop()
243 // set the fStopping flag to terminate the monitor process after the current
244 // event was processed
246 if (GetStatus() != kStopped) fStopping = kTRUE;
250 //_____________________________________________________________________________
251 void AliMonitorProcess::ProcessFile(const char* fileName)
253 // create a file with monitor histograms for a single file
255 if (GetStatus() != kStopped) {
256 Error("ProcessFile", "ProcessFile can not be called"
257 " while the monitor process is running");
261 fFileName = fileName;
262 Int_t nEventMin = fNEventsMin;
266 fNEventsMin = nEventMin;
271 //_____________________________________________________________________________
272 Bool_t AliMonitorProcess::CheckForNewFile()
274 // check whether a new file was registered in alien
276 TGridResult* result = fGrid->Ls();
281 while (const char* entry = result->Next()) {
282 // entry = host_date_time.root
283 TString entryCopy(entry);
284 char* p = const_cast<char*>(entryCopy.Data());
285 if (!strtok(p, "_") || !p) continue; // host name
286 char* dateStr = strtok(NULL, "_");
287 if (!dateStr || !p) continue;
288 char* timeStr = strtok(NULL, ".");
289 if (!timeStr || !p) continue;
290 Long_t date = atoi(dateStr);
291 Long_t time = atoi(timeStr);
293 if ((date > maxDate) || ((date == maxDate) && (time > maxTime))) {
300 if (maxDate < 0) return kFALSE; // no files found
301 if (fLogicalFileName.CompareTo(fileName) == 0) return kFALSE; // no new file
303 fLogicalFileName = fileName;
304 TGridResult* result2 = fGrid->GetPhysicalFileNames(fLogicalFileName.Data());
305 fFileName = result2->Next();
310 //_____________________________________________________________________________
311 Bool_t AliMonitorProcess::ProcessFile()
313 // loop over all events in the raw data file, run the reconstruction
314 // and fill the monitor histograms
316 Int_t nEvents = GetNumberOfEvents(fFileName);
317 if (nEvents <= 0) return kFALSE;
318 Info("ProcessFile", "found %d event(s) in file %s",
319 nEvents, fFileName.Data());
321 CreateHLT(fFileName);
322 CreateHLTHough(fFileName);
325 // loop over the events
326 for (Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
328 fRunLoader->SetEventNumber(0);
329 AliRawReaderRoot rawReader(fFileName, iEvent);
330 if (fStopping) break;
331 if (rawReader.GetRunNumber() != fRunNumber) {
334 fRunNumber = rawReader.GetRunNumber();
335 fEventNumber[0] = rawReader.GetEventId()[0];
336 fEventNumber[1] = rawReader.GetEventId()[1];
338 if (fStopping) break;
341 if (!ReconstructTPC(&rawReader)) return kFALSE;
342 if (fStopping) break;
343 if (!ReconstructITS(&rawReader)) return kFALSE;
344 if (fStopping) break;
345 if (!ReconstructV0s()) return kFALSE;
346 if (fStopping) break;
347 if (!ReconstructHLT(iEvent)) return kFALSE;
348 if (fStopping) break;
349 if (!ReconstructHLTHough(iEvent)) return kFALSE;
350 if (fStopping) break;
352 if (fDisplaySocket) fDisplaySocket->Send("new event");
354 Info("ProcessFile", "filling histograms...");
356 for (Int_t iMonitor = 0; iMonitor < fMonitors.GetEntriesFast(); iMonitor++) {
357 ((AliMonitor*) fMonitors[iMonitor])->FillHistos(fRunLoader, &rawReader);
358 if (fStopping) break;
360 if (fStopping) break;
362 Info("ProcessFile", "updating histograms...");
363 SetStatus(kUpdating);
364 TIterator* iFolder = fTopFolder->GetListOfFolders()->MakeIterator();
365 while (TFolder* folder = (TFolder*) iFolder->Next()) {
366 TIterator* iHisto = folder->GetListOfFolders()->MakeIterator();
367 while (AliMonitorPlot* histo = (AliMonitorPlot*) iHisto->Next()) {
373 if (fStopping) break;
375 Info("ProcessFile", "filling the tree...");
378 Info("ProcessFile", "broadcasting histograms...");
379 CheckForConnections();
383 if (fStopping) break;
394 //_____________________________________________________________________________
395 void AliMonitorProcess::Reset()
397 // write the current histograms to a file and reset them
399 if (fSubRunNumber == 0) fSubRunNumber++;
406 //_____________________________________________________________________________
407 UInt_t AliMonitorProcess::GetEventPeriodNumber() const
409 // get the period number from the event id
411 return (fEventNumber[1] >> 4);
414 //_____________________________________________________________________________
415 UInt_t AliMonitorProcess::GetEventOrbitNumber() const
417 // get the orbit number from the event id
419 return ((fEventNumber[1] & 0x000F) << 20) + (fEventNumber[0] >> 12);
422 //_____________________________________________________________________________
423 UInt_t AliMonitorProcess::GetEventBunchNumber() const
425 // get the bunch number from the event id
427 return (fEventNumber[0] % 0x0FFF);
430 //_____________________________________________________________________________
431 Int_t AliMonitorProcess::GetNumberOfEvents(const char* fileName) const
433 // determine the number of events in the given raw data file
437 TFile* file = TFile::Open(fileName);
438 if (!file || !file->IsOpen()) {
439 Error("GetNumberOfEvents", "could not open file %s", fileName);
440 if (file) delete file;
444 TTree* tree = (TTree*) file->Get("RAW");
446 Error("GetNumberOfEvents", "could not find tree with raw data");
448 nEvents = (Int_t) tree->GetEntries();
456 //_____________________________________________________________________________
457 Bool_t AliMonitorProcess::ReconstructTPC(AliRawReader* rawReader)
459 // find TPC clusters and tracks
463 AliLoader* tpcLoader = fRunLoader->GetLoader("TPCLoader");
465 Error("ReconstructTPC", "no TPC loader found");
468 gSystem->Unlink("TPC.RecPoints.root");
469 gSystem->Unlink("TPC.Tracks.root");
472 Info("ReconstructTPC", "reconstructing clusters...");
473 tpcLoader->LoadRecPoints("recreate");
474 AliTPCclustererMI clusterer(fTPCParam);
475 tpcLoader->MakeRecPointsContainer();
476 clusterer.SetOutput(tpcLoader->TreeR());
477 clusterer.Digits2Clusters(rawReader);
478 tpcLoader->WriteRecPoints("OVERWRITE");
481 Info("ReconstructTPC", "reconstructing tracks...");
482 tpcLoader->LoadTracks("recreate");
484 AliTPCtrackerMI tracker(fTPCParam);
485 tracker.Clusters2Tracks();
488 tpcLoader->UnloadRecPoints();
489 tpcLoader->UnloadTracks();
493 //_____________________________________________________________________________
494 Bool_t AliMonitorProcess::ReconstructITS(AliRawReader* rawReader)
496 // find ITS clusters and tracks
500 AliLoader* itsLoader = fRunLoader->GetLoader("ITSLoader");
502 Error("ReconstructITS", "no ITS loader found");
505 AliLoader* tpcLoader = fRunLoader->GetLoader("TPCLoader");
507 Error("ReconstructITS", "no TPC loader found");
510 gSystem->Unlink("ITS.RecPoints.root");
511 gSystem->Unlink("ITS.Tracks.root");
514 Info("ReconstructITS", "reconstructing clusters...");
515 itsLoader->LoadRecPoints("recreate");
516 AliITSclustererV2 clusterer(fITSgeom);
517 itsLoader->MakeRecPointsContainer();
518 clusterer.Digits2Clusters(rawReader);
521 Info("ReconstructITS", "reconstructing tracks...");
522 itsLoader->LoadTracks("recreate");
523 itsLoader->MakeTracksContainer();
524 tpcLoader->LoadTracks();
525 AliITStrackerV2 tracker(fITSgeom);
526 tracker.LoadClusters(itsLoader->TreeR());
527 tracker.Clusters2Tracks(tpcLoader->TreeT(), itsLoader->TreeT());
528 tracker.UnloadClusters();
529 itsLoader->WriteTracks("OVERWRITE");
531 itsLoader->UnloadRecPoints();
532 itsLoader->UnloadTracks();
533 tpcLoader->UnloadTracks();
537 //_____________________________________________________________________________
538 Bool_t AliMonitorProcess::ReconstructV0s()
544 AliITSLoader* itsLoader = (AliITSLoader*) fRunLoader->GetLoader("ITSLoader");
546 Error("ReconstructV0", "no ITS loader found");
549 gSystem->Unlink("ITS.V0s.root");
552 Info("ReconstructV0s", "reconstructing V0s...");
553 itsLoader->LoadTracks("read");
554 itsLoader->LoadV0s("recreate");
555 AliV0vertexer vertexer;
556 TTree* tracks = itsLoader->TreeT();
558 Error("ReconstructV0s", "no ITS tracks tree found");
561 if (!itsLoader->TreeV0()) itsLoader->MakeTree("V0");
562 TTree* v0s = itsLoader->TreeV0();
563 vertexer.Tracks2V0vertices(tracks, v0s);
564 itsLoader->WriteV0s("OVERWRITE");
566 itsLoader->UnloadTracks();
567 itsLoader->UnloadV0s();
571 //_____________________________________________________________________________
573 void AliMonitorProcess::CreateHLT(const char* fileName)
576 // create the HLT (Level3) object
578 if (fHLT) delete fHLT;
581 strcpy(name, fileName);
582 fHLT = new AliLevel3(name);
583 fHLT->Init("./", AliLevel3::kRaw, 1);
585 fHLT->SetClusterFinderParam(-1, -1, kTRUE);
587 Int_t phiSegments = 50;
588 Int_t etaSegments = 100;
589 Int_t trackletlength = 3;
590 Int_t tracklength = 20;//40 or 5
591 Int_t rowscopetracklet = 2;
592 Int_t rowscopetrack = 10;
593 Double_t minPtFit = 0;
594 Double_t maxangle = 0.1745;
595 Double_t goodDist = 5;
596 Double_t maxphi = 0.1;
597 Double_t maxeta = 0.1;
598 Double_t hitChi2Cut = 15;//100 or 15
599 Double_t goodHitChi2 = 5;//20 or 5
600 Double_t trackChi2Cut = 10;//50 or 10
601 fHLT->SetTrackerParam(phiSegments, etaSegments,
602 trackletlength, tracklength,
603 rowscopetracklet, rowscopetrack,
604 minPtFit, maxangle, goodDist, hitChi2Cut,
605 goodHitChi2, trackChi2Cut, 50, maxphi, maxeta, kTRUE);
607 fHLT->WriteFiles("./hlt/");
610 //_____________________________________________________________________________
611 void AliMonitorProcess::CreateHLTHough(const char* fileName)
614 // create the HLT Hough transform (L3Hough) object
616 if (fHLTHough) delete fHLTHough;
619 strcpy(name, fileName);
621 fHLTHough = new AliL3Hough();
622 fHLTHough->SetTransformerParams(64,64,0.1,30);
623 // fHLTHough->Init("./", kFALSE, 20, kFALSE,0,name);
624 fHLTHough->SetAddHistograms();
625 fHLTHough->GetMaxFinder()->SetThreshold(55000); // or 14000 ?
630 //_____________________________________________________________________________
631 Bool_t AliMonitorProcess::ReconstructHLT(
639 // run the HLT cluster and track finder
644 Warning("ReconstructHLT", "the code was compiled without HLT support");
648 gSystem->Exec("rm -rf hlt");
649 gSystem->MakeDirectory("hlt");
650 if (!fHLT) return kFALSE;
652 fHLT->ProcessEvent(0, 35, iEvent);
654 // remove the event number from the file names
656 sprintf(command, "rename points_%d points hlt/*.raw", iEvent);
657 gSystem->Exec(command);
658 sprintf(command, "rename tracks_tr_%d tracks_tr hlt/*.raw", iEvent);
659 gSystem->Exec(command);
660 sprintf(command, "rename tracks_gl_%d tracks_gl hlt/*.raw", iEvent);
661 gSystem->Exec(command);
662 sprintf(command, "rename tracks_%d tracks hlt/*.raw", iEvent);
663 gSystem->Exec(command);
668 //_____________________________________________________________________________
669 Bool_t AliMonitorProcess::ReconstructHLTHough(
677 // run the HLT Hough transformer
682 Warning("ReconstructHLTHough", "the code was compiled without HLT support");
686 if (!fHLTHough) return kFALSE;
688 // fHLTHough->Process(0, 35);
689 // Loop over TPC sectors and process the data
690 for(Int_t i=0; i<=35; i++)
692 fHLTHough->ReadData(i,iEvent);
693 fHLTHough->Transform();
694 // if(fHLTHough->fAddHistograms)
695 fHLTHough->AddAllHistograms();
696 fHLTHough->FindTrackCandidates();
697 fHLTHough->WriteTracks(i,"./hlt");
703 //_____________________________________________________________________________
704 Bool_t AliMonitorProcess::WriteHistos()
706 // write the monitor tree and the monitor histograms to the file
707 // "monitor_<run number>[_<sub_run_number>].root"
708 // if at least fNEventsMin events were monitored
712 // rename tree file and create a new one
719 sprintf(fileName, "monitor_tree_%d.root", fRunNumber);
720 if (fSubRunNumber > 0) {
721 sprintf(fileName, "monitor_tree_%d_%d.root", fRunNumber, fSubRunNumber);
723 if (fNEvents < fNEventsMin) {
724 gSystem->Unlink("monitor_tree.root");
726 gSystem->Rename("monitor_tree.root", fileName);
729 fFile = TFile::Open("monitor_tree.root", "RECREATE");
730 if (!fFile || !fFile->IsOpen()) {
731 Fatal("WriteHistos", "could not open file for tree");
733 fTree = new TTree("MonitorTree", "tree for monitoring");
734 for (Int_t iMonitor = 0; iMonitor < fMonitors.GetEntriesFast(); iMonitor++) {
735 ((AliMonitor*) fMonitors[iMonitor])->CreateBranches(fTree);
739 // write the histograms
740 if (fNEvents < fNEventsMin) return kTRUE;
742 if (!fWriteHistoList) {
743 TIterator* iFolder = fTopFolder->GetListOfFolders()->MakeIterator();
744 while (TFolder* folder = (TFolder*) iFolder->Next()) {
745 TIterator* iHisto = folder->GetListOfFolders()->MakeIterator();
746 while (AliMonitorPlot* histo = (AliMonitorPlot*) iHisto->Next()) {
754 Bool_t result = kTRUE;
755 sprintf(fileName, "monitor_%d.root", fRunNumber);
756 if (fSubRunNumber > 0) {
757 sprintf(fileName, "monitor_%d_%d.root", fRunNumber, fSubRunNumber);
759 TFile* file = TFile::Open(fileName, "recreate");
760 if (!file || !file->IsOpen()) {
761 Error("WriteHistos", "could not open file %s", fileName);
767 if (file) delete file;
772 //_____________________________________________________________________________
773 void AliMonitorProcess::StartNewRun()
775 // reset the histograms for a new run
777 SetStatus(kResetting);
778 TIterator* iFolder = fTopFolder->GetListOfFolders()->MakeIterator();
779 while (TFolder* folder = (TFolder*) iFolder->Next()) {
780 TIterator* iHisto = folder->GetListOfFolders()->MakeIterator();
781 while (AliMonitorPlot* histo = (AliMonitorPlot*) iHisto->Next()) {
792 //_____________________________________________________________________________
793 void AliMonitorProcess::CheckForConnections()
795 // check if new clients want to connect and add them to the list of sockets
797 TMessage message(kMESS_OBJECT);
798 message.WriteObject(fTopFolder);
799 SetStatus(kConnecting);
802 while ((socket = fServerSocket->Accept()) != (TSocket*)-1) {
803 socket->SetOption(kNoBlock, 1);
804 char socketType[256];
805 if (!socket->Recv(socketType, 255)) continue;
806 if (strcmp(socketType, "client") == 0) {
807 if ((fNEvents == 0) || (socket->Send(message) >= 0)) {
808 fSockets.Add(socket);
809 TInetAddress adr = socket->GetInetAddress();
810 Info("CheckForConnections", "new client:\n %s (%s), port %d\n",
811 adr.GetHostName(), adr.GetHostAddress(), adr.GetPort());
813 } else if (strcmp(socketType, "display") == 0) {
814 if (fDisplaySocket) {
815 fDisplaySocket->Close();
816 delete fDisplaySocket;
818 fDisplaySocket = socket;
819 fDisplaySocket->SetOption(kNoBlock, 1);
820 TInetAddress adr = socket->GetInetAddress();
821 Info("CheckForConnections", "new display:\n %s (%s), port %d\n",
822 adr.GetHostName(), adr.GetHostAddress(), adr.GetPort());
826 for (Int_t iSocket = 0; iSocket < fSockets.GetEntriesFast(); iSocket++) {
827 socket = (TSocket*) fSockets[iSocket];
828 if (!socket) continue;
829 // remove finished client
831 if (socket->Recv(str, 255)) {
832 TString socketMessage(str);
833 if(socketMessage.CompareTo("Finished") == 0) {
834 TInetAddress adr = socket->GetInetAddress();
835 Info("CheckForConnections",
836 "disconnect finished client:\n %s (%s), port %d\n",
837 adr.GetHostName(), adr.GetHostAddress(), adr.GetPort());
838 delete fSockets.RemoveAt(iSocket);
842 if (!socket->IsValid()) {
843 // remove invalid sockets from the list
844 TInetAddress adr = socket->GetInetAddress();
845 Info("BroadcastHistos", "disconnect client:\n %s (%s), port %d\n",
846 adr.GetHostName(), adr.GetHostAddress(), adr.GetPort());
847 delete fSockets.RemoveAt(iSocket);
853 //_____________________________________________________________________________
854 void AliMonitorProcess::BroadcastHistos()
856 // send the monitor histograms to the clients
858 SetStatus(kBroadcasting);
859 TMessage message(kMESS_OBJECT);
860 message.WriteObject(fTopFolder);
862 for (Int_t iSocket = 0; iSocket < fSockets.GetEntriesFast(); iSocket++) {
863 TSocket* socket = (TSocket*) fSockets[iSocket];
864 if (!socket) continue;
865 socket->SetOption(kNoBlock, 0);
866 if (!socket->IsValid() || (socket->Send(message) < 0)) {
867 // remove the socket from the list if there was an error
868 TInetAddress adr = socket->GetInetAddress();
869 Info("BroadcastHistos", "disconnect client:\n %s (%s), port %d\n",
870 adr.GetHostName(), adr.GetHostAddress(), adr.GetPort());
871 delete fSockets.RemoveAt(iSocket);
873 socket->SetOption(kNoBlock, 1);