]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
polish
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jan 2004 11:53:04 +0000 (11:53 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Jan 2004 11:53:04 +0000 (11:53 +0000)
PHOS/AliPHOSPID.h
PHOS/AliPHOSPIDv0.h
PHOS/AliPHOSPIDv1.cxx
PHOS/AliPHOSPIDv1.h

index d12878f2b5802ee728b99aa77f9a204c892eb6c9..4c9af3ae2e88f0331c4790ac1b2a8055411189c7 100644 (file)
@@ -40,7 +40,7 @@ class AliPHOSPID : public TTask {
   virtual void Print() const { Warning("Print", "not defined" ) ;}
   void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
   void SetEventFolderName(TString name) { fEventFolderName = name ; }
   virtual void Print() const { Warning("Print", "not defined" ) ;}
   void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
   void SetEventFolderName(TString name) { fEventFolderName = name ; }
-  virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
+  virtual char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
   virtual void WriteRecParticles() = 0;
 
 protected:
   virtual void WriteRecParticles() = 0;
 
 protected:
index bb5ae82416ad44abc60d5f97b955ba83538995fc..0f643d6182b13fe50205a7bc958dc1cd2f5a46ae 100644 (file)
@@ -46,7 +46,7 @@ public:
   virtual void SetTimeGate(Float_t gate)                 {fTimeGate = gate ;}
   //  virtual void SetTrackSegmentsBranch(const char* title) { fTrackSegmentsTitle = title;}
   //  virtual void SetRecParticlesBranch (const char* title) { fRecParticlesTitle = title;} 
   virtual void SetTimeGate(Float_t gate)                 {fTimeGate = gate ;}
   //  virtual void SetTrackSegmentsBranch(const char* title) { fTrackSegmentsTitle = title;}
   //  virtual void SetRecParticlesBranch (const char* title) { fRecParticlesTitle = title;} 
-  virtual const char * Version() const { return "pid-v0" ; }  
+  virtual char * Version() const { return "pid-v0" ; }  
                      
  private:
   
                      
  private:
   
index a6974d093b501ddd2c77f623d064017fb27d90da..2a296b724d70159d40696154d253d52c69afb907 100644 (file)
@@ -195,11 +195,14 @@ void  AliPHOSPIDv1::Exec(Option_t *option)
 
   AliPHOSGetter * gime = AliPHOSGetter::Instance() ; 
  
 
   AliPHOSGetter * gime = AliPHOSGetter::Instance() ; 
  
-  if (fLastEvent == -1) fLastEvent = gime->MaxEvent() - 1 ;
-  else fLastEvent = TMath::Min(fLastEvent,gime->MaxEvent());
+  if (fLastEvent == -1) 
+    fLastEvent = gime->MaxEvent() - 1 ;
+  else 
+    fLastEvent = TMath::Min(fLastEvent,gime->MaxEvent());
   Int_t nEvents   = fLastEvent - fFirstEvent + 1;
 
   Int_t nEvents   = fLastEvent - fFirstEvent + 1;
 
-  for (Int_t ievent = fFirstEvent; ievent <= fLastEvent; ievent++) {
+  Int_t ievent ; 
+  for (ievent = fFirstEvent; ievent <= fLastEvent; ievent++) {
     gime->Event(ievent,"TR") ;
     if(gime->TrackSegments() && //Skip events, where no track segments made
        gime->TrackSegments()->GetEntriesFast()) {
     gime->Event(ievent,"TR") ;
     if(gime->TrackSegments() && //Skip events, where no track segments made
        gime->TrackSegments()->GetEntriesFast()) {
index 6fa64d670e1ef62f7bc521483184a970fb6af733..ee4f9115f7696c26835027b91ca4195948ea2ecd 100644 (file)
@@ -69,7 +69,7 @@ public:
 
   void Print() const ; 
 
 
   void Print() const ; 
 
-  virtual const char * Version() const { return "pid-v1" ; }  
+  virtual char * Version() const { return "pid-v1" ; }  
 
   AliPHOSPIDv1 & operator = (const AliPHOSPIDv1 & /*pid*/) { return *this ;} 
   
 
   AliPHOSPIDv1 & operator = (const AliPHOSPIDv1 & /*pid*/) { return *this ;}