]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Remove trailing whitespace.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2008 21:04:54 +0000 (21:04 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2008 21:04:54 +0000 (21:04 +0000)
197 files changed:
EVE/Alieve/AliEveEventManager.cxx
EVE/Alieve/AliEveEventManager.h
EVE/Alieve/AliEveHOMERManager.cxx
EVE/Alieve/AliEveHOMERManager.h
EVE/Alieve/AliEveHOMERManagerEditor.cxx
EVE/Alieve/AliEveHOMERManagerEditor.h
EVE/Alieve/AliEveHOMERSource.cxx
EVE/Alieve/AliEveHOMERSource.h
EVE/Alieve/AliEveHOMERSourceList.cxx
EVE/Alieve/AliEveHOMERSourceList.h
EVE/Alieve/AliEveITSDigitsInfo.cxx
EVE/Alieve/AliEveITSDigitsInfo.h
EVE/Alieve/AliEveITSModule.cxx
EVE/Alieve/AliEveITSModule.h
EVE/Alieve/AliEveITSModuleStepper.cxx
EVE/Alieve/AliEveITSModuleStepper.h
EVE/Alieve/AliEveITSModuleStepperEditor.cxx
EVE/Alieve/AliEveITSModuleStepperEditor.h
EVE/Alieve/AliEveITSScaledModule.cxx
EVE/Alieve/AliEveITSScaledModule.h
EVE/Alieve/AliEveITSScaledModuleEditor.cxx
EVE/Alieve/AliEveITSScaledModuleEditor.h
EVE/Alieve/AliEveJetPlane.cxx
EVE/Alieve/AliEveJetPlane.h
EVE/Alieve/AliEveJetPlaneEditor.cxx
EVE/Alieve/AliEveJetPlaneEditor.h
EVE/Alieve/AliEveJetPlaneGL.cxx
EVE/Alieve/AliEveJetPlaneGL.h
EVE/Alieve/AliEveKineTools.cxx
EVE/Alieve/AliEveKineTools.h
EVE/Alieve/AliEveMUONChamber.cxx
EVE/Alieve/AliEveMUONChamber.h
EVE/Alieve/AliEveMUONChamberData.cxx
EVE/Alieve/AliEveMUONChamberData.h
EVE/Alieve/AliEveMUONChamberEditor.cxx
EVE/Alieve/AliEveMUONChamberEditor.h
EVE/Alieve/AliEveMUONChamberGL.cxx
EVE/Alieve/AliEveMUONChamberGL.h
EVE/Alieve/AliEveMUONData.cxx
EVE/Alieve/AliEveMUONData.h
EVE/Alieve/AliEveMUONTrack.cxx
EVE/Alieve/AliEveMUONTrack.h
EVE/Alieve/AliEvePMDModule.cxx
EVE/Alieve/AliEvePMDModule.h
EVE/Alieve/AliEvePMDModuleEditor.cxx
EVE/Alieve/AliEvePMDModuleEditor.h
EVE/Alieve/AliEveT0Module.cxx
EVE/Alieve/AliEveT0Module.h
EVE/Alieve/AliEveTOFDigitsInfo.cxx
EVE/Alieve/AliEveTOFDigitsInfo.h
EVE/Alieve/AliEveTOFDigitsInfoEditor.cxx
EVE/Alieve/AliEveTOFDigitsInfoEditor.h
EVE/Alieve/AliEveTOFSector.cxx
EVE/Alieve/AliEveTOFSector.h
EVE/Alieve/AliEveTOFSectorEditor.cxx
EVE/Alieve/AliEveTOFSectorEditor.h
EVE/Alieve/AliEveTOFStrip.cxx
EVE/Alieve/AliEveTOFStrip.h
EVE/Alieve/AliEveTOFStripEditor.cxx
EVE/Alieve/AliEveTOFStripEditor.h
EVE/Alieve/AliEveTPCData.cxx
EVE/Alieve/AliEveTPCData.h
EVE/Alieve/AliEveTPCLoader.cxx
EVE/Alieve/AliEveTPCLoader.h
EVE/Alieve/AliEveTPCLoaderEditor.cxx
EVE/Alieve/AliEveTPCLoaderEditor.h
EVE/Alieve/AliEveTPCSector2D.cxx
EVE/Alieve/AliEveTPCSector2D.h
EVE/Alieve/AliEveTPCSector2DEditor.cxx
EVE/Alieve/AliEveTPCSector2DEditor.h
EVE/Alieve/AliEveTPCSector2DGL.cxx
EVE/Alieve/AliEveTPCSector2DGL.h
EVE/Alieve/AliEveTPCSector3D.cxx
EVE/Alieve/AliEveTPCSector3D.h
EVE/Alieve/AliEveTPCSector3DEditor.cxx
EVE/Alieve/AliEveTPCSector3DEditor.h
EVE/Alieve/AliEveTPCSector3DGL.cxx
EVE/Alieve/AliEveTPCSector3DGL.h
EVE/Alieve/AliEveTPCSectorData.cxx
EVE/Alieve/AliEveTPCSectorData.h
EVE/Alieve/AliEveTPCSectorViz.cxx
EVE/Alieve/AliEveTPCSectorViz.h
EVE/Alieve/AliEveTPCSectorVizEditor.cxx
EVE/Alieve/AliEveTPCSectorVizEditor.h
EVE/Alieve/AliEveTRDData.cxx
EVE/Alieve/AliEveTRDData.h
EVE/Alieve/AliEveTRDLoader.cxx
EVE/Alieve/AliEveTRDLoader.h
EVE/Alieve/AliEveTRDLoaderImp.cxx
EVE/Alieve/AliEveTRDLoaderImp.h
EVE/Alieve/AliEveTRDLoaderManager.cxx
EVE/Alieve/AliEveTRDLoaderManager.h
EVE/Alieve/AliEveTRDModule.cxx
EVE/Alieve/AliEveTRDModule.h
EVE/Alieve/AliEveTRDModuleImp.cxx
EVE/Alieve/AliEveTRDModuleImp.h
EVE/Alieve/AliEveTrackFitter.cxx
EVE/Alieve/AliEveTrackFitter.h
EVE/Alieve/AliEveTrackFitterEditor.cxx
EVE/Alieve/AliEveTrackFitterEditor.h
EVE/Alieve/AliEveVSDCreator.cxx
EVE/Alieve/AliEveVSDCreator.h
EVE/Alieve/LinkDef.h
EVE/Alieve/alieve_main/alieve_main.cxx
EVE/Alieve/blacklisted-classes/AliEveCascade.cxx
EVE/Alieve/blacklisted-classes/AliEveCascade.h
EVE/Alieve/blacklisted-classes/AliEveCascadeEditors.cxx
EVE/Alieve/blacklisted-classes/AliEveCascadeEditors.h
EVE/Alieve/blacklisted-classes/AliEveV0.cxx
EVE/Alieve/blacklisted-classes/AliEveV0.h
EVE/Alieve/blacklisted-classes/AliEveV0Editors.cxx
EVE/Alieve/blacklisted-classes/AliEveV0Editors.h
EVE/alice-macros/MUON_display.C
EVE/alice-macros/MUON_geom.C
EVE/alice-macros/MUON_geomAll.C
EVE/alice-macros/MUON_trigger_info.C
EVE/alice-macros/NLT_test.C
EVE/alice-macros/NLT_trackcount_init.C
EVE/alice-macros/acorde_hits.C
EVE/alice-macros/clusters_from_index.C
EVE/alice-macros/clusters_from_label.C
EVE/alice-macros/emcal_digits.C
EVE/alice-macros/emcal_hits.C
EVE/alice-macros/esd_Cascade.C
EVE/alice-macros/esd_V0.C
EVE/alice-macros/esd_V0_points.C
EVE/alice-macros/esd_spd_tracklets.C
EVE/alice-macros/esd_tracks.C
EVE/alice-macros/event_goto.C
EVE/alice-macros/event_next.C
EVE/alice-macros/event_prev.C
EVE/alice-macros/fmd_hits.C
EVE/alice-macros/geom_acorde.C
EVE/alice-macros/geom_all.C
EVE/alice-macros/geom_ddip.C
EVE/alice-macros/geom_emcal.C
EVE/alice-macros/geom_fmd.C
EVE/alice-macros/geom_gentle.C
EVE/alice-macros/geom_hmpid.C
EVE/alice-macros/geom_its.C
EVE/alice-macros/geom_phos.C
EVE/alice-macros/geom_pmd.C
EVE/alice-macros/geom_simple.C
EVE/alice-macros/geom_t0.C
EVE/alice-macros/geom_tpc.C
EVE/alice-macros/geom_trd_tof.C
EVE/alice-macros/geom_vzero.C
EVE/alice-macros/hits_from_label.C
EVE/alice-macros/hmpid_clusters.C
EVE/alice-macros/init_trd.C
EVE/alice-macros/its_clusters.C
EVE/alice-macros/its_digits.C
EVE/alice-macros/its_hits.C
EVE/alice-macros/its_hits_layer_split.C
EVE/alice-macros/its_module_stepper.C
EVE/alice-macros/its_raw.C
EVE/alice-macros/jetplane.C
EVE/alice-macros/kine_tracks.C
EVE/alice-macros/phos_clusters.C
EVE/alice-macros/pmd_digits.C
EVE/alice-macros/pmd_hits.C
EVE/alice-macros/pmd_raw.C
EVE/alice-macros/primary_vertex.C
EVE/alice-macros/primary_vertex_tracks.C
EVE/alice-macros/print_kine_from_label.C
EVE/alice-macros/region_marker.C
EVE/alice-macros/t0_digits.C
EVE/alice-macros/t0_hits.C
EVE/alice-macros/t0_raw.C
EVE/alice-macros/tof_digits.C
EVE/alice-macros/tof_digits_sector.C
EVE/alice-macros/tof_digits_strips.C
EVE/alice-macros/tof_hits.C
EVE/alice-macros/tpc_calib_viewer.C
EVE/alice-macros/tpc_clusters.C
EVE/alice-macros/tpc_digits.C
EVE/alice-macros/tpc_hits.C
EVE/alice-macros/tpc_hits_charge_split.C
EVE/alice-macros/tpc_hits_eta_split.C
EVE/alice-macros/trd_hits.C
EVE/alice-macros/trd_hits_z_split.C
EVE/alice-macros/vzero_digits.C
EVE/alice-macros/vzero_hits.C
EVE/hlt-macros/command_queue.C
EVE/hlt-macros/hlt_structs.C
EVE/hlt-macros/homer_display.C
EVE/hlt-macros/rootlogon.C
EVE/macros/alieve_create_vsd.C
EVE/macros/alieve_init.C
EVE/macros/alieve_loadlibs.C
EVE/macros/isegv.C
EVE/macros/trackcount_init.C
EVE/test-macros/tpc_digi_test.C
EVE/test-macros/tpc_gui.C
EVE/test-macros/tpc_gui_hack.C
EVE/test-macros/tpc_raw_test.C
EVE/test-macros/tpc_sector_raw_test.C

index 81a194a6675fa46a55ee114af91e909a5eed4e7f..12bceaee300e92e439a9b26b12e960946709657f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveEventManager.h"
@@ -36,7 +36,7 @@
 //
 // Missing support for raw-data. For now this is handled individually
 // by each sub-detector.
-// 
+//
 
 ClassImp(AliEveEventManager)
 
@@ -122,7 +122,7 @@ void AliEveEventManager::Open()
     else
       Warning(eH, "Bootstraping of run-loader failed.");
   }
-  
+
 
   TString esd_path(Form("%s/AliESDs.root", fPath.Data()));
   if (gSystem->AccessPathName(esd_path, kReadPermission) == kFALSE)
@@ -167,7 +167,7 @@ void AliEveEventManager::Open()
     if (fgAssertESDTree)
     {
       throw(eH + "ESD not initialized. Its precence was requested.");
-    } else { 
+    } else {
       Warning(eH, "ESD not initialized.");
     }
   }
index 2df06891a76a6aded1b31e97a61b26ad84cf5117..a7e83a8a97a3aa312d9a94ddfc8570c0f12e3117 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_EventAlieve_H
index fb1c5bdc7db39fb6ef31cf1cfe934ddad4329d7e..f773b6b24239175b301506c1d96e453d8a01ae04 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
@@ -23,7 +23,7 @@
 
 /** @file   AliEveHOMERManager.cxx
     @author Jochen Thaeder
-    @date   
+    @date
     @brief  Manger for HOMER in offline
 */
 
@@ -73,8 +73,8 @@ ClassImp(AliEveHOMERManager)
 
 /*
  * ---------------------------------------------------------------------------------
- *                            Constructor / Destructor 
- * --------------------------------------------------------------------------------- 
+ *                            Constructor / Destructor
+ * ---------------------------------------------------------------------------------
  */
 
 //##################################################################################
@@ -83,7 +83,7 @@ AliEveHOMERManager::AliEveHOMERManager( TString xmlFile ) :
 
   fLibManager(new AliHLTHOMERLibManager),
   fXMLFile(xmlFile),
-  fXMLParser(NULL), 
+  fXMLParser(NULL),
   fRootNode(NULL),
   fSourceList(NULL),
   fReader(NULL),
@@ -130,7 +130,7 @@ AliEveHOMERManager::~AliEveHOMERManager() {
     fReader = NULL;
   }
 
-  if ( fXMLParser ) 
+  if ( fXMLParser )
     delete fXMLParser;
   fXMLParser = NULL;
 
@@ -150,7 +150,7 @@ AliEveHOMERManager::~AliEveHOMERManager() {
 /*
  * ---------------------------------------------------------------------------------
  *                            Source Handling
- * --------------------------------------------------------------------------------- 
+ * ---------------------------------------------------------------------------------
  */
 
 //##################################################################################
@@ -164,7 +164,7 @@ Int_t AliEveHOMERManager::CreateHOMERSourcesList() {
 
   fXMLParser = new TDOMParser();
   fXMLParser->SetValidate( kFALSE );
-  
+
   Int_t iResult = fXMLParser->ParseFile( fXMLFile );
   if ( iResult < 0 ) {
     iResult = 1;
@@ -177,13 +177,13 @@ Int_t AliEveHOMERManager::CreateHOMERSourcesList() {
   if ( fSourceList != NULL )
     delete fSourceList;
   fSourceList = NULL;
-  
+
   fSourceList = new TList();
   fSourceList->SetOwner( kTRUE );
 
   // -- Set ROOT node
   fRootNode = fXMLParser->GetXMLDocument()->GetRootNode();
-  
+
   TXMLNode * node = NULL;
   TXMLNode * prevNode = fRootNode->GetChildren();
 
@@ -194,21 +194,21 @@ Int_t AliEveHOMERManager::CreateHOMERSourcesList() {
     // -- Find only "Process" nodes, otherwise continue to next node
     if ( strcmp( node->GetNodeName(), "Proc" ) != 0 )
       continue;
-    
+
     // -- Get Attributes of current node
     TList *attrList = node->GetAttributes();
     TXMLAttr *attr = 0;
     TIter next(attrList);
-    
+
     while ( ( attr = (TXMLAttr*)next() ) ) {
-      
+
       // -- Find "ID" attribute, otherwise continue to next attribute
-      if ( strcmp( attr->GetName(), "ID" ) != 0 ) 
+      if ( strcmp( attr->GetName(), "ID" ) != 0 )
        continue;
-      
+
       TString nodeId( attr->GetValue() );
 
-      // -- Find only TDS processes      
+      // -- Find only TDS processes
       TObjArray * nodeIdTok = nodeId.Tokenize("_");
 
       for ( Int_t ii=0 ; ii < nodeIdTok->GetEntries() ; ii++ ) {
@@ -262,7 +262,7 @@ void AliEveHOMERManager::SetSourceState( AliHLTHOMERSourceDesc * source, Bool_t
 //##################################################################################
 Int_t AliEveHOMERManager::GetTDSAttributes( TXMLNode * xmlNode ) {
   // see header file for class documentation
-  
+
   Int_t iResult = 0;
 
   TXMLNode * attrNode = NULL;
@@ -271,26 +271,26 @@ Int_t AliEveHOMERManager::GetTDSAttributes( TXMLNode * xmlNode ) {
   TString xmlHostname = 0;
   TString xmlPort = 0;
 
-  TString hostname = 0; 
+  TString hostname = 0;
   Int_t port = 0;
 
   // -- Get hostname and port from TDS node out of XML
   while ( ( attrNode = prevNode->GetNextNode() ) ) {
     prevNode = attrNode;
-    
+
     // -- Get port out of the commandline
     if ( strcmp( attrNode->GetNodeName(), "Cmd" ) == 0 ) {
       TString cmd( attrNode->GetText() );
-      
+
       TObjArray * cmdTok = cmd.Tokenize(" ");
       xmlPort = ((TObjString*) cmdTok->At(2))->GetString();
-    } 
+    }
     // -- Get hostname
-    else if ( strcmp( attrNode->GetNodeName(), "Node" ) == 0 ) 
+    else if ( strcmp( attrNode->GetNodeName(), "Node" ) == 0 )
       xmlHostname = attrNode->GetText();
 
   } // while ( ( attrNode = prevNode->GetNextNode() ) ) {
-  
+
   // -- Resolve hostname and port information
   iResult = ResolveHostPortInformation ( xmlHostname, xmlPort, hostname, port );
   if ( iResult == 1 ) {
@@ -303,33 +303,33 @@ Int_t AliEveHOMERManager::GetTDSAttributes( TXMLNode * xmlNode ) {
   }
 
   // -- Reset loop to TDS node
-  prevNode = xmlNode;  
+  prevNode = xmlNode;
 
   // -- Get Sources out of XML, resolve sources, add to sources ListxmlHostname.Data()
   while ( ( attrNode = prevNode->GetNextNode() ) ) {
     prevNode = attrNode;
-    
+
     // Find only "Parent" tags, otherwise continue to next tag
-    if ( strcmp( attrNode->GetNodeName(), "Parent" ) != 0 ) 
+    if ( strcmp( attrNode->GetNodeName(), "Parent" ) != 0 )
       continue;
 
     TString xmlParent = attrNode->GetText();
-      
+
     AliHLTHOMERSourceDesc * source = new AliHLTHOMERSourceDesc( hostname, port );
-      
+
     if ( ResolveSourceInformation( xmlParent, source ) ) {
       iResult = 3;
       AliError( Form("Error resolving source : %s", xmlParent.Data()) );
-      
+
       delete source;
     }
     else {
       fSourceList->Add( source );
       AliInfo( Form("New Source added : %s", xmlParent.Data()) );
     }
-    
+
   } // while ( ( attrNode = prevNode->GetNextNode() ) ) {
-  
+
   return iResult;
 }
 
@@ -346,7 +346,7 @@ Int_t AliEveHOMERManager::ResolveHostPortInformation ( TString xmlHostname, TStr
   TString nodeName = 0;
   while ( ( node = prevNode->GetNextNode() ) && iResult == 1 ) {
     prevNode = node;
-    
+
     // -- Find only "Node" nodes, otherwise continue
     if ( strcmp( node->GetNodeName(), "Node" ) != 0 )
       continue;
@@ -355,17 +355,17 @@ Int_t AliEveHOMERManager::ResolveHostPortInformation ( TString xmlHostname, TStr
     TList *attrList = node->GetAttributes();
     TXMLAttr *attr = 0;
     TIter next(attrList);
-    
+
     TString nodeId = 0;
     //    TString nodeName = 0;
-    
+
     // Get "nodeID" and "nodeName" of this "Node" node
     while ( ( attr = (TXMLAttr*)next() ) ) {
       if ( strcmp( attr->GetName(), "ID" ) == 0 )
        nodeId = attr->GetValue();
       else if ( strcmp( attr->GetName(), "hostname" ) == 0 )
        nodeName = attr->GetValue();
-    } 
+    }
 
     // -- if this is not the correct nodeID continue
     if ( nodeId != xmlHostname )
@@ -391,19 +391,19 @@ Int_t AliEveHOMERManager::ResolveHostPortInformation ( TString xmlHostname, TStr
   // *** Resolve port
 
   if ( xmlPort.IsDigit() ) {
-    
+
     if ( nodeName.CompareTo("feptriggerdet") ==0 ){
       if ( xmlPort.CompareTo("49152") == 0 ){
        port = 58140;
       } else if ( xmlPort.CompareTo("49153") == 0 ){
        port = 58141;
-      } 
+      }
     } else if ( nodeName.CompareTo("fepfmdaccorde") == 0 ){
       if ( xmlPort.CompareTo("49152") == 0 ){
        port = 58144;
       } else if ( xmlPort.CompareTo("49153") == 0 ){
        port = 58145;
-      } 
+      }
     } else if ( nodeName.CompareTo("feptpcao15") == 0 ){
       if ( xmlPort.CompareTo("49152") == 0 ){
        port = 50340;
@@ -422,7 +422,7 @@ Int_t AliEveHOMERManager::ResolveHostPortInformation ( TString xmlHostname, TStr
   // *** Summary
 
   if ( !iResult ) {
-    AliInfo( Form("%s:%i resolved out of %s:%s", hostname.Data(), port, xmlHostname.Data(), xmlPort.Data()) );    
+    AliInfo( Form("%s:%i resolved out of %s:%s", hostname.Data(), port, xmlHostname.Data(), xmlPort.Data()) );
   }
 
   return iResult;
@@ -440,11 +440,11 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
 
     return iResult;
   }
-    
+
   TObjArray * parentTokens = xmlParent.Tokenize("_");
-    
+
   Int_t nEntries = parentTokens->GetEntries();
-  
+
   TString detector = ((TObjString*) parentTokens->At(0) )->GetString();
   TString subDetector = "";
   TString subSubDetector = "";
@@ -453,14 +453,14 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
 
   TString name = ((TObjString*) parentTokens->At(1) )->GetString();
   TString objName = "";
-  
-  if ( nEntries == 3 ) 
-    subDetector = ((TObjString*) parentTokens->At(2) )->GetString(); 
+
+  if ( nEntries == 3 )
+    subDetector = ((TObjString*) parentTokens->At(2) )->GetString();
   else if ( nEntries == 4 ) {
-    subDetector = ((TObjString*) parentTokens->At(2) )->GetString(); 
-    subSubDetector = ((TObjString*) parentTokens->At(3) )->GetString(); 
+    subDetector = ((TObjString*) parentTokens->At(2) )->GetString();
+    subSubDetector = ((TObjString*) parentTokens->At(3) )->GetString();
   }
-  
+
   // -- Corecct TPC subdetector, because in we have somtimes "A","C"
   if ( ! detector.CompareTo("TPC") ) {
     if ( subDetector.BeginsWith('A') ) {
@@ -485,28 +485,28 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
     objName = "";
     dataType = "DDL_RAW";
     specification = 0;
-  } 
+  }
 
   // **** TPC ****
   else if ( detector == "TPC" ) {
-    
+
     if ( name == "CalibPedestal" ) {
       objName = "AliTPCCalibPedestal";
       dataType = "HIS_CAL";
       specification = 0;
     }
     else if ( name == "CalibPulser" ) {
-      objName = "AliTPCCalibPulser"; 
+      objName = "AliTPCCalibPulser";
       dataType = "HIS_CAL";
       specification = 0;
     }
     else if ( name == "CF" || name == "RelayCF" ) {
-      objName = "AliHLTTPCClusterDataFormat"; 
+      objName = "AliHLTTPCClusterDataFormat";
       dataType = "CLUSTERS";
       specification = 0;
     }
     else if ( name == "ESDConv" ) {
-      objName = "AliESDEvent"; 
+      objName = "AliESDEvent";
       dataType = "ESD_TREE";
       specification = 0;
     }
@@ -532,7 +532,7 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
   else if ( detector == "MUON" ) {
 
   } // else if ( detector == "MUON" ) {
-  
+
   // -- Fill object
   source->SetSourceName( name, objName );
   source->SetSourceType( specification, dataType );
@@ -540,7 +540,7 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
 
 
   AliInfo( Form("Set Source %s , Type %s, ClassName %s .", name.Data(), dataType.Data(), objName.Data()) );
-  AliInfo( Form("    Detector %s , SubDetector : %s, SubSubDetector %s .", 
+  AliInfo( Form("    Detector %s , SubDetector : %s, SubSubDetector %s .",
                detector.Data(), subDetector.Data(), subSubDetector.Data()) );
 
   return iResult;
@@ -549,23 +549,23 @@ Int_t AliEveHOMERManager::ResolveSourceInformation( TString xmlParent, AliHLTHOM
 /*
  * ---------------------------------------------------------------------------------
  *                            Connection Handling
- * --------------------------------------------------------------------------------- 
+ * ---------------------------------------------------------------------------------
  */
 
 //##################################################################################
 Int_t AliEveHOMERManager::ConnectHOMER(){
   // see header file for class documentation
 
-  Int_t iResult = 0;    
+  Int_t iResult = 0;
 
   // -- Check if already connected and state has not changed
   if ( fStateHasChanged == kFALSE && IsConnected() ) {
     AliInfo( Form("No need for reconnection.") );
     return iResult;
   }
-    
+
   // -- If already connected, disconnect before connect
-  if ( IsConnected() ) 
+  if ( IsConnected() )
     DisconnectHOMER();
 
   // *** Create the Readoutlist
@@ -575,28 +575,28 @@ Int_t AliEveHOMERManager::ConnectHOMER(){
   UInt_t sourceCount = 0;
 
   CreateReadoutList( sourceHostnames, sourcePorts, sourceCount );
-  
+
   if ( sourceCount == 0 ) {
     AliError(Form("No sources selected, aborting.") );
     return iResult;
   }
 
   // *** Connect to data sources
-  
+
   if ( !fReader ) {
-    if ( fLibManager ) 
+    if ( fLibManager )
       fReader = fLibManager->OpenReader( sourceCount, sourceHostnames, sourcePorts );
   }
-  
+
   iResult = fReader->GetConnectionStatus();
-  
-  if ( iResult ) {     
-    // -- Connection failed 
-      
+
+  if ( iResult ) {
+    // -- Connection failed
+
     UInt_t ndx = fReader->GetErrorConnectionNdx();
-      
+
     if ( ndx < sourceCount ) {
-      AliError( Form("Error : Error establishing connection to TCP source %s:%hu: %s (%d)", 
+      AliError( Form("Error : Error establishing connection to TCP source %s:%hu: %s (%d)",
                     sourceHostnames[ndx], sourcePorts[ndx], strerror(iResult), iResult) );
     }
     else {
@@ -608,22 +608,22 @@ Int_t AliEveHOMERManager::ConnectHOMER(){
       fLibManager->DeleteReader( fReader );
     fReader = NULL;
 
-  } 
+  }
   else {
     // -- Connection ok - set reader
-    fConnected = kTRUE; 
-    
+    fConnected = kTRUE;
+
     AliInfo( Form("Connection established") );
   }
-  
+
   delete[] sourceHostnames;
   delete[] sourcePorts;
-  
+
 
   // -- Get next event
   if ( ! iResult )
     NextEvent();
-  
+
   return iResult;
 }
 
@@ -640,7 +640,7 @@ void AliEveHOMERManager::DisconnectHOMER(){
 
   fStateHasChanged = kTRUE;
   fConnected = kFALSE;
-  
+
   AliInfo( Form("Connection closed") );
 
   return;
@@ -674,9 +674,9 @@ void AliEveHOMERManager::CreateReadoutList( const char** sourceHostnames, UShort
   TIter next( fSourceList );
   while ( ( source = (AliHLTHOMERSourceDesc*)next() ) ) {
 
-    if ( ! source->IsSelected() ) 
+    if ( ! source->IsSelected() )
       continue;
-    
+
     Bool_t exists = kFALSE;
 
     // -- Loop over existing entries and check if entry is already in readout list
@@ -686,7 +686,7 @@ void AliEveHOMERManager::CreateReadoutList( const char** sourceHostnames, UShort
        break;
       }
     }
-    
+
     // -- Add new entires to readout list
     if ( ! exists ) {
       sourcePorts[sourceCount] = source->GetPort();
@@ -704,39 +704,39 @@ void AliEveHOMERManager::CreateReadoutList( const char** sourceHostnames, UShort
 /*
  * ---------------------------------------------------------------------------------
  *                            AliEveEventManager Handling
- * --------------------------------------------------------------------------------- 
+ * ---------------------------------------------------------------------------------
  */
 
 //##################################################################################
 Int_t AliEveHOMERManager::NextEvent(){
   // see header file for class documentation
-  
+
   Int_t iResult = 0;
-  
+
   if ( !fReader || ! IsConnected() ) {
     AliWarning( Form( "Not connected yet." ) );
     return 1;
   }
-  
+
   // -- Read next event data and error handling for HOMER (error codes and empty blocks)
   while( 1 ) {
     iResult = fReader->ReadNextEvent( 20000000 /*timeout in us*/);
-    
+
     if ( iResult == 111 || iResult == 32 || iResult == 6 ) {
       Int_t ndx = fReader->GetErrorConnectionNdx();
       AliError( Form("Error, No Connection to source %d: %s (%d)", ndx, strerror(iResult), iResult) );
+
      return 2;
     }
     else if ( iResult == 110 ) {
       Int_t ndx = fReader->GetErrorConnectionNdx();
       AliError( Form("Timout occured, reading event from source %d: %s (%d)", ndx, strerror(iResult), iResult) );
-      return 3; 
+      return 3;
     }
     else if ( iResult == 56) {
       Int_t ndx = fReader->GetErrorConnectionNdx();
       AliError( Form("Error reading event from source %d: %s (%d) -- IRESULTRY", ndx, strerror(iResult), iResult) );
-      continue; 
+      continue;
     }
     else if ( iResult ) {
       Int_t ndx = fReader->GetErrorConnectionNdx();
@@ -748,7 +748,7 @@ Int_t AliEveHOMERManager::NextEvent(){
     }
   } // while( 1 ) {
 
-  if ( iResult ) 
+  if ( iResult )
     return iResult;
 
 
@@ -801,28 +801,28 @@ Int_t AliEveHOMERManager::CreateBlockList() {
 
   // -- Fill block list
   while ( iter != NULL ){
-    
+
     // -- Create new block
-    AliHLTHOMERBlockDesc * block = new AliHLTHOMERBlockDesc( GetBlk(), GetBlkSize(), GetBlkOrigin(), 
+    AliHLTHOMERBlockDesc * block = new AliHLTHOMERBlockDesc( GetBlk(), GetBlkSize(), GetBlkOrigin(),
                                                             GetBlkType(), GetBlkSpecification() );
-    
+
     // -- Check sources list if block is requested
     if ( CheckIfRequested( block ) )
-      fBlockList->Add( block );      
-    else 
+      fBlockList->Add( block );
+    else
       delete block;
-    
+
     iter = GetNextBlk();
-    
+
   } // while ( iter != NULL ){
-  
+
   return iResult;
 }
 
 /*
  * ---------------------------------------------------------------------------------
  *                            BlockHandling
- * --------------------------------------------------------------------------------- 
+ * ---------------------------------------------------------------------------------
  */
 
 //##################################################################################
@@ -830,12 +830,12 @@ void* AliEveHOMERManager::GetBlk( Int_t ndx ) {
   // see header file for class documentation
 
   void* data = NULL;
-  
+
   if ( !fReader || ! IsConnected() ) {
-    AliError( Form("Not connected yet.") ); 
+    AliError( Form("Not connected yet.") );
   }
   else {
-    if ( ( ndx ) < (Int_t) fNBlks ) 
+    if ( ( ndx ) < (Int_t) fNBlks )
       data = (void*) fReader->GetBlockData( ndx );
   }
 
@@ -849,10 +849,10 @@ ULong_t AliEveHOMERManager::GetBlkSize( Int_t ndx ) {
   ULong_t length = 0;
 
   if ( !fReader || ! IsConnected() ) {
-    AliError( Form("Not connected yet.") ); 
+    AliError( Form("Not connected yet.") );
   }
   else {
-    if ( ( ndx ) < (Int_t) fNBlks ) 
+    if ( ( ndx ) < (Int_t) fNBlks )
       length = (ULong_t) fReader->GetBlockDataLength( ndx );
   }
 
@@ -867,14 +867,14 @@ TString AliEveHOMERManager::GetBlkOrigin( Int_t ndx ) {
 
   // -- Check for Connection
   if ( !fReader || ! IsConnected() ) {
-    AliError( Form("Not connected yet.") ); 
+    AliError( Form("Not connected yet.") );
     return origin;
   }
 
   // -- Check block index
   if ( ( ndx ) >= (Int_t) fNBlks ) {
-    AliError( Form("Block index %d out of range.", ndx ) ); 
-    return origin;  
+    AliError( Form("Block index %d out of range.", ndx ) );
+    return origin;
   }
 
   // -- Get origin
@@ -901,14 +901,14 @@ TString AliEveHOMERManager:: GetBlkType( Int_t ndx ) {
 
   // -- Check for Connection
   if ( !fReader || ! IsConnected() ) {
-    AliError( Form("Not connected yet.") ); 
+    AliError( Form("Not connected yet.") );
     return type;
   }
 
   // -- Check blockk index
   if ( ( ndx ) >= (Int_t) fNBlks ) {
-    AliError( Form("Block index %d out of range.", ndx ) ); 
-    return type;  
+    AliError( Form("Block index %d out of range.", ndx ) );
+    return type;
   }
 
   // -- Get type
@@ -937,16 +937,16 @@ ULong_t AliEveHOMERManager:: GetBlkSpecification( Int_t ndx ) {
 
   // -- Check for Connection
   if ( !fReader || ! IsConnected() ) {
-    AliError( Form("Not connected yet.") ); 
+    AliError( Form("Not connected yet.") );
     return spec;
   }
 
   // -- Check blockk index
   if ( ( ndx ) >= (Int_t) fNBlks ) {
-    AliError( Form("Block index %d out of range.", ndx ) ); 
-    return spec;  
+    AliError( Form("Block index %d out of range.", ndx ) );
+    return spec;
   }
-  
+
   spec = (ULong_t) fReader->GetBlockDataSpec( ndx );
 
   return spec;
@@ -957,14 +957,14 @@ Bool_t AliEveHOMERManager::CheckIfRequested( AliHLTHOMERBlockDesc * block ) {
   // see header file for class documentation
 
   Bool_t requested = kFALSE;
-  
+
   AliHLTHOMERSourceDesc * source= NULL;
-  
+
   // -- Read all sources and check if they should be read out
   TIter next( fSourceList );
   while ( ( source = (AliHLTHOMERSourceDesc*)next() ) ) {
 
-    if ( ! source->IsSelected() ) 
+    if ( ! source->IsSelected() )
       continue;
 
     if ( source->GetDetector().CompareTo( block->GetDetector() ) )
@@ -977,21 +977,21 @@ Bool_t AliEveHOMERManager::CheckIfRequested( AliHLTHOMERBlockDesc * block ) {
 
       if ( source->GetSubDetector().Atoi() != block->GetSubDetector().Atoi() )
        continue;
-      
+
       if ( ! block->HasSubSubDetectorRange() ) {
-       
+
        //      if ( source->GetSubSubDetector().Atoi() != block->GetSubSubDetector().Atoi() )
        //   continue;
-        
+
       } // if ( ! block->HasSubSubDetectorRange ) {
     } //  if ( ! block->HasSubDetectorRange ) {
-    
+
     requested = kTRUE;
-   
+
   } // while ( ( source = (AliHLTHOMERSourceDesc*)next() ) ) {
-  
+
   if ( requested) {
-    AliInfo( Form("Block requested : %s - %s : %s/%s -> %s ", block->GetDetector().Data(), block->GetDataType().Data(), 
+    AliInfo( Form("Block requested : %s - %s : %s/%s -> %s ", block->GetDetector().Data(), block->GetDataType().Data(),
                  block->GetSubDetector().Data(), block->GetSubSubDetector().Data(), block->GetClassName().Data() ) );
   }
   else
@@ -1015,13 +1015,13 @@ void AliEveHOMERManager::TestSelectClass( TString objectName ) {
   // see header file for class documentation
 
   TList* srcList = GetSourceList();
+
   AliHLTHOMERSourceDesc *desc = 0;
 
   TIter next(srcList);
-    
+
   while ( ( desc = (AliHLTHOMERSourceDesc*)next() ) ) {
-    if ( ! desc->GetClassName().CompareTo( objectName ) ) 
+    if ( ! desc->GetClassName().CompareTo( objectName ) )
       desc->Select();
   }
 }
@@ -1031,11 +1031,11 @@ void AliEveHOMERManager::SelectRawTPC() {
   // see header file for class documentation
 
   TList* srcList = GetSourceList();
+
   AliHLTHOMERSourceDesc *desc = 0;
 
   TIter next(srcList);
-    
+
   while ( ( desc = (AliHLTHOMERSourceDesc*)next() ) ) {
     if ( ! desc->GetDataType().CompareTo( "DDL_RAW" ) ) {
       desc->Select();
@@ -1048,11 +1048,11 @@ void AliEveHOMERManager::SelectClusterTPC() {
   // see header file for class documentation
 
   TList* srcList = GetSourceList();
+
   AliHLTHOMERSourceDesc *desc = 0;
 
   TIter next(srcList);
-    
+
   while ( ( desc = (AliHLTHOMERSourceDesc*)next() ) ) {
     if ( ! desc->GetDataType().CompareTo( "CLUSTERS" ) ) {
       desc->Select();
@@ -1065,11 +1065,11 @@ void AliEveHOMERManager::SelectESDTPC() {
   // see header file for class documentation
 
   TList* srcList = GetSourceList();
+
   AliHLTHOMERSourceDesc *desc = 0;
 
   TIter next(srcList);
-    
+
   while ( ( desc = (AliHLTHOMERSourceDesc*)next() ) ) {
     if ( ! desc->GetDataType().CompareTo( "ESD_TREE" ) ) {
       desc->Select();
@@ -1090,11 +1090,11 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
   AliHLTHOMERBlockDesc *desc = 0;
 
   TIter next(blockList);
-    
+
   while ( ( desc = (AliHLTHOMERBlockDesc*)next() ) ) {
     if ( ! desc->IsTObject() )
       continue;
-    
+
     Int_t sectorTPC = 0;
 
     if ( desc->GetSubSubDetector().Atoi() <= 1 ) {
@@ -1103,7 +1103,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
     else {
       sectorTPC = 36 + desc->GetSubDetector().Atoi();
     }
-    
+
     if ( ! objectName.CompareTo( desc->GetClassName() ) ){
 
       //
@@ -1112,13 +1112,13 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
 
       if ( ! objectName.CompareTo( "AliTPCCalibPedestal" ) ) {
        AliTPCCalROC* calROC = NULL;
-       
+
        AliTPCCalibPedestal * cal = (AliTPCCalibPedestal*) desc->GetTObject();
        if ( cal == NULL ) {
          cout << "error 1" << endl;
          continue;
        }
-       
+
        cal->Analyse();
 
        calROC = cal->GetCalRocRMS(sectorTPC);
@@ -1126,7 +1126,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
          cout << "error 2" << endl;
          continue;
        }
-       
+
        calROC->SetName(Form("RMS_ROC%d", sectorTPC));
        fTPCPre->AddComponent((TObject*) calROC );
 
@@ -1135,7 +1135,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
          cout << "error 3" << endl;
          continue;
        }
-       
+
 
        calROC->SetName(Form("Pedestal_ROC%d", sectorTPC));
        cout << "added" << endl;
@@ -1152,7 +1152,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
        AliTPCCalibPulser * cal = (AliTPCCalibPulser*) desc->GetTObject();
 
        cal->Analyse();
-       
+
        calROC = cal->GetCalRocT0(sectorTPC);
        calROC->SetName(Form("T0_ROC%d", sectorTPC));
        fTPCPre->AddComponent((TObject*) calROC );
@@ -1169,7 +1169,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
        calROC->SetName(Form("Outliers_ROC%d", sectorTPC));
        fTPCPre->AddComponent((TObject*) calROC );
       }
-         
+
 */
       //
       // AliTPCCalibCE
@@ -1181,7 +1181,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
        AliTPCCalibPulser * cal = (AliTPCCalibPulser*) desc->GetTObject();
 
        cal->Analyse();
-       
+
        calROC = cal->GetCalRocT0(sectorTPC);
        calROC->SetName(Form("T0_ROC%d", sectorTPC));
        fTPCPre->AddComponent((TObject*) calROC );
@@ -1200,7 +1200,7 @@ void AliEveHOMERManager::DumpTPCCalib(TString objectName, Bool_t dumpToFile) {
       }
       */
     } // if ( ! objectName.CompareTo( desc->GetClassName() ) ) {
+
   } // while ( ( desc = (AliHLTHOMERBlockDesc*)next() ) ) {
 
   if ( dumpToFile ) {
index d0667a7d8a7629390f3377cdc799e81eb8387107..23e4c5012d2eba0a6f6a15704a64421ed834dc59 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 //-*- Mode: C++ -*-
 #ifndef ALIEVEHOMERMANGER_H
@@ -15,7 +15,7 @@
 
 /** @file   AliEveHOMERManager.h
     @author Jochen Thaeder
-    @date   
+    @date
     @brief  Manager for HOMER in offline
 */
 
@@ -37,7 +37,7 @@ class AliHLTHOMERLibManager;
 
 /**
  * @class AliEveHOMERManager
- * 
+ *
  * This class is the main class of the AliEveHOMERManager
  * ... more to come
  *
@@ -50,28 +50,28 @@ public:
 
   /*
    * ---------------------------------------------------------------------------------
-   *                            Constructor / Destructor 
-   * --------------------------------------------------------------------------------- 
+   *                            Constructor / Destructor
+   * ---------------------------------------------------------------------------------
    */
 
-  /** constructor 
+  /** constructor
    * @param argc    Number of command line arguments.
    * @param argv    Array of command line arguments.
    */
-  AliEveHOMERManager(TString xmlFile="" );       
+  AliEveHOMERManager(TString xmlFile="" );
   /** not a valid copy constructor, defined according to effective C++ style */
-  AliEveHOMERManager( const AliEveHOMERManager& );       
+  AliEveHOMERManager( const AliEveHOMERManager& );
   /** not a valid assignment op, but defined according to effective C++ style */
-  AliEveHOMERManager& operator=( const AliEveHOMERManager& );       
+  AliEveHOMERManager& operator=( const AliEveHOMERManager& );
   /** destructor */
   virtual ~AliEveHOMERManager();
 
   /*
    * ---------------------------------------------------------------------------------
    *                            Source Handling - public
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
-  
+
   /** Create Sources List from HOMER-Proxy */
   Int_t CreateHOMERSourcesList();
 
@@ -79,7 +79,7 @@ public:
    * @param source      Pointer to AliHLTHOMERSourceDesc object.
    * @param state       New (selected/not selected) state.
    */
-  void SetSourceState( AliHLTHOMERSourceDesc* source, Bool_t state); 
+  void SetSourceState( AliHLTHOMERSourceDesc* source, Bool_t state);
 
   /** Get pointer to source List
    * @return            returns pointer to TList of sources
@@ -89,11 +89,11 @@ public:
   /*
    * ---------------------------------------------------------------------------------
    *                            Connection Handling - public
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
-  
+
   /** Connect to HOMER sources, out of Readout List, which gets created when state has changed
-   * @return            0 on sucess, "HOMER" errors on error      
+   * @return            0 on sucess, "HOMER" errors on error
    */
   Int_t ConnectHOMER();
 
@@ -108,14 +108,14 @@ public:
   /*
    * ---------------------------------------------------------------------------------
    *                            AliEveEventManager Handling - public
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
 
-  /** Loads the next AliEveEventManager, after being connected 
-   * @return            0 on sucess, "HOMER" errors on error   
+  /** Loads the next AliEveEventManager, after being connected
+   * @return            0 on sucess, "HOMER" errors on error
    */
   Int_t NextEvent();
-  
+
   /** Get event ID
    * @return            Returns eventID
    */
@@ -144,19 +144,19 @@ protected:
 
   /** Dynamic loader manager for the HOMER library */
   AliHLTHOMERLibManager* fLibManager;             //! transient
-  
+
 
 private:
 
   /*
    * ---------------------------------------------------------------------------------
    *                            Source Handling - private
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
-  
+
   /** Get Information out of a TDS process in XML file
    * @param xmlNode   Pointer to childs of TDS node
-   * @return          0 on sucess, > 0 on error 
+   * @return          0 on sucess, > 0 on error
    */
   Int_t GetTDSAttributes( TXMLNode * xmlNode );
 
@@ -166,11 +166,11 @@ private:
    * @param xmlPort      Port out of the XML
    * @param hostname     Return of the hostname
    * @param port         Return of the port
-   * @return             0 on sucess, 1 if hostname couldn't be resolved, 2 if port couldn't be resolved, 
+   * @return             0 on sucess, 1 if hostname couldn't be resolved, 2 if port couldn't be resolved,
    */
   Int_t ResolveHostPortInformation( TString xmlHostname, TString xmlPort, TString &hostname, Int_t &port );
 
-  /** Resolve information of source 
+  /** Resolve information of source
    * @param xmlParent   ParentString out of the XML
    * @param source      Return the filled AliHLTHOMERSourceDesc object
    * @return            0 on sucess, 1 on error
@@ -180,10 +180,10 @@ private:
   /*
    * ---------------------------------------------------------------------------------
    *                            Connection Handling - private
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
-  
-  /** Create a readout list for Hostname and ports   
+
+  /** Create a readout list for Hostname and ports
    * @param socurceHostnames   Array of selected hostnames
    * @param socurcePorts       Array of selected ports
    * @param socurceCount       Number of selected hostname:port
@@ -197,16 +197,16 @@ private:
 
   /* ---------------------------------------------------------------------------------
    *                            Eve AliEveHOMERManager::foo(nt Handling - private
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
-  
+
   /** Create a TList of blocks, which have been readout */
   Int_t CreateBlockList();
 
   /*
    * ---------------------------------------------------------------------------------
    *                            Block Handling - private
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
 
   /** Get Number of blocks in current event
@@ -247,13 +247,13 @@ private:
    * @return           returns pointer to blk, 0 if no block present
    */
   ULong_t GetBlkSize() { return GetBlkSize( fCurrentBlk ); }
-  
+
   /** Get origin of block ndx
    * @param ndx        Block index
    * @return           origin of block
    */
-  TString GetBlkOrigin( Int_t ndx );  
-  
+  TString GetBlkOrigin( Int_t ndx );
+
   /** Get origin of current block
    * @param ndx        Block index
    * @return           origin of block
@@ -281,7 +281,7 @@ private:
   /** Get specification of current block
    * @param ndx        Block index
    * @return           specification of block
-   */ 
+   */
   ULong_t GetBlkSpecification(){ return GetBlkSpecification( fCurrentBlk ); }
 
   /** Checks if current Block should was requested
@@ -292,7 +292,7 @@ private:
   /*
    * ---------------------------------------------------------------------------------
    *                            Members - private
-   * --------------------------------------------------------------------------------- 
+   * ---------------------------------------------------------------------------------
    */
 
   // == XML parser ==
@@ -301,29 +301,29 @@ private:
   TString fXMLFile;                               // see above
 
   /** XML parser into DOM model */
-  TDOMParser* fXMLParser;                         //! transient  
-  
+  TDOMParser* fXMLParser;                         //! transient
+
   /** Root node of parsed config file */
-  TXMLNode * fRootNode;                           //! transient  
+  TXMLNode * fRootNode;                           //! transient
 
   // == sources ==
 
   /** List to HOMER sources */
-  TList * fSourceList;                            //! transient  
+  TList * fSourceList;                            //! transient
 
   // == connection ==
-  
+
 
   /** Pointer to HOMER reader */
-  AliHLTHOMERReader* fReader;                     //! transient  
+  AliHLTHOMERReader* fReader;                     //! transient
 
   // == blocks ==
 
   /** List to HOMER blocks */
-  TList * fBlockList;                             //! transient  
+  TList * fBlockList;                             //! transient
 
   // == events ==
-  
+
   /** Number of blockes in current event */
   ULong_t fNBlks;                                 // see above
 
@@ -332,13 +332,13 @@ private:
 
   /** Current block in current event */
   ULong_t fCurrentBlk;                            // see above
-  
+
   // == states ==
 
   /** Shows connection status */
   Bool_t fConnected;                              // see above
 
-  /** Indicates, if a sources have changes, 
+  /** Indicates, if a sources have changes,
    *  so that one has to reconnect .
    */
   Bool_t fStateHasChanged;                        // see above
index d8f0081b77cd3b81265c51fb47756aae9982957f..7868a5e818d2143cc4352e8faf3eca9066cc0874 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveHOMERManagerEditor.h"
index fc79f94059fd5b023272a1476a16499cd2aa557f..ae627172dbfa893af7ffebc690706c1a30d2d0ee 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_AliEVEHOMERManagerEditor_H
index 9f89d55435adc9e3cbc76425fe063901a72ca02e..12efefa371fd25fce85372e8055001b980d6678b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveHOMERSource.h"
index 2952701bbae694a70db7c455d533a4520bcc3ae1..7ac003bd9efb0a0d9e897e7104c2ac8a6c83f02c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_AliEVEHOMERSource_H
index 0bfbef1591abd96376af805d61c389b31a06cb7b..306e70de731385281da51b9d84f7220a2056cf31 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveHOMERSourceList.h"
index 070d69684c3fec258c050b38d33c62aa711f0839..fcdb1332b21b6402c77a8e5e43c742675234590d 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_AliEVEHOMERSourceList_H
index 02ecdebaeb4b03872d975e6415774b6f7598a8a8..dbb7ac37fb66957493f16ccd3f573f79f2d3e6e4 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include <TMath.h>
@@ -102,14 +102,14 @@ void AliEveITSDigitsInfo::InitInternals()
   // spd lowest resolution
   Int_t nx = 8; // fSegSPD->Npx()/8; // 32
   Int_t nz = 6; // fSegSPD->Npz()/2; // 128
-  fSPDScaleX[1] = Int_t(nx); 
-  fSPDScaleZ[1] = Int_t(nz); 
-  fSPDScaleX[2] = Int_t(nx*2); 
-  fSPDScaleZ[2] = Int_t(nz*2); 
-  fSPDScaleX[3] = Int_t(nx*3); 
-  fSPDScaleZ[3] = Int_t(nz*3); 
-  fSPDScaleX[4] = Int_t(nx*4); 
-  fSPDScaleZ[4] = Int_t(nz*4); 
+  fSPDScaleX[1] = Int_t(nx);
+  fSPDScaleZ[1] = Int_t(nz);
+  fSPDScaleX[2] = Int_t(nx*2);
+  fSPDScaleZ[2] = Int_t(nz*2);
+  fSPDScaleX[3] = Int_t(nx*3);
+  fSPDScaleZ[3] = Int_t(nz*3);
+  fSPDScaleX[4] = Int_t(nx*4);
+  fSPDScaleZ[4] = Int_t(nz*4);
 
   fSDDScaleX[1] = 2;
   fSDDScaleZ[1] = 2;
@@ -128,7 +128,7 @@ void AliEveITSDigitsInfo::InitInternals()
 
 /**************************************************************************/
 
-AliEveITSDigitsInfo:: ~AliEveITSDigitsInfo() 
+AliEveITSDigitsInfo:: ~AliEveITSDigitsInfo()
 {
   // Destructor.
   // Deletes the data-maps and the tree.
@@ -141,7 +141,7 @@ AliEveITSDigitsInfo:: ~AliEveITSDigitsInfo()
   for(j = fSSDmap.begin(); j != fSSDmap.end(); ++j)
     delete j->second;
 
-  delete fSegSPD; delete fSegSDD; delete fSegSSD; 
+  delete fSegSPD; delete fSegSDD; delete fSegSSD;
   delete fGeom;
   delete fTree;
 }
@@ -169,7 +169,7 @@ void AliEveITSDigitsInfo::ReadRaw(AliRawReader* raw, Int_t mode)
       Int_t module = inputSPD.GetModuleID();
       Int_t column = inputSPD.GetColumn();
       Int_t row    = inputSPD.GetRow();
-    
+
       if (inputSPD.IsNewModule())
       {
        digits = fSPDmap[module];
@@ -260,18 +260,18 @@ void AliEveITSDigitsInfo::SetITSSegmentation()
   fSPDZCoord[0]=fZ1pitchSPD -fHlSPD;
   for (m=1; m<fNzSPD; m++) {
     Double_t dz=fZ1pitchSPD;
-    if (m==31 || m==32 || m==63  || m==64  || m==95 || m==96 || 
-        m==127 || m==128) dz=fZ2pitchSPD; 
+    if (m==31 || m==32 || m==63  || m==64  || m==95 || m==96 ||
+        m==127 || m==128) dz=fZ2pitchSPD;
     fSPDZCoord[m]=fSPDZCoord[m-1]+dz;
   }
-  
+
   for (m=0; m<fNzSPD; m++) {
     Double_t dz=1.*fZ1pitchSPD;
-    if (m==31 || m==32 || m==63  || m==64  || m==95 || m==96 || 
-       m==127 || m==128) dz=1.*fZ2pitchSPD; 
+    if (m==31 || m==32 || m==63  || m==64  || m==95 || m==96 ||
+       m==127 || m==128) dz=1.*fZ2pitchSPD;
     fSPDZCoord[m]-=dz;
   }
-    
+
   // SDD
   fSegSDD = new AliITSsegmentationSDD(fGeom);
 
@@ -360,7 +360,7 @@ void AliEveITSDigitsInfo::GetModuleIDs(AliEveITSModuleSelection* sel,
   // given by the AliEveITSModuleSelection object.
 
   Int_t idx0 = 0, idx1 = 0;
-  switch(sel->fType)
+  switch(sel->GetType())
   {
     case 0:
       idx0 = 0;
@@ -387,7 +387,7 @@ void AliEveITSDigitsInfo::GetModuleIDs(AliEveITSModuleSelection* sel,
   for (Int_t id = idx0; id<idx1; ++id)
   {
     fGeom->GetModuleId(id, lay, lad, det);
-    if (sel->fLayer == lay || sel->fLayer == -1)
+    if (sel->GetLayer() == lay || sel->GetLayer() == -1)
     {
       // check data from matrix
       mx.UnitTrans();
@@ -395,11 +395,11 @@ void AliEveITSDigitsInfo::GetModuleIDs(AliEveITSModuleSelection* sel,
       mx.SetBaseVec(1, x[0], x[3], x[6]);
       mx.SetBaseVec(2, x[1], x[4], x[7]);
       mx.SetBaseVec(3, x[2], x[5], x[8]);
-      fGeom->GetTrans(id, x);  
+      fGeom->GetTrans(id, x);
       mx.SetBaseVec(4, x);
       mx.GetPos(v);
-      if (v.Phi()   <= sel->fMaxPhi   && v.Phi()   >= sel->fMinPhi   &&
-         v.Theta() <= sel->fMaxTheta && v.Theta() >= sel->fMinTheta)
+      if (v.Phi()   <= sel->GetMaxPhi()   && v.Phi()   >= sel->GetMinPhi()   &&
+         v.Theta() <= sel->GetMaxTheta() && v.Theta() >= sel->GetMinTheta())
       {
        ids.push_back(id);
       }
@@ -421,7 +421,7 @@ void AliEveITSDigitsInfo::Print(Option_t* ) const
   printf("SPD dimesion of (%d,%d) in pixel(%f,%f)\n",   ix, iz, fSegSPD->Dpx(ix), fSegSPD->Dpz(iz));
   iz = 32;
   printf("SPD dimesion of pixel (%d,%d) are (%f,%f)\n", ix, iz, fSegSPD->Dpx(ix)*0.001, fSegSPD->Dpz(iz)*0.001);
+
   printf("*********************************************************\n");
   printf("SDD module dimension (%f,%f)\n",           fSegSDD->Dx()*0.0001, fSegSDD->Dz()*0.0001);
   printf("SDD first,last module:: %d,%d\n",          fGeom->GetStartSDD(), fGeom->GetLastSDD());
@@ -435,9 +435,9 @@ void AliEveITSDigitsInfo::Print(Option_t* ) const
   printf("SSD strips in module %d\n",       fSegSSD->Npx());
   printf("SSD strip sizes are (%f,%f)\n",   fSegSSD->Dpx(1), fSegSSD->Dpz(1));
   fSegSSD->SetLayer(5);  fSegSSD->Angles(ap,an);
-  printf("SSD layer 5 stereoP %f stereoN %f angle\n", ap, an); 
+  printf("SSD layer 5 stereoP %f stereoN %f angle\n", ap, an);
   fSegSSD->SetLayer(6);  fSegSSD->Angles(ap,an);
-  printf("SSD layer 6 stereoP %f stereoN %f angle\n", ap, an); 
+  printf("SSD layer 6 stereoP %f stereoN %f angle\n", ap, an);
 }
 
 
@@ -452,4 +452,4 @@ void AliEveITSDigitsInfo::Print(Option_t* ) const
   printf("Z::original (%3f) scaled (%3f, %3f) \n", zo, zn-dpz/2, zn+dpz/2);
   printf("X::original (%3f) scaled (%3f, %3f) \n", xo, xn-dpx/2, xn+dpx/2);
   printf("%d,%d maped to %d,%d \n", od->GetCoord1(), od->GetCoord2(), i,j );
-*/        
+*/
index 87b224ba02780a2ac6c5b7f64565183d45773a80..ad07d775890b17bc6da33ddecf4dd96e6fdc9fb4 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_ITSDigitsInfo_H
@@ -39,7 +39,7 @@ protected:
   Float_t  fMaxPhi;    // Max phi.
   Float_t  fMinTheta;  // Min theta.
   Float_t  fMaxTheta;  // Max theta.
-  
+
 public:
   AliEveITSModuleSelection();
   virtual ~AliEveITSModuleSelection() {}
index 65dd4262726006f80d27b29908e4dca631184b73..1976e4de36167309a7986642e1732ab95463d708 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveITSModule.h"
 
@@ -68,7 +68,7 @@ void AliEveITSModule::InitStatics(AliEveITSDigitsInfo* info)
 
   {
     Float_t dx = info->fSegSPD->Dx()*0.00005;
-    Float_t dz = 3.50; 
+    Float_t dz = 3.50;
 
     fgSPDFrameBox = new TEveFrameBox();
     fgSPDFrameBox->SetAAQuadXZ(-dx, 0, -dz, 2*dx, 2*dz);
@@ -136,10 +136,10 @@ void AliEveITSModule::SetID(Int_t gid, Bool_t trans)
 
   if (!fgStaticInitDone) {
     InitStatics(fInfo);
-    
+
     fgSPDFrameBox->IncRefCount(this);
     fgSPDPalette->IncRefCount();
-  
+
     fgSDDFrameBox->IncRefCount(this);
     fgSDDPalette->IncRefCount();
 
@@ -152,14 +152,14 @@ void AliEveITSModule::SetID(Int_t gid, Bool_t trans)
   TString strSensor = "Sensor";
   TString symname;
   Int_t   id, nsector, nstave, nladder, rest;
-  
+
   if (fID <= fInfo->fGeom->GetLastSPD())
   {
     // SPD
 
     SetFrame(fgSPDFrameBox);
     SetPalette(fgSPDPalette);
+
     symname += strLadder;
     if (fID < 80)
     {
@@ -180,7 +180,7 @@ void AliEveITSModule::SetID(Int_t gid, Bool_t trans)
     SetName(symname);
     fDetID = 0;
     fDx = fInfo->fSegSPD->Dx()*0.00005;
-    fDz = 3.50; 
+    fDz = 3.50;
     fDy = fInfo->fSegSPD->Dy()*0.00005;
 
   }
@@ -190,7 +190,7 @@ void AliEveITSModule::SetID(Int_t gid, Bool_t trans)
 
     SetFrame(fgSDDFrameBox);
     SetPalette(fgSDDPalette);
+
     symname += strSensor;
     if (fID < 324)
     {
@@ -235,14 +235,14 @@ void AliEveITSModule::SetID(Int_t gid, Bool_t trans)
     symname += rest;
     SetName(symname);
     fDetID = 2;
-    fInfo->fSegSSD->SetLayer(fLayer);  
+    fInfo->fSegSSD->SetLayer(fLayer);
     fDx = fInfo->fSegSSD->Dx()*0.00005;
     fDz = fInfo->fSegSSD->Dz()*0.00005;
     fDy = fInfo->fSegSSD->Dy()*0.00005;
 
   }
 
-  LoadQuads();  
+  LoadQuads();
   ComputeBBox();
   if (trans)
     SetTrans();
@@ -260,14 +260,14 @@ void AliEveITSModule::LoadQuads()
   TClonesArray *digits  = fInfo->GetDigits(fID, fDetID);
   Int_t         ndigits = digits ? digits->GetEntriesFast() : 0;
 
-  Float_t       x, z, dpx, dpz; 
+  Float_t       x, z, dpx, dpz;
   Int_t         i, j;
 
   switch(fDetID)
   {
 
     case 0: { // SPD
-      AliITSsegmentationSPD* seg =  fInfo->fSegSPD; 
+      AliITSsegmentationSPD* seg =  fInfo->fSegSPD;
 
       Reset(kQT_RectangleXZFixedY, kFALSE, 32);
 
@@ -290,7 +290,7 @@ void AliEveITSModule::LoadQuads()
     }
 
     case 1: { // SDD
-      AliITSsegmentationSDD *seg =  fInfo->fSegSDD; 
+      AliITSsegmentationSDD *seg =  fInfo->fSegSDD;
 
       Reset(kQT_RectangleXZFixedY, kFALSE, 32);
 
@@ -315,7 +315,7 @@ void AliEveITSModule::LoadQuads()
     }
 
     case 2: { // SSD
-      AliITSsegmentationSSD* seg = fInfo->fSegSSD; 
+      AliITSsegmentationSSD* seg = fInfo->fSegSSD;
 
       Reset(kQT_LineXZFixedY, kFALSE, 32);
 
@@ -368,7 +368,7 @@ void AliEveITSModule::SetTrans()
   fHMTrans.SetBaseVec(2, x[1], x[4], x[7]);
   fHMTrans.SetBaseVec(3, x[2], x[5], x[8]);
   // translation
-  fInfo->fGeom->GetTrans(fID, x);  
+  fInfo->fGeom->GetTrans(fID, x);
   fHMTrans.SetBaseVec(4, x);
 }
 
index d8f329fc9899b1a9493710dad90eec9ee56caeb1..3b54dfa65ac22c7023dbfce3afa6d5167bc6b80d 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_ITSModule_H
 #define ALIEVE_ITSModule_H
@@ -20,7 +20,7 @@ class AliEveITSModule : public TEveQuadSet
   AliEveITSModule& operator=(const AliEveITSModule&); // Not implemented
 
 protected:
-  AliEveITSDigitsInfo* fInfo; 
+  AliEveITSDigitsInfo* fInfo;
 
   Int_t       fID;    // Module   id
   Int_t       fDetID; // Detector id (0~SPD, 1~SDD, 2~SSD)
@@ -28,7 +28,7 @@ protected:
   Int_t       fLayer;
   Int_t       fLadder;
   Int_t       fDet;
-  
+
   Float_t     fDx;
   Float_t     fDz;
   Float_t     fDy;
@@ -44,7 +44,7 @@ public:
 
   AliEveITSDigitsInfo* GetDigitsInfo() const { return fInfo; }
   void SetDigitsInfo(AliEveITSDigitsInfo* info);
-  
+
   Int_t GetSubDetID() const { return fDetID; }
 
   Int_t GetID() const { return fID; }
index d7df850e8e4dcf7b0cf148f41d823295ccf7ffc6..b639fa8647ef902ee4a91c74498f35ae1ad35ff1 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveITSModuleStepper.h"
@@ -41,8 +41,8 @@ ClassImp(AliEveITSModuleStepper)
 AliEveITSModuleStepper::AliEveITSModuleStepper(AliEveITSDigitsInfo* di) :
   TEveElementList("ITS 2DStore", "AliEveITSModuleStepper", kTRUE),
 
-  fPosition(0), 
-    
+  fPosition(0),
+
   fDigitsInfo(di),
   fScaleInfo(0),
 
@@ -116,7 +116,7 @@ void AliEveITSModuleStepper::Capacity()
   if (N != GetNChildren())
   {
     DestroyElements();
-    for (Int_t m=0; m<N; m++) 
+    for (Int_t m=0; m<N; m++)
     {
       AddElement(new AliEveITSScaledModule(m, fDigitsInfo, fScaleInfo));
     }
@@ -128,8 +128,8 @@ void AliEveITSModuleStepper::Capacity()
 void AliEveITSModuleStepper::SetFirst(Int_t first)
 {
   Int_t lastpage = fIDs.size()/Nxy();
-  if(fIDs.size() % Nxy() ) lastpage++;  
-        
+  if(fIDs.size() % Nxy() ) lastpage++;
+
   Int_t first_lastpage = (lastpage -1)*Nxy();
   if(first > first_lastpage) first = first_lastpage;
   if(first < 0) first = 0;
@@ -155,12 +155,12 @@ void AliEveITSModuleStepper::Previous()
 }
 
 void AliEveITSModuleStepper::End()
-{ 
+{
   Int_t lastpage = fIDs.size()/Nxy();
-  if(fIDs.size() % Nxy() ) lastpage++;  
+  if(fIDs.size() % Nxy() ) lastpage++;
   fPosition = (lastpage -1)*Nxy();
 
-  fStepper->Reset(); 
+  fStepper->Reset();
   Apply();
 }
 
@@ -171,7 +171,8 @@ void AliEveITSModuleStepper::DisplayDet(Int_t det, Int_t layer)
   fSubDet = det;
   fIDs.clear();
   AliEveITSModuleSelection sel = AliEveITSModuleSelection();
-  sel.fType = det; sel.fLayer=layer;
+  sel.SetType (det);
+  sel.SetLayer(layer);
   fDigitsInfo->GetModuleIDs(&sel, fIDs);
   //in reder menu define a space between left and right pager
   fPagerGap = 1.2*TextLength(Form("%d/%d",GetPages(), GetPages()));
@@ -184,7 +185,7 @@ void AliEveITSModuleStepper::DisplayTheta(Float_t min, Float_t max)
 {
   fIDs.clear();
   AliEveITSModuleSelection sel = AliEveITSModuleSelection();
-  sel.fMaxTheta = max; sel.fMinTheta=min; 
+  sel.SetThetaRange(min, max);
   fDigitsInfo->GetModuleIDs(&sel, fIDs);
   Start();
 }
@@ -193,7 +194,7 @@ void AliEveITSModuleStepper::DisplayTheta(Float_t min, Float_t max)
 
 Int_t AliEveITSModuleStepper::GetCurrentPage()
 {
-  Int_t idx = fPosition +1; 
+  Int_t idx = fPosition +1;
   Int_t n = idx/Nxy();
   if(idx % Nxy()) n++;
   return n;
@@ -203,11 +204,11 @@ Int_t AliEveITSModuleStepper::GetCurrentPage()
 
 Int_t AliEveITSModuleStepper::GetPages()
 {
-  Int_t n = fIDs.size()/Nxy(); 
-  if(fIDs.size() % Nxy()) n++; 
+  Int_t n = fIDs.size()/Nxy();
+  if(fIDs.size() % Nxy()) n++;
   return n;
 }
-  
+
 /**************************************************************************/
 
 void  AliEveITSModuleStepper::Apply()
@@ -219,16 +220,16 @@ void  AliEveITSModuleStepper::Apply()
   UInt_t idx = fPosition;
   for(List_i childit=fChildren.begin(); childit!=fChildren.end(); ++childit)
   {
-    if(idx < fIDs.size()) 
+    if(idx < fIDs.size())
     {
       AliEveITSScaledModule* mod = dynamic_cast<AliEveITSScaledModule*>(*childit);
-      mod->SetID(fIDs[idx], kFALSE); 
+      mod->SetID(fIDs[idx], kFALSE);
       TEveTrans& tr = mod->RefHMTrans();
       tr.UnitTrans();
       tr.RotateLF(3,2,TMath::PiOver2());
-      tr.RotateLF(1,3,TMath::PiOver2());   
+      tr.RotateLF(1,3,TMath::PiOver2());
 
-      // scaling 
+      // scaling
       Float_t mz, mx;
       Float_t* fp = mod->GetFrame()->GetFramePoints();
       // switch x,z it will be rotated afterwards
@@ -250,7 +251,7 @@ void  AliEveITSModuleStepper::Apply()
       Float_t  p[3];
       fStepper->GetPosition(p);
       tr.SetPos(p[0]+0.5*fStepper->GetDx(), p[1]+0.5*fStepper->GetDy(), p[2]+0.5*fStepper->GetDz());
-  
+
       if(mod->GetSubDetID() == 2)
        mod->SetName(Form("SSD %d", idx));
       else if(mod->GetSubDetID() == 1)
@@ -290,7 +291,7 @@ void AliEveITSModuleStepper::Render(TGLRnrCtx& rnrCtx)
     gluPickMatrix(rect.X(), rect.Y(), rect.Width(), rect.Height(),
                   (Int_t*) rnrCtx.GetCamera()->RefViewport().CArr());
   }
-   
+
   glMatrixMode(GL_MODELVIEW);
   glPushMatrix();
   glLoadIdentity();
@@ -303,12 +304,12 @@ void AliEveITSModuleStepper::Render(TGLRnrCtx& rnrCtx)
   glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
   glDisable(GL_CULL_FACE);
   glEnable(GL_BLEND);
-  glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); 
+  glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
   RenderMenu();
   RenderPalette(fPaletteLength, 1.6*fWWidth, fWHeight*0.6);
   glPopMatrix();
   glPopAttrib();
-  
+
   if (lightp) glEnable(GL_LIGHTING);
 
   glMatrixMode(GL_PROJECTION);
@@ -340,13 +341,13 @@ void AliEveITSModuleStepper::RenderString(TString string, Int_t id)
   if(id > 0) glLoadName(id);
   if(id>0 && fWActive == id)
     fText->SetTextColor(fWActiveCol);
-  else  
+  else
     fText->SetTextColor(fFontCol);
 
-  
+
   if(id>0)
-  { 
-    if(fWActive == id) 
+  {
+    if(fWActive == id)
       fText->SetTextColor(fWActiveCol);
     else
       fText->SetTextColor(fFontCol);
@@ -359,7 +360,7 @@ void AliEveITSModuleStepper::RenderString(TString string, Int_t id)
     RenderFrame(bw,fWHeight*2,id);
     glTranslatef( bw, 0, 0);
   }
-  else 
+  else
   {
     fText->SetTextColor(fFontCol);
     fText->PaintGLText(0, txtY, -0.8, string.Data());
@@ -377,7 +378,7 @@ void AliEveITSModuleStepper::RenderFrame(Float_t dx, Float_t dy, Int_t id)
   UChar_t color[4];
   if (fWActive == id)
     TEveUtil::TEveUtil::ColorFromIdx(fWActiveCol, color);
-  else  
+  else
     TEveUtil:: TEveUtil::ColorFromIdx(fWCol, color);
   glColor4ubv(color);
 
@@ -396,14 +397,14 @@ void AliEveITSModuleStepper::RenderSymbol(Float_t dx, Float_t dy, Int_t id)
   UChar_t color[4];
   if (fWActive == id)
     TEveUtil::TEveUtil::ColorFromIdx(fWActiveCol, color);
-  else  
+  else
     TEveUtil::TEveUtil::ColorFromIdx(fWCol, color);
   glColor4ubv(color);
 
   Float_t xs = dx/4, ys = dy/4;
   if(id == 0) {
     glBegin(GL_QUADS);
-    glVertex2f(0,ys); glVertex2f(0, ys*3); 
+    glVertex2f(0,ys); glVertex2f(0, ys*3);
     glVertex2f(dx, ys*3); glVertex2f(dx, ys);
     glEnd();
     return;
@@ -451,7 +452,7 @@ void AliEveITSModuleStepper::RenderSymbol(Float_t dx, Float_t dy, Int_t id)
       glVertex2f(xs, ys*1.5);  glVertex2f(xs*2, ys*0.5); glVertex2f(xs*3, ys*1.5);
       break;
     }
-   
+
     default:
       break;
   }
@@ -475,7 +476,7 @@ void AliEveITSModuleStepper::RenderPalette(Float_t dx, Float_t x, Float_t y)
   {
     Float_t xs = dx/(p->GetMaxVal() - p->GetMinVal());
     Float_t x0 = xs;
-    for(Int_t i=p->GetMinVal() + 1; i<p->GetMaxVal(); i++) 
+    for(Int_t i=p->GetMinVal() + 1; i<p->GetMaxVal(); i++)
     {
       glColor4ubv(p->ColorFromValue(i));
       glVertex2f(x0, 0);
@@ -511,7 +512,7 @@ void AliEveITSModuleStepper::RenderMenu()
   Float_t H = 1.9*wh*(1+ 2*fWOff);
   if(1) {
     glBegin(GL_QUADS);
-    glVertex3f(-1, -1,   0.1); glVertex3f(-1, -1+H, 0.1); 
+    glVertex3f(-1, -1,   0.1); glVertex3f(-1, -1+H, 0.1);
     glVertex3f(1 , -1+H, 0.1); glVertex3f( 1, -1  , 0.1);
     glEnd();
   }
@@ -532,7 +533,7 @@ void AliEveITSModuleStepper::RenderMenu()
   RenderFrame(ww,wh,1);
   glTranslatef(soff, 0, 0);
   // text info
-  { 
+  {
     const char* txt =  Form("%d/%d ", GetCurrentPage(), GetPages());
     Float_t dx = (fPagerGap - TextLength(txt))*0.5;
     fText->SetTextColor(fFontCol);
@@ -546,7 +547,7 @@ void AliEveITSModuleStepper::RenderMenu()
   RenderSymbol(ww, wh, 4);
   RenderFrame(ww,wh,4);
   glTranslatef(2*ww, 0, 0);
-  glPopMatrix();  
+  glPopMatrix();
 
   // scale info
   glPushMatrix();
@@ -556,10 +557,10 @@ void AliEveITSModuleStepper::RenderMenu()
   Int_t cnx = 0, cnz = 0;
   switch(sm->GetSubDetID())
   {
-    case 0: 
+    case 0:
       cnx = di->fSPDScaleX[scale], cnz = di->fSPDScaleZ[scale];
       break;
-    case 1: 
+    case 1:
       cnx = di->fSDDScaleX[scale], cnz = di->fSDDScaleZ[scale];
       break;
     case 2:
@@ -584,9 +585,9 @@ void AliEveITSModuleStepper::RenderMenu()
   glPushMatrix();
   glTranslatef(18*ww, 0, 0);
   Float_t bs = ww*0.2;
-  RenderString("SPD", 8);  
+  RenderString("SPD", 8);
   glTranslatef(bs, 0, 0);
-  RenderString("SDD", 9); 
+  RenderString("SDD", 9);
   glTranslatef(bs, 0, 0);
   RenderString("SSD", 10);
   glPopMatrix();
@@ -604,8 +605,8 @@ void AliEveITSModuleStepper::RenderCellIDs()
   UInt_t idx = fPosition;
   for (List_i childit=fChildren.begin(); childit!=fChildren.end(); ++childit)
   {
-    if(idx < fIDs.size()) 
-    { 
+    if(idx < fIDs.size())
+    {
       AliEveITSScaledModule* mod = dynamic_cast<AliEveITSScaledModule*>(*childit);
       TEveTrans& tr = mod->RefHMTrans();
       TString name = Form("%d",mod->GetID());
@@ -636,7 +637,7 @@ Bool_t AliEveITSModuleStepper::Handle(TGLRnrCtx          & /*rnrCtx*/,
   // Return TRUE if event was handled.
 
   switch (event->fType)
-  { 
+  {
     case kMotionNotify:
     {
       Int_t item = rec.GetN() < 2 ? -1 : (Int_t)rec.GetItem(1);
@@ -670,9 +671,9 @@ Bool_t AliEveITSModuleStepper::Handle(TGLRnrCtx          & /*rnrCtx*/,
         case 5:
         {
           AliEveDigitScaleInfo* si = fScaleInfo;
-          if(si->GetScale() < 5) 
+          if(si->GetScale() < 5)
           {
-            si->ScaleChanged(si->GetScale() + 1);      
+            si->ScaleChanged(si->GetScale() + 1);
             ElementChanged(kTRUE, kTRUE);
           }
           break;
@@ -680,9 +681,9 @@ Bool_t AliEveITSModuleStepper::Handle(TGLRnrCtx          & /*rnrCtx*/,
         case 6:
         {
           AliEveDigitScaleInfo* si = fScaleInfo;
-          if(si->GetScale() > 1) 
+          if(si->GetScale() > 1)
           {
-            si->ScaleChanged(si->GetScale() - 1);      
+            si->ScaleChanged(si->GetScale() - 1);
             ElementChanged(kTRUE, kTRUE);
           }
           break;
@@ -694,10 +695,10 @@ Bool_t AliEveITSModuleStepper::Handle(TGLRnrCtx          & /*rnrCtx*/,
         case 8:
             DisplayDet(0, -1);
           break;
-        case 9: 
+        case 9:
             DisplayDet(1, -1);
           break;
-        case 10: 
+        case 10:
             DisplayDet(2, -1);
           break;
         default:
@@ -724,4 +725,4 @@ void AliEveITSModuleStepper::MouseLeave()
   // Mouse has left the element.
 
   fWActive = -1;
-} 
+}
index 1e25954dca4994804fdc9f5a0a9bb25176c0c070..9d5b9c93254ad3b3b021727dd142b76407e40d6c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_ITSModuleStepper_H
@@ -59,14 +59,14 @@ protected:
 
   // palette configuratiom
   Float_t                 fPaletteOffset;
-  Float_t                 fPaletteLength;  
+  Float_t                 fPaletteLength;
 
-  // symbol configuration 
-  Int_t                   fWActive; 
+  // symbol configuration
+  Int_t                   fWActive;
   Float_t                 fWWidth;
   Float_t                 fWHeight;
   Float_t                 fWOff; ///offset relative to widget size
-  Color_t                 fWCol;  
+  Color_t                 fWCol;
   Int_t                   fWActiveCol;
   Color_t                 fFontCol;
 
index dfea9ba441ad64e72b880a42db3e63310e29c814..3dadc92f92e70d4af6f60b1e1d63df3f716042d8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveITSModuleStepperEditor.h"
index 3a119e27a68fe621d4a3bb0a24c4bbdae734b2f5..cab2993a3ff87578e055779f126097a900266cc9 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_ITSModuleStepperEditor_H
@@ -31,7 +31,7 @@ protected:
   AliEveITSModuleStepper*     fM; // fModel dynamic-casted to AliEveITSModuleStepperEditor
 
   TEveGridStepperSubEditor* fStepper;
-   
+
 public:
   AliEveITSModuleStepperEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
   virtual ~AliEveITSModuleStepperEditor();
index 4757a860d85d5a8d2abfe69e79f975d857aeafaa..03a08418b14237678737069a5a8e8cb29726dbf9 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveITSScaledModule.h"
@@ -29,7 +29,7 @@ AliEveDigitScaleInfo::AliEveDigitScaleInfo():
 void AliEveDigitScaleInfo::ScaleChanged(Int_t s)
 {
   fScale = s;
-  
+
   AliEveITSScaledModule* sm;
   std::list<TEveElement*>::iterator i = fBackRefs.begin();
   while (i != fBackRefs.end())
@@ -44,7 +44,7 @@ void AliEveDigitScaleInfo::StatTypeChanged(Int_t t)
 {
   fStatType = t;
   fSyncPalette = kTRUE;
-    
+
   AliEveITSScaledModule* sm;
   std::list<TEveElement*>::iterator i = fBackRefs.begin();
   while (i != fBackRefs.end())
@@ -96,7 +96,7 @@ AliEveITSScaledModule::AliEveITSScaledModule(Int_t gid, AliEveITSDigitsInfo* inf
   SetOwnIds(kTRUE);
 
   SetDigitsInfo(info);
-  SetID(gid); 
+  SetID(gid);
   fScaleInfo->IncRefCount(this);
 }
 
@@ -129,8 +129,8 @@ void AliEveITSScaledModule::LoadQuads()
   Int_t scale = fScaleInfo->GetScale() -1;
   switch(fDetID)
   {
-    case 0: 
-    { 
+    case 0:
+    {
       // SPD
       Reset(kQT_RectangleXZFixedY, kFALSE, 32);
 
@@ -138,7 +138,7 @@ void AliEveITSScaledModule::LoadQuads()
       fNCx = fInfo->fSPDScaleX[scale];
       fNz  = Int_t(fInfo->fSegSPD->Npz()/fNCz);
       fNx  = Int_t(fInfo->fSegSPD->Npx()/fNCx);
-      dpz = 2*fDz/fNz;  
+      dpz = 2*fDz/fNz;
       dpx = 2*fDx/fNx;
       //printf("SPD orig cells (%d, %d) (%d, %d)\n", fInfo->fSegSPD->Npx(), fInfo->fSegSPD->Npz(), Nx, Nz);
 
@@ -152,10 +152,10 @@ void AliEveITSScaledModule::LoadQuads()
        i = Int_t((zo+fDz)/dpz);
        j = Int_t((od->GetCoord2()*fNx)/fInfo->fSegSPD->Npx());
        id = j*fNx + i;
+
         miter = dmap.find(id);
        if(miter == dmap.end())
-       {       
+       {
           dmap[id] = fPlex.Size();
           z = dpz*(i) - fDz;
           x = dpx*(j) - fDx;
@@ -163,33 +163,33 @@ void AliEveITSScaledModule::LoadQuads()
           sd = new ScaledDigit(c1, c2);
          QuadId(sd);
        }
-        else 
+        else
        {
          sd = dynamic_cast<ScaledDigit*>(GetId(miter->second));
-          if(c1 < sd->min_i) 
+          if(c1 < sd->min_i)
            sd->min_i = c1;
          else if( c1 > sd->max_i)
             sd->max_i = c1;
-       
-          if(c2 < sd->min_j) 
+
+          if(c2 < sd->min_j)
            sd->min_j = c2;
          else if( c2 > sd->max_j)
            sd->max_j = c2;
        }
-         
+
        sd->N++;
        sd->sum  += od->GetSignal();
        sd->sqr_sum += od->GetSignal()*od->GetSignal();
       }
       break;
     }
-    case 1: 
-    { 
+    case 1:
+    {
       // SDD
       Reset(kQT_RectangleXZFixedY, kFALSE, 32);
 
       fNCz = fInfo->fSDDScaleZ[scale];
-      fNCx = fInfo->fSDDScaleX[scale];   
+      fNCx = fInfo->fSDDScaleX[scale];
       fNz  = Int_t(fInfo->fSegSDD->Npz()/fNCz);
       fNx  = Int_t(fInfo->fSegSDD->Npx()/fNCx);
       dpz = 2*fDz/fNz;
@@ -208,10 +208,10 @@ void AliEveITSScaledModule::LoadQuads()
 
        id = j*fNx + i;
        c1 = od->GetCoord1(); c2 = od->GetCoord2();
+
        miter = dmap.find(id);
        if(miter == dmap.end())
-       {       
+       {
          dmap[id] = fPlex.Size();
          z = dpz*(i) - fDz;
          x = dpx*(j) - fDx;
@@ -219,15 +219,15 @@ void AliEveITSScaledModule::LoadQuads()
          sd = new ScaledDigit(od->GetCoord1(),od->GetCoord2());
          QuadId(sd);
        }
-       else 
+       else
        {
          sd = dynamic_cast<ScaledDigit*>(GetId(miter->second));
-         if(c1 < sd->min_i) 
+         if(c1 < sd->min_i)
            sd->min_i = c1;
          else if( c1 > sd->max_i)
            sd->max_i = c1;
-       
-         if(c2 < sd->min_j) 
+
+         if(c2 < sd->min_j)
            sd->min_j = c2;
          else if( c2 > sd->max_j)
            sd->max_j = c2;
@@ -237,19 +237,19 @@ void AliEveITSScaledModule::LoadQuads()
        sd->sqr_sum += od->GetSignal()*od->GetSignal();
       }
       break;
-    }  
-    case 2: 
-    { 
-      // SSD  
+    }
+    case 2:
+    {
+      // SSD
       Reset(kQT_LineXZFixedY, kFALSE, 32);
 
-      AliITSsegmentationSSD* seg = fInfo->fSegSSD; 
+      AliITSsegmentationSSD* seg = fInfo->fSegSSD;
       Float_t ap, an; // positive/negative angles -> offsets
       seg->Angles(ap, an);
       ap =   TMath::Tan(ap) * fDz;
       an = - TMath::Tan(an) * fDz;
 
-      fNCx  = fInfo->fSSDScale[scale];   
+      fNCx  = fInfo->fSSDScale[scale];
       fNz  = 1;
       fNx  = Int_t(fInfo->fSegSSD->Npx()/fNCx);
       dpz = 2*fDz/fNz;
@@ -258,18 +258,18 @@ void AliEveITSScaledModule::LoadQuads()
       AliITSdigitSSD *od=0;
       for (Int_t k=0; k<ndigits; k++) {
        od=(AliITSdigitSSD*)digits->UncheckedAt(k);
-       if(od->GetCoord1() == 1) 
+       if(od->GetCoord1() == 1)
          i = 1; // p side
-       else 
+       else
          i= -1; // n side
        j = Int_t(od->GetCoord2()/fNCx);
        c1 = od->GetCoord1(); c2 = od->GetCoord2();
-       id = j*i; 
+       id = j*i;
 
        miter = dmap.find(id);
        ScaledDigit* sd;
        if(miter == dmap.end())
-       {       
+       {
          // printf("orig digit %d,%d scaled %d,%d \n",od->GetCoord1(),od->GetCoord2(),i,j);
          dmap[id] = fPlex.Size();
          z = dpz*(i) - fDz;
@@ -280,15 +280,15 @@ void AliEveITSScaledModule::LoadQuads()
          sd = new ScaledDigit(c1, c2);
          QuadId(sd);
        }
-       else 
+       else
        {
-         sd = dynamic_cast<ScaledDigit*>(GetId(miter->second)); 
-         if(c1 < sd->min_i) 
+         sd = dynamic_cast<ScaledDigit*>(GetId(miter->second));
+         if(c1 < sd->min_i)
            sd->min_i = c1;
          else if( c1 > sd->max_i)
            sd->max_i = c1;
-       
-         if(c2 < sd->min_j) 
+
+         if(c2 < sd->min_j)
            sd->min_j = c2;
          else if( c2 > sd->max_j)
            sd->max_j = c2;
@@ -311,7 +311,7 @@ void AliEveITSScaledModule::SetQuadValues()
 {
   if(fScaleInfo->GetSyncPalette()) SyncPalette();
 
-  Int_t N = fPlex.Size(); 
+  Int_t N = fPlex.Size();
   for (Int_t i = 0 ; i< N; i++)
   {
     ScaledDigit* sd = dynamic_cast<ScaledDigit*>(GetId(i));
@@ -338,14 +338,14 @@ void AliEveITSScaledModule::SetQuadValues()
 /**************************************************************************/
 
 void AliEveITSScaledModule::SyncPalette()
-{  
+{
   // printf("AliEveITSScaledModule::SyncPalette()\n");
-  if(fScaleInfo->GetStatType() == AliEveDigitScaleInfo::ST_Occup) 
+  if(fScaleInfo->GetStatType() == AliEveDigitScaleInfo::ST_Occup)
   {
     // SPD
     AliEveITSModule::fgSPDPalette->SetLimits(0, 100);
     AliEveITSModule::fgSPDPalette->SetMinMax(0, 100);
-    
+
     // SDD
     AliEveITSModule::fgSDDPalette->SetLimits(0, 100);
     AliEveITSModule::fgSDDPalette->SetMinMax(0, 100);
@@ -360,7 +360,7 @@ void AliEveITSScaledModule::SyncPalette()
     // SPD
     AliEveITSModule::fgSPDPalette->SetLimits(0, DI.fSPDHighLim);
     AliEveITSModule::fgSPDPalette->SetMinMax(DI.fSPDMinVal, DI.fSPDMaxVal);
-    
+
     // SDD
     AliEveITSModule::fgSDDPalette->SetLimits(0, DI.fSDDHighLim);
     AliEveITSModule::fgSDDPalette->SetMinMax(DI.fSDDMinVal, DI.fSDDMaxVal);
@@ -398,12 +398,12 @@ void  AliEveITSScaledModule::DigitSelected(Int_t idx)
   printf("%d digits in cell scaleX = %d,  scaleZ = %d \n", sd->N, fNCx, fNCz);
 
   Int_t il = 0;
-  for(Int_t k=0; k<ndigits; k++) 
+  for(Int_t k=0; k<ndigits; k++)
   {
     AliITSdigit *d = (AliITSdigit*) digits->UncheckedAt(k);
 
-    if(d->GetCoord1()>=sd->min_i && d->GetCoord1()<=sd->max_i && 
-       d->GetCoord2()>=sd->min_j && d->GetCoord2()<=sd->max_j) 
+    if(d->GetCoord1()>=sd->min_i && d->GetCoord1()<=sd->max_i &&
+       d->GetCoord2()>=sd->min_j && d->GetCoord2()<=sd->max_j)
     {
       printf("%3d, %3d: %3d", d->GetCoord1(), d->GetCoord2(), d->GetSignal());
       printf(" | ");
index 23740cc6e546c4e0c43cbf6e3599d03a6622ada5..db839728dea1b3825069214759f6c4db4ea62616 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_ITSScaledModule_H
@@ -31,15 +31,15 @@ private:
   AliEveDigitScaleInfo& operator=(const AliEveDigitScaleInfo&); // Not implemented
 
 protected:
-  Int_t            fScale;    
+  Int_t            fScale;
   Int_t            fStatType;
-  
+
   Bool_t           fSyncPalette;
 
 public:
   AliEveDigitScaleInfo();
   virtual ~AliEveDigitScaleInfo(){}
-    
+
   Int_t            GetScale() { return fScale; }
   void             ScaleChanged(Int_t s);
 
@@ -67,9 +67,9 @@ public:
 
   ScaledDigit();
   ScaledDigit(Int_t di, Int_t dj);
-  
+
   virtual void Dump() const;
-}; 
+};
 
 /**************************************************************************/
 // AliEveITSScaledModule
@@ -79,13 +79,13 @@ class AliEveITSScaledModule : public AliEveITSModule
 {
   friend class ITSSDSubEditor;
 private:
-  map<Int_t, ScaledDigit> fDigitsMap;  
-  
+  map<Int_t, ScaledDigit> fDigitsMap;
+
   AliEveITSScaledModule(const AliEveITSScaledModule&);            // Not implemented
   AliEveITSScaledModule& operator=(const AliEveITSScaledModule&); // Not implemented
 
 protected:
-  Int_t       fNx;  //  per module 
+  Int_t       fNx;  //  per module
   Int_t       fNz;
 
   Int_t       fNCx;  // per cell
index 5797e5dd473a9b8497b02e47b109dda925291ecf..88659754e2de4027f90473dc03443f3ee611d6f7 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveITSScaledModuleEditor.h"
@@ -26,7 +26,7 @@
 
 
 //______________________________________________________________________
-// AliEveITSScaledModuleEditor 
+// AliEveITSScaledModuleEditor
 //
 
 ClassImp(AliEveITSScaledModuleEditor)
@@ -37,7 +37,7 @@ ClassImp(AliEveITSScaledModuleEditor)
 
     fInfoFrame(0),
 
-    fModule(0), 
+    fModule(0),
 
     fScale(0),
     fStatistic(0),
@@ -57,7 +57,7 @@ ClassImp(AliEveITSScaledModuleEditor)
     f->AddFrame(fScale, new TGLayoutHints(kLHintsLeft, 1, 7, 1, 1));
     fScale->Associate(f);
     fScale->Connect("ValueSet(Long_t)", "AliEveITSScaledModuleEditor", this, "DoScale()");
-    
+
     TGLabel* lab = new TGLabel(f, "Statistic:");
     f->AddFrame(lab, new TGLayoutHints(kLHintsLeft|kLHintsBottom, 1, 2, 1, 2));
     fStatistic = new TGComboBox(f);
@@ -83,13 +83,13 @@ AliEveITSScaledModuleEditor::~AliEveITSScaledModuleEditor()
 void AliEveITSScaledModuleEditor::CreateInfoFrame()
 {
   fInfoFrame = CreateEditorTabSubFrame("Info");
-  TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10, 
-                                                 kHorizontalFrame | 
-                                                 kLHintsExpandX   | 
-                                                 kFixedWidth      | 
+  TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10,
+                                                 kHorizontalFrame |
+                                                 kLHintsExpandX   |
+                                                 kFixedWidth      |
                                                  kOwnBackground);
 
-  title1->AddFrame(new TGLabel(title1, "ScaledDigits Info"), 
+  title1->AddFrame(new TGLabel(title1, "ScaledDigits Info"),
                   new TGLayoutHints(kLHintsLeft, 1, 1, 0, 0));
   title1->AddFrame(new TGHorizontal3DLine(title1),
                   new TGLayoutHints(kLHintsExpandX, 5, 5, 7, 7));
@@ -113,13 +113,13 @@ void AliEveITSScaledModuleEditor::CreateInfoFrame()
 
 void AliEveITSScaledModuleEditor::SetModel(TObject* obj)
 {
-  fModule = dynamic_cast<AliEveITSScaledModule*>(obj); 
+  fModule = dynamic_cast<AliEveITSScaledModule*>(obj);
 
   // widgets
   fScale->SetIntNumber(fModule->GetScaleInfo()->GetScale());
   fStatistic->Select(fModule->GetScaleInfo()->GetStatType(), kFALSE);
 
-  // text info  
+  // text info
   Int_t cnx, cnz, total;
   fModule->GetScaleData(cnx, cnz, total);
   fInfoLabel0->SetText(Form("Cell size:  Nx=%d Nz=%d", cnx, cnz));
index 969c5d8c1edbbb42bb261e5c7213b3340424b2a3..f31492060885fe7c799772265f78f7ad3ca44314 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_ITSScaledModuleEditor_H
@@ -42,7 +42,7 @@ protected:
   AliEveITSScaledModule*  fModule; // fModel dynamic-casted to AliEveITSScaledModuleEditor
 
   TGNumberEntry*    fScale;
-  TGComboBox*       fStatistic;  
+  TGComboBox*       fStatistic;
 
   TGLabel*          fInfoLabel0;
   TGLabel*          fInfoLabel1;
index 4089b713b81606411ff66c96ca96d9a10943851c..4636bd38a8a99e746ae2429a8d289fcc80f01ce8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveJetPlane.h"
index fab6ffa638dd1d5b7c119ea782abb5caeccca500..da55386a24274fb3d8ca608e238490eb46e68060 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_JetPlane_H
index 59e64cea94caf44322c9430baa9d50155c44f63a..3973265be3e88c50235545876f105bdadfb45be0 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveJetPlaneEditor.h"
@@ -160,7 +160,7 @@ void AliEveJetPlaneEditor::DoTwoSelection()
 }
 
 void AliEveJetPlaneEditor::DoStaticDataWindow()
-{      
+{
   printf("\n Soon available ... \n");
   if (fgStaticWindow == 0)
     fgStaticWindow = new StaticDataWindow(gClient->GetRoot(), this, 400, 200);
index c722a04fd8704842fc1650518629981a3d7e2229..cf00b4c180868e580bea0f85653654b26bd9805c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_JetPlaneEditor_H
index 96d36ef4c2e46d207dc2dfa83e5c42d43bb3a74e..aa02813eb02ded82441ea42ddf0b7a3ad511b0c7 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveJetPlaneGL.h"
index d14013750d4c1e7a4860ddf428a14edfcc7b36ac..6a2e1d6f8358709a4ba1e7ea862ee33e85abb74b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_JetPlaneGL_H
index 275114dbb170960e0fda29b20c254d5dc7c5e421..f89b496b90fdd475569219e63434dffc5f6d9616 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveKineTools.h"
@@ -44,16 +44,16 @@ void AliEveKineTools::SetDaughterPathMarks(TEveElement* cont, AliStack* stack, B
 
   while(iter != cont->EndChildren())
   {
-    TEveTrack* track = dynamic_cast<TEveTrack*>(*iter); 
+    TEveTrack* track = dynamic_cast<TEveTrack*>(*iter);
     TParticle* p = stack->Particle(track->GetLabel());
     if(p->GetNDaughters()) {
       Int_t d0 = p->GetDaughter(0), d1 = p->GetDaughter(1);
-      for(int d=d0; d>0 && d<=d1; ++d) 
-      {        
+      for(int d=d0; d>0 && d<=d1; ++d)
+      {
        TParticle* dp = stack->Particle(d);
        TEvePathMark* pm = new TEvePathMark(TEvePathMark::kDaughter);
         pm->fV.Set(dp->Vx(), dp->Vy(), dp->Vz());
-       pm->fP.Set(dp->Px(), dp->Py(), dp->Pz()); 
+       pm->fP.Set(dp->Px(), dp->Py(), dp->Pz());
         pm->fTime = dp->T();
         track->AddPathMark(pm);
       }
@@ -77,8 +77,8 @@ void slurp_tracks(map<Int_t, TEveTrack*>& tracks, TEveElement* cont, Bool_t recu
 {
   TEveElement::List_i citer = cont->BeginChildren();
   while(citer != cont->EndChildren())
-  { 
-    TEveTrack* track = dynamic_cast<TEveTrack*>(*citer); 
+  {
+    TEveTrack* track = dynamic_cast<TEveTrack*>(*citer);
     tracks[track->GetLabel()] = track;
     if (recurse)
       slurp_tracks(tracks, track, recurse);
@@ -97,7 +97,7 @@ void AliEveKineTools::SetTrackReferences(TEveElement* cont, TTree* treeTR, Bool_
   // Fill map
   map<Int_t, TEveTrack*> tracks;
   slurp_tracks(tracks, cont, recurse);
+
   Int_t nPrimaries = (Int_t) treeTR->GetEntries();
   TIter next(treeTR->GetListOfBranches());
   TBranchElement* el;
@@ -110,14 +110,14 @@ void AliEveKineTools::SetTrackReferences(TEveElement* cont, TTree* treeTR, Bool_
 
     TClonesArray* arr = 0;
     el->SetAddress(&arr);
-    for (Int_t iPrimPart = 0; iPrimPart<nPrimaries; iPrimPart++) 
+    for (Int_t iPrimPart = 0; iPrimPart<nPrimaries; iPrimPart++)
     {
       el->GetEntry(iPrimPart);
 
       Int_t last_label = -1;
-      map<Int_t, TEveTrack*>::iterator iter = tracks.end(); 
+      map<Int_t, TEveTrack*>::iterator iter = tracks.end();
       Int_t Nent =  arr->GetEntriesFast();
-      for (Int_t iTrackRef = 0; iTrackRef < Nent; iTrackRef++) 
+      for (Int_t iTrackRef = 0; iTrackRef < Nent; iTrackRef++)
       {
        AliTrackReference* atr = (AliTrackReference*)arr->UncheckedAt(iTrackRef);
 
@@ -125,7 +125,7 @@ void AliEveKineTools::SetTrackReferences(TEveElement* cont, TTree* treeTR, Bool_
        if (label < 0)
          throw(eH + Form("negative label for entry %d in branch %s.",
                          iTrackRef, el->GetName()));
-       
+
         if(label != last_label) {
          iter = tracks.find(label);
          last_label = label;
@@ -134,12 +134,12 @@ void AliEveKineTools::SetTrackReferences(TEveElement* cont, TTree* treeTR, Bool_
        if (iter != tracks.end()) {
          TEvePathMark* pm = new TEvePathMark(isRef ? TEvePathMark::kReference : TEvePathMark::kDecay);
          pm->fV.Set(atr->X(),atr->Y(), atr->Z());
-         pm->fP.Set(atr->Px(),atr->Py(), atr->Pz());  
+         pm->fP.Set(atr->Px(),atr->Py(), atr->Pz());
          pm->fTime = atr->GetTime();
           TEveTrack* track  = iter->second;
           track->AddPathMark(pm);
        }
-      } // loop track refs 
+      } // loop track refs
     } // loop primaries, clones arrays
     delete arr;
   } // end loop through top branches
@@ -153,7 +153,7 @@ void AliEveKineTools::SortPathMarks(TEveElement* cont, Bool_t recurse)
   map<Int_t, TEveTrack*> tracks;
   slurp_tracks(tracks, cont, recurse);
 
-  // sort 
+  // sort
   for(map<Int_t, TEveTrack*>::iterator j=tracks.begin(); j!=tracks.end(); ++j)
   {
     j->second->SortPathMarksByTime();
index e6cc217320bf6be0649bfdb7c383a6d20540b201..6f35fcb4189fa7ef92adf61b88d5a18b701d2bd7 100644 (file)
@@ -4,10 +4,10 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
-// Tools for import of kinematics. 
+// Tools for import of kinematics.
 // Preliminary/minimal solution.
 
 #ifndef ALIEVE_KineTools_H
@@ -33,7 +33,7 @@ protected:
 public:
   AliEveKineTools();
   virtual ~AliEveKineTools(){}
+
   // data from TreeTR
   void SetDaughterPathMarks(TEveElement* cont, AliStack* stack, Bool_t recurse=kFALSE);
   void SetTrackReferences  (TEveElement* cont, TTree* treeTR=0, Bool_t recurse=kFALSE);
index 0632a8a53bf4f09fdca02b989092719befbbaccc..b605b63d90ea27b7d0668d878e156b3a4fe93264 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveMUONChamber.h"
 
@@ -83,7 +83,7 @@ void AliEveMUONChamber::ComputeBBox()
 #else
   BBoxInit();
 #endif
-  
+
   fBBox[0] = - 400.0;
   fBBox[1] = + 400.0;
   fBBox[2] = - 400.0;
@@ -99,7 +99,7 @@ void AliEveMUONChamber::ComputeBBox()
   for(Int_t i=0; i<6; ++i) { b3[i] = fBBox[i]; }
   Float_t* b4 = fPointSet2.AssertBBox();
   for(Int_t i=0; i<6; ++i) { b4[i] = fBBox[i]; }
-  
+
 }
 
 //______________________________________________________________________
@@ -200,7 +200,7 @@ void AliEveMUONChamber::SetupColor(Int_t val, UChar_t* pixel) const
 Int_t AliEveMUONChamber::ColorIndex(Int_t val) const
 {
   //
-  // index color 
+  // index color
   //
 
   if(val < fThreshold) val = fThreshold;
@@ -259,7 +259,7 @@ void AliEveMUONChamber::SetDataSource(AliEveMUONData* data)
 //______________________________________________________________________
 AliEveMUONChamberData* AliEveMUONChamber::GetChamberData() const
 {
-  
+
   return fMUONData ? fMUONData->GetChamberData(fChamberID) : 0;
 
 }
@@ -274,13 +274,13 @@ void AliEveMUONChamber::UpdateQuads()
   fPointSet2.Reset();
 
   AliEveMUONChamberData* data = GetChamberData();
-  
+
   Float_t *buffer;
   Float_t x0, y0, z, w, h, clsq;
   Int_t charge, cathode, nDigits, nClusters, nHits, oldSize, ic1, ic2;
   Double_t clsX, clsY, clsZ;
   Float_t hitX, hitY, hitZ;
-    
+
   if (data != 0) {
 
     SetupColorArray();
@@ -288,7 +288,7 @@ void AliEveMUONChamber::UpdateQuads()
     // digits
 
     nDigits = data->GetNDigits();
-    
+
     for (Int_t id = 0; id < nDigits; id++) {
 
       buffer = data->GetDigitBuffer(id);
@@ -300,27 +300,27 @@ void AliEveMUONChamber::UpdateQuads()
       z  = buffer[4];
       charge = (Int_t)buffer[5];
       cathode = (Int_t)buffer[6];
-      
+
       if (charge <= fThreshold) continue;
 
       if (cathode == 0) {
 
        fQuadSet1.AddQuad(x0, y0, z, w, h);
        fQuadSet1.QuadColor(ColorIndex(charge));
-       
+
       }
 
       if (cathode == 1) {
 
        fQuadSet2.AddQuad(x0, y0, z, w, h);
        fQuadSet2.QuadColor(ColorIndex(charge));
-       
+
       }
 
     } // end digits loop
 
     // clusters
-    
+
     nClusters = data->GetNClusters()/2;  // only one cathode plane
     oldSize = fPointSet1.GrowFor(nClusters);
     ic1 = ic2 = 0;
@@ -331,7 +331,7 @@ void AliEveMUONChamber::UpdateQuads()
       clsX    = (Double_t)buffer[0];
       clsY    = (Double_t)buffer[1];
       clsZ    = (Double_t)buffer[2];
-      clsq    = buffer[3];      
+      clsq    = buffer[3];
       cathode = (Int_t)buffer[4];
 
       if (cathode == 0) {
index 7493d937a3cdc7783be1c64930a3f2f1059ca130..e53d6a3406518d2f7b2c1084b98ddb2d60822721 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONChamber_H
 #define ALIEVE_MUONChamber_H
index 1f3145559d5b13a3a4029c7a255c0b45e0072273..ca299a9075d9350bb81de16370ca6879540dc183 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveMUONChamberData.h"
 
@@ -131,30 +131,30 @@ void AliEveMUONChamberData::Init(Int_t chamber)
       sseg = (AliMpSectorSegmentation*)
              AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,AliMp::kCath0);
       sector = sseg->GetSector();
-      
-      position  = sector->Position(); 
+
+      position  = sector->Position();
       dimension = sector->Dimensions(); // half length
-      
+
       locP[0] =  position.Px();
       locP[1] =  position.Py();
       locD[0] =  dimension.Px() * 2.;
       locD[1] =  dimension.Py() * 2.;
-      
+
       locP[2] = 0.0;
       locD[2] = 0.0;
 
-      fgTransformer->Local2Global(detElemId, 
-                                 locP[0], locP[1], locP[2], 
+      fgTransformer->Local2Global(detElemId,
+                                 locP[0], locP[1], locP[2],
                                  gloP[0], gloP[1], gloP[2]);
-      
+
       fgTransformer->Local2Global(detElemId,
-                                 locD[0], locD[1], locD[2], 
+                                 locD[0], locD[1], locD[2],
                                  gloD[0], gloD[1], gloD[2]);
-      
-      fFrameCoord[fNDetElem][0] = gloP[0]; 
-      fFrameCoord[fNDetElem][1] = gloP[1]; 
-      fFrameCoord[fNDetElem][2] = gloD[0]; 
-      fFrameCoord[fNDetElem][3] = gloD[1]; 
+
+      fFrameCoord[fNDetElem][0] = gloP[0];
+      fFrameCoord[fNDetElem][1] = gloP[1];
+      fFrameCoord[fNDetElem][2] = gloD[0];
+      fFrameCoord[fNDetElem][3] = gloD[1];
       fFrameCoord[fNDetElem][4] = gloP[2]; // Z position
 
       fChamberBox[0] = TMath::Min(fChamberBox[0],gloP[0]-gloD[0]);
@@ -163,7 +163,7 @@ void AliEveMUONChamberData::Init(Int_t chamber)
       fChamberBox[3] = TMath::Max(fChamberBox[3],gloP[1]+gloD[1]);
       fChamberBox[4] = TMath::Min(fChamberBox[4],gloP[2]);
       fChamberBox[5] = TMath::Max(fChamberBox[5],gloP[2]);
-    
+
     } else {
 
 //      if (!fgSegmentation->HasDE(detElemId)) {
@@ -188,18 +188,18 @@ void AliEveMUONChamberData::Init(Int_t chamber)
       locP[2] = 0.0;
       locD[2] = 0.0;
 
-      fgTransformer->Local2Global(detElemId, 
-                                 locP[0], locP[1], locP[2], 
+      fgTransformer->Local2Global(detElemId,
+                                 locP[0], locP[1], locP[2],
                                  gloP[0], gloP[1], gloP[2]);
-      
+
       fgTransformer->Local2Global(detElemId,
-                                 locD[0], locD[1], locD[2], 
+                                 locD[0], locD[1], locD[2],
                                  gloD[0], gloD[1], gloD[2]);
-      
-      fFrameCoord[fNDetElem][0] = gloP[0]; 
-      fFrameCoord[fNDetElem][1] = gloP[1]; 
-      fFrameCoord[fNDetElem][2] = gloD[0]; 
-      fFrameCoord[fNDetElem][3] = gloD[1]; 
+
+      fFrameCoord[fNDetElem][0] = gloP[0];
+      fFrameCoord[fNDetElem][1] = gloP[1];
+      fFrameCoord[fNDetElem][2] = gloD[0];
+      fFrameCoord[fNDetElem][3] = gloD[1];
       fFrameCoord[fNDetElem][4] = gloP[2]; // Z position
 
       fChamberBox[0] = TMath::Min(fChamberBox[0],gloP[0]);
@@ -212,7 +212,7 @@ void AliEveMUONChamberData::Init(Int_t chamber)
       fChamberBox[3] = TMath::Max(fChamberBox[1],gloD[1]);
       fChamberBox[4] = TMath::Min(fChamberBox[4],gloP[2]);
       fChamberBox[5] = TMath::Max(fChamberBox[5],gloP[2]);
-    
+
     }
 
     fNDetElem++;
@@ -236,19 +236,19 @@ void AliEveMUONChamberData::RegisterDigit(Int_t detElemId, Int_t cathode, Int_t
     ->GetMpSegmentation(detElemId,AliMp::GetCathodType(cathode));
 
   AliMpPad pad = vseg->PadByIndices(AliMpIntPair(ix,iy),kTRUE);
-  
+
   locP[0] = pad.Position().X();
   locP[1] = pad.Position().Y();
   locD[0] = pad.Dimensions().X();
   locD[1] = pad.Dimensions().Y();
-  
+
   locP[2] = 0.0;
   locD[2] = 0.0;
 
-  fgTransformer->Local2Global(detElemId, 
-                             locP[0], locP[1], locP[2], 
+  fgTransformer->Local2Global(detElemId,
+                             locP[0], locP[1], locP[2],
                              gloP[0], gloP[1], gloP[2]);
-  
+
   gloD[0] = locD[0];
   gloD[1] = locD[1];
   gloD[2] = gloP[2];
index befd33974696cfb7a0db355efb5e8b598d96ae1f..8abd3e4a039da36660d6008ea134eaf01acc6cbd 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONChamberData_H
 #define ALIEVE_MUONChamberData_H
index 535399e0a0fa899b01f8a43b439fc330bc5b66d3..87790a018f76ffcc24f8fe9a3a767b2f9e214d3f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveMUONChamberEditor.h"
 
index 0e2618749b3c6f6309a893667f4d3fa620fd74c0..09b18efd0184663e99a9bfb4f2ceda13e3e970f1 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONChamberEditor_H
 #define ALIEVE_MUONChamberEditor_H
@@ -27,7 +27,7 @@ class AliEveMUONChamberEditor : public TGedFrame
 
   AliEveMUONChamberEditor(const AliEveMUONChamberEditor&);            // Not implemented
   AliEveMUONChamberEditor& operator=(const AliEveMUONChamberEditor&); // Not implemented
-  
+
  protected:
 
   AliEveMUONChamber* fM; // fModel dynamic-casted to AliEveMUONChamberEditor
@@ -40,10 +40,10 @@ class AliEveMUONChamberEditor : public TGedFrame
  public:
 
   AliEveMUONChamberEditor(const TGWindow* p = 0,
-                   Int_t width = 170, Int_t height = 30, 
-                   UInt_t options = kChildFrame, 
+                   Int_t width = 170, Int_t height = 30,
+                   UInt_t options = kChildFrame,
                    Pixel_t back = GetDefaultFrameBackground());
-  
+
   virtual ~AliEveMUONChamberEditor();
 
   virtual void SetModel(TObject* obj);
index 56f306a92e0f8d56fbee3273c0adae584c1ae3a6..8c7a3711860d79309ce73e5281ad3021fc6639da 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
@@ -72,7 +72,7 @@ Bool_t AliEveMUONChamberGL::SetModel(TObject* obj, const Option_t* /*opt*/)
   //
 
   if(SetModelCheckClass(obj, AliEveMUONChamber::Class())) {
-    
+
     fChamber = (AliEveMUONChamber*) fExternalObj;
     fQS1.SetModel(&fChamber->fQuadSet1);
     fQS2.SetModel(&fChamber->fQuadSet2);
@@ -111,14 +111,14 @@ void AliEveMUONChamberGL::DirectDraw(TGLRnrCtx& rnrCtx) const
     fChamber->UpdateQuads();
     fRTS = fChamber->fRTS;
   }
-  
+
   Bool_t hasData = (fChamber->GetChamberData() != 0);
-  
+
   if(hasData) {
 
     DrawQuads(rnrCtx);
     DrawPoints();
-  
+
   }
 
   DrawChamberFrame();
@@ -168,9 +168,9 @@ void AliEveMUONChamberGL::DrawPoints() const
   glLineWidth(1.0);
 
   glColor3f(1.0,1.0,1.0);
-    
+
   glBegin(GL_LINES);
-    
+
   // clusters
 
   Int_t clsSize = fChamber->fClusterSize;
@@ -178,17 +178,17 @@ void AliEveMUONChamberGL::DrawPoints() const
   if (clsSize > 1) {
 
     for (Int_t i = 0; i < fChamber->fPointSet1.GetN(); i++) {
-      
+
       fChamber->fPointSet1.GetPoint(i,x,y,z);
 
       glVertex3f(x-clsSize,y+clsSize,z);
       glVertex3f(x+clsSize,y-clsSize,z);
-      
+
       glVertex3f(x-clsSize,y-clsSize,z);
       glVertex3f(x+clsSize,y+clsSize,z);
-      
+
     }
-    
+
   }
 
   // hits
@@ -198,21 +198,21 @@ void AliEveMUONChamberGL::DrawPoints() const
   if (hitSize > 1) {
 
     for (Int_t i = 0; i < fChamber->fPointSet2.GetN(); i++) {
-      
+
       fChamber->fPointSet2.GetPoint(i,x,y,z);
-      
+
       glVertex3f(x-hitSize,y,z);
       glVertex3f(x+hitSize,y,z);
-      
+
       glVertex3f(x,y-hitSize,z);
       glVertex3f(x,y+hitSize,z);
-      
+
     }
-    
+
   }
 
   glEnd();
-    
+
 }
 
 //______________________________________________________________________
@@ -220,7 +220,7 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
 {
   //
   // draw the chamber frame as GL_LINE_LOOP
-  // 
+  //
 
   AliEveMUONChamberData* chamberData = fChamber->GetChamberData();
   Int_t nDetElem = chamberData->GetNDetElem();
@@ -234,7 +234,7 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
   pix[3] = 255;
 
   glColor4ubv(pix);
-  
+
   for (Int_t id = 0; id < nDetElem; id++) {
 
     frameCoord = chamberData->GetFrameCoord(id);
@@ -246,14 +246,14 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
       xRad  = frameCoord[2];
       yRad  = frameCoord[3];
       z     = frameCoord[4];
-      
+
       xRad += 0.0;
       yRad += 0.0;
 
       glBegin(GL_LINE_LOOP);
 
       glVertex3f(xOrig,yOrig,z);
-      
+
       Int_t nstep = 100;
       Float_t dstep = TMath::Pi()/2.0 / (Float_t)nstep;
       Float_t d;
@@ -266,7 +266,7 @@ void AliEveMUONChamberGL::DrawChamberFrame() const
        glVertex3f(x,y,z);
 
       }
-      
+
       glVertex3f(xOrig,yOrig,z);
 
       glEnd();
index 689844ad4a4b5218a4b728feabbf9fd84041175c..93a9c5ca952414648c17a590be5c20b8a54b319a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONChamberGL_H
 #define ALIEVE_MUONChamberGL_H
index 97da557205ebb2bc999de41e041c57ae7a80395d..6568debd3471dac19433384a661f5ade5ef1bb77 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 //
 // Sources:
@@ -57,7 +57,7 @@ AliEveMUONData::AliEveMUONData() :
   //
   // Constructor
   //
-  
+
   for (Int_t i = 0; i < 256; i++) {
     fTrackList[i] = -1;
   }
@@ -124,7 +124,7 @@ AliEveMUONData& AliEveMUONData::operator=(const AliEveMUONData &mdata)
 //______________________________________________________________________
 void AliEveMUONData::CreateChamber(Int_t chamber)
 {
-  // 
+  //
   // create data for the chamber with id=chamber (0 to 13)
   //
 
@@ -148,8 +148,8 @@ void AliEveMUONData::CreateAllChambers()
 //______________________________________________________________________
 void AliEveMUONData::DropAllChambers()
 {
-  // 
-  // release data from all chambers 
+  //
+  // release data from all chambers
   //
 
   for (Int_t c = 0; c < 14; ++c) {
@@ -214,9 +214,9 @@ void AliEveMUONData::LoadRecPoints(TTree* tree)
   AliMUONVClusterStore *clusterStore = AliMUONVClusterStore::Create(*tree);
   clusterStore->Clear();
   clusterStore->Connect(*tree,kFALSE);
-  
+
   tree->GetEvent(0);
-  
+
   AliMUONVCluster *cluster;
   Int_t detElemId;
   Double_t clsX, clsY, clsZ, charge;
@@ -224,13 +224,13 @@ void AliEveMUONData::LoadRecPoints(TTree* tree)
   for (Int_t ch = 0; ch < 10; ++ch) {
 
     if (fChambers[ch] == 0) continue;
-    
+
     TIter next(clusterStore->CreateChamberIterator(ch,ch));
-    
+
     while ( ( cluster = static_cast<AliMUONVCluster*>(next()) ) ) {
 
       detElemId = cluster->GetDetElemId();
-      
+
       clsX   = cluster->GetX();
       clsY   = cluster->GetY();
       clsZ   = cluster->GetZ();
@@ -244,7 +244,7 @@ void AliEveMUONData::LoadRecPoints(TTree* tree)
   }
 
   delete clusterStore;
-  
+
 }
 
 //______________________________________________________________________
@@ -288,7 +288,7 @@ void AliEveMUONData::LoadHits(TTree* tree)
 //______________________________________________________________________
 void AliEveMUONData::LoadDigits(TTree* tree)
 {
-  // 
+  //
   // load digits from the TreeD
   //
 
@@ -300,15 +300,15 @@ void AliEveMUONData::LoadDigits(TTree* tree)
 
   AliMUONVDigit* digit;
   TIter next(digitStore->CreateIterator());
-  
+
   Int_t cathode, detElemId, ix, iy, charge, chamber, adc;
-  
+
   while ( ( digit = static_cast<AliMUONVDigit*>(next() ) ) )
     {
       cathode   = digit->Cathode();
       ix        = digit->PadX();
       iy        = digit->PadY();
-      detElemId = digit->DetElemId();      
+      detElemId = digit->DetElemId();
       charge    = (Int_t)digit->Charge();
       adc       = digit->ADC();
       chamber   = detElemId/100 - 1;
@@ -318,7 +318,7 @@ void AliEveMUONData::LoadDigits(TTree* tree)
        fChambers[chamber]->RegisterDigit(detElemId,cathode,ix,iy,adc);
       }
     }
-    
+
   delete digitStore;
 
 }
@@ -340,14 +340,14 @@ void AliEveMUONData::LoadRaw(TString fileName)
       fgRawReader = new AliRawReaderDate(fileName); // DATE file
     }
   }
-  
+
   fgRawReader->RewindEvents();
   fgRawReader->Reset();
 
   Int_t iEvent = 0;
-  while (fgRawReader->NextEvent()) 
+  while (fgRawReader->NextEvent())
   {
-    if (iEvent != gEvent->GetEventId()) 
+    if (iEvent != gEvent->GetEventId())
     {
       iEvent++;
       continue;
@@ -360,20 +360,20 @@ void AliEveMUONData::LoadRaw(TString fileName)
   digitMaker.SetMakeTriggerDigits(kTRUE);
 
   AliMUONDigitStoreV1 digitStore;
-  
+
   digitMaker.Raw2Digits(fgRawReader,&digitStore);
 
   AliMUONVDigit* digit;
   TIter next(digitStore.CreateIterator());
-  
+
   Int_t cathode, detElemId, ix, iy, charge, chamber, adc;
-  
+
   while ( ( digit = static_cast<AliMUONVDigit*>(next() ) ) )
   {
       cathode   = digit->Cathode();
       ix        = digit->PadX();
       iy        = digit->PadY();
-      detElemId = digit->DetElemId();      
+      detElemId = digit->DetElemId();
       charge    = (Int_t)digit->Charge();
       adc       = digit->ADC();
       chamber   = detElemId/100 - 1;
index 7afeae4a33a15d83f2199260372546832df34847..73c9cb872b8c88265ce034aac2acdcac5d448ec0 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONData_H
 #define ALIEVE_MUONData_H
index e5331ee63dcf2874c0a1b1c811cbcf0943fe1041..4b4cfe31fb7b5821f062c56c5a8f0fa47cacf5ea 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveMUONTrack.h"
 
@@ -94,37 +94,37 @@ void AliEveMUONTrack::PrintMCTrackInfo()
   cout << "   MC track parameters at vertex" << endl;
   cout << "   -------------------------------------------------------------------------------------" << endl;
   cout << "   PDG code          Vx           Vy           Vz           Px           Py           Pz   " << endl;
-    
+
   cout << "   " <<
-    setw(8) << setprecision(0) << 
-    fPart->GetPdgCode() << "    " << 
-    setw(8) << setprecision(3) << 
-    fPart->Vx() << "     " << 
-    setw(8) << setprecision(3) << 
-    fPart->Vy() << "     " << 
-    setw(8) << setprecision(3) << 
-    fPart->Vz() << "     " << 
-    setw(8) << setprecision(3) << 
-    fPart->Px() << "     " << 
-    setw(8) << setprecision(3) << 
-    fPart->Py() << "     " << 
-    setw(8) << setprecision(4) << 
-    fPart->Pz() << "     " << 
-    
+    setw(8) << setprecision(0) <<
+    fPart->GetPdgCode() << "    " <<
+    setw(8) << setprecision(3) <<
+    fPart->Vx() << "     " <<
+    setw(8) << setprecision(3) <<
+    fPart->Vy() << "     " <<
+    setw(8) << setprecision(3) <<
+    fPart->Vz() << "     " <<
+    setw(8) << setprecision(3) <<
+    fPart->Px() << "     " <<
+    setw(8) << setprecision(3) <<
+    fPart->Py() << "     " <<
+    setw(8) << setprecision(4) <<
+    fPart->Pz() << "     " <<
+
     endl;
-  
+
   pt = TMath::Sqrt(fPart->Px()*fPart->Px()+fPart->Py()*fPart->Py());
   p  = TMath::Sqrt(fPart->Px()*fPart->Px()+fPart->Py()*fPart->Py()+fPart->Pz()*fPart->Pz());
-  
+
   cout << endl;
-  cout << "   Pt = " << 
+  cout << "   Pt = " <<
     setw(8) << setprecision(3) <<
     pt << "  GeV/c" << endl;
-  
-  cout << "   P  = " << 
+
+  cout << "   P  = " <<
     setw(8) << setprecision(4) <<
     p  << "  GeV/c" << endl;
-    
+
 }
 
 //______________________________________________________________________
@@ -166,7 +166,7 @@ void AliEveMUONTrack::PrintMUONTrackInfo()
     cout << endl;
     cout << "   Number of clusters       " << fTrack->GetNClusters() << endl;
   }
+
   trackParamAtCluster = fTrack->GetTrackParamAtCluster();
   nparam = trackParamAtCluster->GetEntries();
 
@@ -179,39 +179,39 @@ void AliEveMUONTrack::PrintMUONTrackInfo()
 
     mtp = (AliMUONTrackParam*)trackParamAtCluster->At(i);
 
-    cout << 
-      setw(9)<< setprecision(3) << 
-      i << "     " << 
+    cout <<
+      setw(9)<< setprecision(3) <<
+      i << "     " <<
 
-      setw(8) << setprecision(3) << 
-      mtp->GetInverseBendingMomentum() << "    " << 
+      setw(8) << setprecision(3) <<
+      mtp->GetInverseBendingMomentum() << "    " <<
 
       setw(8) << setprecision(3) <<
-      mtp->GetBendingSlope()*RADDEG << "       " << 
+      mtp->GetBendingSlope()*RADDEG << "       " <<
 
       setw(8) << setprecision(3) <<
-      mtp->GetNonBendingSlope()*RADDEG << "    " << 
+      mtp->GetNonBendingSlope()*RADDEG << "    " <<
 
       setw(8) << setprecision(4) <<
-      mtp->GetBendingCoor() << "       " <<  
+      mtp->GetBendingCoor() << "       " <<
 
       setw(8) << setprecision(4) <<
-      mtp->GetNonBendingCoor() << "      " <<  
+      mtp->GetNonBendingCoor() << "      " <<
 
       setw(10) << setprecision(6) <<
-      mtp->GetZ() << "  " <<  
+      mtp->GetZ() << "  " <<
 
       setw(8) << setprecision(4) <<
-      mtp->Px() << "  " <<  
+      mtp->Px() << "  " <<
 
       setw(8) << setprecision(4) <<
-      mtp->Py() << "  " <<  
+      mtp->Py() << "  " <<
 
       setw(8) << setprecision(4) <<
-      mtp->Pz() << "  " <<  
+      mtp->Pz() << "  " <<
 
       setw(8) << setprecision(4) <<
-      mtp->P() << "  " <<  
+      mtp->P() << "  " <<
 
       endl;
 
@@ -232,42 +232,42 @@ void AliEveMUONTrack::PrintMUONTrackInfo()
   if (zc  < 0.001) zc  = 0.0;
 
   cout << "     " <<
-    setw(8) << setprecision(3) << 
-    mtp->GetInverseBendingMomentum() << "    " << 
-    
     setw(8) << setprecision(3) <<
-    mtp->GetBendingSlope()*RADDEG << "       " << 
-    
+    mtp->GetInverseBendingMomentum() << "    " <<
+
+    setw(8) << setprecision(3) <<
+    mtp->GetBendingSlope()*RADDEG << "       " <<
+
     setw(8) << setprecision(3) <<
-    mtp->GetNonBendingSlope()*RADDEG << "    " << 
-    
+    mtp->GetNonBendingSlope()*RADDEG << "    " <<
+
     setw(8) << setprecision(4) <<
-    bc << "       " <<  
-    
+    bc << "       " <<
+
     setw(8) << setprecision(4) <<
-    nbc << "  " <<  
-    
+    nbc << "  " <<
+
     setw(10) << setprecision(6) <<
-    zc << "  " <<  
-    
+    zc << "  " <<
+
     setw(8) << setprecision(4) <<
-    mtp->Px() << "  " <<  
-    
+    mtp->Px() << "  " <<
+
     setw(8) << setprecision(4) <<
-    mtp->Py() << "  " <<  
-    
+    mtp->Py() << "  " <<
+
     setw(8) << setprecision(4) <<
-    mtp->Pz() << "  " <<  
-    
+    mtp->Pz() << "  " <<
+
     setw(8) << setprecision(4) <<
-    mtp->P() << "  " <<  
-    
+    mtp->P() << "  " <<
+
     endl;
-  
+
   pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
 
   cout << endl;
-  cout << "   Pt = " << 
+  cout << "   Pt = " <<
     setw(8) << setprecision(3) <<
     pt << "  GeV/c" << endl;
 
@@ -300,51 +300,51 @@ void AliEveMUONTrack::PrintESDTrackInfo()
   cout << "   ESD muon track " << endl;
   cout << "   -----------------------------------------------------------------------------------------------------------" << endl;
   cout << "   InvBendMom   BendSlope   NonBendSlope    BendCoord   NonBendCoord           Z        Px        Py        Pz" << endl;
-  
-  cout << "     " << 
-    
-    setw(8) << setprecision(4) << 
-    mtp->GetInverseBendingMomentum() << "    " << 
-    
+
+  cout << "     " <<
+
+    setw(8) << setprecision(4) <<
+    mtp->GetInverseBendingMomentum() << "    " <<
+
     setw(8) << setprecision(3) <<
-    mtp->GetBendingSlope()*RADDEG << "       " << 
-    
+    mtp->GetBendingSlope()*RADDEG << "       " <<
+
     setw(8) << setprecision(3) <<
-    mtp->GetNonBendingSlope()*RADDEG << "     " << 
-    
+    mtp->GetNonBendingSlope()*RADDEG << "     " <<
+
     setw(8) << setprecision(4) <<
-    mtp->GetBendingCoor() << "       " <<  
-    
+    mtp->GetBendingCoor() << "       " <<
+
     setw(8) << setprecision(4) <<
-    mtp->GetNonBendingCoor() << "  " <<  
-    
+    mtp->GetNonBendingCoor() << "  " <<
+
     setw(10) << setprecision(6) <<
-    mtp->GetZ() << "  " <<  
-    
+    mtp->GetZ() << "  " <<
+
     setw(8) << setprecision(3) <<
-    mtp->Px() << "  " <<  
-    
+    mtp->Px() << "  " <<
+
     setw(8) << setprecision(3) <<
-    mtp->Py() << "  " <<  
-    
+    mtp->Py() << "  " <<
+
     setw(8) << setprecision(3) <<
-    mtp->Pz() << "  " <<  
-    
+    mtp->Pz() << "  " <<
+
     endl;
-  
+
   pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
-  
+
   cout << endl;
-  cout << "   Pt = " << 
+  cout << "   Pt = " <<
     setw(8) << setprecision(3) <<
     pt << "  GeV/c" << endl;
-  
-  cout << "   P  = " << 
+
+  cout << "   P  = " <<
     setw(8) << setprecision(4) <<
     mtp->P()  << "  GeV/c" << endl;
-  
+
   AliESDEvent* esd = AliEveEventManager::AssertESD();
-  
+
   Double_t spdVertexX = 0;
   Double_t spdVertexY = 0;
   Double_t spdVertexZ = 0;
@@ -358,36 +358,36 @@ void AliEveMUONTrack::PrintESDTrackInfo()
     spdVertexY = spdVertex->GetYv();
     spdVertexX = spdVertex->GetXv();
   }
-  
+
   AliESDVertex* esdVertex = (AliESDVertex*) esd->GetPrimaryVertex();
   if (esdVertex->GetNContributors()) {
     esdVertexZ = esdVertex->GetZv();
     esdVertexY = esdVertex->GetYv();
     esdVertexX = esdVertex->GetXv();
   }
-  
+
   Float_t t0v = esd->GetT0zVertex();
-  
+
   cout << endl;
   cout << endl;
-  cout << "External vertex SPD: " << 
+  cout << "External vertex SPD: " <<
     setw(3) <<
     spdVertex->GetNContributors() << "   " <<
     setw(8) << setprecision(3) <<
     spdVertexX << "   " <<
     spdVertexY << "   " <<
     spdVertexZ << "   " << endl;
-  cout << "External vertex ESD: " << 
+  cout << "External vertex ESD: " <<
     setw(3) <<
     esdVertex->GetNContributors() << "   " <<
     setw(8) << setprecision(3) <<
     esdVertexX << "   " <<
     esdVertexY << "   " <<
     esdVertexZ << "   " << endl;
-  cout << "External vertex T0: " << 
+  cout << "External vertex T0: " <<
     setw(8) << setprecision(3) <<
     t0v << "   " << endl;
-  
+
 }
 
 //______________________________________________________________________
@@ -400,11 +400,11 @@ void AliEveMUONTrack::MUONTrackInfo()
   if (fIsMCTrack) {
     PrintMCTrackInfo();
   }
-    
+
   if (fIsMUONTrack || fIsRefTrack) {
     PrintMUONTrackInfo();
   }
-    
+
   if (fIsESDTrack) {
     PrintESDTrackInfo();
   }
@@ -412,7 +412,7 @@ void AliEveMUONTrack::MUONTrackInfo()
   if (fIsMUONTriggerTrack) {
     PrintMUONTriggerTrackInfo();
   }
-    
+
   cout << endl;
   cout << endl;
   cout << endl;
@@ -457,7 +457,7 @@ void AliEveMUONTrack::MUONTriggerInfo()
     cout << endl;
     cout << "#########################################################################################################################<<<<<" << endl;
     cout << endl;
-    
+
   }
 
 }
@@ -483,7 +483,7 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
   Float_t xr[28], yr[28], zr[28];
   Float_t xrc[28], yrc[28], zrc[28];
   char form[1000];
-    
+
   TMatrixD smatrix(2,2);
   TMatrixD sums(2,1);
   TMatrixD res(2,1);
@@ -491,7 +491,7 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
   Float_t xRec, xRec0;
   Float_t yRec, yRec0;
   Float_t zRec, zRec0;
-  
+
   // middle z between the two detector planes of the trigger chambers
   Float_t zg[4] = { -1603.5, -1620.5, -1703.5, -1720.5 };
 
@@ -507,29 +507,29 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
     SetName(form);
     SetLineStyle(1);
   }
-  
-  AliMUONTrackParam *trackParam = mtrack->GetTrackParamAtVertex(); 
+
+  AliMUONTrackParam *trackParam = mtrack->GetTrackParamAtVertex();
   xRec0  = trackParam->GetNonBendingCoor();
   yRec0  = trackParam->GetBendingCoor();
   zRec0  = trackParam->GetZ();
-  
+
   if (fIsMUONTrack) {
     SetPoint(fCount,xRec0,yRec0,zRec0);
     fCount++;
   }
 
   for (Int_t i = 0; i < 28; i++) xr[i]=yr[i]=zr[i]=0.0;
-  
+
   Int_t nTrackHits = mtrack->GetNClusters();
-  
+
   Bool_t hitChamber[14] = {kFALSE};
   Int_t iCha;
   TClonesArray* trackParamAtCluster = mtrack->GetTrackParamAtCluster();
 
   for (Int_t iHit = 0; iHit < nTrackHits; iHit++){
 
-    trackParam = (AliMUONTrackParam*) trackParamAtCluster->At(iHit); 
-    
+    trackParam = (AliMUONTrackParam*) trackParamAtCluster->At(iHit);
+
     if (iHit == 0) {
       if (IsMUONTrack()) {
        pt = TMath::Sqrt(trackParam->Px()*trackParam->Px()+trackParam->Py()*trackParam->Py());
@@ -544,9 +544,9 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
     xRec  = trackParam->GetNonBendingCoor();
     yRec  = trackParam->GetBendingCoor();
     zRec  = trackParam->GetZ();
-    
+
     iCha = AliMUONConstants::ChamberNumber(zRec);
-    
+
     xr[iHit] = xRec;
     yr[iHit] = yRec;
     zr[iHit] = zRec;
@@ -671,12 +671,12 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
       fCount++;
     }
   }
-  
+
   if (!fIsMUONTrack) return;
 
   Int_t nrc = 0;
   if (mtrack->GetMatchTrigger() && 1) {
-    
+
     for (Int_t i = 0; i < nTrackHits; i++) {
       if (TMath::Abs(zr[i]) > 1000.0) {
        //printf("TEveHit %d x %f y %f z %f \n",iHit,xr[i],yr[i],zr[i]);
@@ -686,9 +686,9 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
        nrc++;
       }
     }
-    
+
     if (nrc < 2) return;
-    
+
     // fit x-z
     smatrix.Zero();
     sums.Zero();
@@ -706,7 +706,7 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
     res = smatrix.Invert() * sums;
     ax = res(0,0);
     bx = res(1,0);
-    
+
     // fit y-z
     smatrix.Zero();
     sums.Zero();
@@ -724,21 +724,21 @@ void AliEveMUONTrack::MakeMUONTrack(AliMUONTrack *mtrack)
     res = smatrix.Invert() * sums;
     ay = res(0,0);
     by = res(1,0);
-    
+
     Float_t xtc, ytc, ztc;
     for (Int_t ii = 0; ii < 4; ii++) {
-      
+
       ztc = zg[ii];
       ytc = ay+by*zg[ii];
       xtc = ax+bx*zg[ii];
-      
+
       //printf("tc: x %f y %f z %f \n",xtc,ytc,ztc);
-      
+
       SetPoint(fCount,xtc,ytc,ztc);
       fCount++;
-      
+
     }
-    
+
   }  // end match trigger
 
 }
@@ -803,7 +803,7 @@ void AliEveMUONTrack::MakeESDTrack(AliESDMuonTrack *mtrack)
   pv[1] = trackParam.Py();
   pv[2] = trackParam.Pz();
   fP.Set(pv);
-  
+
   vect[0] = trackParam.GetNonBendingCoor();
   vect[1] = trackParam.GetBendingCoor();
   vect[2] = trackParam.GetZ();
@@ -868,7 +868,7 @@ void AliEveMUONTrack::MakeMCTrack(TParticle *part)
 
   TParticlePDG *ppdg = fPart->GetPDG(1);
   Int_t charge = (Int_t)(ppdg->Charge()/3.0);
-  
+
   Double_t zMax = -1750.0;
   Double_t rMax =   350.0;
   Double_t r    =     0.0;
@@ -929,15 +929,15 @@ void AliEveMUONTrack::Propagate(Float_t *xr, Float_t *yr, Float_t *zr, Int_t i1,
   trackParamAtCluster = fTrack->GetTrackParamAtCluster();
 
   if (IsMUONTrack()) {
-    trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1); 
+    trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1);
     charge = (Int_t)TMath::Sign(1.0,trackParam->GetInverseBendingMomentum());
   }
   if (IsRefTrack()) {
     trackParam = fTrack->GetTrackParamAtVertex();
     charge = (Int_t)TMath::Sign(1.0,trackParam->GetInverseBendingMomentum());
-    trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1); 
+    trackParam = (AliMUONTrackParam*)trackParamAtCluster->At(i1);
   }
-  
+
   vect[0] = xr[i1];
   vect[1] = yr[i1];
   vect[2] = zr[i1];
@@ -956,13 +956,13 @@ void AliEveMUONTrack::Propagate(Float_t *xr, Float_t *yr, Float_t *zr, Int_t i1,
       vect[i] = vout[i];
     }
   }
-  
+
 }
 
 //______________________________________________________________________
 void AliEveMUONTrack::GetField(Double_t *position, Double_t *field)
 {
-  // 
+  //
   // returns field components at position, for a give field map
   //
 
@@ -979,7 +979,7 @@ void AliEveMUONTrack::GetField(Double_t *position, Double_t *field)
     field[0] = field[1] = field[2] = 0.0;
     return;
   }
-  
+
   // force components
   //b[1] = 0.0;
   //b[2] = 0.0;
@@ -991,7 +991,7 @@ void AliEveMUONTrack::GetField(Double_t *position, Double_t *field)
 }
 
 //______________________________________________________________________
-void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step, 
+void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
                                  Double_t* vect, Double_t* vout)
 {
 ///    ******************************************************************
@@ -1022,11 +1022,11 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     Double_t g1, g2, g3, g4, g5, g6, ang2, dxt, dyt, dzt;
     Double_t est, at, bt, ct, cba;
     Double_t f1, f2, f3, f4, rho, tet, hnorm, hp, rho1, sint, cost;
-    
+
     Double_t x;
     Double_t y;
     Double_t z;
-    
+
     Double_t xt;
     Double_t yt;
     Double_t zt;
@@ -1047,7 +1047,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     const Int_t kipx = 3;
     const Int_t kipy = 4;
     const Int_t kipz = 5;
-  
+
     // *.
     // *.    ------------------------------------------------------------------
     // *.
@@ -1063,7 +1063,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     Double_t h = step;
     Double_t rest;
 
+
     do {
       rest  = step - tl;
       if (TMath::Abs(h) > TMath::Abs(rest)) h = rest;
@@ -1107,7 +1107,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
        h *= khalf;
        continue;
       }
+
       xyzt[0] = xt;
       xyzt[1] = yt;
       xyzt[2] = zt;
@@ -1144,7 +1144,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
        h *= khalf;
        continue;
       }
+
       xyzt[0] = xt;
       xyzt[1] = yt;
       xyzt[2] = zt;
@@ -1178,7 +1178,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
       if (iter++ > maxit) break;
 
       tl += h;
-      if (est < kdlt32) 
+      if (est < kdlt32)
        h *= 2.;
       cba    = 1./ TMath::Sqrt(a*a + b*b + c*c);
       vout[0] = x;
@@ -1201,7 +1201,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     f4  = TMath::Sqrt(f1*f1+f2*f2+f3*f3);
     rho = -f4*pinv;
     tet = rho * step;
+
     hnorm = 1./f4;
     f1 = f1*hnorm;
     f2 = f2*hnorm;
@@ -1210,7 +1210,7 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     hxp[0] = f2*vect[kipz] - f3*vect[kipy];
     hxp[1] = f3*vect[kipx] - f1*vect[kipz];
     hxp[2] = f1*vect[kipy] - f2*vect[kipx];
+
     hp = f1*vect[kipx] + f2*vect[kipy] + f3*vect[kipz];
 
     rho1 = 1./rho;
@@ -1223,11 +1223,11 @@ void AliEveMUONTrack::OneStepRungekutta(Double_t charge, Double_t step,
     g4 = -cost;
     g5 = sint;
     g6 = cost * hp;
+
     vout[kix] = vect[kix] + g1*vect[kipx] + g2*hxp[0] + g3*f1;
     vout[kiy] = vect[kiy] + g1*vect[kipy] + g2*hxp[1] + g3*f2;
     vout[kiz] = vect[kiz] + g1*vect[kipz] + g2*hxp[2] + g3*f3;
+
     vout[kipx] = vect[kipx] + g4*vect[kipx] + g5*hxp[0] + g6*f1;
     vout[kipy] = vect[kipy] + g4*vect[kipy] + g5*hxp[1] + g6*f2;
     vout[kipz] = vect[kipz] + g4*vect[kipz] + g5*hxp[2] + g6*f3;
index c882d14064360a6f03eb50d5ca1c12938b4a76df..4d09a86303f854d273c0286ac8efcd7c6b4182e5 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_MUONTrack_H
 #define ALIEVE_MUONTrack_H
@@ -43,7 +43,7 @@ class AliEveMUONTrack: public TEveTrack
   void  MakeRefTrack(AliMUONTrack *mtrack);
   void  GetField(Double_t *position, Double_t *field);
   void  Propagate(Float_t *xr, Float_t *yr, Float_t *zr, Int_t i1, Int_t i2);
-  void  OneStepRungekutta(Double_t charge, Double_t step, 
+  void  OneStepRungekutta(Double_t charge, Double_t step,
                          Double_t* vect, Double_t* vout);
   Int_t ColorIndex(Float_t val);
 
index 0f7c8523bf57aab64ecb0b294490be4e10c4748d..b3ddaf7a32798434f06fbe1c3ebf9efeb98065f6 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEvePMDModule.h"
@@ -46,7 +46,7 @@ void AliEvePMDModule::DisplayInit(Int_t ism)
 {
   TString smodule = "Module";
   smodule+= ism;
-  
+
   Float_t xism =0, yism = 0;
   Float_t dxism =0, dyism = 0;
 
@@ -77,21 +77,21 @@ void AliEvePMDModule::DisplayDigitsData(Int_t ism, TTree *pmdt)
   Int_t xpad = 0, ypad = 0;
   Float_t xpos, ypos;
 
-  TClonesArray *digits = new TClonesArray("AliPMDdigit", 0); 
+  TClonesArray *digits = new TClonesArray("AliPMDdigit", 0);
 
   TBranch *branch = pmdt->GetBranch("PMDDigit");
   branch->SetAddress(&digits);
 
   AliPMDdigit  *pmddigit;
 
-  branch->GetEntry(ism); 
+  branch->GetEntry(ism);
   Int_t nentries = digits->GetLast();
   //printf("%d\n", nentries);
 
   for (Int_t ient = 0; ient < nentries+1; ient++)
     {
       pmddigit = (AliPMDdigit*)digits->UncheckedAt(ient);
-      
+
       det    = pmddigit->GetDetector();
       smn    = pmddigit->GetSMNumber();
       irow   = pmddigit->GetRow();
@@ -108,13 +108,13 @@ void AliEvePMDModule::DisplayDigitsData(Int_t ism, TTree *pmdt)
          xpad = irow;
          ypad = icol;
        }
-             
+
       RectGeomCellPos(smn, xpad, ypad, xpos, ypos);
 
       AddHexagon(xpos, ypos, fgkZpos, fgkRad);
-      
+
       QuadValue(adc);
-         
+
       QuadId(new AliPMDdigit(*pmddigit));
       // new TNamed(Form("Quad with idx=%d", ient),
       //  "This title is not confusing."));
@@ -161,7 +161,7 @@ void AliEvePMDModule::DisplayRawData(Int_t ism, TObjArray *ddlcont)
   for (Int_t ient = 0; ient < nentries; ient++)
     {
       AliPMDddldata *pmdddl = (AliPMDddldata*)ddlcont->UncheckedAt(ient);
-      
+
       det    = pmdddl->GetDetector();
       smn    = pmdddl->GetSMN();
       if (smn != ism) continue;
@@ -179,13 +179,13 @@ void AliEvePMDModule::DisplayRawData(Int_t ism, TObjArray *ddlcont)
          xpad = irow;
          ypad = icol;
        }
-             
+
       RectGeomCellPos(smn, xpad, ypad, xpos, ypos);
 
       AddHexagon(xpos, ypos, fgkZpos, fgkRad);
-      
+
       QuadValue(adc);
-         
+
       QuadId(new AliPMDddldata(*pmdddl));
       //new TNamed(Form("Quad with idx=%d", ient),
       //  "This title is not confusing."));
@@ -210,7 +210,7 @@ void AliEvePMDModule::DisplayRawData(Int_t ism, TObjArray *ddlcont)
   RefitPlex();
 
   fHMTrans.SetPos(fX, fY, fZ);
-  
+
 }
 
 // -------------------------------------------------------------------- //
@@ -218,7 +218,7 @@ void AliEvePMDModule::DisplayRawData(Int_t ism, TObjArray *ddlcont)
 void AliEvePMDModule::RectGeomCellPos(Int_t ism, Int_t xpad, Int_t ypad,
                                Float_t &xpos, Float_t &ypos)
 {
-  // This routine finds the cell eta,phi for the new PMD rectangular 
+  // This routine finds the cell eta,phi for the new PMD rectangular
   // geometry in ALICE
   // Authors : Bedanga Mohanty and Dipak Mishra - 29.4.2003
   // modified by B. K. Nandi for change of coordinate sys
@@ -230,7 +230,7 @@ void AliEvePMDModule::RectGeomCellPos(Int_t ism, Int_t xpad, Int_t ypad,
   //
   // ism   : Serial module number from 0 to 23 for each plane
 
+
   // Corner positions (x,y) of the 24 unit moudles in ALICE PMD
 
   const Double_t kXcorner[24] =
@@ -247,7 +247,7 @@ void AliEvePMDModule::RectGeomCellPos(Int_t ism, Int_t xpad, Int_t ypad,
       -8.9165, 33.7471,            //Type-BR
     };
 
-  
+
   const Double_t kYcorner[24] =
     {
       86.225,  86.225,  86.225,      //Type-A
@@ -262,10 +262,10 @@ void AliEvePMDModule::RectGeomCellPos(Int_t ism, Int_t xpad, Int_t ypad,
       -35.925, -35.925               //Type-BR
     };
 
-  
+
   //  const Float_t kSqroot3      = 1.732050808;  // sqrt(3.);
   //  const Float_t kCellRadius   = 0.25;
-  
+
   //
   //Every even row of cells is shifted and placed
   //in geant so this condition
@@ -325,7 +325,7 @@ void AliEvePMDModule::GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
       -8.9165, 33.7471,            //Type-BR
     };
 
-  
+
   const Double_t kYcorner[24] =
     {
       86.225,  86.225,  86.225,      //Type-A
@@ -372,7 +372,7 @@ void AliEvePMDModule::GenerateBox(Int_t ism, Float_t &xism, Float_t &yism,
       dxism = fgkRad*fgkSqRoot3*96.;
       dyism = kDia*48. + fgkRad;
   }
-  
+
 }
 
 // -------------------------------------------------------------------- //
index 06ce2bac9cc0024c3101b89595475baf6fe6536a..331761e317c272d107f3f54ed7f13850aae7011f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_PMDModule_H
index 6336b51003da75cbdff62e95f0d4aeb8e68d597c..6ac1ed78f8d1380cfa9a9a051d401b4d9d623cea 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEvePMDModuleEditor.h"
@@ -57,13 +57,13 @@ void AliEvePMDModuleEditor::CreateInfoFrame()
 {
   fInfoFrame = CreateEditorTabSubFrame("Info");
 
-  TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10, 
-                                                 kHorizontalFrame | 
-                                                 kLHintsExpandX   | 
-                                                 kFixedWidth      | 
+  TGCompositeFrame *title1 = new TGCompositeFrame(fInfoFrame, 145, 10,
+                                                 kHorizontalFrame |
+                                                 kLHintsExpandX   |
+                                                 kFixedWidth      |
                                                  kOwnBackground);
 
-  title1->AddFrame(new TGLabel(title1, "AliEvePMDModule Info"), 
+  title1->AddFrame(new TGLabel(title1, "AliEvePMDModule Info"),
                   new TGLayoutHints(kLHintsLeft, 1, 1, 0, 0));
   title1->AddFrame(new TGHorizontal3DLine(title1),
                   new TGLayoutHints(kLHintsExpandX, 5, 5, 7, 7));
index 6c4ae432013099847edf3f4199f7df98ec934c2c..8cbdb4303169e5ca2f99b74ed9629459465003ec 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_PMDModuleEditor_H
index 0d07551e3d3a4cc7bbda8b2c59a8d7a88e9db538..a5b6b0bc98ca71ecb8a5ec98baa239203e346d97 100644 (file)
@@ -4,14 +4,14 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 //////////////////////////////////////////////////////////////////////////
 //                                                                      //
 // The main AliEVE drawing module for the T0 detector                   //
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
+
 #include "AliEveEventManager.h"
 #include "AliEveT0Module.h"
 #include <TStyle.h>
@@ -26,7 +26,7 @@
 #include <AliRawReaderRoot.h>
 #include "AliT0RawReader.h"
 #include <AliCDBManager.h>
-#include <AliCDBStorage.h> 
+#include <AliCDBStorage.h>
 
 
 
@@ -39,7 +39,7 @@ AliEveT0Module::AliEveT0Module(const Text_t* n, Int_t sigType, AliT0digit *digit
   //
   // Default constructor
   //
+
 }
 
 /**************************************************************************/
@@ -56,7 +56,7 @@ void AliEveT0Module::LoadRaw(TString fileName, Int_t ievt)
   reader->RequireHeader(kTRUE);
   AliT0RawReader *start = new AliT0RawReader(reader);
   Int_t allData[110][5];
-  TRandom r(0); 
+  TRandom r(0);
   //  cout<<ievt<<endl;
   TEveRGBAPalette* rawPalette  = new TEveRGBAPalette(0, 3000);
   rawPalette->SetLimits(1, 3000); // Set proper raw time range.
@@ -64,11 +64,11 @@ void AliEveT0Module::LoadRaw(TString fileName, Int_t ievt)
   raw_a->Reset(TEveQuadSet::kQT_HexagonXY, kFALSE, 32);
   TEveQuadSet* raw_c = new AliEveT0Module("T0_RAW_C", 3,digits, start); raw_c->SetPalette(rawPalette);
   raw_c->Reset(TEveQuadSet::kQT_HexagonXY, kFALSE, 32);
-  Float_t angle  = 2 * TMath::Pi() / 12; 
+  Float_t angle  = 2 * TMath::Pi() / 12;
   start->Next();
   for (Int_t i=0; i<110; i++)
   {
-    for (Int_t iHit=0; iHit<5; iHit++) 
+    for (Int_t iHit=0; iHit<5; iHit++)
     {
       allData[i][iHit]= start->GetData(i,iHit);
       if (allData[i][iHit] != 0)  cout<<"event"<<ievt<<" i "<< i<<" "<<allData[i][iHit] - allData[0][0]<<endl;
@@ -87,7 +87,7 @@ void AliEveT0Module::LoadRaw(TString fileName, Int_t ievt)
 
   raw_a->RefitPlex();
   raw_c->RefitPlex();
-  
+
   TEveTrans& ta_a = raw_a->RefHMTrans();
   ta_a.SetPos(0, 0, 373);
   TEveTrans& tc_c = raw_c->RefHMTrans();
@@ -101,10 +101,10 @@ void AliEveT0Module::LoadRaw(TString fileName, Int_t ievt)
 /**************************************************************************/
 void AliEveT0Module::MakeModules(AliT0digit *digits)
 {
-  TRandom r(0); 
+  TRandom r(0);
   TArrayI ADC(24);
   TArrayI TDC(24);
-  
+
   digits->GetQT1(ADC);
   digits->GetTimeCFD(TDC);
   //    printf("%3d\n",besttimeright);
@@ -142,7 +142,7 @@ void AliEveT0Module::MakeModules(AliT0digit *digits)
     qat->AddHexagon(x, y, r.Uniform(-0.1, 0.1), 1.0);
     qat->QuadValue(TDC[i+12]);
     //    qat->QuadId(new TNamed(Form("Quad with idx=%d", i), "PMT's time in side A."));
+
     qc->AddHexagon(x, y, r.Uniform(-0.1, 0.1), 1.0);
     qc->QuadValue(ADC[i]);
     // qc->QuadId(new TNamed(Form("Quad with idx=%d", i), "PMT's amplitude in side C."));
@@ -161,12 +161,12 @@ void AliEveT0Module::MakeModules(AliT0digit *digits)
   ta.SetPos(0, 0, 373);
   TEveTrans& tc = qc->RefHMTrans();
   tc.SetPos(0, 0, -69.7);
+
   TEveTrans& tat = qat->RefHMTrans();
   tat.SetPos(0, 0, 373);
   TEveTrans& tct = qct->RefHMTrans();
   tct.SetPos(0, 0, -69.7);
+
   gEve->AddElement(qa);
   gEve->AddElement(qc);
   gEve->AddElement(qat);
@@ -198,10 +198,10 @@ void AliEveT0Module::DigitSelected(Int_t idx)
 
     printf("  idx=%d, amplitude=%d\n",  idx, qb->fValue);
 
-  } 
+  }
   if (fSigType == 1) {
     printf("tdc====================\n");
+
     Int_t   besttimeright = fDigits->BestTimeA();
     Int_t   besttimeleft = fDigits->BestTimeC();
     Int_t   meantime = fDigits->MeanTime();
@@ -222,7 +222,7 @@ void AliEveT0Module::DigitSelected(Int_t idx)
     printf("besttimeC=%3d\n",fStart->GetData(52,0)-fStart->GetData(0,0));
     printf("meantime=%3d\n",fStart->GetData(49,0)-fStart->GetData(0,0));
     printf("amplitude= %3d\n",fStart->GetData(idx+1,0));
-  
+
     printf("  idx=%d, time %d\n",  idx, qb->fValue);
   }
   if (fSigType == 3) {
@@ -231,7 +231,7 @@ void AliEveT0Module::DigitSelected(Int_t idx)
     printf("besttimeC=%3d\n",fStart->GetData(52,0)-fStart->GetData(0,0));
     printf("meantime=%3d\n",fStart->GetData(49,0)-fStart->GetData(0,0));
     printf("amplitude= %3d\n",fStart->GetData(idx+13,0));
-   
+
     printf("  idx=%d, time %d\n",  idx, qb->fValue);
   }
 
index 998dcb3d87e73711691ced06b21b4e97a6c958db..347a376c5c29aa99f03061f91d8287cc22cdfbf1 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_T0Module_H
 #define ALIEVE_T0Module_H
 #include <AliT0digit.h>
 #include <AliT0RawReader.h>
 
+
 class AliEveT0Module : public TEveQuadSet
 {
+
   AliEveT0Module(const AliEveT0Module&);
   AliEveT0Module& operator=(const AliEveT0Module&);
 
 public:
+
   AliEveT0Module(const Text_t* n="AliEveT0Module", Int_t sigType=0, AliT0digit *digits=0,AliT0RawReader *start=0);
   virtual ~AliEveT0Module();
 
@@ -43,7 +43,7 @@ protected:
   AliT0digit     *fDigits;
   AliT0RawReader *fStart;
 
-   ClassDef(AliEveT0Module,1); 
+   ClassDef(AliEveT0Module,1);
 };
 
 /*
index 3ffecc478f2cad63511f1edac710575b5354c95d..e71f0cbfa3cba595cceead62c82c94f3dec03dc9 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 //
 // AliEveTOFDigitsInfo
@@ -23,7 +23,7 @@ using namespace std;
 
 ClassImp(AliEveTOFDigitsInfo)
 
-  AliEveTOFDigitsInfo::AliEveTOFDigitsInfo(): 
+  AliEveTOFDigitsInfo::AliEveTOFDigitsInfo():
     TObject(),
     TEveRefCnt(),
     fTree (0),
@@ -33,7 +33,7 @@ ClassImp(AliEveTOFDigitsInfo)
 {}
 /* ******************************************************* */
 
-AliEveTOFDigitsInfo:: ~AliEveTOFDigitsInfo() 
+AliEveTOFDigitsInfo:: ~AliEveTOFDigitsInfo()
 {
 
   delete fGeom;
@@ -47,11 +47,11 @@ AliEveTOFDigitsInfo:: ~AliEveTOFDigitsInfo()
 void AliEveTOFDigitsInfo::SetTree(TTree* tree)
 {
   static const TEveException eH("AliEveTOFDigitsInfo::SetTree ");
-  
+
   if(fGeom == 0) {
     fGeom = new AliTOFGeometry();
   }
-  
+
   fTree = tree;
   /*
   DecRefCount();
@@ -74,7 +74,7 @@ void AliEveTOFDigitsInfo::LoadDigits()
   for (Int_t digitNumber=0; digitNumber<digitsTOF->GetEntries(); digitNumber++) {
 
     //if (digitNumber==digitsTOF->GetEntries()-1) printf(" Hello  4 -> %3i digit of %i \n", digitNumber+1, digitsTOF->GetEntries());
-  
+
     digs = (AliTOFdigit*)digitsTOF->UncheckedAt(digitNumber);
 
     vol[0] = digs->GetSector(); // Sector Number (0-17)
@@ -186,15 +186,15 @@ TClonesArray* AliEveTOFDigitsInfo::GetDigits(Int_t nSector)
 
   //Int_t nSector = 1;
   Int_t vol[5] = {nSector,-1,-1,-1,-1};
+
   for(Int_t iPlate=0; iPlate<fGeom->NPlates(); iPlate++){
     vol[1] = iPlate;
     if(iPlate==2) nStrips=15;
     else nStrips=19;
-      
+
     for(Int_t iStrip=0; iStrip<nStrips; iStrip++){
       vol[2] = iStrip;
-       
+
       for(Int_t iPadZ=0; iPadZ<fGeom->NpadZ(); iPadZ++){
        vol[4] = iPadZ;
 
@@ -222,7 +222,7 @@ TClonesArray* AliEveTOFDigitsInfo::GetDigits(Int_t nSector)
          for (Int_t ii=0; ii<4; ii++) informations[ii]=-1;
          for (Int_t ii=0; ii<3; ii++) dummy[ii]=-1;
          for (Int_t ii=0; ii<3; ii++) nDigitsInVolume[ii]=-1;
-           
+
        }
       }
     }
index 2d32be59cd29df30d3ef5a83047c557d245b02f1..71689822653f02655f982fd62c0c3c5f20a0afeb 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TOFDigitsInfo_H
 #define ALIEVE_TOFDigitsInfo_H
 #include <AliTOFGeometry.h>
 #include <AliTOFDigitMap.h>
 
-  
+
 class AliEveTOFDigitsInfo : public TObject, public TEveRefCnt
   {
     AliEveTOFDigitsInfo(const AliEveTOFDigitsInfo&);            // Not implemented
     AliEveTOFDigitsInfo& operator=(const AliEveTOFDigitsInfo&); // Not implemented
-    
+
   private:
 
   protected:
@@ -41,7 +41,7 @@ class AliEveTOFDigitsInfo : public TObject, public TEveRefCnt
 
     AliEveTOFDigitsInfo();
     virtual ~AliEveTOFDigitsInfo();
-    
+
     void SetTree(TTree* tree);
     void LoadDigits();
 
@@ -52,8 +52,8 @@ class AliEveTOFDigitsInfo : public TObject, public TEveRefCnt
     TClonesArray* GetDigits(Int_t nSector, Int_t nPlate, Int_t nStrip);
     TClonesArray* GetDigits(Int_t nSector);
     void GetDigits();
-  
+
     ClassDef(AliEveTOFDigitsInfo, 1);
   }; // endclass AliEveTOFDigitsInfo
-  
+
 #endif
index 042190bb67de15f47e97a8605b49e5e6395e8f5f..a92f75294c9d73b55c55420bd5285127cd1d11be 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTOFDigitsInfoEditor.h"
index d4e79fc7b774e1947b5fa0cee1585af4ffc78a17..42fb75545a9c59e24a361dc23e71fc9b460fa7f1 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TOFDigitsInfoEditor_H
index 8d847118a9602865e774bef584fa9d234e0633f1..30f08540efe7951e038e0e6b45d2e1d0c5f2afcf 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTOFSector.h"
 
@@ -170,7 +170,7 @@ void AliEveTOFSector::InitStatics()
 
   //fgTOFsectorPalette  = new TEveRGBAPalette(0, 2048); // TOT
   fgTOFsectorPalette  = new TEveRGBAPalette(0, 8192/*1024*/); // TDC
-  fgTOFsectorPalette->SetLimits(0, 8192); 
+  fgTOFsectorPalette->SetLimits(0, 8192);
 
   fgStaticInitDone = kTRUE;
 }
@@ -190,7 +190,7 @@ void AliEveTOFSector::InitModule()
   //fFrame   = fgTOFsectorFrameBox;
   //fPalette = fgTOFsectorPalette;
 
-  LoadQuads();  
+  LoadQuads();
   ComputeBBox();
   SetTrans();
 
@@ -230,7 +230,7 @@ void AliEveTOFSector::LoadQuads()
     for (Int_t digitNumber=0; digitNumber<digitsTOFnew->GetEntries(); digitNumber++) {
 
       //if (digitNumber==digitsTOF->GetEntries()-1) printf(" Hello  4 -> %3i digit of %i \n", digitNumber+1, digitsTOF->GetEntries());
-  
+
       digs = (AliTOFdigit*)digitsTOFnew->UncheckedAt(digitNumber);
 
       if (digs->GetSector()!=fSectorID) continue;
@@ -253,7 +253,7 @@ void AliEveTOFSector::LoadQuads()
   for (Int_t ii=0; ii<fTOFarray->GetEntries(); ii++) {
 
     tofDigit = (AliTOFdigit*)fTOFarray->UncheckedAt(ii);
-   
+
     if (fPlateFlag[tofDigit->GetPlate()]) {
 
       vol[1] = tofDigit->GetPlate();
@@ -282,7 +282,7 @@ void AliEveTOFSector::LoadQuads()
                            (Float_t)coord[1][0], (Float_t)coord[1][1], (Float_t)coord[1][2],
                            (Float_t)coord[2][0], (Float_t)coord[2][1], (Float_t)coord[2][2],
                            (Float_t)coord[3][0], (Float_t)coord[3][1], (Float_t)coord[3][2]};
-      
+
       AddQuad(vertices);
       //AddQuad((Float_t*)coord);
       //AddQuad(coord[0], coord[1], coord[2], 2.5, 3.5);
@@ -293,7 +293,7 @@ void AliEveTOFSector::LoadQuads()
       //QuadValue((Int_t)tot);
       QuadValue((Int_t)tdc);
       QuadId(tofDigit);
-      
+
     //}
     } // closed if control on plates switched on
   } // closed loop on TOF sector digits
@@ -301,7 +301,7 @@ void AliEveTOFSector::LoadQuads()
   RefitPlex();
 
   fTOFarray = 0x0;
+
 }
 
 /* ************************************************************ */
index 9210edd0a6c0e99d67a1b8101b8c8e6bbf0e50e5..883edab3af370af63c7294771a66f5f97246d433 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TOFSector_H
 #define ALIEVE_TOFSector_H
 
 #include <AliTOFGeometry.h>
 
-  
+
   class AliEveTOFSector : public TEveQuadSet
-                   
+
   {
     AliEveTOFSector(const AliEveTOFSector&);            // Not implemented
     AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
+
     //Int_t       fSectorID;
   private:
 
     void LoadQuads();
-    
+
   protected:
-    
+
     AliTOFGeometry *fTOFgeometry;
-    
+
     TClonesArray   *fTOFarray;
     TTree          *fTOFtree;
-    
+
     Int_t fSector;
     //Int_t fPlate;
     //Int_t fStrip;
-    
+
     Float_t  fDx;
     Float_t  fDy;
     Float_t  fDz;
     ///////////////////////////////
 
-    Bool_t      fAutoTrans; 
-    Int_t       fMinTime;     
+    Bool_t      fAutoTrans;
+    Int_t       fMinTime;
     Int_t       fMaxTime;
     Short_t     fThreshold;
     Int_t       fMaxVal;
-    Int_t       fSectorID; 
+    Int_t       fSectorID;
     Bool_t      *fPlateFlag;
 
     Bool_t      fPlateFlag0;
     Bool_t      fPlateFlag2;
     Bool_t      fPlateFlag3;
     Bool_t      fPlateFlag4;
-    
+
     Color_t     fFrameColor;
     Bool_t      fRnrFrame;
-    
+
     TGeoManager *fGeoManager;
-    
-  public: 
+
+  public:
     // Bool_t       fAutoTrans;
-    
+
     virtual void InitModule();
-    virtual void SetTrans(); 
+    virtual void SetTrans();
     AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
     AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
-    
+
     AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
              TClonesArray *tofArray);
     AliEveTOFSector(TGeoManager *localGeoManager,
              Int_t nSector, TTree *tofTree);
     virtual ~AliEveTOFSector();
-        
+
     static Bool_t    fgStaticInitDone;
     static void      InitStatics();
 
     Int_t GetSectorID() const {return fSectorID;};
     virtual void DigitSelected(Int_t idx);
     ///////////////////////////////////////////
-   
+
     void SetPlate(Int_t nPlate, Bool_t r);
 
     static TEveFrameBox    *fgTOFsectorFrameBox;
     static TEveRGBAPalette *fgTOFsectorPalette;
 
   ClassDef(AliEveTOFSector, 1);
-  }; 
+  };
 #endif
index 2ced8639d6ff1d9e4406c342ff7986ee1c93bf52..88b9e1129a2c06b54ed8d779ee8c42f47e27bbcf 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTOFSectorEditor.h"
@@ -27,7 +27,7 @@
 //
 
 ClassImp(AliEveTOFSectorEditor)
-  
+
   AliEveTOFSectorEditor::AliEveTOFSectorEditor(const TGWindow *p, Int_t width, Int_t height,
                                   UInt_t options, Pixel_t back) :
     TGedFrame(p, width, height, options | kVerticalFrame, back),
@@ -39,21 +39,21 @@ ClassImp(AliEveTOFSectorEditor)
     // fTime      (0)
     // Initialize widget pointers to 0
     //{
-    
+
     /*
       fHMTrans = new TEveTransSubEditor(this);
       fHMTrans->Connect("UseTrans()",     "AliEveTPCSectorVizEditor", this, "Update()");
       fHMTrans->Connect("TransChanged()", "AliEveTPCSectorVizEditor", this, "Update()");
       AddFrame(fHMTrans, new TGLayoutHints(kLHintsTop | kLHintsExpandX, 2, 0, 0, 0));
-      
+
       MakeTitle("AliEveTPCSectorViz");*/
 {
-  
+
   fPlate = new TGCheckButton*[5];
   for (Int_t ii=0; ii<5; ii++) fPlate[ii] = new TGCheckButton;
-  
+
   //fPriority = 40;
-  MakeTitle("AliEveTOFSector");  
+  MakeTitle("AliEveTOFSector");
 
   fSectorID = new TEveGValuator(this, "SectorID", 110, 0);
   fSectorID->SetLabelWidth(60);
@@ -70,7 +70,7 @@ ClassImp(AliEveTOFSectorEditor)
   fSectorID->AddFrame(fAutoTrans, new TGLayoutHints(kLHintsLeft, 12, 0, 1, 0));
   fAutoTrans->Connect("Toggled(Bool_t)","AliEveTOFSectorEditor", this, "DoAutoTrans()");
   AddFrame(fSectorID, new TGLayoutHints(kLHintsTop, 1, 1, 1, 1));
-  
+
   // Create widgets
   // fXYZZ = new TGSomeWidget(this, ...);
   // AddFrame(fXYZZ, new TGLayoutHints(...));
@@ -125,7 +125,7 @@ ClassImp(AliEveTOFSectorEditor)
     fThreshold->Connect("ValueSet(Double_t)",
                        "AliEveTOFSectorEditor", this, "DoThreshold()");
     AddFrame(fThreshold, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
-    
+
     fMaxVal = new TEveGValuator(this,"MaxVal", 200, 0);
     fMaxVal->SetNELength(4);
     fMaxVal->SetLabelWidth(60);
@@ -135,7 +135,7 @@ ClassImp(AliEveTOFSectorEditor)
     fMaxVal->Connect("ValueSet(Double_t)",
                     "AliEveTOFSectorEditor", this, "DoMaxVal()");
     AddFrame(fMaxVal, new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
-    
+
 }
 
 
@@ -231,7 +231,7 @@ void AliEveTOFSectorEditor::DoMaxVal()
 /**************************************************************************/
 /*
 void AliEveTOFSectorEditor::DoTime()
-{ 
+{
   fM->SetMinTime((Int_t) fTime->GetMin());
   fM->SetMaxTime((Int_t) fTime->GetMax());
   Update();
index bb883ce046d0605b2a13b2dfc638c6758c922494..24bc495b0b9eb774314756b3c0d5e9beed520081 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TOFSectorEditor_H
@@ -23,9 +23,9 @@ class TEveGValuator;
 class TEveGDoubleValuator;
 class TEveTransSubEditor;
 
-  
+
   class AliEveTOFSector;
-  
+
   class AliEveTOFSectorEditor : public TGedFrame
   {
     //private:
@@ -34,9 +34,9 @@ class TEveTransSubEditor;
 
   protected:
     AliEveTOFSector* fM; // fModel dynamic-casted to AliEveTOFSectorEditor
-    
+
     TEveGValuator* fSectorID;
-    
+
     TGCheckButton*    fAutoTrans;
 
     TGCheckButton**    fPlate;
@@ -48,19 +48,19 @@ class TEveTransSubEditor;
     TGCheckButton*    fPlate4;
 
     TEveGValuator* fThreshold;
-    TEveGValuator* fMaxVal;   
+    TEveGValuator* fMaxVal;
 
 
     // Declare widgets
     // TGSomeWidget*   fXYZZ;
-    
+
   public:
     AliEveTOFSectorEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
     virtual ~AliEveTOFSectorEditor();
-    
+
     virtual void SetModel(TObject* obj);
     void DoSectorID();
-    void DoAutoTrans(); 
+    void DoAutoTrans();
     void DoPlate0();
     void DoPlate1();
     void DoPlate2();
@@ -74,8 +74,8 @@ class TEveTransSubEditor;
 
     // Declare callback/slot methods
     // void DoXYZZ();
-    
+
     ClassDef(AliEveTOFSectorEditor, 0); // Editor for AliEveTOFSector
   }; // endclass AliEveTOFSectorEditor
-  
+
 #endif
index 51e64269d39f43bd961a75783b437a50d52177d8..a8223117d816b191e6394c777cf60fd10e73e169 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTOFStrip.h"
 
@@ -50,7 +50,7 @@ AliEveTOFStrip::AliEveTOFStrip(TGeoManager *localGeoManager,
   fDx(0), fDz(0),
   fGeoManager(localGeoManager)
 {
-  
+
   //if (!fGeoManager) printf("ERROR: no TGeo\n");
 
   InitModule();
@@ -128,7 +128,7 @@ void AliEveTOFStrip::InitModule()
   //fFrame   = fgTOFstripFrameBox;
   //fPalette = fgTOFstripPalette;
 
-  LoadQuads();  
+  LoadQuads();
   ComputeBBox();
   SetTrans();
 
@@ -181,7 +181,7 @@ void AliEveTOFStrip::LoadQuads()
   }
 
   RefitPlex();
+
 }
 
 /* ************************************************************ */
@@ -198,7 +198,7 @@ void AliEveTOFStrip::SetTrans()
   fGeoManager->cd(path);
   TGeoHMatrix global = *fGeoManager->GetCurrentMatrix();
   Double_t *rotMat = global.GetRotationMatrix();
-  
+
   /*
   // ok till 19 April 2007
   fHMTrans.SetBaseVec(1, rotMat[0], rotMat[1], rotMat[2]);
index 5a288a7df8914070431446c033260ed1190e1d4a..dacf60ffd891c3a013ffb0ea99e49d1f813113ce 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TOFStrip_H
 #define ALIEVE_TOFStrip_H
@@ -28,7 +28,7 @@ class AliEveTOFStrip : public TEveQuadSet
 
 private:
   void LoadQuads();
-  
+
 protected:
   virtual void InitModule();
   virtual void SetTrans();
@@ -64,5 +64,5 @@ public:
   static TEveRGBAPalette* fgTOFstripPalette;
 
   ClassDef(AliEveTOFStrip, 1);
-}; 
+};
 #endif
index 79a487e6de689febe3b481dff1720dd1c3601c0a..fa54e29635638a8b638eaaf07e74c5fce154c073 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTOFStripEditor.h"
index cba3efd7d44c0014447bfed253bd63ce3185d8c5..123f8ed63173e7d93f013cdb22e55ff5002f79e0 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TOFStripEditor_H
index c5c7d86579ec62ed181901edd66a87217305819d..299eb1d073251df1ca14b0e2dae9a0de8ffedb64 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCData.h"
@@ -31,7 +31,7 @@
 // load time: use SetLoadThreshold(thresh) and SetLoadPedestal(ped).
 //
 // For raw-data (loaded using LoadRaw) pedestals can be calculated
-// automatically per pad. Use SetAutoPedestal(kTRUE) to activate it. 
+// automatically per pad. Use SetAutoPedestal(kTRUE) to activate it.
 // You might still want to set load threshold (default iz zero).
 //
 
@@ -100,7 +100,7 @@ void AliEveTPCData::LoadDigits(TTree* tree, Bool_t spawnSectors)
 
   AliSimDigits digit, *digitPtr = &digit;
   tree->GetBranch("Segment")->SetAddress(&digitPtr);
-  
+
   Int_t sector, row, pad, curPad;
   Short_t time, signal;
   Bool_t  inFill = kFALSE;
index 81603da81efa823e88cd241e8ac21233579a571d..13ee5ac4603df9526779d2aa3dabffce6944898a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCData_H
index 5ee7549eff9ad1cf199abc4ca47928ebf9bbeea3..b5f02b8606ca0e66acac1d01166bb06871b82816 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCLoader.h"
@@ -117,7 +117,7 @@ void AliEveTPCLoader::LoadEvent()
   fReader->Select("TPC");
 
   fData->DropAllSectors();
-  fData->LoadRaw(input, kTRUE, kTRUE);  
+  fData->LoadRaw(input, kTRUE, kTRUE);
 }
 
 void AliEveTPCLoader::NextEvent(Bool_t rewindOnEnd)
index d0e94848ae660776b4d731b14145ff1b6105495c..3a7fb1d7ac244c306790fdfed32c9c97c35b48d4 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCLoader_H
index 7091a0a4e66daafd91a130f3a45b4939e77d9822..1cf57b522f121cf25ee13d2554b7401825048e8c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCLoaderEditor.h"
index c4369cb98c8bfaf89bc5738462a31266890076e1..f536e08f3b98bdd974410e8063ab94e411de5e02 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCLoaderEditor_H
index 622058583288cdceaa98c8140f197d937bb84f83..3fbe226e296b194ecabd40668e55dd0888a5fd3f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector2D.h"
@@ -165,7 +165,7 @@ void AliEveTPCSector2D::Paint(Option_t* )
   buffer.fTransparency = 0;
   fHMTrans.SetBuffer3D(buffer);
   buffer.SetSectionsValid(TBuffer3D::kCore);
-   
+
   Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);
   if (reqSections == TBuffer3D::kNone) {
     return;
index 9ac6d5902c1066d060ec1c477129e620ec70aa9f..e5fd0958c365f58428433b27b562ede3ac321d58 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector2D_H
index dcea77dd8dd90a5210c02f5b52cfd304fdf2a9bb..597c5b925da67c82dcdcc537df3e2a846f85e33f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector2DEditor.h"
index f3251aff63c30eb1dcde24ce68cf91a32fb938c7..2eff2ff1e2ad72f1cfa6c99b1d2923c3770c4bdb 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector2DEditor_H
index b475b1276847726409915cc7d93f07f020adbe98..9c6cf06b8c74fcd259171f60f7a0deea93a0aecb 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector2DGL.h"
@@ -33,7 +33,7 @@ const Int_t AliEveTPCSector2DGL::fgkTextureByteSize = 4*256*128;
 
 AliEveTPCSector2DGL::AliEveTPCSector2DGL() :
   TGLObject(),
-  
+
   fSector     (0),
   fSectorData (0),
 
@@ -155,7 +155,7 @@ void AliEveTPCSector2DGL::LoadPadrow(AliEveTPCSectorData::RowIterator& iter,
                               Int_t row, Int_t col_off) const
 {
   Int_t    padVal;
-  Int_t    time, val;   
+  Int_t    time, val;
 
   Int_t    minTime = fSector->fMinTime;
   Int_t    maxTime = fSector->fMaxTime;
@@ -163,7 +163,7 @@ void AliEveTPCSector2DGL::LoadPadrow(AliEveTPCSectorData::RowIterator& iter,
 
   UChar_t* img_pos = GetRowCol(row, col_off);
   while (iter.NextPad()) {
-    padVal = 0; 
+    padVal = 0;
 
     while (iter.Next()) {
       time = iter.Time();
@@ -255,7 +255,7 @@ void AliEveTPCSector2DGL::DisplayTexture(const AliEveTPCSectorData::SegmentInfo&
   Float_t u2 = u1 + (Float_t) seg.GetNMaxPads() / fgkTextureWidth;
   Float_t v2 = v1 + (Float_t) seg.GetNRows()    / fgkTextureHeight;
 
-  glBegin(GL_QUADS);  
+  glBegin(GL_QUADS);
   glTexCoord2f(u1, v1);  glVertex2f(-w, y1);
   glTexCoord2f(u1, v2);  glVertex2f(-w, y2);
   glTexCoord2f(u2, v2);  glVertex2f( w, y2);
@@ -351,7 +351,7 @@ void AliEveTPCSector2DGL::TraceStepsUp(const AliEveTPCSectorData::SegmentInfo& s
   glVertex2f(-s.GetNMaxPads()*s.GetPadWidth()/2, y);
 }
 
-void AliEveTPCSector2DGL::TraceStepsDown(const AliEveTPCSectorData::SegmentInfo& s) 
+void AliEveTPCSector2DGL::TraceStepsDown(const AliEveTPCSectorData::SegmentInfo& s)
 {
   Float_t x = s.GetNMaxPads()*s.GetPadWidth()/2;
   Float_t y = s.GetRLow() + s.GetNRows()*s.GetPadHeight();
index 5d65bd7a36d98bb509593bc26cb5de570ce6cddf..b5c105a8dd607e4c1987b4c69e3e4fdf455524ab 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector2DGL_H
@@ -46,12 +46,12 @@ protected:
   mutable UChar_t*             fImage;
   mutable UInt_t               fTexture;
   mutable UInt_t               fRTS;
+
 public:
   AliEveTPCSector2DGL();
   virtual ~AliEveTPCSector2DGL();
 
-  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0); 
+  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
   virtual void   SetBBox();
   virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
 
@@ -65,7 +65,7 @@ public:
   static const Int_t fgkTextureByteSize;
 
 }; // endclass TPCSector2D_GL_Rnr
-  
+
 
 inline UChar_t* AliEveTPCSector2DGL::GetRowCol(Int_t row, Int_t col) const
 {
index 2a6f6bf0604b4401a7534e2a6353f7bf7e61375d..3e1dbbee6aa740c037d0f00f78f370b34e1b766b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector3D.h"
@@ -90,7 +90,7 @@ void AliEveTPCSector3D::Paint(Option_t* /*option*/)
   buffer.fTransparency = 0;
   fHMTrans.SetBuffer3D(buffer);
   buffer.SetSectionsValid(TBuffer3D::kCore);
-   
+
   Int_t reqSections = gPad->GetViewer3D()->AddObject(buffer);
   if (reqSections == TBuffer3D::kNone) {
     return;
@@ -103,7 +103,7 @@ void AliEveTPCSector3D::Paint(Option_t* /*option*/)
 /**************************************************************************/
 
 void AliEveTPCSector3D::LoadPadrow(AliEveTPCSectorData::RowIterator& iter,
-                             Float_t xs, Float_t ys, Float_t pw, Float_t ph) 
+                             Float_t xs, Float_t ys, Float_t pw, Float_t ph)
 {
   Short_t pad, time, val;
   Float_t x0, z0;
index 84c1743e8ad5e8743fca7e9cbde10737af3f56e5..217d60cb878c05e0407559b9672879399cf7abb3 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector3D_H
index 587486df8b8aa78c64e89e71e12cff032fad73f3..46f4da51765d28708b96196e81bd547a9e1e4e34 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector3DEditor.h"
index 9445505b8d1f1e7ec1e2d25f4e8bba7411077c16..20493937d2e0d2386849f8eff0fc5d801cb76555 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector3DEditor_H
@@ -38,7 +38,7 @@ protected:
 
 public:
   AliEveTPCSector3DEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
-                   UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());  
+                   UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
   virtual ~AliEveTPCSector3DEditor();
 
   virtual void SetModel(TObject* obj);
index 5b93761b5d5587cabfe02a7cae86cfbc6062d308..a949a22d0a860f058e777e0ceea029ac39d0b789 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSector3DGL.h"
@@ -80,7 +80,7 @@ void AliEveTPCSector3DGL::DirectDraw(TGLRnrCtx & rnrCtx) const
   if(fRTS < fSector->fRTS) {
     fSector->UpdateBoxes();
     fRTS = fSector->fRTS;
-  }  
+  }
 
   if (rnrCtx.SecSelection()) glPushName(0);
 
index 51db92d58cb2798152cd13c1550220903dbf5eca..364aed29f9deb73836070f720baa4c7db14ca229 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSector3DGL_H
index c360c0af09d9fff8181b4622ad61592ab7f2645b..ea3f9ee22f6e80a9b8f61319dde8b81d89106194 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSectorData.h"
@@ -86,7 +86,7 @@ void AliEveTPCSectorData::InitStatics()
   fgOut1Seg.fLastRow   = fgOut1Seg.fFirstRow + fgOut1Seg.fNRows - 1;
   fgOut1Seg.fNMaxPads  = fgParam->GetNPadsUp(fgOut1Seg.fNRows - 1);
   fgSegInfoPtrs[1]     = &fgOut1Seg;
+
   fgOut2Seg.fPadWidth  = fgParam->GetOuterPadPitchWidth();
   fgOut2Seg.fPadHeight = fgParam->GetOuter2PadPitchLength();
   fgOut2Seg.fRLow      = fgParam->GetPadRowRadiiUp(fgOut1Seg.fNRows);
@@ -108,7 +108,7 @@ void AliEveTPCSectorData::InitStatics()
     }
   }
   fgInnSeg.fNYSteps = k;
-  // Out1 seg 
+  // Out1 seg
   k=0; npads = fgParam->GetNPadsUp(0);
   for (int row = 0; row < fgOut1Seg.fNRows; ++row) {
     if (fgParam->GetNPadsUp(row) > npads) {
@@ -234,11 +234,11 @@ void AliEveTPCSectorData::EndPad(Bool_t autoPedestal, Short_t threshold)
   if(autoPedestal) {
     Short_t array[1024];
     Short_t* val;
-    val = beg + 1;    
+    val = beg + 1;
     while(val <= end) {
       array[(val-beg)/2] = *val;
       val += 2;
-    }    
+    }
     Short_t pedestal = TMath::Nint(TMath::Median((end-beg)/2, array));
     val = beg + 1;
     while(val <= end) {
index 8e164c6e3b6bc9004480739e9b8b7fc79cebbec9..c83ba7a9e62a7efff1fff056eda828971334bf5a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSectorData_H
@@ -111,7 +111,7 @@ public:
     Bool_t NextPad();
     void   ResetRow();
     void   ResetRow(const PadData* first, Short_t npads);
-    
+
     Short_t TEvePad() const { return fPad; }
 
     void Test();
@@ -213,7 +213,7 @@ public:
   static const SegmentInfo& GetOut2Seg() { return fgOut2Seg; }
 
   static const SegmentInfo& GetSeg(Int_t seg);
-  
+
   static void InitStatics();
 
 
@@ -241,7 +241,7 @@ public:
 
 protected:
   void* fPadRowHackSet;
-  
+
 
   ClassDef(AliEveTPCSectorData, 0);
 }; // endclass AliEveTPCSectorData
index 42eee317f422ddef7d4fec41ad4de09797cdd7ee..90e42ced76dca2c493ad46cfa7c6181a06249661 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSectorViz.h"
@@ -113,7 +113,7 @@ void AliEveTPCSectorViz::SetMaxVal(Int_t mv)
 
 /**************************************************************************/
 
-void AliEveTPCSectorViz::SetAutoTrans(Bool_t trans) 
+void AliEveTPCSectorViz::SetAutoTrans(Bool_t trans)
 {
   fAutoTrans = trans;
   if(fAutoTrans) {
index 102aa5dd5fcc39de93e92e3e0a5bee3516ca0410..38f4ece1f09f87e3ad40b34ba613b8b0d748295e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSectorViz_H
@@ -13,7 +13,7 @@
 #include <TEveElement.h>
 #include <TEveTrans.h>
 
-#include <TNamed.h> 
+#include <TNamed.h>
 #include <TAtt3D.h>
 #include <TAttBBox.h>
 
@@ -41,10 +41,10 @@ class AliEveTPCSectorViz : public TEveElement,
   AliEveTPCSectorViz& operator=(const AliEveTPCSectorViz&); // Not implemented
 
 protected:
-  AliEveTPCData*    fTPCData; 
+  AliEveTPCData*    fTPCData;
   Int_t       fSectorID;
 
-  Int_t       fMinTime;     
+  Int_t       fMinTime;
   Int_t       fMaxTime;
   Short_t     fThreshold;
   Int_t       fMaxVal;
index d369ea18d77d17626f7796faa3a7b72d3ffc3372..26b7ad1906a880033459ac00acfb98ae6113beda 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTPCSectorVizEditor.h"
@@ -196,7 +196,7 @@ void AliEveTPCSectorVizEditor::DoMaxVal()
 /**************************************************************************/
 
 void AliEveTPCSectorVizEditor::DoTime()
-{ 
+{
   fM->SetMinTime((Int_t) fTime->GetMin());
   fM->SetMaxTime((Int_t) fTime->GetMax());
   Update();
index ad56431662055c5fda1b4e2b40f41e40c5b8c0be..b06e457849975cf45aee9785f6813a82201994ce 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TPCSectorVizEditor_H
@@ -43,7 +43,7 @@ protected:
   TGCheckButton*    fRnrOut2;
 
   TEveGValuator* fThreshold;
-  TEveGValuator* fMaxVal;   
+  TEveGValuator* fMaxVal;
 
   TEveGDoubleValuator* fTime;
 
@@ -65,7 +65,7 @@ public:
   void DoMaxVal();
 
   void DoTime();
+
   ClassDef(AliEveTPCSectorVizEditor, 0); // Editor for AliEveTPCSectorViz
 }; // endclass AliEveTPCSectorVizEditor
 
index 0488a2aef1ace4712ac45b08e5b6f4eb181c4a7d..a027262b6518d0a6b01a7c5f20fd972ff4ce4442 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDData.h"
 #include "AliEveTRDModuleImp.h"
@@ -34,7 +34,7 @@ AliEveTRDDigits::AliEveTRDDigits(AliEveTRDChamber *p): TEveQuadSet("digits", "")
 //________________________________________________________
 void   AliEveTRDDigits::SetData(AliTRDdigitsManager *digits)
 {
-       
+
        fData.Allocate(fParent->rowMax, fParent->colMax, fParent->timeMax);
 //     digits->Expand();
        for (Int_t  row = 0;  row <  fParent->rowMax;  row++)
@@ -56,14 +56,14 @@ void AliEveTRDDigits::ComputeRepresentation()
 
   TEveQuadSet::Reset(TEveQuadSet::kQT_FreeQuad, kTRUE, 64);
   // MT fBoxes.fBoxes.clear();
-               
+
   Double_t colSize, rowSize, scale;
   Double_t x, y, z;
 
   Int_t charge;
   Float_t t0;
   Float_t timeBinSize;
-       
+
   AliTRDcalibDB* calibration = AliTRDcalibDB::Instance();
   Double_t cloc[4][3], cglo[3];
   Int_t color, dimension;
@@ -71,37 +71,37 @@ void AliEveTRDDigits::ComputeRepresentation()
   for (Int_t  row = 0;  row <  fParent->rowMax;  row++) {
     rowSize = .5 * fParent->fPadPlane->GetRowSize(row);
     z = fParent->fPadPlane->GetRowPos(row) - rowSize;
-               
+
     for (Int_t  col = 0;  col <  fParent->colMax;  col++) {
       colSize = .5 * fParent->fPadPlane->GetColSize(col);
       y = fParent->fPadPlane->GetColPos(col) - colSize;
       t0 = calibration->GetT0(fParent->fDet, col, row);
       timeBinSize = calibration->GetVdrift(fParent->fDet, col, row)/fParent->samplingFrequency;
-                       
+
       for (Int_t time = 0; time < fParent->timeMax; time++) {
        charge = fData.GetDataUnchecked(row, col, time);
        if (charge < fParent->GetDigitsThreshold()) continue;
-                               
+
        x = fParent->fX0 - (time+0.5-t0)*timeBinSize;
        scale = fParent->GetDigitsLog() ? TMath::Log(float(charge))/TMath::Log(1024.) : charge/1024.;
        color  = 50+int(scale*50.);
-                               
+
        cloc[0][2] = z - rowSize * scale;
        cloc[0][1] = y - colSize * scale;
        cloc[0][0] = x;
-                       
+
        cloc[1][2] = z - rowSize * scale;
        cloc[1][1] = y + colSize * scale;
        cloc[1][0] = x;
-                       
+
        cloc[2][2] = z + rowSize * scale;
        cloc[2][1] = y + colSize * scale;
        cloc[2][0] = x;
-                       
+
        cloc[3][2] = z + rowSize * scale;
        cloc[3][1] = y - colSize * scale;
        cloc[3][0] = x;
-       
+
        Float_t* p = 0;
        if( fParent->GetDigitsBox()){
          // MT fBoxes.fBoxes.push_back(Box());
@@ -237,7 +237,7 @@ void AliEveTRDDigitsEditor::SetModel(TObject* obj)
 {
        fM = dynamic_cast<AliEveTRDDigits*>(obj);
        fM->fParent->SpawnEditor();
-       
+
 //     printf("Chamber %d", fM->fParent->GetID());
 //     for (Int_t  row = 0;  row <  fM->fParent->GetRowMax();  row++)
 //             for (Int_t  col = 0;  col <  fM->fParent->GetColMax();  col++)
index b5d0a0c5ef7fc6399bb021d4ae8bff2ced2b7710..636719c4eaf33e4a61810e45d76009a901dfea28 100644 (file)
@@ -4,12 +4,12 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /////////////////////////////////////////////////////////////////////////
 //
 // - AliEVE implementation -
-// Containers for visualisation of TRD data structures 
+// Containers for visualisation of TRD data structures
 //    - AliEveTRDHits - visualisation of MC Hits, Clusters (RecPoints)
 //    - AliEveTRDDigits - visualisation of TRD digits
 //
@@ -49,7 +49,7 @@ class AliTRDdigitsManager;
 
        protected:
                AliEveTRDChamber *fParent;
-       
+
        ClassDef(AliEveTRDHits,1) // Base class for TRD hits visualisation
        };
 
@@ -65,7 +65,7 @@ class AliTRDdigitsManager;
                AliEveTRDHits* fM;
 
        ClassDef(AliEveTRDHitsEditor,1) // Editor for AliEveTRDHits
-       };      
+       };
 
 
        class AliEveTRDDigits : public TEveQuadSet
@@ -81,14 +81,14 @@ class AliTRDdigitsManager;
 
        protected:
                AliEveTRDChamber *fParent;
-       
+
        private:
                TEveBoxSet                      fBoxes;
                AliTRDdataArrayI        fData;
-               
+
                ClassDef(AliEveTRDDigits,1) // Digits visualisation for TRD
        };
-       
+
        class AliEveTRDDigitsEditor : public TGedFrame
        {
        public:
@@ -110,7 +110,7 @@ class AliTRDdigitsManager;
                AliEveTRDClusters(AliEveTRDChamber *p);
 
                void PointSelected(Int_t n);
-       
+
        ClassDef(AliEveTRDClusters,1) // Base class for TRD clusters visualisation
        };
 
index 0f2f4471cbbe501d1c5390a2a6e416263fa609e0..ed2cc635c322a5b9d5c2d422b743e1b2f93e6771 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDLoader.h"
 #include "AliEveTRDModuleImp.h"
@@ -53,7 +53,7 @@ ClassImp(AliEveTRDLoaderEditor)
 
 //________________________________________________________
 AliEveTRDLoader::AliEveTRDLoader(const Text_t* n, const Text_t* t) : TEveElementList(n, t), fSM(-1), fStack(-1), fLy(-1), fEvent(0)
-{      
+{
        kLoadHits = kFALSE;
        kLoadDigits = kFALSE;
        kLoadClusters = kFALSE;
@@ -62,9 +62,9 @@ AliEveTRDLoader::AliEveTRDLoader(const Text_t* n, const Text_t* t) : TEveElement
        fDir = ".";
        fEvent  = -1;
 
-       fTRD           = 0x0;   
+       fTRD           = 0x0;
        fGeo = new AliTRDgeometry();
-       
+
        AliCDBManager *fCDBManager=AliCDBManager::Instance();
        fCDBManager->SetDefaultStorage("local://$ALICE_ROOT");
        fCDBManager->SetRun(0);
@@ -144,7 +144,7 @@ void        AliEveTRDLoader::AddChambers(int sm, int stk, int ly)
 AliEveTRDChamber*      AliEveTRDLoader::GetChamber(int d)
 {
        List_i ism, istack, ichmb;
-       
+
        ism = find_if(fChildren.begin(), fChildren.end(), ID<TEveElement*>(fGeo->GetSector(d)));
        if(ism == fChildren.end()) return 0x0;
        istack = find_if(((AliEveTRDNode*)(*ism))->begin(), ((AliEveTRDNode*)(*ism))->end(), ID<TEveElement*>(fGeo->GetChamber(d)));
@@ -165,7 +165,7 @@ Bool_t      AliEveTRDLoader::GoToEvent(int ev)
        fEvent = ev;
 
        Unload();
-       
+
        TTree *t = 0x0;
        TFile *f = new TFile(Form("%s/%s", fDir.Data(), fFilename.Data()));
        if(! f->cd(Form("AliEveEventManager%d", ev))){
@@ -173,7 +173,7 @@ Bool_t      AliEveTRDLoader::GoToEvent(int ev)
                f->Close(); delete f;
                return kFALSE;
        }
-       
+
        if(kLoadDigits){
                t = (TTree*)gDirectory->Get("TreeD");
                if(!t) return kFALSE;
@@ -189,9 +189,9 @@ Bool_t      AliEveTRDLoader::GoToEvent(int ev)
        } else AliWarning("Please select first the type of data that you want to monitor and then hit the \"Load\" button.");
 
        f->Close(); delete f;
-       
+
        gEve->Redraw3D();
-       
+
        return kTRUE;
 }
 
@@ -205,7 +205,7 @@ Bool_t      AliEveTRDLoader::LoadClusters(TTree *tC)
        TObjArray *clusters = new TObjArray();
        tC->SetBranchAddress("TRDcluster", &clusters);
 
-       AliEveTRDChamber *chmb = 0x0;   
+       AliEveTRDChamber *chmb = 0x0;
        AliTRDcluster *c=0x0;
        for(int idet=0; idet<540; idet++){
                tC->GetEntry(idet);
@@ -222,9 +222,9 @@ Bool_t      AliEveTRDLoader::LoadClusters(TTree *tC)
 Bool_t AliEveTRDLoader::LoadDigits(TTree *tD)
 {
        AliInfo("Loading ...");
-       
+
        if(!fChildren.size()) return kTRUE;
-       
+
        AliEveTRDChamber *chmb;
        AliTRDdigitsManager dm;
        dm.ReadDigits(tD);
@@ -247,7 +247,7 @@ Bool_t      AliEveTRDLoader::LoadTracklets(TTree *tT)
 
        TObjArray *tracks = new TObjArray();
        tT->SetBranchAddress("TRDmcmTracklet",&tracks);
-       
+
        AliEveTRDChamber *chmb = 0x0;
        AliTRDmcmTracklet *trk=0x0;
        for(int idet=0; idet<540; idet++){
@@ -255,10 +255,10 @@ Bool_t    AliEveTRDLoader::LoadTracklets(TTree *tT)
                if(tracks->GetEntriesFast()) trk = (AliTRDmcmTracklet*)tracks->UncheckedAt(0);
                if((chmb = GetChamber(trk->GetDetector()))) chmb->LoadTracklets(tracks);
        }
-       
+
        return kTRUE;
 }
-       
+
 
 //________________________________________________________
 Bool_t AliEveTRDLoader::Open(const char *filename, const char *dir)
@@ -269,7 +269,7 @@ Bool_t      AliEveTRDLoader::Open(const char *filename, const char *dir)
        count += kLoadDigits ? 1 : 0;
        count += kLoadClusters ? 1 : 0;
        count += kLoadTracks ? 1 : 0;
-       
+
        TObjArray *so = fFilename.Tokenize(".");
 
        if(((TObjString*)(*so)[0])->GetString().CompareTo("TRD") != 0){
@@ -297,7 +297,7 @@ Bool_t      AliEveTRDLoader::Open(const char *filename, const char *dir)
                AliError("Filename didn't fulfill naming conventions. No data will be loaded.");
                return kFALSE;
        }
-       
+
        return kTRUE;
 }
 
@@ -348,11 +348,11 @@ void AliEveTRDLoader::Unload()
 AliEveTRDLoaderEditor::AliEveTRDLoaderEditor(const TGWindow* p, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, width, height, options | kVerticalFrame, back)
 {
        MakeTitle("AliEveTRDLoader");
-       
+
   fFile = 0x0;
        TGTextButton *fOpenFile = 0x0;
        Int_t labelW = 42;
+
        TGHorizontalFrame* f = new TGHorizontalFrame(this);
        TGHorizontalFrame* g = new TGHorizontalFrame(f, labelW, 0, kFixedWidth);
        TGLabel* l = new TGLabel(g, "File: ");
@@ -363,13 +363,13 @@ AliEveTRDLoaderEditor::AliEveTRDLoaderEditor(const TGWindow* p, Int_t width, Int
        fFile->SetWidth(140);
        fFile->Connect("DoubleClicked()", "AliEveTRDLoaderEditor", this, "FileOpen()");
        f->AddFrame(fFile);
-       
+
        fOpenFile = new TGTextButton(f, "Browse");
        f->AddFrame(fOpenFile);
        fOpenFile->Connect("Clicked()", "AliEveTRDLoaderEditor", this, "FileOpen()");
        AddFrame(f);
 
-               
+
   fEvent = new TEveGValuator(this, "AliEveEventManager:", 110, 0);
   fEvent->SetShowSlider(kFALSE);
   fEvent->SetLabelWidth(labelW);
@@ -385,7 +385,7 @@ AliEveTRDLoaderEditor::AliEveTRDLoaderEditor(const TGWindow* p, Int_t width, Int
        // "Chamber(s) selector" group frame
        TGGroupFrame *fGroupFrame1974 = new TGGroupFrame(this,"Chamber(s) selector");
        TGVerticalFrame *fVerticalFrame1974 = new TGVerticalFrame(fGroupFrame1974, 150, 50,kVerticalFrame);
-  
+
        fSMNumber = new TEveGValuator(fVerticalFrame1974, "SM:", 0, 0);
   fSMNumber->SetShowSlider(kFALSE);
   fSMNumber->SetLabelWidth(labelW);
@@ -413,7 +413,7 @@ AliEveTRDLoaderEditor::AliEveTRDLoaderEditor(const TGWindow* p, Int_t width, Int
   fPlaneNumber->SetToolTip("Plane id [-1 for all in this stack]");
 
        fVerticalFrame1974->AddFrame(fPlaneNumber, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsCenterX | kLHintsExpandY,2,2,2,2));
-       
+
        fGroupFrame1974->AddFrame(fVerticalFrame1974, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandY | kLHintsCenterX,2,2,2,2));
 
        TGTextButton *fTextButton2037 = new TGTextButton(fGroupFrame1974,"Select");
@@ -452,7 +452,7 @@ void AliEveTRDLoaderEditor::SetModel(TObject* obj)
 
        fEvent->SetEnabled(kFile);
        fEvent->GetEntry()->SetIntNumber(fM->fEvent);
-       
+
        fSMNumber->SetEnabled(kFile);
        fSMNumber->GetEntry()->SetIntNumber(fM->fSM);
 
index 477003567743384ac51557142b6fe073eae00aca..4fc841cb60d297d9042d2c133af80caf64fbc40d 100644 (file)
@@ -4,14 +4,14 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TRDLoader_H
 #define ALIEVE_TRDLoader_H
 
 ////////////////////////////////////////////////////////////////////////
 //                                                                      // - ALIEVE implementation -
-// Loader for the TRD detector - base class 
+// Loader for the TRD detector - base class
 //    - AliEveTRDLoader - loader of TRD data (simulation + measured)
 //    - AliEveTRDLoaderEditor - UI
 //
@@ -63,19 +63,19 @@ class TEveGValuator;
        protected:
                Bool_t  kLoadHits, kLoadDigits, kLoadClusters, kLoadTracks;
                Int_t           fSM, fStack, fLy; // supermodule, stack, layer
-               TString fFilename; // name of data file 
+               TString fFilename; // name of data file
                TString fDir; // data directory
                Int_t           fEvent; // current event to be displayed
-                       
+
 
                AliTRDv1                                        *fTRD; // the TRD detector
                AliTRDgeometry          *fGeo; // the TRD geometry
-               
+
                ClassDef(AliEveTRDLoader, 1) // Alieve Loader class for the TRD detector
        };
 
 
-       
+
        class AliEveTRDLoaderEditor : public TGedFrame
        {
        public:
@@ -87,14 +87,14 @@ class TEveGValuator;
                virtual void    Load();
                virtual void    SetEvent(Double_t ev){fM->fEvent = (Int_t)ev;}
                virtual void    SetModel(TObject* obj);
-               
+
        protected:
                AliEveTRDLoader         *fM;
                TGTextEntry             *fFile;
                TEveGValuator           *fEvent;
                TEveGValuator           *fSMNumber, *fStackNumber, *fPlaneNumber;
-               
+
                ClassDef(AliEveTRDLoaderEditor,1) // Editor for AliEveTRDLoader
        };
-       
+
 #endif
index 8951b19e605bc342345326310aa040d81be6a09d..b9e032c65390690808ba57848a83b3ecb0590657 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDLoaderImp.h"
 #include "AliEveTRDModuleImp.h"
@@ -63,7 +63,7 @@ Bool_t        AliEveTRDLoaderSim::GoToEvent(int ev)
                AliWarning("Please select first the type of data that you want to monitor and then hit the \"Load\" button.");
                return kFALSE;
        }
-       
+
        fEvent = ev;
 
        if(!fRunLoader){
@@ -72,7 +72,7 @@ Bool_t        AliEveTRDLoaderSim::GoToEvent(int ev)
        }
        fRunLoader->UnloadAll("TRD");
        Unload();
-       
+
        if(fRunLoader->GetEvent(ev)) return kFALSE;
        TTree *t = 0x0;
        if(kLoadHits){
@@ -112,7 +112,7 @@ Bool_t      AliEveTRDLoaderSim::LoadHits(TTree *tH)
 {
        Info("LoadHits()", "Loading ...");
        if(!fChildren.size()) return kTRUE;
-       
+
        AliEveTRDChamber *chmb = 0x0;
        AliTRDhit *hit = 0x0;
        Int_t d;
@@ -140,11 +140,11 @@ Bool_t    AliEveTRDLoaderSim::Open(const char *filename, const char *dir)
 {
        //Info("Open()", "");
 
-       
+
        fFilename = filename;
        fDir = dir;
        fDir += "/";
-       
+
        fRunLoader = AliRunLoader::GetRunLoader();
        if(!fRunLoader) fRunLoader = AliRunLoader::Open(filename,
                                AliConfig::GetDefaultEventFolderName(),"read");
@@ -153,7 +153,7 @@ Bool_t      AliEveTRDLoaderSim::Open(const char *filename, const char *dir)
                return kFALSE;
        }
        fRunLoader->SetDirName(fDir);
-       
+
        gAlice = fRunLoader->GetAliRun();
   if(!gAlice) fRunLoader->LoadgAlice();
        if(!gAlice){
@@ -165,11 +165,11 @@ Bool_t    AliEveTRDLoaderSim::Open(const char *filename, const char *dir)
                AliError("Couldn't find TRD");
                return kFALSE;
        }
-       
+
        return kTRUE;
 }
 
-       
+
 
 ///////////////////////////////////////////////////////////
 /////////////     AliEveTRDLoaderRaw        /////////////////////
@@ -204,7 +204,7 @@ Bool_t  AliEveTRDLoaderRaw::Open(const char *filename, const char *dir)
 
        if(fRaw) delete fRaw;
        fRaw = new AliTRDrawData();
-       
+
        if(fDataRoot){
                if(fRawRootReader) delete fRawRootReader;
                fRawRootReader = new AliRawReaderRoot(filename);
@@ -241,7 +241,7 @@ Bool_t      AliEveTRDLoaderRaw::GoToEvent(int ev)
                fEventOld = -1;
                checkEnd = kFALSE;
        } else checkEnd = kTRUE;
-       
+
        do NextEvent(); while(fEventOld != ev && !(checkEnd == kTRUE && fEventOld == 0));
        LoadEvent();
        gEve->Redraw3D();
@@ -253,7 +253,7 @@ Bool_t      AliEveTRDLoaderRaw::GoToEvent(int ev)
 Bool_t AliEveTRDLoaderRaw::LoadEvent()
 {
        Info("LoadEvent()", "Loading ...");
-       
+
        static const TEveException eH("AliEveTRDLoader::LoadEvent ");
        if(fRawRootReader == 0x0) throw(eH + "data file not opened.");
 
@@ -300,13 +300,13 @@ void AliEveTRDLoaderRaw::NextEvent(Bool_t rewindOnEnd)
 AliEveTRDLoaderSimEditor::AliEveTRDLoaderSimEditor(const TGWindow* p, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, width, height, options | kVerticalFrame, back)
 {
        MakeTitle("AliEveTRDLoaderSim");
-       
+
        // "Data selector" group frame
        TGGroupFrame *fGroupFrame = new TGGroupFrame(this,"Data selector");
        fLoadHits = new TGCheckButton(fGroupFrame,"  Hits");
        fLoadHits->Connect("Clicked()", "AliEveTRDLoaderSimEditor", this, "Toggle(=0)");
        fGroupFrame->AddFrame(fLoadHits, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsCenterY | kLHintsExpandX,2,2,2,2));
-       
+
        fLoadDigits = new TGCheckButton(fGroupFrame,"  Digits");
        fLoadDigits->Connect("Clicked()", "AliEveTRDLoaderSimEditor", this, "Toggle(=1)");
        fGroupFrame->AddFrame(fLoadDigits, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsCenterY | kLHintsExpandX,2,2,2,2));
@@ -378,7 +378,7 @@ void AliEveTRDLoaderSimEditor::Toggle(Int_t id)
 // {
 //     MakeTitle("AliEveTRDLoaderRaw");
 // }
-//     
+//
 // void        TRDLoaderRawEditor::SetModel(TObject* obj)
 // {
 //     Info("SetModel()", "");
index 8262457999fb3e2443afc46fb7260281f71e803c..2f3ec4496d0e7ed4799d8f24bb270b1c785fba25 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TRDLoaderImp_H
 #define ALIEVE_TRDLoaderImp_H
@@ -36,40 +36,40 @@ class TGCheckButton;
        public:
                AliEveTRDLoaderSim(const Text_t* n="AliEveTRDLoaderSim", const Text_t* t=0);
                ~AliEveTRDLoaderSim();
-               
+
                Bool_t                  GoToEvent(int ev);
                Bool_t                  LoadHits(TTree *tH);
                Bool_t                  Open(const char *file, const char *dir=".");
-                       
+
        private:
                AliRunLoader                    *fRunLoader; // Run Loader
-       
+
                ClassDef(AliEveTRDLoaderSim, 1) // Alieve loader for the TRD detector (gAlice)
        };
-       
+
 
        class AliEveTRDLoaderRaw : public AliEveTRDLoader
        {
        public:
                AliEveTRDLoaderRaw(const Text_t* n="AliEveTRDLoaderRaw", const Text_t* t=0);
                ~AliEveTRDLoaderRaw();
-               
+
                Bool_t                  GoToEvent(int ev);
                Bool_t                  LoadEvent();
                Bool_t                  Open(const char *file, const char *dir=".");
                void                            SetDataType(TRDDataTypes type);
 
-               
+
        private:
                void NextEvent(Bool_t rewindOnEnd=kTRUE);
-       
+
        private:
                AliRawReaderDate        *fRawDateReader;
                AliRawReaderRoot        *fRawRootReader;
                AliTRDrawData                   *fRaw;
                Bool_t                                          fDataRoot;
                Int_t                                                   fEventOld;
-               
+
                ClassDef(AliEveTRDLoaderRaw, 1) // Alieve loader for the TRD detector (raw)
        };
 
@@ -81,11 +81,11 @@ class TGCheckButton;
 
                virtual void    SetModel(TObject* obj);
                virtual void    Toggle(Int_t id);
-       
+
        protected:
                AliEveTRDLoaderSim* fM;
                TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks;
-               
+
                ClassDef(AliEveTRDLoaderSimEditor,1) // Editor for AliEveTRDLoaderSim
        };
 #endif
index 3662738338d4dce07f762997b56406b7c8ee9f6e..62e095a52d7fc63adf4970218b67ba62d8223411 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDLoaderManager.h"
 #include "AliEveTRDLoader.h"
@@ -56,7 +56,7 @@ void  AliEveTRDLoaderManager::Add(Int_t type, const Text_t *name, const Text_t *t
                //fChildren.push_back(new AliEveTRDLoaderSim(name, title));
                gEve->AddElement(trdl = new AliEveTRDLoaderSim(name, title), this);
                ((AliEveTRDLoaderSim*)trdl)->FindListTreeItem(gEve->GetListTree())->SetTipText(title);
-               break;  
+               break;
        case 1:
        case 2:
        case 3:
@@ -73,7 +73,7 @@ void  AliEveTRDLoaderManager::Add(Int_t type, const Text_t *name, const Text_t *t
                trdl->SetDataType((TRDDataTypes)type);
                break;
        }
-       
+
        gEve->Redraw3D();
 }
 
@@ -144,7 +144,7 @@ AliEveTRDLoaderManagerEditor::AliEveTRDLoaderManagerEditor(const TGWindow* p, In
 //________________________________________________________
 AliEveTRDLoaderManagerEditor::~AliEveTRDLoaderManagerEditor()
 {
-       
+
 }
 
 
@@ -176,7 +176,7 @@ void AliEveTRDLoaderManagerEditor::Add()
        case 3:
                type = 1;
                break;
-       case 4: 
+       case 4:
        case 5:
                type = 2;
                break;
@@ -185,7 +185,7 @@ void AliEveTRDLoaderManagerEditor::Add()
                break;
        }
 
-       
+
        // horizontal frame
        TGHorizontalFrame *fHorizontalFrame = new TGHorizontalFrame(fGroupFrame, 264, 26, kHorizontalFrame);//, bg);
 
@@ -200,12 +200,12 @@ void AliEveTRDLoaderManagerEditor::Add()
 //     vall717.fFont = ufont->GetFontHandle();
 //     vall717.fGraphicsExposures = kFALSE;
 //     uGC = gClient->GetGC(&vall717, kTRUE);
-       
+
        TGLabel *fLabel717 = new TGLabel(fHorizontalFrame, entry->GetText()->GetString()/*, uGC->GetGC(), ufont->GetFontStruct(), kChildFrame*/);//, bg);
        fLabel717->SetTextJustify(36);
        fHorizontalFrame->AddFrame(fLabel717, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsCenterY | kLHintsExpandX,2,2,2,2));
 
-       
+
        Int_t nbutton = fM->fChildren.size();
        fRemoveButton = new((*fRemove)[nbutton]) TGTextButton(fHorizontalFrame, "Remove", nbutton);
        fRemoveButton->SetTextJustify(36);
index 2d0a553c927bed7d534bd4bec6aa8b6a04f77c56..3c078a353f2e2edc598089735c2de007812733d8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TRDLoaderManager_H
 #define ALIEVE_TRDLoaderManager_H
@@ -44,7 +44,7 @@ class TClonesArray;
        protected:
                void    Add(Int_t type, const Text_t *name, const Text_t *title=0x0);
                void    Remove(Int_t entry);
-               
+
                ClassDef(AliEveTRDLoaderManager, 1) // Alieve loaders manager for TRD
        };
 
@@ -56,10 +56,10 @@ class TClonesArray;
                virtual void    Add();
                virtual void    Remove(Int_t entry);
                virtual void    SetModel(TObject* obj);
-               
+
        protected:
                AliEveTRDLoaderManager* fM;
-       
+
        private:
                ULong_t bg;        // background color
                TGComboBox              *fSelector;
index 8d0487c6b3c7b3d2508c9be434bc37fe3d12729e..1811b4dd6485093fbd76f5d1d76b80a954fcbc16 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDModule.h"
 #include "AliEveTRDModuleImp.h"
@@ -29,7 +29,7 @@ AliEveTRDModule::AliEveTRDModule(const char *typ, Int_t det) :
 {
        fLoadHits = kFALSE;
        fRnrHits = kTRUE;
-       
+
        fLoadDigits = kFALSE;
        fRnrDigits = kTRUE;
        fDigitsLog = kFALSE;
@@ -56,7 +56,7 @@ AliEveTRDModule::AliEveTRDModule(const char *typ, Int_t det) :
 AliEveTRDModuleEditor::AliEveTRDModuleEditor(const TGWindow* p, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, width, height, options | kVerticalFrame, back)
 {
        MakeTitle("TRD Detector");
-       
+
        // "Hits" group frame
        TGGroupFrame *fGroupFrame615 = new TGGroupFrame(this,"Hits");
        fDisplayHits = new TGCheckButton(fGroupFrame615,"Display");
@@ -74,7 +74,7 @@ AliEveTRDModuleEditor::AliEveTRDModuleEditor(const TGWindow* p, Int_t width, Int
        fGroupFrame615->AddFrame(fHitsColor, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsCenterY,2,2,2,2));
        fHitsColor->Connect("ColorSelected(Pixel_t)",
                                        "AliEveTRDModuleEditor", this, "UpdateHits(Pixel_t)");
-       
+
        fGroupFrame615->SetLayoutManager(new TGVerticalLayout(fGroupFrame615));
        AddFrame(fGroupFrame615, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsCenterY | kLHintsExpandX,2,2,2,2));
 
@@ -101,10 +101,10 @@ AliEveTRDModuleEditor::AliEveTRDModuleEditor(const TGWindow* p, Int_t width, Int
        fToggleBox->Connect("Clicked()",
                                        "AliEveTRDModuleEditor", this, "ModifyDigitsView()");
        fGroupFrame636->AddFrame(fVerticalFrame538, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
-   
+
    TGVertical3DLine *fVertical3DLine773 = new TGVertical3DLine(fGroupFrame636,8,63);
    fGroupFrame636->AddFrame(fVertical3DLine773, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandY,2,2,2,2));
-        
+
         // vertical frame
        TGVerticalFrame *fVerticalFrame543 = new TGVerticalFrame(fGroupFrame636,81,47,kVerticalFrame);
        fThreshold = new TGCheckButton(fVerticalFrame543, "Threshold");
@@ -165,10 +165,10 @@ void AliEveTRDModuleEditor::SetModel(TObject* obj)
 
        fM = dynamic_cast<AliEveTRDModule*>(obj);
        if(AliEveTRDNode *node = dynamic_cast<AliEveTRDNode*>(fM)) node->UpdateNode();
-       
+
        fDisplayHits->SetEnabled(fM->fLoadHits);
        if(fM->fLoadHits) fDisplayHits->SetState( fM->fRnrHits ? kButtonDown : kButtonUp);
-               
+
        fDisplayDigits->SetEnabled(fM->fLoadDigits);
        fToggleLog->SetEnabled(fM->fLoadDigits);
        fToggleBox->SetEnabled(fM->fLoadDigits);
@@ -183,10 +183,10 @@ void AliEveTRDModuleEditor::SetModel(TObject* obj)
                fToggleBox->SetState(fM->fDigitsBox ? kButtonDown : kButtonUp);
                fThreshold->SetState(fM->kDigitsNeedRecompute ? kButtonDown : kButtonUp);
        }
-       
+
        if(fM->fLoadRecPoints) fDisplayClusters->SetState(fM->fRnrRecPoints ? kButtonDown : kButtonUp);
        else fDisplayClusters->SetEnabled(kFALSE);
-       
+
        if(fM->fLoadTracklets) fDisplayTracks->SetState(fM->fRnrTracklets ? kButtonDown : kButtonUp);
        else fDisplayTracks->SetEnabled(kFALSE);
 }
@@ -202,7 +202,7 @@ void AliEveTRDModuleEditor::ModifyDigitsView()
 void AliEveTRDModuleEditor::SetThreshold(Long_t tres)
 {
        if(!fM->fLoadDigits) return;
-       
+
        fM->fDigitsThreshold = (tres == 0) ? (int)fThresValue->GetNumber():tres;
        fM->kDigitsNeedRecompute = fThreshold->IsDown();
        UpdateChamber();
@@ -216,7 +216,7 @@ void AliEveTRDModuleEditor::UpdateChamber()
 
        fM->fRnrHits = kFALSE;
        if(fDisplayHits->IsDown()) fM->fRnrHits = kTRUE;
-       
+
        fM->fRnrDigits = kFALSE;
        if(fDisplayDigits->IsDown()){
                fM->fRnrDigits = kTRUE;
@@ -225,10 +225,10 @@ void AliEveTRDModuleEditor::UpdateChamber()
                if(fToggleBox->IsDown()) fM->fDigitsBox = kTRUE;
                else  fM->fDigitsBox = kFALSE;
        }
-       
+
        fM->fRnrRecPoints = kFALSE;
        if(fDisplayClusters->IsDown()) fM->fRnrRecPoints = kTRUE;
-       
+
        fM->fRnrTracklets = kFALSE;
        if(fDisplayTracks->IsDown()) fM->fRnrTracklets = kTRUE;
 
@@ -241,7 +241,7 @@ void AliEveTRDModuleEditor::UpdateChamber()
 void AliEveTRDModuleEditor::UpdateClusters(Pixel_t /*col*/)
 {
 //     Info("UpdateClusters()","");
-/*     
+/*
        if(fM->fRecPoints){
                fM->fRecPoints->SetMarkerColor(col ? fHitsColor->GetColor() : col);
                gEve->Redraw3D();
@@ -253,7 +253,7 @@ void AliEveTRDModuleEditor::UpdateClusters(Pixel_t /*col*/)
 void AliEveTRDModuleEditor::UpdateHits(Pixel_t /*col*/)
 {
 //     Info("UpdateHits()","");
-/*     
+/*
        if(fM->fHits){
                fM->fHits->SetMarkerColor(col ? fClustersColor->GetColor() : col);
                gEve->Redraw3D();
index 3847595af3d5aaad1bcb1d736a8b209e7d6a09b7..25881db6683400c698a16daefb422fbcafa0330b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TRDModule_H
 #define ALIEVE_TRDModule_H
@@ -42,7 +42,7 @@ class TGColorSelect;
        public:
                AliEveTRDModule(const char *typ="XXX", Int_t id=0);
                virtual ~AliEveTRDModule() {}
-       
+
                virtual Bool_t GetDigitsBox(){return fDigitsBox;}
                virtual Bool_t GetDigitsLog(){return fDigitsLog;}
                virtual UShort_t GetDigitsThreshold(){return fDigitsThreshold;}
@@ -58,12 +58,12 @@ class TGColorSelect;
 
                Bool_t  fLoadRecPoints, fRnrRecPoints;
                Bool_t  fLoadTracklets, fRnrTracklets;
-               
+
                Int_t fDet; // detector number
                UShort_t        fDigitsThreshold; // digits threshold
        ClassDef(AliEveTRDModule,1) // Structure holder for TRD chamber
        };
-       
+
 
        class AliEveTRDModuleEditor : public TGedFrame
        {
@@ -78,7 +78,7 @@ class TGColorSelect;
                void    UpdateChamber();
                void    UpdateClusters(Pixel_t);
                void    UpdateHits(Pixel_t);
-       
+
        protected:
                AliEveTRDModule* fM;
 
@@ -90,7 +90,7 @@ class TGColorSelect;
                TGCheckButton *fDisplayClusters;
                TGColorSelect *fClustersColor;
                TGCheckButton *fDisplayTracks;
-               
+
        ClassDef(AliEveTRDModuleEditor,1) // Editor for AliEveTRDModule
        };
 #endif
index 00d6a9dd26772023f39e1336ce8e8f0a3b084086..df97c5bfd308adf93d3012450174137ae7732a19 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "AliEveTRDModuleImp.h"
 #include "AliEveTRDData.h"
@@ -90,7 +90,7 @@ void AliEveTRDNode::EnableListElements()
 {
        SetRnrSelf(kTRUE);
        AliEveTRDNode *node = 0x0;
-       AliEveTRDChamber *chmb = 0x0;   
+       AliEveTRDChamber *chmb = 0x0;
        List_i iter = fChildren.begin();
        while(iter != fChildren.end()){
                if((node = dynamic_cast<AliEveTRDNode*>(*iter))){
@@ -108,7 +108,7 @@ void AliEveTRDNode::DisableListElements()
 {
        SetRnrSelf(kFALSE);
        AliEveTRDNode *node = 0x0;
-       AliEveTRDChamber *chmb = 0x0;   
+       AliEveTRDChamber *chmb = 0x0;
        List_i iter = fChildren.begin();
        while(iter != fChildren.end()){
                if((node = dynamic_cast<AliEveTRDNode*>(*iter))){
@@ -129,7 +129,7 @@ void AliEveTRDNode::UpdateLeaves()
        while(iter != fChildren.end()){
                module = dynamic_cast<AliEveTRDModule*>(*iter);
                if(!module) continue;
-               
+
                module->fRnrHits = fRnrHits;
                module->fRnrDigits = fRnrDigits;
                module->fDigitsLog = fDigitsLog;
@@ -170,7 +170,7 @@ void AliEveTRDNode::UpdateNode()
                if(!module) continue;
                score[0] += (module->fLoadHits) ? 1 : 0;
                score[1] += (module->fRnrHits) ? 1 : 0;
-               
+
                score[2] += (module->fLoadDigits) ? 1 : 0;
                score[3] += (module->fRnrDigits) ? 1 : 0;
                score[4] += (module->fDigitsLog) ? 1 : 0;
@@ -185,7 +185,7 @@ void AliEveTRDNode::UpdateNode()
                iter++;
        }
 
-       Int_t size = fChildren.size(); 
+       Int_t size = fChildren.size();
        fLoadHits      = (score[0] > 0) ? kTRUE : kFALSE;
        fRnrHits       = (score[1] == size) ? kTRUE : kFALSE;
 
@@ -214,15 +214,15 @@ AliEveTRDChamber::AliEveTRDChamber(Int_t det) :
   //
   // Constructor
   //
-       
+
        fDigits    = 0x0;
        fHits      = 0x0;
        fRecPoints = 0x0;
        fTracklets = 0x0;
-       
+
        AliTRDCommonParam* parCom = AliTRDCommonParam::Instance();
        samplingFrequency = parCom->GetSamplingFrequency();
-       
+
        fGeo      = 0x0;
        fPadPlane = 0x0;
 }
@@ -238,7 +238,7 @@ AliEveTRDChamber::AliEveTRDChamber(const AliEveTRDChamber &mod):
 
        if(mod.fDigits) {}
        if(mod.fHits) {}
-       if(mod.fRecPoints){} 
+       if(mod.fRecPoints){}
 }
 
 //________________________________________________________
@@ -252,7 +252,7 @@ AliEveTRDChamber& AliEveTRDChamber::operator=(const AliEveTRDChamber &mod)
     fDet    = mod.fDet;
                if(mod.fDigits) {}
                if(mod.fHits) {}
-               if(mod.fRecPoints){} 
+               if(mod.fRecPoints){}
   }
   return *this;
 }
@@ -283,12 +283,12 @@ void AliEveTRDChamber::LoadClusters(TObjArray *clusters)
   //
   // Draw clusters
   //
-       
+
        if(!fGeo){
                AliError(Form("Geometry not set for chamber %d. Please call first AliEveTRDChamber::SetGeometry().", fDet));
                return;
        }
-       
+
        if(!fRecPoints){
                fRecPoints = new AliEveTRDClusters(this);
                fRecPoints->SetMarkerSize(1.);
@@ -299,7 +299,7 @@ void AliEveTRDChamber::LoadClusters(TObjArray *clusters)
 
        Float_t q;
         Double_t cloc[3], cglo[3];
-       
+
        AliTRDcluster *c=0x0;
        for(int iclus=0; iclus<clusters->GetEntriesFast(); iclus++){
                c = (AliTRDcluster*)clusters->UncheckedAt(iclus);
@@ -325,10 +325,10 @@ void AliEveTRDChamber::LoadDigits(AliTRDdigitsManager *digits)
                return;
        }
 //     Info("LoadDigits()", Form("digits =0x%x", digits));
-       
+
        if(!fDigits) fDigits = new AliEveTRDDigits(this);
        else fDigits->Reset();
-       
+
        fDigits->SetData(digits);
        fLoadDigits = kTRUE;
 }
@@ -347,7 +347,7 @@ void AliEveTRDChamber::AddHit(AliTRDhit *hit)
                fHits->SetMarkerColor(2);
                fHits->SetOwnIds(kTRUE);
        }
-       
+
        fHits->SetNextPoint(hit->X(), hit->Y(), hit->Z());
        fHits->SetPointId(hit);
        fLoadHits = kTRUE;
@@ -364,12 +364,12 @@ void AliEveTRDChamber::LoadTracklets(TObjArray *tracks)
                return;
        }
 //     Info("LoadTracklets()", Form("tracks = 0x%x", tracks));
-       
+
        if(!fTracklets){
                fTracklets = new std::vector<TEveTrack*>;
        } else fTracklets->clear();
-       
-       
+
+
        AliTRDmcmTracklet *trk = 0x0;
        Double_t cloc[3], cglo[3];
        for(int itrk=0; itrk<tracks->GetEntries();itrk++){
@@ -377,13 +377,13 @@ void AliEveTRDChamber::LoadTracklets(TObjArray *tracks)
                trk->MakeTrackletGraph(fGeo,.5);
                fTracklets->push_back(new TEveTrack());
                fTracklets->back()->SetLineColor(4);
-               
+
                cloc[0] = trk->GetTime0(); // x0
                cloc[1] = trk->GetOffset(); // y0
                cloc[2] = trk->GetRowz(); // z
          fGeo->RotateBack(fDet,cloc,cglo);
                fTracklets->back()->SetNextPoint(cglo[0], cglo[1], cglo[2]);
-               
+
                cloc[0] += 3.7; // x1
                cloc[1] += TMath::Tan(trk->GetSlope()*TMath::Pi()/180.) * 3.7; // y1
          fGeo->RotateBack(fDet,cloc,cglo);
@@ -436,10 +436,10 @@ void      AliEveTRDChamber::Reset()
 void AliEveTRDChamber::SetGeometry(AliTRDgeometry *geo)
 {
        fGeo = geo;
-               
+
        fPla = fGeo->GetPlane(fDet);
        fX0 = fGeo->GetTime0(fPla);
-       
+
        fPadPlane = fGeo->GetPadPlane(fPla,fGeo->GetChamber(fDet));
        rowMax = fPadPlane->GetNrows();
        colMax = fPadPlane->GetNcols();
index ae43921af5799152d08d3a71154c29d26bf629e8..17174823202857a432f18013cc8251f97af9a58b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_TRDModuleImp_H
 #define ALIEVE_TRDModuleImp_H
@@ -13,7 +13,7 @@
 //
 // Implementation of AliEveTRDModule:
 //    - AliEveTRDChamber - Data holder
-//    - AliEveTRDNode    - Node structure 
+//    - AliEveTRDNode    - Node structure
 //
 // by A.Bercuci (A.Bercuci@gsi.de)   Fri Oct 27 2006
 /////////////////////////////////////////////////////////////////////////
@@ -42,13 +42,13 @@ class TEveTrack;
        {
        friend class AliEveTRDDigits;
        public:
-       
+
                AliEveTRDChamber(Int_t det=0);
                virtual ~AliEveTRDChamber() {}
-       
+
                AliEveTRDChamber(const AliEveTRDChamber&);
                AliEveTRDChamber& operator=(const AliEveTRDChamber&);
-               
+
                void    AddHit(AliTRDhit *hit);
                Int_t   GetRowMax() const {return rowMax;}
                Int_t   GetColMax() const {return colMax;}
@@ -62,7 +62,7 @@ class TEveTrack;
                void    Paint(Option_t* option="");
                void    Reset();
                void    SetGeometry(AliTRDgeometry *geo);
-               
+
        protected:
                AliEveTRDDigits *fDigits;   // digits representation
                AliEveTRDHits           *fHits;     // hits representation
@@ -78,11 +78,11 @@ class TEveTrack;
                Int_t           fPla; // detector plane
                AliTRDpadPlane *fPadPlane; // pad plane object
                AliTRDgeometry *fGeo; // TRD geometry
-       
+
        ClassDef(AliEveTRDChamber,1) // Holder for TRD chamber data
        };
 
-       
+
        class AliEveTRDNode : public TEveElement, public AliEveTRDModule
        {
        public:
@@ -96,10 +96,10 @@ class TEveTrack;
                void    DisableListElements(); // *MENU*
                void    UpdateLeaves();
                void    UpdateNode();
-               
+
                List_i begin(){return fChildren.begin();}
                List_i end(){return fChildren.end();}
-       
+
        ClassDef(AliEveTRDNode, 1)
        };
 #endif
index 8da24f9b86b225b8ddd1c3fe5506dc2dcd16523f..c4ae39480344d548f204210f6c41e2d55740e35c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTrackFitter.h"
@@ -30,7 +30,7 @@
 // points, listening to signal PointCtrlClicked() of any
 // TEvePointSet. Via editor it fits selected points and creates a
 // reconstructed track.
-// 
+//
 
 ClassImp(AliEveTrackFitter)
 
@@ -52,7 +52,7 @@ AliEveTrackFitter::AliEveTrackFitter(const Text_t* name, Int_t n_points) :
   fGraphSelected = new TGraph();
   fGraphSelected->SetName("Selected points");
   fGraphSelected->SetMarkerColor(4);
-  fGraphSelected->SetMarkerStyle(4);  
+  fGraphSelected->SetMarkerStyle(4);
   fGraphSelected->SetMarkerSize(2);
 
   fGraphFitted = new TGraphErrors();
@@ -118,9 +118,9 @@ void AliEveTrackFitter::Stop()
 /**************************************************************************/
 
 void AliEveTrackFitter::AddFitPoint(TEvePointSet* ps, Int_t n)
-{ 
+{
   // Add/remove given point depending if exists in the fMapPS.
+
   Float_t x, y, z;
 
   std::map<Point_t, Int_t>::iterator g = fMapPS.find(Point_t(ps, n));
@@ -135,11 +135,11 @@ void AliEveTrackFitter::AddFitPoint(TEvePointSet* ps, Int_t n)
     fMapPS.erase(g);
     fLastPoint--;
   }
-  else 
+  else
   {
     fMapPS[Point_t(ps, n)] = Size();
     ps->GetPoint(n, x, y, z);
-    SetNextPoint(x, y, z); 
+    SetNextPoint(x, y, z);
     SetPointId(ps->GetPointId(n));
   }
   ResetBBox();
@@ -174,8 +174,8 @@ void AliEveTrackFitter::FitTrack()
   GetPoint(alphaIdx, x, y, z);
   fAlpha = ATan2(y, x);
   Float_t sin = Sin(-fAlpha);
-  Float_t cos = Cos(-fAlpha);  
-  for (Int_t i=0; i<=fLastPoint; i++) { 
+  Float_t cos = Cos(-fAlpha);
+  for (Int_t i=0; i<=fLastPoint; i++) {
     GetPoint(i, x, y, z);
     fRieman->AddPoint(cos*x - sin*y, cos*y + sin*x, z, 1, 1);
   }
@@ -198,7 +198,7 @@ void AliEveTrackFitter::FitTrack()
   Double_t P0[3];
   trackParam.GetPxPyPzAt(r, TEveTrackPropagator::fgDefMagField, P0);
   TEveRecTrack rc;
-  rc.fV.Set(AliEveV0); 
+  rc.fV.Set(AliEveV0);
   rc.fP.Set(P0);
   rc.fSign = trackParam.Charge();
 
@@ -209,11 +209,11 @@ void AliEveTrackFitter::FitTrack()
   {
     GetPoint(i, x, y, z);
     pm->fV.Set(x, y, z);
-    pm->fP.Set(P0); 
+    pm->fP.Set(P0);
     track->AddPathMark(pm);
   }
   track->MakeTrack();
-  track->SetAttLineAttMarker(fTrackList); 
+  track->SetAttLineAttMarker(fTrackList);
   gEve->AddElement(track, fTrackList);
 }
 
@@ -241,7 +241,7 @@ void AliEveTrackFitter::DrawRiemanGraph()
   fGraphSelected->Set(nR);
   fGraphFitted->Set(nR);
 
-  Double_t* x =  fRieman->GetX();  
+  Double_t* x =  fRieman->GetX();
   Double_t* y =  fRieman->GetY();
   Double_t* sy =  fRieman->GetSy();
   for (Int_t i=0; i<nR; i++)
@@ -250,7 +250,7 @@ void AliEveTrackFitter::DrawRiemanGraph()
     fGraphFitted->SetPoint(i, x[i], fRieman->GetYat(x[i]));
     fGraphFitted->SetPointError(i, 0.1, sy[i]);
   }
-  
+
   if (gPad) gPad->Clear();
   fGraphSelected->Draw("AP");
   fGraphFitted->Draw("SAME P");
index c29d0e483498ca63eb2ea10f015490510b5c542e..844a33138989ab14f04c62f9da24961b5ef0192c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TrackFitter_H
@@ -36,7 +36,7 @@ protected:
     // inner structure to check duplicates
     TEvePointSet* fPS;   // selected pointset
     Int_t           fIdx;  // location in the point set array
-    Point_t(TEvePointSet* ps, Int_t i): fPS(ps), fIdx(i){} 
+    Point_t(TEvePointSet* ps, Int_t i): fPS(ps), fIdx(i){}
     bool operator<(const Point_t& o) const
     { if (fPS != o.fPS) return fPS < o.fPS; return fIdx < o.fIdx; }
   };
@@ -44,15 +44,15 @@ protected:
   Float_t    fAlpha;          // transformation agle to local system (where x>>y)
   AliRieman* fRieman;         // rieman fitter
 
-  Bool_t     fConnected;      // object connected to pointset Ctrl-shift signal 
-  
-  TEveTrackList* fTrackList; // track list created with rieman fit 
+  Bool_t     fConnected;      // object connected to pointset Ctrl-shift signal
+
+  TEveTrackList* fTrackList; // track list created with rieman fit
 
   std::map<Point_t, Int_t> fMapPS; // map of selected points from different TEvePointSet
 public:
   AliEveTrackFitter(const Text_t* name, Int_t n_points=0);
   virtual ~AliEveTrackFitter();
-  
+
   virtual void AddFitPoint(TEvePointSet*,Int_t);  // slot for PointCtrlClicked() signal
 
   virtual void DestroyElements(); // *MENU*
index fa7b0e940f07f02c1719c449bce017f070ba285d..3ca3452d79ea63cab86fcdc51a9012083adf337c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveTrackFitterEditor.h"
@@ -62,7 +62,7 @@ AliEveTrackFitterEditor::AliEveTrackFitterEditor(const TGWindow *p, Int_t width,
 /**************************************************************************/
 
 void AliEveTrackFitterEditor::SetModel(TObject* obj)
-{ 
+{
   // Set model object.
 
   fM = dynamic_cast<AliEveTrackFitter*>(obj);
@@ -73,7 +73,7 @@ void AliEveTrackFitterEditor::SetModel(TObject* obj)
     fStop->SetState(kButtonUp);
   }
   else
-  { 
+  {
     fStop->SetState(kButtonDisabled);
     fStart->SetState(kButtonEngaged);
     fStart->SetState(kButtonUp);
index 086bb82c19fe794ac606f38c2b1eb91567dd289c..df9dc53c03e47c70ee52431d7c5485967869b539 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_TrackFitterEditor_H
@@ -42,7 +42,7 @@ public:
 
   void DoStart();
   void DoFit();
-  void DoReset(); 
+  void DoReset();
   void DoStop();
   void DoGraph();
 
index c3ca35eaab53b9417001c13382ae618936d73e78..aa43c3a8f579d132b39f5e479a04ffc270870877 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "AliEveVSDCreator.h"
@@ -50,7 +50,7 @@ AliEveVSDCreator::AliEveVSDCreator(const Text_t* name, const Text_t* title) :
   mKineType (KT_Standard),
   mDataDir  ("."),
   mEvent    (0),
-  
+
   mTPCHitRes (2),
   mTRDHitRes (2),
 
@@ -82,7 +82,7 @@ AliEveVSDCreator::AliEveVSDCreator(const Text_t* name, const Text_t* title) :
                       0,2,"Ion",kion+20030);
   }
 
-  // AliKalmanTrack::SetConvConst(1); 
+  // AliKalmanTrack::SetConvConst(1);
 }
 
 /**************************************************************************/
@@ -96,7 +96,7 @@ void AliEveVSDCreator::CreateVSD(const Text_t* data_dir, Int_t event,
   mEvent   = event;
 
   string galice_file (Form("%s/galice.root", mDataDir.Data()));
+
   if(mDebugLevel > 0)
     printf("%s opening %s \n", eH.Data(), galice_file.c_str());
 
@@ -138,7 +138,7 @@ void AliEveVSDCreator::CreateVSD(const Text_t* data_dir, Int_t event,
 
   file->Write();
   file->Close();
-  delete file; 
+  delete file;
   fDirectory =0;
 
   //GledNS::PopFD();
@@ -229,7 +229,7 @@ void AliEveVSDCreator::ConvertKinematics()
 {
   static const TEveException eH("AliEveVSDCreator::ConvertKinematics ");
 
-  if(fTreeK != 0) 
+  if(fTreeK != 0)
     throw (eH + "kinematics already converted");
 
   AliStack* stack = pRunLoader->Stack();
@@ -238,7 +238,7 @@ void AliEveVSDCreator::ConvertKinematics()
 
   fDirectory->cd();
   fTreeK = new TTree("Kinematics", "TParticles sorted by Label");
+
   Int_t nentries = stack->GetNtrack();
   vector<TEveMCTrack>  vmc(nentries);
   for (Int_t idx=0; idx<nentries; idx++) {
@@ -263,12 +263,12 @@ void AliEveVSDCreator::ConvertKinematics()
       // printf("T0 fTreeTR->GetEntry(%d) \n",iPrimPart);
       fTreeTR->GetEntry(iPrimPart);
       // printf("END fTreeTR->GetEntry(%d) \n",iPrimPart);
-    
+
       for (Int_t iTrackRef = 0; iTrackRef < RunArrayTR->GetEntriesFast(); iTrackRef++) {
-       AliTrackReference *trackRef = (AliTrackReference*)RunArrayTR->At(iTrackRef); 
+       AliTrackReference *trackRef = (AliTrackReference*)RunArrayTR->At(iTrackRef);
        Int_t track = trackRef->GetTrack();
-       if(track < nentries && track > 0){ 
-         TEveMCTrack& mct = vmc[track];        
+       if(track < nentries && track > 0){
+         TEveMCTrack& mct = vmc[track];
          if(trackRef->TestBit(kNotDeleted)) {
            mct.decayed   = true;
            mct.t_decay   = trackRef->GetTime();
@@ -281,7 +281,7 @@ void AliEveVSDCreator::ConvertKinematics()
            if(TMath::Abs(mct.GetPdgCode()) == 11)
              mct.decayed = false; // a bug in TreeTR
          }
-       }       
+       }
       }
     }
   }
@@ -319,7 +319,7 @@ void AliEveVSDCreator::ConvertKinematics()
 
 namespace {
 
-  struct Detector 
+  struct Detector
   {
     const char*   name;
     const char*   hitbranch;
@@ -348,7 +348,7 @@ void AliEveVSDCreator::ConvertHits()
   fDirectory->cd();
   fTreeH =  new TTree("Hits", "Combined detector hits.");
   fTreeH->Branch("H", "TEveHit", &fpH, fBuffSize);
+
   map<Int_t, Int_t> hmap;
   // parameters for ITS, TPC hits filtering
   Float_t x,y,z, x1,y1,z1;
@@ -361,14 +361,14 @@ void AliEveVSDCreator::ConvertHits()
     Detector& det = detects[l++];
 
     switch(det.detidx) {
-    case 1: { 
+    case 1: {
       Int_t count = 0;
       TTree* treeh = pRunLoader->GetTreeH(det.name, false);
       if(treeh == 0) {
        Warning(eH, Form("no hits for %s.", det.name));
        continue;
       }
-      AliTPCTrackHitsV2 hv2, *_hv2=&hv2; 
+      AliTPCTrackHitsV2 hv2, *_hv2=&hv2;
       treeh->SetBranchAddress("TPC2", &_hv2);
       Int_t np = treeh->GetEntries();
       for(Int_t i=0; i<np; i++){
@@ -406,7 +406,7 @@ void AliEveVSDCreator::ConvertHits()
       treeh->SetBranchAddress(det.name, &arr);
       Int_t np = treeh->GetEntries();
       // in TreeH files hits are grouped in clones arrays
-      // each eva particle has its own clone array 
+      // each eva particle has its own clone array
       for (Int_t i=0; i<np; i++) {
        treeh->GetEntry(i);
        Int_t eva_idx = np -i -1;
@@ -424,17 +424,17 @@ void AliEveVSDCreator::ConvertHits()
            x1=ali_hit->X();y1=ali_hit->Y();z1=ali_hit->Z();
            if((x-x1)*(x-x1)+(y-y1)*(y-y1)+(z-z1)*(z-z1) < trd_sqr_res) continue;
            x=x1; y=y1; z=z1;
-         } 
+         }
          hmap[fH.fLabel]++;
-         fTreeH->Fill(); 
+         fTreeH->Fill();
        }
       }
       delete arr;
       break;
-    } // end default 
+    } // end default
     } // end switch
   } // end while
-  
+
 
   //set geninfo
   for(map<Int_t, Int_t>::iterator j=hmap.begin(); j!=hmap.end(); ++j) {
@@ -472,11 +472,11 @@ void AliEveVSDCreator::ConvertTPCClusters()
 {
   static const TEveException eH("AliEveVSDCreator::ConvertTPCClusters ");
 
-  auto_ptr<TFile> f 
+  auto_ptr<TFile> f
     ( TFile::Open(Form("%s/TPC.RecPoints.root", mDataDir.Data())) );
   if(!f.get())
     throw(eH + "can not open 'TPC.RecPoints.root' file.");
-    
+
   auto_ptr<TDirectory> d
     ( (TDirectory*) f->Get(Form("AliEveEventManager%d", mEvent)) );
   if(!d.get())
@@ -501,7 +501,7 @@ void AliEveVSDCreator::ConvertTPCClusters()
     nClusters += _clrow->GetArray()->GetEntriesFast();
   }
 
-  // calculate xyz for a cluster and add it to container 
+  // calculate xyz for a cluster and add it to container
   Double_t x,y,z;
   Float_t cs, sn, tmp;
   map<Int_t, Int_t> cmap;
@@ -511,7 +511,7 @@ void AliEveVSDCreator::ConvertTPCClusters()
     Int_t ncl = _clrow->GetArray()->GetEntriesFast();
     if(ncl > 0) {
       Int_t sec,row;
-      par->AdjustSectorRow(_clrow->GetID(),sec,row);    
+      par->AdjustSectorRow(_clrow->GetID(),sec,row);
       while (ncl--) {
        if(_clrow->GetArray()) {
          // cl = new AliTPCclusterMI(*(AliTPCclusterMI*)_clrow->GetArray()->UncheckedAt(ncl));
@@ -520,7 +520,7 @@ void AliEveVSDCreator::ConvertTPCClusters()
          {
            x = par->GetPadRowRadii(sec,row); y = cl->GetY(); z = cl->GetZ();
            par->AdjustCosSin(sec,cs,sn);
-           tmp = x*cs-y*sn; y= x*sn+y*cs; x=tmp; 
+           tmp = x*cs-y*sn; y= x*sn+y*cs; x=tmp;
 
            fC.fDetId    = 1;
            fC.fSubdetId = 0;
@@ -552,11 +552,11 @@ void AliEveVSDCreator::ConvertITSClusters()
 {
   static const TEveException eH("AliEveVSDCreator::ConvertITSClusters ");
 
-  auto_ptr<TFile> f 
+  auto_ptr<TFile> f
     ( TFile::Open(Form("%s/ITS.RecPoints.root", mDataDir.Data())) );
   if(!f.get())
     throw(eH + "can not open 'ITS.RecPoints.root' file.");
-    
+
   auto_ptr<TDirectory> d
     ( (TDirectory*) f->Get(Form("AliEveEventManager%d", mEvent)) );
   if(!d.get())
@@ -589,12 +589,12 @@ void AliEveVSDCreator::ConvertITSClusters()
     for (Int_t j=0; j<nc; j++) {
       AliITSclusterV2* recp = (AliITSclusterV2*)arr->UncheckedAt(j);
 
-      Double_t rot[9];     
+      Double_t rot[9];
       geom->GetRotMatrix(mod,rot);
-      Int_t lay,lad,det;   
+      Int_t lay,lad,det;
       geom->GetModuleId(mod,lay,lad,det);
-      Float_t tx,ty,tz;    
-      geom->GetTrans(lay,lad,det,tx,ty,tz);     
+      Float_t tx,ty,tz;
+      geom->GetTrans(lay,lad,det,tx,ty,tz);
 
       Double_t alpha=TMath::ATan2(rot[1],rot[0])+TMath::Pi();
       Double_t phi1=TMath::Pi()/2+alpha;
@@ -619,7 +619,7 @@ void AliEveVSDCreator::ConvertITSClusters()
        while(i < 3 && fC.fLabel[i])
          cmap[fC.fLabel[i++]]++;
       }
-    } 
+    }
 
     for(map<Int_t, Int_t>::iterator j=cmap.begin(); j!=cmap.end(); ++j) {
       GetGeninfo(j->first)->fNClus += j->second;
@@ -643,22 +643,22 @@ void AliEveVSDCreator::ConvertRecTracks()
   fTreeR =  new TTree("RecTracks", "rec tracks");
 
   fTreeR->Branch("R", "TEveRecTrack", &fpR, 512*1024,1);
+
   TFile f(Form("%s/AliESDs.root", mDataDir.Data()));
   if(!f.IsOpen())
     throw(eH + "no AliESDs.root file.");
 
   TTree* tree = (TTree*) f.Get("esdTree");
-  if (tree == 0) 
+  if (tree == 0)
     throw(eH + "no esdTree.");
 
-  AliESDEvent *fEvent= new AliESDEvent();  
+
+  AliESDEvent *fEvent= new AliESDEvent();
   fEvent->ReadFromTree(tree);
-  tree->GetEntry(mEvent); 
+  tree->GetEntry(mEvent);
   if(fEvent->GetAliESDOld())fEvent->CopyFromOldESD();
 
+
   // reconstructed tracks
   AliESDtrack* esd_t;
   Double_t     dbuf[3];
@@ -698,12 +698,12 @@ void AliEveVSDCreator::ConvertV0()
   }
 
   TTree* tree = (TTree*) f.Get("esdTree");
-  if (tree == 0) 
+  if (tree == 0)
     throw(eH + "no esdTree.");
 
-  AliESDEvent *fEvent= new AliESDEvent();  
+  AliESDEvent *fEvent= new AliESDEvent();
   fEvent->ReadFromTree(tree);
-  tree->GetEntry(mEvent); 
+  tree->GetEntry(mEvent);
   if(fEvent->GetAliESDOld())fEvent->CopyFromOldESD();
 
   for (Int_t n =0; n< fEvent->GetNumberOfV0s(); n++)
@@ -717,10 +717,10 @@ void AliEveVSDCreator::ConvertV0()
     fV0.fStatus = av->GetStatus();
     // Point of closest approach
     av->GetXYZ(pos[0],pos[1],pos[2]);
-    fV0.fVCa.fX = pos[0]; 
+    fV0.fVCa.fX = pos[0];
     fV0.fVCa.fY = pos[1];
     fV0.fVCa.fZ = pos[2];
-    // set birth vertex of neutral particle     
+    // set birth vertex of neutral particle
     av->GetXYZ(pos[0], pos[1], pos[2]);
     fV0.fV0Birth.Set(pos);
 
@@ -743,7 +743,7 @@ void AliEveVSDCreator::ConvertV0()
     fV0.fDLabel[0] = TMath::Abs(trackN->GetLabel());
     fV0.fDLabel[1] = TMath::Abs(trackP->GetLabel());
 
-    // printf("AliEveV0 convert labels(%d,%d) index(%d,%d)\n", 
+    // printf("AliEveV0 convert labels(%d,%d) index(%d,%d)\n",
     //    fV0.d_label[0],  fV0.d_label[1],
     //    av->GetNIndex(), av->GetPIndex());
 
@@ -773,13 +773,13 @@ void AliEveVSDCreator::ConvertKinks()
   }
 
   TTree* tree = (TTree*) f.Get("esdTree");
-  if (tree == 0) 
+  if (tree == 0)
     throw(eH + "no esdTree.");
 
 
-  AliESDEvent *fEvent= new AliESDEvent();  
+  AliESDEvent *fEvent= new AliESDEvent();
   fEvent->ReadFromTree(tree);
-  tree->GetEntry(mEvent); 
+  tree->GetEntry(mEvent);
   if(fEvent->GetAliESDOld())fEvent->CopyFromOldESD();
 
 
@@ -797,7 +797,7 @@ void AliEveVSDCreator::ConvertKinks()
     fKK.fVKink.Set(kk->GetPosition());
 
     const AliExternalTrackParam& tp_mother = kk->RefParamMother();
-    // momentum and position of mother 
+    // momentum and position of mother
     tp_mother.GetPxPyPz(pos);
     fKK.fP.Set(pos);
     tp_mother.GetXYZ(pos);
@@ -805,9 +805,9 @@ void AliEveVSDCreator::ConvertKinks()
     const Double_t* par =  tp_mother.GetParameter();
     // printf("KINK Pt %f, %f \n",1/tp_mother.Pt(),par[4] );
     fKK.fSign = (par[4] < 0) ? -1 : 1;
-   
+
     const AliExternalTrackParam& tp_daughter = kk->RefParamDaughter();
-    // momentum and position of daughter 
+    // momentum and position of daughter
     tp_daughter.GetPxPyPz(pos);
     fKK.fPSec.Set(pos);
     tp_daughter.GetXYZ(pos);
@@ -844,7 +844,7 @@ void AliEveVSDCreator::ConvertGenInfo()
 
     if (fTreeR) {
       Int_t re = fTreeR->GetEntryNumberWithIndex(j->first);
-      if(re != -1) 
+      if(re != -1)
        fGI.fIsRec = true;
     }
     //    Int_t has_v0 =  fTreeV0->GetEntryNumberWithIndex(j->first);
index 5ef4ea12a865e5c620f0115b2542e57596ac4f21..c91bf5e7ddd27e98f1ca86a93435833003faa368 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef ALIEVE_VSDCreator_H
@@ -35,8 +35,8 @@ protected:
   TString       mDataDir;   // X{G}
   Int_t         mEvent;     // X{G}
 
-  Float_t       mTPCHitRes;  // X{gs} 
-  Float_t       mTRDHitRes;  // X{gs} 
+  Float_t       mTPCHitRes;  // X{gs}
+  Float_t       mTRDHitRes;  // X{gs}
 
   Int_t         mDebugLevel;
 
@@ -47,7 +47,7 @@ public:
   virtual ~AliEveVSDCreator() {}
 
   void CreateVSD(const Text_t* data_dir, Int_t event,
-                 const Text_t* vsd_file);  // X{Ed} 
+                 const Text_t* vsd_file);  // X{Ed}
 
   void CreateTrees();
 
index 8a063bda50cc0271d93a71bb1fcf558454e5886e..20347613b7b0e047029e80fcb98e58b3df228d9c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #pragma link off all functions;
 #pragma link off all globals;
index be4e67f2474c7372bd6ae11f02b4173674c452c9..d79c5576b329d6d63fdbd03bf220e1a93018a4c5 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include <TInterpreter.h>
 #include <TRint.h>
index 5cd3207027f708b92426eb9f9045f5732f6f5c16..4ed5c244ee90da424dd0599cfeee18d1e320eb7e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
@@ -185,49 +185,49 @@ void AliEveCascade::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVect
 
   TEveTrackPropagator& RS((fRnrStyle != 0) ? *fRnrStyle : TEveTrackPropagator::fgDefStyle);
 
-  Float_t px = p.x, py = p.y, pz = p.z;  
+  Float_t px = p.x, py = p.y, pz = p.z;
 
   MCVertex  mc_v0;
   mc_v0.x = vtx.x;
-  mc_v0.y = vtx.y; 
-  mc_v0.z = vtx.z; 
+  mc_v0.y = vtx.y;
+  mc_v0.z = vtx.z;
   mc_v0.t = 0;
 
   std::vector<MCVertex> track_points;
   Bool_t decay = kFALSE;
 
-  if ((TMath::Abs(vtx.z) > RS.fMaxZ) || (vtx.x*vtx.x + vtx.y*vtx.y > RS.fMaxR*RS.fMaxR)) 
+  if ((TMath::Abs(vtx.z) > RS.fMaxZ) || (vtx.x*vtx.x + vtx.y*vtx.y > RS.fMaxR*RS.fMaxR))
     goto make_polyline;
-  
+
   if (TMath::Abs(RS.fMagField) > 1e-5) {
 
     // Charged particle in magnetic field
 
     Float_t a = RS.fgkB2C * RS.fMagField * charge;
-   
+
     MCHelix helix(fRnrStyle, &mc_v0, TMath::C()*beta, &track_points, a); //m->cm
     helix.Init(TMath::Sqrt(px*px+py*py), pz);
-   
+
     if(!pathMark.empty()){
       for(std::vector<TEvePathMark*>::iterator i=pathMark.begin();
          i!=pathMark.end(); ++i) {
 
        TEvePathMark* pm = *i;
-        
+
        if(RS.fFitDaughters &&  pm->type == TEvePathMark::Daughter){
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto helix_bounds;
 
-          //printf("%s fit daughter  \n", fName.Data()); 
+          //printf("%s fit daughter  \n", fName.Data());
          helix.LoopToVertex(p.x, p.y, p.z, pm->V.x, pm->V.y, pm->V.z);
          p.x -=  pm->P.x;
          p.y -=  pm->P.y;
          p.z -=  pm->P.z;
        }
        if(RS.fFitDecay &&  pm->type == TEvePathMark::Decay){
-         
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto helix_bounds;
          helix.LoopToVertex(p.x, p.y, p.z, pm->V.x, pm->V.y, pm->V.z);
@@ -248,14 +248,14 @@ void AliEveCascade::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVect
     // Neutral particle or no field
 
     MCLine line(fRnrStyle, &mc_v0, TMath::C()*beta, &track_points);
-   
+
     if(!pathMark.empty()) {
       for(std::vector<TEvePathMark*>::iterator i=pathMark.begin();
          i!=pathMark.end(); ++i) {
        TEvePathMark* pm = *i;
 
        if(RS.fFitDaughters &&  pm->type == TEvePathMark::Daughter){
-          if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+          if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto line_bounds;
          line.GotoVertex(pm->V.x, pm->V.y, pm->V.z);
@@ -265,7 +265,7 @@ void AliEveCascade::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVect
        }
 
        if(RS.fFitDecay &&  pm->type == TEvePathMark::Decay){
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto line_bounds;
          line.GotoVertex(pm->V.x, pm->V.y, pm->V.z);
@@ -291,7 +291,7 @@ make_polyline:
 
 //______________________________________________________________________
 void AliEveCascade::MakeV0path() {
-  
+
   MCVertex  mc_v0;
   mc_v0.x = (fV_neg.x+fV_pos.x)/2;
   mc_v0.y = (fV_neg.y+fV_pos.y)/2;
@@ -313,7 +313,7 @@ void AliEveCascade::MakeV0path() {
 
 //______________________________________________________________________
 void AliEveCascade::MakeCasPath() {
-  
+
   MCVertex  mc_v0;
   mc_v0.x = fV_birth.x;
   mc_v0.y = fV_birth.y;
@@ -343,7 +343,7 @@ void AliEveCascade::MakeCascade()
   MakeTrack(fPathMarksPos, fV_pos, fP_pos,  1, fBeta_pos, fPolyLinePos);
   if (fBeta_bach>0)
     MakeTrack(fPathMarksBach, fV_bach, fP_bach,  1, fBeta_bach, fPolyLineBach);
-  else 
+  else
     MakeTrack(fPathMarksBach, fV_bach, fP_bach, -1, -fBeta_bach, fPolyLineBach);
   MakeV0path();
   MakeCasPath();
@@ -378,9 +378,9 @@ Float_t AliEveCascade::GetCasPtArmenteros() const
   Float_t px = GetPx(), py = GetPy(), pz = GetPz();
   Float_t p2 = px*px + py*py + pz*pz;
   if (p2 < 1.e-39) return  -999;
-  
+
   Float_t posXcas, posP2;
-  
+
   if (fBeta_bach>0) {
     posXcas = fP_bach.x*px + fP_bach.y*py + fP_bach.z*pz;
     posP2 = GetBachP2();
@@ -619,7 +619,7 @@ void CascadeList::AdjustHist(Int_t iHist) {
 
   if ((iHist<0)||(iHist>=fgkNcutVar)) return;
   if (! fHist[iHist]) return;
-  
+
   TString name = fHist[iHist]->GetName();
   Int_t nBin = fHist[iHist]->GetXaxis()->GetNbins();
   delete fHist[iHist];
@@ -759,7 +759,7 @@ void CascadeList::FilterAll() {
 
   for (Int_t i=0; i<fgkNcutVar2D; i++)
     fHist2D[i]->Reset();
-  
+
   AliEveCascade* myCas;
   for(List_i i=fChildren.begin(); i!=fChildren.end(); ++i) {
 
index f94fb1c263253cf87ea8606f97562b1d4ca1f224..be6722d5a319eba4b6865d326dff4d602a41ba92 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_Cascade_H
 #define ALIEVE_Cascade_H
@@ -79,7 +79,7 @@ protected:
   static const Float_t fgkMassProton2;
   static const Float_t fgkMassLambda2;
 
-public: 
+public:
   AliEveCascade();
   AliEveCascade(TEveTrackPropagator* rs);
   virtual ~AliEveCascade();
@@ -127,8 +127,8 @@ public:
   void SetBachP(Float_t px, Float_t py, Float_t pz) {fP_bach.x = px; fP_bach.y = py; fP_bach.z = pz;}
 
   void SetV0vtx(Float_t vx, Float_t vy, Float_t vz)  {
-    fV_neg.x = vx; fV_neg.y = vy; fV_neg.z = vz; 
-    fV_pos.x = vx; fV_pos.y = vy; fV_pos.z = vz; 
+    fV_neg.x = vx; fV_neg.y = vy; fV_neg.z = vz;
+    fV_pos.x = vx; fV_pos.y = vy; fV_pos.z = vz;
   }
   void SetCascadeVtx(Float_t vx, Float_t vy, Float_t vz) {
     fV_decay.x = vx; fV_decay.y = vy; fV_decay.z = vz; }
@@ -399,7 +399,7 @@ public:
   virtual void Paint(Option_t* option="");
 
   void  SetRnrStyle(TEveTrackPropagator* rst) { fRnrStyle= rst; }
-  TEveTrackPropagator* GetPropagator()          { return fRnrStyle; } 
+  TEveTrackPropagator* GetPropagator()          { return fRnrStyle; }
 
   Bool_t GetRnrCasVtx() const { return fRnrCasVtx; }
   Bool_t GetRnrCasPath() const { return fRnrCasPath; }
index 2158db1ee69268db502be210abe1d5f3c546e9fa..79a45a2b77edcb7179c629c9cf7fa2927899eb40 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 /***********************************************************************
@@ -56,9 +56,9 @@ CascadeListEditor::CascadeListEditor(const TGWindow *p,
   fMainTabB(0)
 {
   MakeTitle("CascadeList");
+
   //TGHorizontalFrame* frame = new TGHorizontalFrame(this);
+
   // --- Rendering control
 
   fRnrVtx = new TGCheckButton(this, "Render v0 and cascade vertices");
@@ -69,12 +69,12 @@ CascadeListEditor::CascadeListEditor(const TGWindow *p,
   fRnrV0path = new TGCheckButton(this, "Render v0 path");
   AddFrame(fRnrV0path, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrV0path->Connect("Toggled(Bool_t)",
-                    "CascadeListEditor", this, "DoRnrV0path()");  
+                    "CascadeListEditor", this, "DoRnrV0path()");
 
   fRnrCasPath = new TGCheckButton(this, "Render cascade path");
   AddFrame(fRnrCasPath, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrCasPath->Connect("Toggled(Bool_t)",
-                      "CascadeListEditor", this, "DoRnrCasPath()");  
+                      "CascadeListEditor", this, "DoRnrCasPath()");
 
   fRnrV0Daughters = new TGCheckButton(this, "Render v0 daughter tracks");
   AddFrame(fRnrV0Daughters, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
@@ -85,7 +85,7 @@ CascadeListEditor::CascadeListEditor(const TGWindow *p,
   AddFrame(fRnrBach, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrBach->Connect("Toggled(Bool_t)",
                        "CascadeListEditor", this, "DoRnrBach()");
-    
+
   for (Int_t i=0; i<fgkNRange; i++) fRange[i]=0;
   for (Int_t i=0; i<fgkNCanvas; i++) fCanvasA[i]=0;
   for (Int_t i=0; i<fgkNCanvas; i++) fCanvasB[i]=0;
@@ -139,7 +139,7 @@ TGCompositeFrame* CascadeListEditor::AddTab(TGTab* tab, Int_t i, Int_t can,
   c1->SetTicks(1,0);
   c1->SetGrid();
   c1->SetBorderMode(0);
+
   frameTab->AddFrame(*embeddedCanvas, new TGLayoutHints(kLHintsTop|kLHintsExpandX,
                                                       0, 0, 0, 0));
   return frameTab;
@@ -159,7 +159,7 @@ TGCompositeFrame** CascadeListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab,
   // container of "Tab1"
   TGCompositeFrame *frameTab1 = pMainTab[0]->AddTab("ident.");
   frameTab1->SetLayoutManager(new TGVerticalLayout(frameTab1));
-  
+
   // tab widget
   ptab[0] = new TGTab(frameTab1,2,2);
   ptab[0]->Resize(ptab[0]->GetDefaultSize());
@@ -167,23 +167,23 @@ TGCompositeFrame** CascadeListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab,
   // (it updates every canvas)
   ptab[0]->Connect("Selected(Int_t)", "CascadeListEditor", this, "UpdateSelectedTab()");
   frameTab1->AddFrame(ptab[0], new TGLayoutHints(kLHintsLeft| kLHintsExpandX,0,0,0,0));
-  
+
   //------
   // container of "Tab2"
   TGCompositeFrame *frameTab2 = pMainTab[0]->AddTab("cascade");
   frameTab2->SetLayoutManager(new TGVerticalLayout(frameTab2));
-  
+
   // tab widget
   ptab[1] = new TGTab(frameTab2,440,299);
   ptab[1]->Resize(ptab[1]->GetDefaultSize());
   ptab[1]->Connect("Selected(Int_t)", "CascadeListEditor", this, "UpdateSelectedTab()");
   frameTab2->AddFrame(ptab[1], new TGLayoutHints(kLHintsLeft| kLHintsExpandX ,0,0,0,0));
-  
+
   //------
   // container of "Tab3"
   TGCompositeFrame *frameTab3 = pMainTab[0]->AddTab("V0daugh/bach.");
   frameTab3->SetLayoutManager(new TGVerticalLayout(frameTab3));
-  
+
   // tab widget
   ptab[2] = new TGTab(frameTab3,440,299);
   ptab[2]->Resize(ptab[2]->GetDefaultSize());
@@ -192,7 +192,7 @@ TGCompositeFrame** CascadeListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab,
 
   //------
   TGCompositeFrame **frameTab = new TGCompositeFrame*[fgkNCanvas];
-  
+
   frameTab[0] = AddTab(ptab[0], 0, can, "Xi");
   frameTab[1] = AddTab(ptab[0], 1, can, "Omega");
   frameTab[2] = AddTab(ptab[0], 2, can, "Arm.Podo.");
@@ -269,7 +269,7 @@ void CascadeListEditor::AddValuator(TGCompositeFrame* frame, char *name,
 
 //_________________________________________________________________________
 void CascadeListEditor::AddSelectTab() {
+
   TGCompositeFrame** tab = CreateTab(&fMainTabA, fTabA, 1);
 
   AddValuator(tab[0],  "mass Xi",       0,  5, 3, "MassXiRange()",     0);
@@ -318,7 +318,7 @@ void CascadeListEditor::ResetCuts() {
   Float_t min,max;
 
   for (Int_t i=0; i<fgkNRange;i++) {
-    
+
     if (i==2) continue;
     min = fRange[i]->GetLimitMin();
     max = fRange[i]->GetLimitMax();
@@ -371,7 +371,7 @@ void CascadeListEditor::FillCanvas() {
       if (is2D) hist2D->Draw("colz"); else hist->Draw();
       c1->Modified();
       c1->Update();
-      
+
       c1b = fCanvasB[i]->GetCanvas();
       c1b->cd();
       if (is2D) hist2D->Draw("colz"); else hist->Draw();
@@ -389,7 +389,7 @@ void CascadeListEditor::UpdateSelectedTab() {
   gClient->GetColorByName("yellow", yellow);
   gClient->GetColorByName("grey", grey);
 
-  TGTabElement *tabElem; 
+  TGTabElement *tabElem;
   for (i=0; i<fMainTabA->GetNumberOfTabs(); i++) {
 
     tabElem = fMainTabA->GetTabTab(i);
index ebae1f0234d6cc4a26207f43b2562e26bed9194c..0514c4189f33d76749cdbdd8fd228b9d39bdc03b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /***********************************************************************
   This editor appears in the TEveUtil window when cascades are visualize.
index 5a73419006a1acaef17bb0c716b8d1f07db1cb15..303d4541b8c61c4cef0a5fb6deedb6e857bae53a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
@@ -157,49 +157,49 @@ void AliEveV0::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVector& p
 
   TEveTrackPropagator& RS((fRnrStyle != 0) ? *fRnrStyle : TEveTrackPropagator::fgDefStyle);
 
-  Float_t px = p.x, py = p.y, pz = p.z;  
+  Float_t px = p.x, py = p.y, pz = p.z;
 
   MCVertex  mc_v0;
   mc_v0.x = vtx.x;
-  mc_v0.y = vtx.y; 
-  mc_v0.z = vtx.z; 
+  mc_v0.y = vtx.y;
+  mc_v0.z = vtx.z;
   mc_v0.t = 0;
 
   std::vector<MCVertex> track_points;
   Bool_t decay = kFALSE;
 
-  if ((TMath::Abs(vtx.z) > RS.fMaxZ) || (vtx.x*vtx.x + vtx.y*vtx.y > RS.fMaxR*RS.fMaxR)) 
+  if ((TMath::Abs(vtx.z) > RS.fMaxZ) || (vtx.x*vtx.x + vtx.y*vtx.y > RS.fMaxR*RS.fMaxR))
     goto make_polyline;
-  
+
   if (TMath::Abs(RS.fMagField) > 1e-5) {
 
     // Charged particle in magnetic field
 
     Float_t a = RS.fgkB2C * RS.fMagField * charge;
-   
+
     MCHelix helix(fRnrStyle, &mc_v0, TMath::C()*beta, &track_points, a); //m->cm
     helix.Init(TMath::Sqrt(px*px+py*py), pz);
-   
+
     if(!pathMark.empty()){
       for(std::vector<TEvePathMark*>::iterator i=pathMark.begin();
          i!=pathMark.end(); ++i) {
 
        TEvePathMark* pm = *i;
-        
+
        if(RS.fFitDaughters &&  pm->type == TEvePathMark::Daughter){
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto helix_bounds;
 
-          //printf("%s fit daughter  \n", fName.Data()); 
+          //printf("%s fit daughter  \n", fName.Data());
          helix.LoopToVertex(p.x, p.y, p.z, pm->V.x, pm->V.y, pm->V.z);
          p.x -=  pm->P.x;
          p.y -=  pm->P.y;
          p.z -=  pm->P.z;
        }
        if(RS.fFitDecay &&  pm->type == TEvePathMark::Decay){
-         
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto helix_bounds;
          helix.LoopToVertex(p.x, p.y, p.z, pm->V.x, pm->V.y, pm->V.z);
@@ -220,14 +220,14 @@ void AliEveV0::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVector& p
     // Neutral particle or no field
 
     MCLine line(fRnrStyle, &mc_v0, TMath::C()*beta, &track_points);
-   
+
     if(!pathMark.empty()) {
       for(std::vector<TEvePathMark*>::iterator i=pathMark.begin();
          i!=pathMark.end(); ++i) {
        TEvePathMark* pm = *i;
 
        if(RS.fFitDaughters &&  pm->type == TEvePathMark::Daughter){
-          if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+          if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto line_bounds;
          line.GotoVertex(pm->V.x, pm->V.y, pm->V.z);
@@ -237,7 +237,7 @@ void AliEveV0::MakeTrack(vpPathMark_t& pathMark, TEveVector& vtx,  TEveVector& p
        }
 
        if(RS.fFitDecay &&  pm->type == TEvePathMark::Decay){
-         if(TMath::Abs(pm->V.z) > RS.fMaxZ 
+         if(TMath::Abs(pm->V.z) > RS.fMaxZ
             || TMath::Sqrt(pm->V.x*pm->V.x + pm->V.y*pm->V.y) > RS.fMaxR )
            goto line_bounds;
          line.GotoVertex(pm->V.x, pm->V.y, pm->V.z);
@@ -264,11 +264,11 @@ make_polyline:
 
 //______________________________________________________________________
 void AliEveV0::MakeV0path() {
-  
+
   MCVertex  mc_v0;
   mc_v0.x = fV_v0.x;
-  mc_v0.y = fV_v0.y; 
-  mc_v0.z = fV_v0.z; 
+  mc_v0.y = fV_v0.y;
+  mc_v0.z = fV_v0.z;
   mc_v0.t = 0;
 
   std::vector<MCVertex> track_points;
@@ -527,7 +527,7 @@ void V0List::AdjustHist(Int_t iHist) {
 
   if ((iHist<0)||(iHist>=fgkNcutVar)) return;
   if (! fHist[iHist]) return;
-  
+
   TString name = fHist[iHist]->GetName();
   Int_t nBin = fHist[iHist]->GetXaxis()->GetNbins();
   delete fHist[iHist];
@@ -664,7 +664,7 @@ void V0List::FilterAll() {
 
   for (Int_t i=0; i<fgkNcutVar2D; i++)
     fHist2D[i]->Reset();
-  
+
   AliEveV0* myV0;
   for(List_i i=fChildren.begin(); i!=fChildren.end(); ++i) {
 
index 82a2d63d6433620884077e15602981f603816a7b..814a84a836ed86b26988c90ea6145a5969bbc8b3 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifndef ALIEVE_V0_H
 #define ALIEVE_V0_H
@@ -40,7 +40,7 @@ class AliEveV0 : public TEveElement,
   AliEveV0(const AliEveV0&);            // Not implemented
   AliEveV0& operator=(const AliEveV0&); // Not implemented
 
-public: 
+public:
   AliEveV0();
   AliEveV0(TEveRecTrack* tNeg, TEveRecTrack* tPos, TEveRecV0* v0,
      TEveTrackPropagator* rs);
@@ -165,12 +165,12 @@ protected:
 
 
 //______________________________________________________________________
-inline void AliEveV0::SetDaughterDCA(Float_t dca) { 
-  fDaughterDCA = dca; 
+inline void AliEveV0::SetDaughterDCA(Float_t dca) {
+  fDaughterDCA = dca;
 }
 
-inline void AliEveV0::SetCosPointingAngle(Float_t cos) { 
-  fCosPointingAngle = cos; 
+inline void AliEveV0::SetCosPointingAngle(Float_t cos) {
+  fCosPointingAngle = cos;
 }
 
 inline void AliEveV0::SetDecayLength(Float_t len) {
@@ -339,7 +339,7 @@ public:
   virtual void Paint(Option_t* option="");
 
   void  SetRnrStyle(TEveTrackPropagator* rst) { fRnrStyle= rst; }
-  TEveTrackPropagator* GetPropagator()          { return fRnrStyle; } 
+  TEveTrackPropagator* GetPropagator()          { return fRnrStyle; }
 
   Bool_t GetRnrV0vtx() const { return fRnrV0vtx; }
   Bool_t GetRnrV0path() const { return fRnrV0path; }
index ba3d0c6b435e21ac621b830fb0db90a8c840d721..14a3582961b234b91c23f342057a0b26603bf722 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
@@ -70,15 +70,15 @@ V0ListEditor::V0ListEditor(const TGWindow *p,
   fMainTabB(0)
 {
   MakeTitle("V0List");
+
   //TGHorizontalFrame* frame = new TGHorizontalFrame(this);
+
   // --- Rendering control
 
   fRnrV0path = new TGCheckButton(this, "Render v0 path");
   AddFrame(fRnrV0path, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrV0path->Connect("Toggled(Bool_t)",
-                    "V0ListEditor", this, "DoRnrV0path()");  
+                    "V0ListEditor", this, "DoRnrV0path()");
 
   fRnrV0vtx = new TGCheckButton(this, "Render v0 vertices");
   AddFrame(fRnrV0vtx, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
@@ -89,7 +89,7 @@ V0ListEditor::V0ListEditor(const TGWindow *p,
   AddFrame(fRnrV0sDaugh, new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
   fRnrV0sDaugh->Connect("Toggled(Bool_t)",
                        "V0ListEditor", this, "DoRnrDaughters()");
-    
+
   for (Int_t i=0; i<fgkNRange; i++) fRange[i]=0;
   for (Int_t i=0; i<fgkNCanvas; i++) fCanvasA[i]=0;
 
@@ -139,7 +139,7 @@ TGCompositeFrame* V0ListEditor::AddTab(TGTab* tab, Int_t i, Int_t can,
   c1->SetTicks(1,0);
   c1->SetGrid();
   c1->SetBorderMode(0);
+
   frameTab->AddFrame(*embeddedCanvas, new TGLayoutHints(kLHintsTop|kLHintsExpandX,
                                                       0, 0, 0, 0));
   return frameTab;
@@ -155,12 +155,12 @@ TGCompositeFrame** V0ListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t
   pMainTab[0]->Connect("Selected(Int_t)", "V0ListEditor", this, "UpdateSelectedTab()");
   this->AddFrame(pMainTab[0], new TGLayoutHints( kLHintsTop | kLHintsExpandX,2,2,2,2));
 
-  
+
   //------
   // container of "Tab1"
   TGCompositeFrame *frameTab1 = pMainTab[0]->AddTab("ident.");
   frameTab1->SetLayoutManager(new TGVerticalLayout(frameTab1));
-  
+
   // tab widget
 
   ptab[0] = new TGTab(frameTab1,2,2);
@@ -169,23 +169,23 @@ TGCompositeFrame** V0ListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t
   // (it updates every canvas)
   ptab[0]->Connect("Selected(Int_t)", "V0ListEditor", this, "UpdateSelectedTab()");
   frameTab1->AddFrame(ptab[0], new TGLayoutHints(kLHintsLeft| kLHintsExpandX,0,0,0,0));
-  
+
   //------
   // container of "Tab2"
   TGCompositeFrame *frameTab2 = pMainTab[0]->AddTab("v0");
   frameTab2->SetLayoutManager(new TGVerticalLayout(frameTab2));
-  
+
   // tab widget
   ptab[1] = new TGTab(frameTab2,440,299);
   ptab[1]->Resize(ptab[1]->GetDefaultSize());
   ptab[1]->Connect("Selected(Int_t)", "V0ListEditor", this, "UpdateSelectedTab()");
   frameTab2->AddFrame(ptab[1], new TGLayoutHints(kLHintsLeft| kLHintsExpandX ,0,0,0,0));
-  
+
   //------
   // container of "Tab3"
   TGCompositeFrame *frameTab3 = pMainTab[0]->AddTab("daughters");
   frameTab3->SetLayoutManager(new TGVerticalLayout(frameTab3));
-  
+
   // tab widget
   ptab[2] = new TGTab(frameTab3,440,299);
   ptab[2]->Resize(ptab[2]->GetDefaultSize());
@@ -194,7 +194,7 @@ TGCompositeFrame** V0ListEditor::CreateTab(TGTab **pMainTab, TGTab **ptab, Int_t
 
   //------
   TGCompositeFrame **frameTab = new TGCompositeFrame*[fgkNCanvas];
-  
+
   frameTab[0] = AddTab(ptab[0], 0, can, "K0s");
   frameTab[1] = AddTab(ptab[0], 1, can, "Lambda");
   frameTab[2] = AddTab(ptab[0], 2, can, "Anti-Lambda");
@@ -268,7 +268,7 @@ void V0ListEditor::AddValuator(TGCompositeFrame* frame, char *name,
 
 //_________________________________________________________________________
 void V0ListEditor::AddSelectTab() {
+
   TGCompositeFrame** tab = CreateTab(&fMainTabA, fTabA, 1);
 
   AddValuator(tab[0],  "mass K0s",           0,  5, 3, "MassK0sRange()",     1);
@@ -314,7 +314,7 @@ void V0ListEditor::ResetCuts() {
   Float_t min,max;
 
   for (Int_t i=0; i<fgkNRange;i++) {
-    
+
     if (i==12) continue;
     min = fRange[i]->GetLimitMin();
     max = fRange[i]->GetLimitMax();
@@ -368,7 +368,7 @@ void V0ListEditor::FillCanvas() {
       if (is2D) hist2D->Draw("colz"); else hist->Draw();
       c1->Modified();
       c1->Update();
-      
+
       c1b = fCanvasB[i]->GetCanvas();
       c1b->cd();
       if (is2D) hist2D->Draw("colz"); else hist->Draw();
@@ -388,7 +388,7 @@ void V0ListEditor::UpdateSelectedTab() {
   gClient->GetColorByName("yellow", yellow);
   gClient->GetColorByName("grey", grey);
 
-  TGTabElement *tabElem; 
+  TGTabElement *tabElem;
   for (i=0; i<fMainTabA->GetNumberOfTabs(); i++) {
 
     tabElem = fMainTabA->GetTabTab(i);
index 25271e16029819e8319cbd28f7d938a87dfb1e8b..215b44e6d8cf1f1afb2b276fa81395858042ef5d 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
index b83390928dbeef1303ca48d7ac461e2b7bcae0c6..3350cc6f5573c010d15be9010e034a11ebe0cae8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "TGLViewer.h"
 
@@ -21,8 +21,8 @@ Bool_t g_fromRaw = kFALSE;
 
 void MUON_display(Bool_t fromRaw = kFALSE, Bool_t showTracks = kTRUE)
 {
-  if (!AliMpSegmentation::Instance()) AliMpCDB::LoadMpSegmentation();  
+
+  if (!AliMpSegmentation::Instance()) AliMpCDB::LoadMpSegmentation();
   if (!AliMpDDLStore::Instance())     AliMpCDB::LoadDDLStore();
 
   TTree* dt = 0;
@@ -56,7 +56,7 @@ void MUON_display(Bool_t fromRaw = kFALSE, Bool_t showTracks = kTRUE)
 
   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   g_muon_data = new AliEveMUONData;
-  
+
   if (!fromRaw) {
     rl->LoadDigits("MUON");
     dt = rl->GetTreeD("MUON", false);
@@ -74,35 +74,35 @@ void MUON_display(Bool_t fromRaw = kFALSE, Bool_t showTracks = kTRUE)
       g_muon_data->LoadRaw(dataPath.Data());
     }
   }
-  
+
   rl->LoadRecPoints("MUON");
   ct = rl->GetTreeR("MUON", false);
   g_muon_data->LoadRecPoints(ct);
-  
+
   rl->LoadHits("MUON");
   ht = rl->GetTreeH("MUON", false);
   g_muon_data->LoadHits(ht);
-  
+
   g_muon_last_event = gEvent;
-  
+
   g_currentEvent = g_muon_last_event->GetEventId();
-  
+
   gStyle->SetPalette(1, 0);
 
   gEve->DisableRedraw();
-  
+
   TEveElementList* l = new TEveElementList("MUONChambers");
   l->SetTitle("MUON chambers");
   l->SetMainColor(Color_t(2));
   gEve->AddElement(l);
-  
+
   for (Int_t ic = 0; ic < 14; ic++) {
 
     AliEveMUONChamber* mucha = new AliEveMUONChamber(ic);
-    
+
     mucha->SetFrameColor(2);
     mucha->SetChamberID(ic);
-    
+
     mucha->SetDataSource(g_muon_data);
 
     gEve->AddElement(mucha, l);
@@ -142,9 +142,9 @@ void MUON_tracks() {
   Int_t ntracks = tracks->GetEntriesFast();
   //printf("Found %d tracks. \n",ntracks);
 
-  TEveTrackList* lt = new TEveTrackList("M-Tracks"); 
+  TEveTrackList* lt = new TEveTrackList("M-Tracks");
   lt->SetMainColor(Color_t(6));
-  //lt->SetMUON();  
+  //lt->SetMUON();
 
   gEve->AddElement(lt);
 
@@ -155,14 +155,14 @@ void MUON_tracks() {
   Float_t xRec, xRec0;
   Float_t yRec, yRec0;
   Float_t zRec, zRec0;
-  
+
   Float_t zg[4] = { -1603.5, -1620.5, -1703.5, -1720.5 };
 
-  AliMUONTrack *mt;  
+  AliMUONTrack *mt;
   TEveRecTrack  rt;
   Int_t count;
   for (Int_t n = 0; n < ntracks; n++) {
-    
+
     count = 0;
 
     mt = (AliMUONTrack*) tracks->At(n);
@@ -195,9 +195,9 @@ void MUON_trigger_tracks() {
   Int_t ntracks = tracks->GetEntriesFast();
   //printf("Found %d tracks. \n",ntracks);
 
-  TEveTrackList* lt = new TEveTrackList("MT-Tracks"); 
+  TEveTrackList* lt = new TEveTrackList("MT-Tracks");
   lt->SetMainColor(Color_t(4));
-  //lt->SetMUON();  
+  //lt->SetMUON();
 
   gEve->AddElement(lt);
 
@@ -208,14 +208,14 @@ void MUON_trigger_tracks() {
   Float_t xRec, xRec0;
   Float_t yRec, yRec0;
   Float_t zRec, zRec0;
-  
+
   Float_t zg[4] = { -1603.5, -1620.5, -1703.5, -1720.5 };
 
-  AliMUONTriggerTrack *mt;  
+  AliMUONTriggerTrack *mt;
   TEveRecTrack  rt;
   Int_t count;
   for (Int_t n = 0; n < ntracks; n++) {
-    
+
     count = 0;
 
     mt = (AliMUONTriggerTrack*) tracks->At(n);
@@ -239,7 +239,7 @@ void MUON_ESD_tracks() {
 
   AliESDEvent* esd = AliEveEventManager::AssertESD();
 
-  TEveTrackList* lt = new TEveTrackList("ESD-Tracks"); 
+  TEveTrackList* lt = new TEveTrackList("ESD-Tracks");
   lt->SetMainColor(Color_t(6));
   //lt->SetMUON();
 
@@ -274,14 +274,14 @@ void MUON_Ref_tracks() {
   AliMUONVTrackStore* trackRefStore = recoCheck.ReconstructibleTracks(gEvent->GetEventId());
   TIter next(trackRefStore->CreateIterator());
   AliMUONTrack* trackRef;
-  
-  TEveTrackList* lt = new TEveTrackList("Ref-Tracks"); 
+
+  TEveTrackList* lt = new TEveTrackList("Ref-Tracks");
   lt->SetMainColor(Color_t(6));
 
   gEve->AddElement(lt);
 
   TEveRecTrack rt;
-  Int_t i = 0;  
+  Int_t i = 0;
   while ( ( trackRef = static_cast<AliMUONTrack*>(next()) ) ) {
 
     rt.label = i++;
@@ -308,7 +308,7 @@ void MUON_MC_tracks() {
   Int_t nPrimary = stack->GetNprimary();
   Int_t nTracks  = stack->GetNtrack();
 
-  TEveTrackList* lt = new TEveTrackList("MC-Tracks"); 
+  TEveTrackList* lt = new TEveTrackList("MC-Tracks");
   lt->SetMainColor(Color_t(6));
   //lt->SetMUON();
 
index a8d28205bf87d76b893dd952e644d1ac49e418a4..b354e4b5e8c67fa222124e9d000a6a52e3337f89 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void MUON_geom()
index 88a730daf35d9b8475fc9dfb8a97e7f0b8530367..f0fa7c73f34bad05016e451e83d16eff2c7bafe2 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void MUON_geomAll()
@@ -18,9 +18,9 @@ void MUON_geomAll()
 
   TEveGeoTopNode* topn_re = new TEveGeoTopNode
     (gGeoManager, gGeoManager->GetTopNode());
-  
+
   gEve->AddGlobalElement(topn_re);
 
   gEve->Redraw3D(kTRUE);
-  
+
 }
index 8616c966b7b2bdffa96bf576a53a2d49e38c38a9..5a5ce307aeaf454176144bee138c84381ba4fdb5 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include <iomanip.h>
 
@@ -13,19 +13,19 @@ void MUON_trigger_info(Int_t label) {
   AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
 
   TTree* tt = rl->GetTreeT("MUON", false);
-  
+
   TClonesArray *tracks = 0;
   tt->SetBranchAddress("AliEveMUONTrack",&tracks);
   tt->GetEntry(0);
 
   Int_t ntracks = tracks->GetEntriesFast();
-  
+
   if (ntracks <= label) return;
 
-  AliMUONTrack *mt = tracks->At(label);  
+  AliMUONTrack *mt = tracks->At(label);
 
   TTree* tr = rl->GetTreeR("MUON", false);
-  
+
   TClonesArray *lotrig = 0;
   tr->SetBranchAddress("MUONLocalTrigger",&lotrig);
   tr->GetEntry(0);
@@ -40,10 +40,10 @@ void MUON_trigger_info(Int_t label) {
   AliMUONTrackParam *mtp = (AliMUONTrackParam*)mt->GetTrackParamAtVertex();
   Float_t pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
 
-  cout << "   Pt = " << 
+  cout << "   Pt = " <<
     setw(8) << setprecision(3) <<
     pt << "  GeV/c" << endl;
-  
+
   cout << endl;
 
   if (mt->GetLoTrgNum() >= 0) {
@@ -73,6 +73,6 @@ void MUON_trigger_info(Int_t label) {
   }
   cout << endl;
   cout << "#########################################################################################################################<<<<<" << endl;
-  
+
 }
 
index 29f40d6dc984c92e0ffbc115f1248f8eae288165..dae8f9fe168398de5eff753d1e5d05117fc98a93 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEveProjectionManager* NLT_test(TEveElement* top=0)
index cf7de35273efc1e1077f6a2b8708f887d1dca330..688915cab4cbc8d650395d68a60526a310ce439c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 class TEveProjectionManager;
@@ -27,7 +27,7 @@ void NLT_trackcount_init()
   TEveUtil::LoadMacro("tpc_clusters.C+");
 
   TEveViewer* nv = gEve->SpawnNewViewer("NLT Projected");
-  TEveScene*  ns = gEve->SpawnNewScene("NLT"); 
+  TEveScene*  ns = gEve->SpawnNewScene("NLT");
   nv->AddScene(ns);
   TGLViewer* v = nv->GetGLViewer();
   v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
index 96ca3eb183706e8a5c49d4be7807c9fd8c14cc3f..5c32f86baa6694bc7b4674a244713755f1290bba 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,7 +16,7 @@ acorde_hits(const char *varexp    = "ACORDE.fX:ACORDE.fY:ACORDE.fZ",
   rl->LoadHits("ACORDE");
 
   TTree* ht = rl->GetTreeH("ACORDE", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 0daa87a31ed08274f6401b3952f32c3672aab4c8..cdd4ab6a8d97fce7b0e54494330db9f1d60d15cb 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet* clusters_from_index(Int_t index=0, TEveElement* cont=0)
@@ -40,7 +40,7 @@ TEvePointSet* clusters_from_index(Int_t index=0, TEveElement* cont=0)
     pArr->GetPoint(*atp, i);
     clusters->SetPointId(atp);    }
 
-  
+
   if(clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
     Warning("clusters_from_index", Form("No clusters for index '%d'", index));
     delete clusters;
index 8547b2638504f9b44bfc329424542d9063f1c3cc..830fadabc44f4aea2537d99917a79073ac3c2b4a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet* clusters_from_label(Int_t label=0, TEveElement* cont=0)
index 1290c7c59c5319061ba039d2cf598920462e7e72..5cdc83c595556a77e1ccb1672d778a6e77e08c38 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void emcal_digits()
 {
@@ -87,8 +87,8 @@ void emcal_digits()
 
       cout<<"Cell ID "<<id<<" Amp "<<amp<<endl;//" time "<<time<<endl;
 
-      //Geometry methods  
-      geom->GetCellIndex(id,iSupMod,iTower,iIphi,iIeta); 
+      //Geometry methods
+      geom->GetCellIndex(id,iSupMod,iTower,iIphi,iIeta);
       //Gives SuperModule and Tower numbers
       geom->GetCellPhiEtaIndexInSModule(iSupMod,iTower,
                                        iIphi, iIeta,iphi,ieta);
index 56518af5144698ed08e5182bba06479bff064c53..4bea8f4cc7f8ba206d7d20bdb3cd97b3e23b0816 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,7 +16,7 @@ emcal_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("EMCAL");
 
   TTree* ht = rl->GetTreeH("EMCAL", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 1a0b8c7360f20d02fecf854a1e0b1fca686394f6..5a2e449c8eddcf65008fbf42586191512a0cdea2 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // #include "EVE/Alieve/EventAlieve.h"
 // #include "TEveManager.h"
@@ -20,7 +20,7 @@
 
 
 
-AliEveCascade* esd_make_cas(TEveTrackPropagator* rnrStyle, AliESDVertex* primVtx, 
+AliEveCascade* esd_make_cas(TEveTrackPropagator* rnrStyle, AliESDVertex* primVtx,
                            AliESDcascade* cas, AliESDtrack* neg, AliESDtrack* pos,
                            AliESDtrack* bach,Int_t i) {
 
@@ -74,7 +74,7 @@ CascadeList* esd_AliEveCascade(Double_t min_pt=0.1, Double_t max_pt=100)
   AliESDEvent* esd = AliEveEventManager::AssertESD();
   AliESDVertex* primVertex =(AliESDVertex*) esd->GetVertex();
 
-  CascadeList* cont = new CascadeList("ESD cascade"); 
+  CascadeList* cont = new CascadeList("ESD cascade");
   cont->SetMainColor(Color_t(3)); // green
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( esd->GetMagneticField() );
index 6e67247439b2be6b87ac1343cb247fcfcfb5e50a..d7f920da9266c79b4ea78d4da7c41d9e5bb5de3f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 
@@ -44,7 +44,7 @@ AliEveV0* esd_make_v0(TEveTrackPropagator* rnrStyle, AliESDVertex* primVtx,
     //   printf(" %f %f %f / %f %f %f    %i\n",p[0], p[1], p[2],
     //          v[0], v[1], v[2], v0->GetOnFlyStatus());
 
-    rcV0.V_neg.Set(v); //original track vertices at dca not stored 
+    rcV0.V_neg.Set(v); //original track vertices at dca not stored
     rcV0.V_pos.Set(v);
     rcV0.V_ca.Set(v);
 
@@ -59,7 +59,7 @@ AliEveV0* esd_make_v0(TEveTrackPropagator* rnrStyle, AliESDVertex* primVtx,
 
     AliEveV0* myV0 = new AliEveV0(&rcNeg, &rcPos, &rcV0, rnrStyle);
     char ch[50];
-    //   sprintf(ch,"ESDv0%i",i); 
+    //   sprintf(ch,"ESDv0%i",i);
     //   myV0->SetName(ch);
     //   myV0->SetTitle(ch);
     myV0->SetESDIndex(i);
@@ -90,7 +90,7 @@ V0List* esd_AliEveV0(Double_t min_pt=0.1, Double_t max_pt=100)
   AliESDEvent* esd = AliEveEventManager::AssertESD();
   AliESDVertex* primVertex =(AliESDVertex*) esd->GetVertex();
 
-  V0List* cont = new V0List("ESD v0"); 
+  V0List* cont = new V0List("ESD v0");
   cont->SetMainColor(Color_t(3)); // green
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( esd->GetMagneticField() );
@@ -108,7 +108,7 @@ V0List* esd_AliEveV0(Double_t min_pt=0.1, Double_t max_pt=100)
     Int_t posInd = v0->GetPindex();
     AliESDtrack* negTr = esd->GetTrack(negInd);
     AliESDtrack* posTr = esd->GetTrack(posInd);
-    
+
     AliEveV0* myV0 = esd_make_v0(rnrStyle, primVertex, negTr,posTr, v0, n);
     if (myV0) {
       gEve->AddElement(myV0, cont);
index ac88fce23694710d647914139e0bb2e6d5dcedb7..e1622e4c9f72d594c8c75e52d0669cea823f9482 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
index 0f1deddeacbc5516539ffe5d566f0d8e81181e49..c2f971eb8ce3de0bb0c8b9effc88ae2012eb169c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // To use when per-line id is supported
 class TrackletId : public TObject
index 1dc284a7f0fd1a71b4ea9e2f478deb5a736add3b..e7ac628ce53636046a75297fb9159559b9a741df 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEveTrack* esd_make_track(TEveTrackPropagator*   rnrStyle,
@@ -28,7 +28,7 @@ TEveTrack* esd_make_track(TEveTrackPropagator*   rnrStyle,
   rt.fP.Set(pbuf);
   Double_t ep = at->GetP(), mc = at->GetMass();
   rt.fBeta = ep/TMath::Sqrt(ep*ep + mc*mc);
+
   TEveTrack* track = new TEveTrack(&rt, rnrStyle);
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
@@ -54,7 +54,7 @@ TEveTrackList* esd_tracks(Double_t min_pt=0.1, Double_t max_pt=100)
   Double_t maxptsq = max_pt*max_pt;
   Double_t ptsq;
 
-  TEveTrackList* cont = new TEveTrackList("ESD Tracks"); 
+  TEveTrackList* cont = new TEveTrackList("ESD Tracks");
   cont->SetMainColor(Color_t(6));
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( esd->GetMagneticField() );
@@ -114,7 +114,7 @@ TEveTrackList* esd_tracks_from_array(TCollection* col, AliESDEvent* esd=0)
 
   if (esd == 0) esd = AliEveEventManager::AssertESD();
 
-  TEveTrackList* cont = new TEveTrackList("ESD Tracks"); 
+  TEveTrackList* cont = new TEveTrackList("ESD Tracks");
   cont->SetMainColor(Color_t(6));
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( esd->GetMagneticField() );
@@ -281,7 +281,7 @@ TEveElementList* esd_tracks_vertex_cut()
     ++count;
 
     TEveTrack* track = esd_make_track(tlist->GetPropagator(), n, at, tp);
-    track->SetAttLineAttMarker(tlist);    
+    track->SetAttLineAttMarker(tlist);
 
     //PH The line below is replaced waiting for a fix in Root
     //PH which permits to use variable siza arguments in CINT
index fa522e95bad0ab1779acc4a9010b3a231fd3924d..98ba53b87466a9b98b5fcfb811890a81cd89d4a5 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void event_goto(Int_t event=0)
 {
index b6ea804426cbe8bea33b23e5acbaa54cbb8b1870..fa02e49148e80b5317c60c61f1d4587fba795fe2 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void event_next()
 {
index fcf8c626da17f9ed3324afbafe3bb1d23b26daa7..b53d5583c25d362749740bbe11e066a29b074815 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void event_prev()
 {
index fe9b0594aa43d8fb60471fcff8f76610c49386a9..125b866d2c3863abd1909baf28582c4d454f6984 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -15,7 +15,7 @@ fmd_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("FMD");
 
   TTree* ht = rl->GetTreeH("FMD", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index b134f00500a4aedf06969d2025c608b814d96e62..8ef2977994206778b635648cec180850ddeb6651 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_acorde()
index 91be4416dc2c721abd18b35bfb4cbe15a820b062..ffed6dd04e10d3cdbb2463caa8e9ddce5bc8f99d 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_all()
index 3d23e985fc475d664d598e66b11eae3bde30ba7f..588bbe39c1231fc36d109333d166af2d2403a466 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_ddip()
index f14e91c0d5304a96170743ce19e6fca470165c84..95ccebda182e637e2257992bb19bfaef5715b06e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_emcal()
index c9f9d8f5ec5e0d53bb472858371e8744a5bdbbdd..190ff1b7b98dddeab0b340def9a0eee849bdd04a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_fmd()
index b19fad0d93d3324a3ecd7ac29270ea56d8d7bc00..9203a5e073868df69e05233dcac196748f3d6774 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEveGeoShape* geom_gentle()
index 25b73a93f1eb9585ca9e771a8e3bc32e0c67517a..7c980e694136cf3ba64cb2035e50f2d72e39fc16 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_hmpid()
index 9d7c4b455766515c37c44b8bee692719f53951ae..3e64e41922a067744f4ef595a33b0ed786622457 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_its()
index a682b333d5a9b6eededaed963826d7d127c3b339..93ce62c1011002dd7701e9c33d034fc55fec0aa7 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_phos()
index 876f63f9c594e4fb1cde21c3e0edd94442af9cbe..c6e9839e9dcaf8e982917e45d97362ad901f8356 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_pmd()
index 3411f29458986ada806ab8c57d85544458d4e876..1b6c0ae0688adae9437df60f8c4ddd43440d77de 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_simple()
index 0e20de6ee682c7089963c00d90eb530af09de906..d2fe16c80a15aeedadba9f1ac907fbcbb53f2672 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_t0()
index 0f2737187b886d9012e6b176dbf4f829f69bb354..7bdb14aec96c9cc3f235c07d7359f0707db46dbb 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_tpc()
index d45ab61f530cbee5584f03c6c5dfcca8a8606117..6d89c8f3b523808cf94263bdbe447bb30e6ef4c5 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_trd_tof()
index eceacd61012d8db3a321c39d92bd6989486b3255..37e07f44465b9e2ce7ccf25c417e69edef03f81d 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void geom_vzero()
index 6eb77a321ad2547296be65042d1147cd42b64498..c0bfe310b9926b45bfa50cfd2b84954d08a4a1ab 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void hits_from_label(Int_t label=0, TEveElement* cont)
index 6248ddbf72fddea5cf64c091a6e2e1c53f8d514c..beb0b0f07271d21b096cf2fd2650a99205b42c49 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifdef __CINT__
 
@@ -47,7 +47,7 @@ TEvePointSet* hmpid_clusters(TEveElement* cont=0, Float_t maxR=1000)
   clusters->SetOwnIds(kTRUE);
 
   AliEveEventManager::AssertGeometry();
-  
+
   AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
   rl->LoadRecPoints("HMPID");
 
@@ -58,7 +58,7 @@ TEvePointSet* hmpid_clusters(TEveElement* cont=0, Float_t maxR=1000)
      TBranch *br=cTree->GetBranch(name[k]);
      if (!br) return 0;
      br->SetAddress(&(cl[k]));
-  } 
+  }
 
   if (!cTree->GetEvent(0)) return 0;
 
index 211cd9968eb03593c084ff50f6e7248054a0e48a..f48efcc3305de9c567a852a677699e2696967c75 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void init_trd()
 {
index 14921d450615290b84c0b3eeff4662dde0ddc75c..e08118c407ff448a05f75e20571f5d449074fed6 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifdef __CINT__
 
index 6d7584480666530cc0c48ab3657d0eebb601be20..d42203e5b20d027d7bec26f7780b10d191079fe7 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 // Load ITS digits.
index c6c74ebb838a63f3d9a02646d8ec314293bafab4..321a5c89b007bfa5c7b24eed9f942e2f55e0a338 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,7 +16,7 @@ its_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("ITS");
 
   TTree* ht = rl->GetTreeH("ITS", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 26cdbd0af268109a7a1c4672d2425605148a087b..3093080d57f186a4ba699d76e07232b4b2153159 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void its_hits_layer_split(const char *varexp    = "fX:fY:fZ:GetLayer()",
index 79ffd9e7ba07a4fdf6ee22578f11733af2c692cd..28ca28db630c757008d7f4c8b99249f9a662f04c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include "TGLViewer.h"
 namespace Alieve
index 4021e13e8ee8ffe3fb37952961fc52c0af171595..65786e3039e064068066efcdf9f8aa07f7205246 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void its_raw(const char *input = "rawdata.root",
             Int_t  mode       = 63,
index 4059191367b4f540ba7404111c08723b27931ef7..e24e34527e5002bf373b4c58c3c5b6c4a642c92a 100644 (file)
@@ -4,10 +4,10 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 AliEveJetPlane* jetplane(Int_t iev)
-{      
+{
   TFile* f       = new TFile("aod.root");
   TTree* treeAOD = (TTree*) f->Get("AOD");
   AliAODEvent* aod = new AliAODEvent();
index 5a2613ef3dec05fcd8541a812b94c6cfb8512f25..190f8ddf4c59459cc276c7d757f1bc786cddf953 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // Import tracks from kinematics-tree / particle-stack.
 // Preliminary/minimal solution.
@@ -25,8 +25,8 @@ kine_tracks(Double_t min_pt  = 0.1,   Double_t min_p   = 0.2,
   }
 
   gEve->DisableRedraw();
-  TEveTrackList* cont = new TEveTrackList("Kine Tracks"); 
+
+  TEveTrackList* cont = new TEveTrackList("Kine Tracks");
   cont->SetMainColor(Color_t(3));
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   // !!! Watch the '-', apparently different sign convention then for ESD.
@@ -35,16 +35,16 @@ kine_tracks(Double_t min_pt  = 0.1,   Double_t min_p   = 0.2,
   gEve->AddElement(cont);
   Int_t count = 0;
   Int_t N = stack->GetNtrack();
-  for (Int_t i=0; i<N; ++i) 
+  for (Int_t i=0; i<N; ++i)
   {
-    if(stack->IsPhysicalPrimary(i)) 
+    if(stack->IsPhysicalPrimary(i))
     {
       TParticle* p = stack->Particle(i);
       if (p->Pt() < min_pt && p->P() < min_p) continue;
 
       ++count;
       TEveTrack* track = new TEveTrack(p, i, rnrStyle);
-  
+
       //PH The line below is replaced waiting for a fix in Root
       //PH which permits to use variable siza arguments in CINT
       //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
@@ -63,7 +63,7 @@ kine_tracks(Double_t min_pt  = 0.1,   Double_t min_p   = 0.2,
   }
 
   // set path marks
-  AliEveKineTools kt; 
+  AliEveKineTools kt;
   kt.SetDaughterPathMarks(cont, stack, recurse);
   if (use_track_refs && rl->LoadTrackRefs() == 0)
   {
@@ -90,15 +90,15 @@ void kine_daughters(TEveTrack* parent,  AliStack* stack,
                    Bool_t       pdg_col, Bool_t    recurse)
 {
   TParticle *p = stack->Particle(parent->GetLabel());
-  if (p->GetNDaughters() > 0) 
+  if (p->GetNDaughters() > 0)
   {
     TEveTrackPropagator* rs = parent->GetPropagator();
-    for (int d=p->GetFirstDaughter(); d>0 && d<=p->GetLastDaughter(); ++d) 
-    {  
+    for (int d=p->GetFirstDaughter(); d>0 && d<=p->GetLastDaughter(); ++d)
+    {
       TParticle* dp = stack->Particle(d);
       if (dp->Pt() < min_pt && dp->P() < min_p) continue;
 
-      TEveTrack* dtrack = new TEveTrack(dp, d, rs);  
+      TEveTrack* dtrack = new TEveTrack(dp, d, rs);
       char form[1000];
       sprintf(form,"%s [%d]", dp->GetName(), d);
       dtrack->SetName(form);
@@ -127,7 +127,7 @@ Color_t get_pdg_color(Int_t pdg)
   static const Color_t DefCol   = 30;
   static const Color_t ECol     = 5;
   static const Color_t MuCol    = 6;
-  static const Color_t GammaCol = 7; 
+  static const Color_t GammaCol = 7;
   static const Color_t MesCol1  = 3;
   static const Color_t MesCol2  = 38;
   static const Color_t BarCol   = 10;
@@ -138,8 +138,8 @@ Color_t get_pdg_color(Int_t pdg)
   // elementary  particles
   if (pdga < 100) {
     switch (pdga) {
-      case 11:  
-       col = ECol; break; 
+      case 11:
+       col = ECol; break;
       case 12:
        col = MuCol; break;
       case 22:
@@ -150,9 +150,9 @@ Color_t get_pdg_color(Int_t pdg)
   else if (pdga < 100000) {
     Int_t i  = pdga;
     Int_t i0 = i%10; i /= 10;
-    Int_t i1 = i%10; i /= 10; 
-    Int_t i2 = i%10; i /= 10; 
-    Int_t i3 = i%10; i /= 10; 
+    Int_t i1 = i%10; i /= 10;
+    Int_t i2 = i%10; i /= 10;
+    Int_t i3 = i%10; i /= 10;
     Int_t i4 = i%10;
     //printf("pdg(%d) quark indices (%d,%d,%d,%d,%d) \n",pdg, i4,i3,i2, i1, i0);
     // meson
@@ -186,7 +186,7 @@ kine_track(Int_t  label,
     Warning("kine_track", "label not set.");
     return 0;
   }
+
   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   rl->LoadKinematics();
   AliStack* stack = rl->Stack();
@@ -201,7 +201,7 @@ kine_track(Int_t  label,
   if (import_mother || (import_daughters && p->GetNDaughters()))
   {
     TEveTrack* toptrack = 0;
-    TEveTrackList* tracklist = 0;  
+    TEveTrackList* tracklist = 0;
     TEveTrackPropagator* rs = 0;
 
     if (cont == 0)
@@ -239,7 +239,7 @@ kine_track(Int_t  label,
 
     if (import_mother)
     {
-      TEveTrack* track = new TEveTrack(p, label, rs);  
+      TEveTrack* track = new TEveTrack(p, label, rs);
       char form[1000];
       sprintf(form,"%s [%d]", p->GetName(), label);
       track->SetName(form);
@@ -251,12 +251,12 @@ kine_track(Int_t  label,
       cont = track;
     }
 
-    if (import_daughters && p->GetNDaughters()) 
+    if (import_daughters && p->GetNDaughters())
     {
-      for (int d=p->GetFirstDaughter(); d>0 && d<=p->GetLastDaughter(); ++d) 
-      {        
+      for (int d=p->GetFirstDaughter(); d>0 && d<=p->GetLastDaughter(); ++d)
+      {
        TParticle* dp = stack->Particle(d);
-       TEveTrack* track = new TEveTrack(dp, d, rs);  
+       TEveTrack* track = new TEveTrack(dp, d, rs);
        char form[1000];
        sprintf(form,"%s [%d]", dp->GetName(), d);
        track->SetName(form);
index 6b7078d7b18fcb1e1eb10608cdf308ed1557bd45..ef3937e5148befab40fff1a6219bd7bf6a8ca14a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet* phos_clusters(TEveElement* cont=0)
index bc2bcbd23a91f99813a72fc94414d96b4a02edb9..cf33d7b11ccb86c59e7427b20cd234e342d33291 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // ---------------------------------------------------------------------- //
 void pmd_digits(Int_t mode = 0)
@@ -85,11 +85,11 @@ void pmd_digits(Int_t mode = 0)
          iendDDL   = 6;
          zpos      = 360.;
        }
-      
+
       TEveElementList* lplane = new TEveElementList(spl.Data());
       //  l->SetMainColor((Color_t)3);
       gEve->AddElement(lplane, l);
-      
+
       for (Int_t iddl = istartDDL; iddl < iendDDL; iddl++)
        {
          sddl = bsddl;
@@ -111,7 +111,7 @@ void pmd_digits(Int_t mode = 0)
 
          for (Int_t ism = 0; ism < NSM; ism++)
            {
-             
+
              AliEvePMDModule *lmodule = new AliEvePMDModule();
              lmodule->SetPosition(0.,0.,zpos);
              lmodule->DisplayDigitsData(modnumber, pmdt);
index c1580a04e0a160383262cf2c0789c729b5f525e7..a295f440a9c2e381ea5ea2004f9b0fa24395b70a 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -15,7 +15,7 @@ pmd_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("PMD");
 
   TTree* ht = rl->GetTreeH("PMD", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 390dd3d502fcd23ed2ee72edf05462285b30bb69..180e5b527b6018355a606bd148fe2b14c5049f6e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // ---------------------------------------------------------------------- //
 void pmd_raw(Int_t mode = 0)
@@ -29,7 +29,7 @@ void pmd_raw(Int_t mode = 0)
   //  l->SetTitle("PMD");
   //  l->SetMainColor((Color_t)3);
   gEve->AddElement(l);
-  
+
   Int_t NSM       = 0;
   Int_t istartDDL = 0;
   Int_t iendDDL   = 0;
@@ -45,7 +45,7 @@ void pmd_raw(Int_t mode = 0)
       iendPlane   = 1;
       printf("--- Visualization is set for PREshower Plane ---\n");
       break;
-      
+
     case 1:
       istartPlane = 1;
       iendPlane   = 2;
@@ -57,7 +57,7 @@ void pmd_raw(Int_t mode = 0)
       iendPlane   = 2;
       printf("--- Visualization is set for both the Plane ---\n");
       break;
-      
+
     default:
       printf("--- Not set for any Plane ---\n");
     }
@@ -79,11 +79,11 @@ void pmd_raw(Int_t mode = 0)
          iendDDL   = 6;
          zpos      = 360.;
        }
-      
+
       TEveElementList* lplane = new TEveElementList(spl.Data());
       //  l->SetMainColor((Color_t)3);
       gEve->AddElement(lplane, l);
-      
+
       for (Int_t iddl = istartDDL; iddl < iendDDL; iddl++)
       //for (Int_t iddl = 0; iddl < 1; iddl++)
        {
index 02c6cfb26507ab2cb82bfd2b50a1fd43a14d6e88..d1fe028935cc54da67df2b827d43cc33c9b9e04b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TPolyMarker3D* make_vertex_marker(AliESDVertex* v, const Text_t* name )
@@ -80,7 +80,7 @@ void primary_vertex_primitive(Bool_t showSPD=kTRUE, Bool_t showBoxes=kFALSE)
 /**************************************************************************/
 
 TEveStraightLineSet* ESDvertex_lineset(AliESDVertex* v, const Text_t* name)
-{ 
+{
   Double_t x[3], e[3];
   v->GetXYZ(x); v->GetSigmaXYZ(e);
   printf("%16s: %f %f %f   -   %f %f %f\n", name,
@@ -89,7 +89,7 @@ TEveStraightLineSet* ESDvertex_lineset(AliESDVertex* v, const Text_t* name)
   // dimensions
   TEveStraightLineSet* ls = new TEveStraightLineSet();
   ls->SetName(name);
-  ls->AddLine(e[0], 0, 0, -e[0], 0, 0); 
+  ls->AddLine(e[0], 0, 0, -e[0], 0, 0);
   ls->AddLine(0, e[1], 0, 0, -e[1], 0);
   ls->AddLine(0, 0, e[2], 0, 0, -e[2]);
   for(Int_t i =0; i < 3; i++)
@@ -101,7 +101,7 @@ TEveStraightLineSet* ESDvertex_lineset(AliESDVertex* v, const Text_t* name)
   // centre marker
   ls->AddMarker(0, 0.5);
   ls->RefHMTrans().SetPos(x);
-  return ls;  
+  return ls;
 }
 
 void make_vertex_ellipses(TEveStraightLineSet* ls, AliESDVertex* v, Bool_t ellipseUseSigma)
@@ -132,22 +132,22 @@ void make_vertex_ellipses(TEveStraightLineSet* ls, AliESDVertex* v, Bool_t ellip
 
   a = e[0]; b = e[1];
   for (Int_t i = 0; i<N; i++)
-    ls->AddLine(a*TMath::Cos(i*S)  , b*TMath::Sin(i*S)  , 0, 
+    ls->AddLine(a*TMath::Cos(i*S)  , b*TMath::Sin(i*S)  , 0,
                a*TMath::Cos(i*S+S), b*TMath::Sin(i*S+S), 0);
 
   a = e[0]; b = e[2];
   for (Int_t i = 0; i<N; i++)
-    ls->AddLine(a*TMath::Cos(i*S)  , 0, b*TMath::Sin(i*S), 
+    ls->AddLine(a*TMath::Cos(i*S)  , 0, b*TMath::Sin(i*S),
                a*TMath::Cos(i*S+S), 0, b*TMath::Sin(i*S+S));
 
   a = e[1]; b = e[2];
   for (Int_t i = 0; i<N; i++)
-    ls->AddLine(0, a*TMath::Cos(i*S)  ,  b*TMath::Sin(i*S), 
+    ls->AddLine(0, a*TMath::Cos(i*S)  ,  b*TMath::Sin(i*S),
                0, a*TMath::Cos(i*S+S),  b*TMath::Sin(i*S+S));
 }
 
 void primary_vertex(Bool_t showSPD=kTRUE, Bool_t rnrEllipse=kTRUE)
-{ 
+{
   AliESDEvent* esd = AliEveEventManager::AssertESD();
   TEveStraightLineSet* ls;
 
@@ -156,7 +156,7 @@ void primary_vertex(Bool_t showSPD=kTRUE, Bool_t rnrEllipse=kTRUE)
   if (rnrEllipse) make_vertex_ellipses(ls, PV, kTRUE);
   gEve->AddElement(ls);
 
-  if (showSPD) 
+  if (showSPD)
   {
     AliESDVertex*  SPDV  = esd->GetVertex();
     ls = ESDvertex_lineset(SPDV, "SPD Vertex");
index 91ba67359c257d6b28a002f8859b20ddfdad854b..e0b048e268c3981837d481fae1a38aa81260ba5c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 TEveTrackList* primary_vertex_tracks()
 {
@@ -12,7 +12,7 @@ TEveTrackList* primary_vertex_tracks()
   AliESDEvent   *esd = AliEveEventManager::AssertESD();
   AliESDVertex *pv  = esd->GetPrimaryVertex();
 
-  TEveTrackList* cont = new TEveTrackList("Tracks for Primary Vertex"); 
+  TEveTrackList* cont = new TEveTrackList("Tracks for Primary Vertex");
   cont->SetMainColor(Color_t(7));
   TEveTrackPropagator* rnrStyle = cont->GetPropagator();
   rnrStyle->SetMagField( esd->GetMagneticField() );
index 2309d7015beac4e571ec8d7d916da5543904eb51..d1856645a6c181d2501b09489c5b1259ff599c3f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void print_kine_from_label(Int_t label)
 {
index 3ba9b937485e3df1530187b7ba9d381ababe20a8..845f1ba66f5b6f34113e69141cf71712ad07b040 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void region_marker(Float_t a=10, Float_t b=10, Float_t c=20,
index 46482326f9945494faea28f4f196bc3d75f08d8b..0b5a2a6b95520e068f8366f0eff8e803373a9b4c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 namespace Alieve {
index ff287d88cf79c65d90d310679379ab1b9202ecc1..93d357c11b5d0f67840f45a3fa355322e6834757 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -22,10 +22,10 @@ t0_hits(const char *varexp    = "T0.fX:T0.fY:T0.fZ",
   Int_t nTracks = ht->GetEntries();
   // printf("Found %d tracks. \n",nTracks);
   for (Int_t it = 0; it < nTracks; it++) {
+
     TClonesArray *hits = 0;
     ht->SetBranchAddress("T0",&hits);
+
     ht->GetEvent(it);
     // Int_t nHits = hits->GetEntriesFast();
     // printf("Found %d hits in track %d.\n", nHits, it);
index 557b1e44e8528d7ce6d30167cf712d91593b0648..c9452956f324297bc4b59922e2dff5590e827e52 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 namespace Alieve {
index 86deb4010e100419dc2a276cc6e099199520ca5b..f16134596a0897832c77d3e2e2632947e7843393 100644 (file)
@@ -4,10 +4,10 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void tof_digits()
-{  
+{
   TClonesArray *array = 0x0;
 
   Int_t nDigitsInVolume[3] = {-1, -1, -1};
@@ -27,7 +27,7 @@ void tof_digits()
   di->Dump();
 
   AliTOFGeometry* g = di->fGeom;
+
   gStyle->SetPalette(1, 0);
   gEve->DisableRedraw();
 
@@ -37,9 +37,9 @@ void tof_digits()
   gEve->AddElement(ll);
 
   for(Int_t iSector=0; iSector<g->NSectors(); iSector++) {
-    
+
     array = di->GetDigits(iSector);
-   
+
     AliEveTOFSector* m = new AliEveTOFSector(localGeoManager,iSector,array);
 
     gEve->AddElement(m, ll);
index 8ebd60356676d5ef81fd173677c983249d47cd62..4da6fc827bbb840b53002883eb81a9f353104dbf 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void tof_digits_sector(Int_t sector=0)
 {
index e8a426abed70a3f2eb8f708e9116888443a59e11..e3fe02f2696c0aad7fe04ee931e6ea8ffbe9397e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void tof_digits_strips()
 {
@@ -39,7 +39,7 @@ void tof_digits_strips()
   TString bsPadZ="PadZ";
   TString sPadX;
   TString bsPadX="PadX";
-  
+
   Char_t sectorName[100];
   Char_t sectorTitle[200];
 
index 97eb561054c59b2e2c1a72aa349c216fdaa5971f..800215cfde1986ec7a95a389ef974a32fcd906c8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,7 +16,7 @@ tof_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("TOF");
 
   TTree* ht = rl->GetTreeH("TOF", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 47ba5415aacc5710b727dc2950459d884f348b84..a6b888647f3eabf9b7c597e10bcd8e30114f8130 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void tpc_calib_viewer(const char* file="CalibTree.root")
 {
index 6fccade9b73da8841304e9fbbe09a43061e73bea..a91614ab159c062064e7a7553eaf8407960b0455 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #ifdef __CINT__
 
@@ -46,7 +46,7 @@ TEvePointSet* tpc_clusters(TEveElement* cont=0, Float_t maxR=270)
   cTree->SetBranchAddress("Segment", &clrow);
 
   Float_t maxRsqr = maxR*maxR;
-  TClonesArray *cl=clrow->GetArray(); 
+  TClonesArray *cl=clrow->GetArray();
   Int_t nentr=(Int_t)cTree->GetEntries();
   for (Int_t i=0; i<nentr; i++) {
     if (!cTree->GetEvent(i)) continue;
index 88a5c3dae751a9d03249c447d6357e5a7d139daa..377b7990b4ec422fb3ead36f540cc4766e2f5000 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #include "TGLViewer.h"
@@ -54,7 +54,7 @@ void tpc_digits(Int_t mode=1)
 
     //TGLViewer* cam = gEve->GetGLViewer();
     //cam->SetCurrentCamera(TGLViewer::kCameraOrthoXOY) ;
-    //cam->SetOrthoCamera(TGLViewer::kCameraOrthoXOY, 2*left, 2*right, 2*top, bottom); 
+    //cam->SetOrthoCamera(TGLViewer::kCameraOrthoXOY, 2*left, 2*right, 2*top, bottom);
     //printf("%f %f %f %f\n", left, right, top, bottom);
 
     break;
@@ -67,7 +67,7 @@ void tpc_digits(Int_t mode=1)
       l->SetTitle("TPC Plate");
       l->SetMainColor(Color_t(col));
       gEve->AddElement(l);
-      
+
       for(Int_t i = 0; i<18; i++) {
        AliEveTPCSector2D* s = new AliEveTPCSector2D(Form("AliEveTPCSector2D %d", i));
        s->SetSectorID(i);
@@ -113,7 +113,7 @@ void tpc_digits(Int_t mode=1)
       l->SetTitle("TPC Plate");
       l->SetMainColor(Color_t(col));
       gEve->AddElement(l);
-      
+
       for(Int_t i = 0; i<18; i++) {
        AliEveTPCSector3D* s = new AliEveTPCSector3D(Form("AliEveTPCSector3D %d", i));
        s->SetSectorID(i);
@@ -171,7 +171,7 @@ void tpc_digits_2drange(Int_t start, Int_t end)
     TEveElementList* l = new TEveElementList("TPC sectors");
     l->SetMainColor(Color_t(col));
     gEve->AddElement(l);
-      
+
     for(Int_t i=start; i<=end; i++) {
       AliEveTPCSector2D* s = new AliEveTPCSector2D();
       s->SetSectorID(i);
index af74117d0d94d3ec918d0aede3cbf50035537962..1b76ac8da70f38c444128a9d0137c0d368fc4ff9 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
index bc6a43f7cbd3f4dba109954b5cefd705117e0c56..b8dd9eacb7cd9f100e0912c737cb8625a0dbbf27 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void tpc_hits_charge_split(const char *varexp    =
@@ -25,7 +25,7 @@ void tpc_hits_charge_split(const char *varexp    =
   l->SetMarkerColor((Color_t)3);
   l->SetMarkerStyle(20); // full circle
   l->SetMarkerSize(.5);
-  
+
   gEve->AddElement(l);
   l->InitBins("Log Charge", 20, 0, 5);
 
index 579802afe2df78f48d97ec59153ed163502b1715..8bea364efabd95808d4f52e0c5870db1b8b661a6 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void tpc_hits_eta_split(const char *varexp    =
@@ -25,7 +25,7 @@ void tpc_hits_eta_split(const char *varexp    =
   l->SetMarkerColor((Color_t)3);
   l->SetMarkerStyle(20); // full circle
   l->SetMarkerSize(.5);
-  
+
   gEve->AddElement(l);
   l->InitBins("Eta", 20, -2, 2);
 
index 1d0d36fbfa94abba8c11b88d837f1c9a53e711af..8ad853b9d862096d835c04e834cd84d5ac3785f4 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,7 +16,7 @@ trd_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("TRD");
 
   TTree* ht = rl->GetTreeH("TRD", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index 0134e248892192db92aabdb2d37d8754916ae945..6bb74b67c517fc7d8dd82ce1805099dc8da61ded 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void trd_hits_z_split(const char *varexp    = "fX:fY:fZ:fZ",
@@ -19,7 +19,7 @@ void trd_hits_z_split(const char *varexp    = "fX:fY:fZ:fZ",
   l->SetMarkerColor((Color_t)7);
   l->SetMarkerStyle(20); // full circle
   l->SetMarkerSize(.5);
-  
+
   gEve->AddElement(l);
   l->InitBins("Z", 20, -360, 360);
 
index 2e193b001b7ea19389cb054e8c33ae9a7e9e7135..69829d29247cf7b7988e344a5a5573494194bf1f 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 //   fV0CHeight1         =    2.5; // height of cell 1
 //   fV0CHeight2         =    4.4; // height of cell 2
@@ -43,7 +43,7 @@ void vzero_digits()
 
   TEveQuadSet* modL = new TEveQuadSet("V0L");
   modL->Reset(TEveQuadSet::kQT_FreeQuad, kFALSE, 32);
+
   Int_t numEntr = dca->GetEntriesFast();
   for (Int_t entr=0; entr<numEntr; ++entr)
   {
index 5b6abb2a6c9be4d54b310ea01dccb58d326b4d14..0ae79ea5379748c7d6ec49b63451c8e76b7cc695 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -15,7 +15,7 @@ vzero_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("VZERO");
 
   TTree* ht = rl->GetTreeH("VZERO", false);
-  
+
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
index d5b454ab2aa7097810f24074432f517a28c2d742..0b647c336da75db3cc4a759de4c6643a62a03d7b 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include <TObject.h>
 #include <TList.h>
@@ -115,7 +115,7 @@ void command_queue()
 
 #include <TRandom.h>
 
-void make_crap(void* arg) 
+void make_crap(void* arg)
 {
   Int_t num = 1024;
   TRandom rnd(0);
index 823a50b81d7c8b30dce92aa15cf17997d3556261..0517ec4f059501cc6cc9089727d626936d535599 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 #include <Rtypes.h>
 
@@ -14,15 +14,15 @@ struct AliHLTTPCSpacePointData
   //Int_t fTrackID[3];
   //#endif
   Float_t fX;  //==fPadRow in local system
-  Float_t fY;  
+  Float_t fY;
   Float_t fZ;
   UInt_t fID;  //contains slice patch and number
   UChar_t fPadRow;
   Float_t fSigmaY2; //error (former width) of the clusters
   Float_t fSigmaZ2; //error (former width) of the clusters
   UInt_t fCharge;
-  Bool_t fUsed;     // only used in AliHLTTPCDisplay 
-  Int_t fTrackN;    // only used in AliHLTTPCDisplay 
+  Bool_t fUsed;     // only used in AliHLTTPCDisplay
+  Int_t fTrackN;    // only used in AliHLTTPCDisplay
 };
 
 struct AliHLTTPCClusterData
index a9ac5a806ef30c09d182f4ce90b28f1fa1cd7d09..a31e61eba2aca39c1cb5f939ac23ca7bb0df05f0 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 // Functions to read data from HOMER.
@@ -81,7 +81,7 @@ void homer_display()
   homerM->SelectESDTPC();
   homerM->ConnectHOMER();
 
-  memreader = new AliRawReaderMemory(0, 0); 
+  memreader = new AliRawReaderMemory(0, 0);
   gStyle->SetPalette(1, 0);
 
   loader = new AliEveTPCLoader;
@@ -204,7 +204,7 @@ TEveTrack* esd_make_track(TEveTrackPropagator*   rnrStyle,
   rt.P.Set(pbuf);
   Double_t ep = at->GetP(), mc = at->GetMass();
   rt.beta = ep/TMath::Sqrt(ep*ep + mc*mc);
+
   TEveTrack* track = new TEveTrack(&rt, rnrStyle);
   //PH The line below is replaced waiting for a fix in Root
   //PH which permits to use variable siza arguments in CINT
@@ -303,7 +303,7 @@ root [10] tpc_trk->SelectByPt(0,1000000000000)
 root [11] tpc_trk->MakeTracks(
 void MakeTracks(Bool_t recurse = kTRUE)
 root [11] tpc_trk->MakeTracks()
-root [12]                
+root [12]
 
 
 
index ce6c65d334b82da780da4f7c1fca66f7c18dad16..2e201dbe591efed929b522965e45496e4745b10f 100644 (file)
@@ -4,11 +4,11 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 {
-    
+
   cout << "Setting include path ..." << endl;
   TString includePath = "-I${ALICE_ROOT}/include ";
   includePath        += "-I${ALICE_ROOT}/EVE ";
index 97b13e165bb9b124ec0f2443a266c11003c177a3..7b83756c13fdcfe7d3ea9475a54291f76c8b5b77 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 void alieve_create_vsd()
 {
index a629c238da4739df645a97ed801010c443cd287a..7c6dadfdb2282d6e326286b94cf8711e47255c1c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 #ifndef __CINT_
@@ -22,7 +22,7 @@ void alieve_init(const Text_t* path   = ".", Int_t event=0,
   gSystem->cd(hack);
 
   // TEveUtil::AssertMacro("region_marker.C");
-  
+
   gSystem->ProcessEvents();
 
   // Open event
index 565302640ef9cb175dc1e1f7f2c136b3d1bade64..f867a78a13a01961f1da981a1c93b57dc2d5fd67 100644 (file)
@@ -4,10 +4,10 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
-void alieve_loadlibs () 
+void alieve_loadlibs ()
 {
   // Macro which loads the libraries needed for simulation and reconstruction
 
@@ -34,7 +34,7 @@ void alieve_loadlibs ()
 
   gSystem->Load("libESD");
   gSystem->Load("libSTEER");
-  
+
   gSystem->Load("libRAWDatabase");
   gSystem->Load("libRAWDatarec");
 
index cc18d02dbd3ae8b15944396279306636e2a05a9e..0e61f0978e42f60b1d936c6293551304734e148e 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 // Cause ROOT to properly crash and dump core on SigSEGV.
 
index 7b9b8b7bf8c20365c3c4a9f2cbe73aa6686d3960..b455da79ee2ae715edeb452765991cb7210ae50c 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 void trackcount_init()
index cd30d2164ee2f471953e7176a3f48c1c9cef2487..ef528a696852ffdb8cb6af02354731a1010e6ccc 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 class TTree;
 
@@ -47,7 +47,7 @@ void tpc_digi_pad_dump(Int_t s, Int_t r, Int_t p)
 
   AliSimDigits *digit = 0;
   tree->GetBranch("Segment")->SetAddress(&digit);
-  
+
   Int_t sbr = (Int_t) tree->GetEntries();
   for (Int_t ent=0; ent<sbr; ent++) {
     tree->GetEntry(ent);
index 604882b1dd9e74762a84629aa9b75d89a347e050..a35bb260ebda9986dee44ee4da3b66bda2c4a772 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 // Function to spawn a gui for reading rootified raw-data from TPC sector test.
index 29087a901999bdd90cf723796f7a541472521ca6..804a7242f3f04a4112556eeb17678cb65d628918 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 // Function to spawn a gui for reading rootified raw-data from TPC sector test.
index 580304df847270cdb5013c1de77d30a17ee49d0b..3b2ddb025cfb837d90c24570c86ab6f9524a9d81 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 class AliRawReaderFile;
 
index 0360c2d330f8c72f84b247e1176d0fa275a61b39..f96277fd69371139c97cf9d77f08893eeb908ce8 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 // Functions to read rootified raw-data from TPC sector test.