* provided "as is" without express or implied warranty. *
**************************************************************************/
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
// Class to calculate calibration parameters from beam tests etc.
cmngr->WriteData(gains) ;
}
//_____________________________________________________________________________
-void AliPHOSCalibrator::Print()const
+void AliPHOSCalibrator::Print(const Option_t *)const
{
// prints everything
AliInfo(Form("--------------PHOS Calibrator-----------------\n")) ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class for performing calibration in PHOS
void PlotGain(Int_t channel) ; //Plot histo with gains for a channel
void PlotGains() ; //Plot all gains
- virtual void Print() const ;
+ virtual void Print(const Option_t * = "") const ;
TH1F * PedestalHisto(Int_t channel)
{return dynamic_cast<TH1F* >(fPedHistos->At(channel)) ;} ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Base class for the clusterization algorithm
//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
virtual Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; }
virtual void MakeClusters() {Warning("MakeClusters", "Not Defined" ) ; }
- virtual void Print()const {Warning("Print", "Not Defined" ) ; }
+ virtual void Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
virtual void SetEmcClusteringThreshold(Float_t) = 0;
virtual void SetEmcLocalMaxCut(Float_t ) = 0;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
//////////////////////////////////////////////////////////////////////////////
// Clusterization class. Performs clusterization (collects neighbouring active cells) and
}
//____________________________________________________________________________
-void AliPHOSClusterizerv1::Print()const
+void AliPHOSClusterizerv1::Print(const Option_t *)const
{
// Print clusterizer parameters
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version 1 of the clusterization algorithm
// Performs clusterization (collects neighbouring active cells) and
virtual void Exec(Option_t *option); // Does the job
- void Print()const ;
+ void Print(const Option_t * = "")const ;
void SetEmcMinE(Float_t e){fEmcMinE = e ;}
void SetCpvMinE(Float_t e){fCpvMinE = e ;}
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class provides correspondence between "raw numbers" i.e. number of crustall
// in prototype and PHOT AbsId numer, used in reconstruction.
return 0 ;
}
//____________________________________________________________________________
-void AliPHOSConTableDB::Print()const {
+void AliPHOSConTableDB::Print(const Option_t *)const {
//prints configuraion
TString message ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class for PHOS connection table, i.e. correspondence between
// "cable number" and PHOS AbsId number.
//Transforms AbsId number in PHOS into channel number in prototype
Int_t AbsId2Raw(Int_t AbsId)const ;
- virtual void Print() const ;
+ virtual void Print(const Option_t * = "") const ;
AliPHOSConTableDB& operator=(const AliPHOSConTableDB& cdb) ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// RecPoint implementation for PHOS-CPV
// An CpvRecPoint is a cluster of digits
}
//______________________________________________________________________________
-void AliPHOSCpvRecPoint::ExecuteEvent(Int_t, Int_t, Int_t ) const
+void AliPHOSCpvRecPoint::ExecuteEvent(Int_t, Int_t, Int_t ) /*const*/
{
// // Execute action corresponding to one event
// // This member function is called when a AliPHOSRecPoint is clicked with the locator
//____________________________________________________________________________
-void AliPHOSCpvRecPoint::Print()
+void AliPHOSCpvRecPoint::Print(const Option_t *) const
{
// Print the list of digits belonging to the cluster
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// RecPoint implementation for PHOS-CPV
// An CpvRecPoint is a cluster of digits
void EvalLocalPosition(Float_t logWeight,TClonesArray * digits ) ;
void EvalClusterLengths(TClonesArray * digits) ;
- virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) const ;
+ virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) /*const*/ ;
void GetClusterLengths(Int_t &lengX, Int_t &lengZ) const {lengX = fLengX ;lengZ = fLengZ ;}
Bool_t IsEmc(void) const {return kFALSE ; } // tells that this is not a EMC
Bool_t IsCPV(void) const {return kTRUE ; } // true if the recpoint is in CPV
Bool_t IsSortable() const { return kTRUE ; } // tells that this is a sortable object
- void Print() ;
+ void Print(const Option_t * = "") const ;
AliPHOSCpvRecPoint & operator = (const AliPHOSCpvRecPoint & /*rvalue*/) {
Fatal("operator =", "not implemented") ; return *this ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// PHOS digit: Id
// energy
}
//____________________________________________________________________________
-void AliPHOSDigit::Print() const
+void AliPHOSDigit::Print(const Option_t *) const
{
// Print the digit together with list of primaries
printf("PHOS digit: Amp=%d, Id=%d, Time=%e, TimeR=%e, NPrim=%d ",fAmp,fId,fTime,fTimeR,fNprimary);
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// PHOS digit: Id
// energy
Float_t GetTime(void) const {return fTime ;}
Float_t GetTimeR(void) const {return fTimeR ;}
Bool_t IsSortable() const { return kTRUE ; }
- void Print() const;
+ void Print(const Option_t * = "") const;
void SetAmp(Int_t Amp) { fAmp=Amp ; }
void SetTime(Float_t time) {fTime = time ;}
void SetTimeR(Float_t time) {fTimeR = time ;}
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
//*-- Author : Dmitri Peressounko (SUBATECH & Kurchatov Institute)
}
//__________________________________________________________________
-void AliPHOSDigitizer::Print()const
+void AliPHOSDigitizer::Print(const Option_t *)const
{
// Print Digitizer's parameters
AliInfo(Form("\n------------------- %s -------------", GetName() )) ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Task Class for making SDigits in PHOS
// Class performs digitization of Summable digits (in the PHOS case this is just
Int_t GetDigitsInRun() const { return fDigitsInRun ;}
void MixWith(TString alirunFileName,
TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ; // Add another one file to mix
- void Print()const ;
+
+ void Print(const Option_t * = "")const ;
AliPHOSDigitizer & operator = (const AliPHOSDigitizer & /*rvalue*/) {
// assignement operator requested by coding convention but not needed
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// RecPoint implementation for PHOS-EMC
// An EmcRecPoint is a cluster of digits
return rv ;
}
//______________________________________________________________________________
-void AliPHOSEmcRecPoint::ExecuteEvent(Int_t event, Int_t, Int_t) const
+void AliPHOSEmcRecPoint::ExecuteEvent(Int_t event, Int_t, Int_t) /*const*/
{
// Execute action corresponding to one event
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// RecPoint implementation for PHOS-EMC
// An EmcRecPoint is a cluster of digits
virtual ~AliPHOSEmcRecPoint() ;
+ //This virtual function has signature different from AliPHOSRecPoint::AddDigit
+ //it hides, not overrides. using - declaration should fix the problem, at least for
+ //g++
+ using AliPHOSRecPoint::AddDigit;
virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; // add a digit to the digits list
Int_t Compare(const TObject * obj) const; // method for sorting
virtual void EvalAll(Float_t logWeight,TClonesArray * digits) ;
- virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) const;
+ //in base class this functions is non-const
+ virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) /*const*/;
Float_t GetCoreEnergy()const {return fCoreEnergy ;}
virtual Float_t GetDispersion()const {return fDispersion ;}
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// A Particle modified by PHOS response and produced by AliPHOSvFast
// To become a general class of AliRoot ?
}
//____________________________________________________________________________
-void AliPHOSFastRecParticle::Print()const
+void AliPHOSFastRecParticle::Print(const Option_t *)const
{
// Print the type, energy and momentum of the reconstructed particle
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// A Particle modified by PHOS response and produced by AliPHOSvFast
// This is also a base class for AliPHOSRecParticle produced by AliPHOSPIDv1
TString Name() const ;
virtual void Paint(Option_t * option="");
- virtual void Print() const ;
+ virtual void Print(const Option_t * = "") const ;
void SetTof(Float_t tof) { fTof = tof ; }
Float_t ToF() const { return fTof ; }
**************************************************************************/
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class for the analysis of gamma-jet correlations
// Basically it seaches for a prompt photon in the PHOS acceptance,
}
//____________________________________________________________________________
-void AliPHOSGammaJet::Print(char * opt)
+void AliPHOSGammaJet::Print(const Option_t * opt) const
{
//Print some relevant parameters set for the analysis
* See cxx source for full Copyright notice */
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class for the analysis of gamma-jet correlations.
// Basically it seaches for a prompt photon in the PHOS acceptance,
Bool_t IsOnlyCharged() const {return fOnlyCharged ; }
void Plot(TString what="all", Option_t *option="") const;
- void Print(char * opt);
+ void Print(const Option_t * opt)const;
void SetAngleMaxParam(Int_t i, Double_t par)
{fAngleMaxParam.AddAt(par,i) ; }
Option_t * openingOption = "READ" ) ;
static AliPHOSGetter * Instance() ;
+ void Print(const Option_t *)const{}
static void Print() ;
//=========== General information about run ==============
**************************************************************************/
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// To navigate in the Grid catalogue (very elementary)
// check here : /afs/cern.ch/user/p/peters/public/README.ALIEN
}
//____________________________________________________________________________
-void AliPHOSGridFile::Copy(AliPHOSGridFile & lfn)
+void AliPHOSGridFile::Copy(TObject & obj)const
{
//Copy method used by the Copy ctor
+ AliPHOSGridFile &lfn = static_cast<AliPHOSGridFile &>(obj);
+ /* incorrect Copy, destination is OBJ, not this.
fRoot = lfn.fRoot ;
fYear = lfn.fYear ;
fProd = lfn.fProd ;
fRun = lfn.fRun ;
fEvt = lfn.fEvt ;
TObject::Copy(lfn) ;
+ */
+ lfn.fRoot = fRoot ;
+ lfn.fYear = fYear ;
+ lfn.fProd = fProd ;
+ lfn.fVers = fVers ;
+ lfn.fType = fType ;
+ lfn.fRun = fRun ;
+ lfn.fEvt = fEvt ;
+ TObject::Copy(lfn) ;
}
//____________________________________________________________________________
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Description of logical filename in Grid catalogue
// check here : /afs/cern.ch/user/p/peters/public/README.GRID
lfn.Copy(*this) ;
}
virtual ~AliPHOSGridFile(void) ;
- virtual void Copy(AliPHOSGridFile & lfn) ;
+
+ virtual void Copy(TObject & obj) const;
void ListEvents() const ;
void ListRuns() const ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Hit impact class for PHOS
// A hit impact in PHOS is a set of parameters of a track which
}
//____________________________________________________________________________
-void AliPHOSImpact::Print()
+void AliPHOSImpact::Print(const Option_t *)const
{
// Prints particle info
printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n",
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Hit impact class for PHOS
// A hit impact in PHOS is a set of parameters of a track which
// returns momentum of the particle which initiated this hit
return fMomentum;
}
- void Print();
+ void Print(const Option_t * = "")const;
private:
fSumPhi = 0. ;
}
//____________________________________________________________________________
-void AliPHOSJet::Print(){
+void AliPHOSJet::Print(const Option_t *) const {
//Print jet parameters
printf("-------------- AliPHOSJet ------------\n") ;
printf(" Energy............. %f \n",fEnergy) ;
else return fSumPhi/fSumEnergy ;}
Int_t GetNJetParticles(void)const{return fNpart;}
- void Print() ;
+ void Print(const Option_t * = "") const ;
AliPHOSJet & operator = (const AliPHOSJet & /*rvalue*/) {
// assignement operator requested by coding convention but not needed
Fatal("operator =", "not implemented") ; return *this ;
//*-- Author : D.Peressounko after UA1 coll. etc
//////////////////////////////////////////////////////////////////////////////
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
// --- ROOT system ---
#include "TClonesArray.h"
// #include "TIter.h"
phi = pos.Phi() ;
}
//____________________________________________________________________________
-void AliPHOSJetFinder::Print(){
+void AliPHOSJetFinder::Print(const Option_t *) const {
//Print parameters of the found jet
printf("\n --------------- AliPHOSJetFinder --------------- \n") ;
printf(" Jets found .........%d \n",fNJets) ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
//
//*-- Author: D.Peressounko
void FindJetsFromParticles(const TClonesArray * plist,TObjArray * jetslist) ; //Do the job
void FindJetsFromDigits(const TClonesArray * digits,TObjArray * jetslist) ; //Do the job
- void Print() ;
+ void Print(const Option_t * = "") const ;
void SetEtSeed(Double_t etseed){fEtSeed = etseed ;} ;
void SetEtMin(Double_t etmin){fEtMin = etmin ;} ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// A singleton. This class should be used in the analysis stage to get
// reconstructed objects: Digits, RecPoints, TrackSegments and RecParticles,
}
//____________________________________________________________________________
-
-Int_t AliPHOSLoader::PostHits()
+//PostHits etc. PostXXX must be const - not to hide virtual functions
+//from base class AliLoader, but they call non-constant functions ReadXXX
+//so I have to const_cast this pointer
+Int_t AliPHOSLoader::PostHits()const
{
// -------------- Hits -------------------------------------------
Int_t reval = AliLoader::PostHits();
AliError("returned error");
return reval;
}
- return ReadHits();
+
+ return const_cast<AliPHOSLoader *>(this)->ReadHits();
}
//____________________________________________________________________________
-Int_t AliPHOSLoader::PostSDigits()
+Int_t AliPHOSLoader::PostSDigits()const
{
// -------------- SDigits -------------------------------------------
Int_t reval = AliLoader::PostSDigits();
AliError("returned error");
return reval;
}
- return ReadSDigits();
+ return const_cast<AliPHOSLoader *>(this)->ReadSDigits();
}
//____________________________________________________________________________
-Int_t AliPHOSLoader::PostDigits()
+Int_t AliPHOSLoader::PostDigits()const
{
// -------------- Digits -------------------------------------------
Int_t reval = AliLoader::PostDigits();
AliError("returned error");
return reval;
}
- return ReadDigits();
+ return const_cast<AliPHOSLoader *>(this)->ReadDigits();
}
//____________________________________________________________________________
-Int_t AliPHOSLoader::PostRecPoints()
+Int_t AliPHOSLoader::PostRecPoints()const
{
// -------------- RecPoints -------------------------------------------
Int_t reval = AliLoader::PostRecPoints();
AliError("returned error");
return reval;
}
- return ReadRecPoints();
+ return const_cast<AliPHOSLoader *>(this)->ReadRecPoints();
}
//____________________________________________________________________________
-Int_t AliPHOSLoader::PostRecParticles()
+Int_t AliPHOSLoader::PostRecParticles()const
{
// -------------- RecParticles -------------------------------------------
Int_t reval = AliLoader::PostRecParticles();
AliError("returned error");
return reval;
}
- return ReadRecParticles();
+ return const_cast<AliPHOSLoader *>(this)->ReadRecParticles();
}
//____________________________________________________________________________
-Int_t AliPHOSLoader::PostTracks()
+Int_t AliPHOSLoader::PostTracks()const
{
// -------------- Tracks -------------------------------------------
Int_t reval = AliLoader::PostTracks();
AliError("returned error");
return reval;
}
- return ReadTracks();
+ return const_cast<AliPHOSLoader *>(this)->ReadTracks();
}
//____________________________________________________________________________
fBranchTitle = btitle;
ReloadAll();
}
+
//____________________________________________________________________________
-
-void AliPHOSLoader::CleanHits()
+//Again, must be const not to hide virtual functions from AliLoader
+//but there are calls to non-const functions, so I have to const_cast this pointer
+void AliPHOSLoader::CleanHits()const
{
// Clean Hits array
AliLoader::CleanHits();
//Clear an array
- TClonesArray* hits = Hits();
+ TClonesArray* hits = const_cast<AliPHOSLoader *>(this)->Hits();
if (hits) hits->Clear();
}
//____________________________________________________________________________
-void AliPHOSLoader::CleanSDigits()
+void AliPHOSLoader::CleanSDigits()const
{
// Clean SDigits array
AliLoader::CleanSDigits();
- TClonesArray* sdigits = SDigits();
+ TClonesArray* sdigits = const_cast<AliPHOSLoader *>(this)->SDigits();
if (sdigits) sdigits->Clear();
}
//____________________________________________________________________________
-void AliPHOSLoader::CleanDigits()
+void AliPHOSLoader::CleanDigits()const
{
// Clean Digits array
AliLoader::CleanDigits();
- TClonesArray* digits = Digits();
+ TClonesArray* digits = const_cast<AliPHOSLoader *>(this)->Digits();
if (digits) digits->Clear();
}
//____________________________________________________________________________
-void AliPHOSLoader::CleanRecPoints()
+void AliPHOSLoader::CleanRecPoints()const
{
// Clean RecPoints array
AliLoader::CleanRecPoints();
- TObjArray* recpoints = EmcRecPoints();
+ TObjArray* recpoints = const_cast<AliPHOSLoader *>(this)->EmcRecPoints();
if (recpoints) recpoints->Clear();
- recpoints = CpvRecPoints();
+ recpoints = const_cast<AliPHOSLoader *>(this)->CpvRecPoints();
if (recpoints) recpoints->Clear();
}
//____________________________________________________________________________
-void AliPHOSLoader::CleanTracks()
+void AliPHOSLoader::CleanTracks()const
{
//Cleans Tracks stuff
AliLoader::CleanTracks();//tree
//and clear the array
- TClonesArray* tracks = TrackSegments();
+ TClonesArray* tracks = const_cast<AliPHOSLoader *>(this)->TrackSegments();
if (tracks) tracks->Clear();
}
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// A singleton that returns various objects
// Should be used on the analysis stage to avoid confusing between different
Int_t LoadTracks(Option_t* opt=""); //reads Tracks from disk and sends them to folder; array as well as tree
Int_t LoadRecParticles(Option_t* opt="");
- Int_t PostHits(); //Posts the
- Int_t PostSDigits();
- Int_t PostDigits();
- Int_t PostRecPoints();
- Int_t PostTracks();
- Int_t PostRecParticles();
+ Int_t PostHits()const; //Posts the
+ Int_t PostSDigits()const;
+ Int_t PostDigits()const;
+ Int_t PostRecPoints()const;
+ Int_t PostTracks()const;
+ Int_t PostRecParticles()const;
void CleanFolders();//cleans all the stuff loaded by this detector + calls AliLoader::Clean
- void CleanHits();
- void CleanSDigits();
- void CleanDigits();
- void CleanRecPoints();
- void CleanTracks();
+ void CleanHits()const;
+ void CleanSDigits()const;
+ void CleanDigits()const;
+ void CleanRecPoints()const;
+ void CleanTracks()const;
void CleanRecParticles();
//up to now it is only here -> no definition about global/incremental tracking/PID
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Algorithm class for the identification of particles detected in PHOS
// base class
virtual ~AliPHOSPID() ; // dtor
virtual Int_t GetRecParticlesInRun() const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;}
- virtual void Print() const { Warning("Print", "not defined" ) ;}
+ virtual void Print(const Option_t * = "") 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 ; }
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v0 of the PHOS particle identifier
// Particle identification based on the
}
//____________________________________________________________________________
-void AliPHOSPIDv0:: Print() const
+void AliPHOSPIDv0:: Print(const Option_t *) const
{
// Print the parameters used for the particle type identification
TString message ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
// Implementation version v0 of the PHOS particle identifier
virtual Int_t GetRecParticlesInRun() const {return fRecParticlesInRun ;}
virtual void PlotDispersionCuts()const ;
- virtual void Print()const ;
+ virtual void Print(const Option_t * = "")const ;
virtual void SetIdentificationMethod(const char * option = "CPV DISP" ){fIDOptions = option ;}
virtual void SetShowerProfileCut(const char * formula = "0.35*0.35 - (x-1.386)*(x-1.386) - 1.707*1.707*(y-1.008)*(y-1.008)") ;
virtual void SetDispersionCut(Float_t cut){fDispersion = cut ; }
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v1 of the PHOS particle identifier
// Particle identification based on the
}
//____________________________________________________________________________
-void AliPHOSPIDv1::Print() const
+void AliPHOSPIDv1::Print(const Option_t *) const
{
// Print the parameters used for the particle type identification
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
// Implementation version v1 of the PHOS particle identifier
//Switch to "on flyght" mode, without writing to TreeR and file
void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;}
- void Print() const ;
+ void Print(const Option_t * = "") const ;
virtual const char * Version() const { return "pid-v1" ; }
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Class designed to convert raw data to aliroot format. We assume, that
// prototype is situated in the center of 3 PHOS module and convert prototype
}
//____________________________________________________________________________
-void AliPHOSRaw2Digits::Exec(){
+void AliPHOSRaw2Digits::Exec(const Option_t *){
//This is steering method performing all the conversion
if(!fIsInitialized) //need initialization
gAlice->TreeE()->Fill();
}
//____________________________________________________________________________
-void AliPHOSRaw2Digits::Print()const{
+void AliPHOSRaw2Digits::Print(const Option_t *)const{
//prints current configuration and status.
printf("----------AliPHOSRaw2Digits---------- \n") ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $id */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
// Base Class for PHOS
AliPHOSRaw2Digits(AliPHOSRaw2Digits & r2d) ; // cpy ctor
virtual ~AliPHOSRaw2Digits() ; // dtor
- void Exec() ;
+ void Exec(const Option_t * = "") ;
void SetBeamEnergy(Float_t energy){fBeamEnergy = energy ;}
void SetInputFile(TString inname="Run_1234.fz"){fInName=inname ; }
{for(Int_t i=0;i<3;i++)fTarget[i]=pos[i] ;}
void SetConTableDB(AliPHOSConTableDB * ctdb){fctdb = ctdb ;}
void SetMaxEventsPerFile(Int_t nev=20000){fMaxPerFile = nev ;}
- void Print()const ;
+ void Print(const Option_t * = "")const ;
AliPHOSRaw2Digits & operator = ( AliPHOSRaw2Digits & /*r2d*/ ) { return *this ; }
private:
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Wrapping class for reconstruction
//*--
static void ResetDebug() { fgDebug = kFALSE ; }
static Bool_t Debug() { return fgDebug ; }
AliTracker *CreateTracker(AliRunLoader* runLoader) const;
+ using AliReconstructor::FillESD;
virtual void FillESD(AliRunLoader* runLoader, AliESD* esd) const ;
+ using AliReconstructor::Reconstruct;
virtual void Reconstruct(AliRunLoader* runLoader) const ;
virtual void Reconstruct(AliRunLoader* runLoader, AliRawReader * rawreader) const ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// This is a TTask that makes SDigits out of Hits
// The name of the TTask is also the title of the branch that will contain
}
//__________________________________________________________________
-void AliPHOSSDigitizer::Print()const
+void AliPHOSSDigitizer::Print(const Option_t *)const
{
// Prints parameters of SDigitizer
Info("Print", "\n------------------- %s -------------", GetName() ) ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Task Class for making SDigits in PHOS
// A Summable Digits is the sum of all hits originating
Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
virtual void Exec(Option_t *option);
Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
- virtual void Print() const ;
+ virtual void Print(const Option_t * = "") const ;
void SetEventFolderName(TString name) { fEventFolderName = name ; }
void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Track segment in PHOS
// Can be : 1 EmcRecPoint
//____________________________________________________________________________
-void AliPHOSTrackSegment::Copy(TObject & obj)
+void AliPHOSTrackSegment::Copy(TObject & obj) const
{
// Copy of a track segment into another track segment
//____________________________________________________________________________
-void AliPHOSTrackSegment::Print() const
+void AliPHOSTrackSegment::Print(const Option_t *) const
{
// Print all information on this track Segment
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Track segment in PHOS
// Can be : 1 EmcRecPoint
AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
virtual ~AliPHOSTrackSegment() { }
- void Copy(TObject & obj) ;
+ void Copy(TObject & obj) const;
Int_t GetIndexInList() const { return fIndexInList ; }
Int_t GetEmcIndex() const { return fEmcRecPoint ; }
Int_t GetCpvIndex() const { return fCpvRecPoint; }
Int_t GetTrackIndex() const { return fTrack; }
- virtual void Print() const;
+ virtual void Print(const Option_t * = "") const;
void SetIndexInList(Int_t val){ fIndexInList = val ; }
void SetCpvRecPoint(AliPHOSRecPoint * CpvRecPoint ); //sets CPV Rec Point
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Algorithm Base class to construct PHOS track segments
// Associates EMC and PPSD clusters
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Algorithm Base class to construct PHOS track segments
// Associates EMC and CPV clusters
virtual Int_t GetTrackSegmentsInRun() const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; }
- virtual void Print()const {Warning("Print", "Not Defined" ) ; }
+ virtual void Print(const Option_t * = "")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 ; }
void SetESD(AliESD *esd) { fESD = esd; }
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version 1 of algorithm class to construct PHOS track segments
// Track segment for PHOS is list of
}
//____________________________________________________________________________
-void AliPHOSTrackSegmentMakerv1::Print()const
+void AliPHOSTrackSegmentMakerv1::Print(const Option_t *)const
{
// Print TrackSegmentMaker parameters
* See cxx source for full Copyright notice */
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
//_________________________________________________________________________
// Implementation version 1 of algorithm class to construct PHOS track segments
void MakeLinks() const; //Evaluates distances(links) between EMC and CPV
void MakePairs() ; //Finds pairs(triplets) with smallest link
- virtual void Print() const ;
+ virtual void Print(const Option_t * = "") const ;
//Switch to "on flyght" mode, without writing to TreeR and file
void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;}
virtual void SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane)
**************************************************************************/
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v0 of PHOS Manager class
// An object of this class does not produce hits nor digits
}
//____________________________________________________________________________
-void AliPHOSv0::Copy(AliPHOSv0 & phos)
+void AliPHOSv0::Copy(TObject & phos) const
{
TObject::Copy(phos) ;
AliPHOS::Copy(phos) ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v0 of PHOS Manager class
// Layout EMC + CPV has name IHEP
virtual ~AliPHOSv0(void){
// dtor
}
- virtual void Copy(AliPHOSv0 & phos) ;
+ virtual void Copy(TObject &phos) const;
// virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
+ //this function is not a final-overrider for AliPHOS::AddHit, to
+ //supress warning, I use using-declaration :)
+ using AliPHOS::AddHit;
virtual void AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
// useless since there are no hits
Fatal("AddHit", "not to be used with v0") ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v1 of PHOS Manager class
//---
}
//____________________________________________________________________________
-void AliPHOSv1::Copy(AliPHOSv1 & phos)
+void AliPHOSv1::Copy(TObject & base)const
{
- TObject::Copy(phos) ;
- AliPHOSv0::Copy(phos) ;
+ TObject::Copy(base) ;
+ AliPHOSv0::Copy(base) ;
+ AliPHOSv1 &phos = static_cast<AliPHOSv1 &>(base);
phos.fLightYieldMean = fLightYieldMean ;
phos.fIntrinsicPINEfficiency = fIntrinsicPINEfficiency ;
phos.fLightYieldAttenuation = fLightYieldAttenuation ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version v1 of PHOS Manager class
// Layout EMC + CPV has name IHEP
}
virtual ~AliPHOSv1(void) ;
- virtual void Copy(AliPHOSv1 & phos) ;
+ virtual void Copy(TObject &phos) const;
+
+ using AliPHOSv0::AddHit;
virtual void AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ;
virtual void FinishEvent() ;
virtual void FinishPrimary() ;
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Version of AliPHOSv1 which keeps all hits in TreeH
// AddHit, StepManager,and FinishEvent are redefined
}
//____________________________________________________________________________
-void AliPHOSv2::Copy(AliPHOSv2 & phos)
+void AliPHOSv2::Copy(TObject & phos)const
{
TObject::Copy(phos) ;
AliPHOSv1::Copy(phos) ;
#define ALIPHOSV2_H
/* Copyright(c) 1998-1999-2000, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Version of AliPHOSv0 which keeps all hits in TreeH
// I mean real hits not cumulated hits
}
virtual ~AliPHOSv2(void) ;
- virtual void Copy(AliPHOSv2 & phos) ;
+ virtual void Copy(TObject &phos) const;
virtual void AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits);
virtual Int_t IsVersion(void) const {
// Gives the version number
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation of the PHOS manager class for fast simulations
// Tracks particles until the reach a grossly designed PHOS module
}
//____________________________________________________________________________
-void AliPHOSvFast::Copy(AliPHOSvFast & fast)
+void AliPHOSvFast::Copy(TObject & base)const
{
- TObject::Copy(fast) ;
- AliPHOS::Copy(fast) ;
+ TObject::Copy(base) ;
+ AliPHOS::Copy(base) ;
+ AliPHOSvFast &fast = static_cast<AliPHOSvFast &>(base);
fast.fBigBoxX = fBigBoxX ;
fast.fBigBoxY = fBigBoxY ;
fast.fBigBoxZ = fBigBoxZ ;
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation of the PHOS manager class for fast simulations
// Tracks particles until the reach a grossly designed PHOS module
}
virtual ~AliPHOSvFast(void) ;
- virtual void Copy(AliPHOSvFast & fast) ;
+ virtual void Copy(TObject &fast) const;
void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list
virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
virtual void CreateGeometry(void) ; // creates the geometry for GEANT
/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version vImpacts of PHOS Manager class.
// This class inherits from v1 and adds impacts storing.
}
//____________________________________________________________________________
-void AliPHOSvImpacts::Copy(AliPHOSvImpacts & phos)
+void AliPHOSvImpacts::Copy(TObject & phos) const
{
TObject::Copy(phos) ;
AliPHOS::Copy(phos) ;
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
//_________________________________________________________________________
// Implementation version vImpacts of PHOS Manager class.
// This class inherits from v1 and adds impacts storing.
}
virtual ~AliPHOSvImpacts(void) ;
- virtual void Copy(AliPHOSvImpacts & phos) ;
+ virtual void Copy(TObject & phos) const;
virtual void AddImpact(const char* detector, Int_t shunt, Int_t primary, Int_t track,
Int_t module, Int_t pid, TLorentzVector p, Float_t *xyz) ;
virtual void MakeBranch(Option_t *opt=" ");
return 1 ;
}
virtual void StepManager(void) ;
- virtual TString Version(void){
+ virtual const TString Version(void)const{
// returns the version number
return TString("vImpacts") ;
}