#include "AliRun.h"
#include "AliPHOSDigitizer.h"
#include "AliPHOSSDigitizer.h"
-#include "AliPHOSReconstructioner.h"
+#include "AliPHOSReconstructor.h"
ClassImp(AliPHOS)
//____________________________________________________________________________
AliPHOS:: AliPHOS() : AliDetector()
// Called by AliReconstruct after Reconstruct() and global tracking and vertxing
//Creates the tracksegments and Recparticles
- AliPHOSReconstructioner * rec = new AliPHOSReconstructioner((fLoader->GetRunLoader()->GetFileName()).Data()) ;
+ AliPHOSReconstructor * rec = new AliPHOSReconstructor((fLoader->GetRunLoader()->GetFileName()).Data()) ;
TList * taskslist = rec->GetListOfTasks() ;
Int_t index ;
TTask * task ;
// segment maker needs access to the AliESD object to retrieve the tracks reconstructed by
// the global tracking.
- AliPHOSReconstructioner * rec = new AliPHOSReconstructioner((fLoader->GetRunLoader()->GetFileName()).Data()) ;
+ AliPHOSReconstructor * rec = new AliPHOSReconstructor((fLoader->GetRunLoader()->GetFileName()).Data()) ;
TList * taskslist = rec->GetListOfTasks() ;
Int_t index ;
TTask * task ;
#include "AliPHOSv1.h"
#include "AliPHOSHit.h"
#include "AliPHOSDigit.h"
-#include "AliPHOSReconstructioner.h"
+#include "AliPHOSReconstructor.h"
#include "AliRun.h"
#include "AliConst.h"
}
//____________________________________________________________________________
-AliPHOSv1::AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title):
+AliPHOSv1::AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title):
AliPHOSv0(name,title)
{
// ctor : title is used to identify the layout
}
//_____________________________________________________________________________
-void AliPHOSv1::Reconstruction(AliPHOSReconstructioner * Reconstructioner)
+void AliPHOSv1::Reconstruction(AliPHOSReconstructor * Reconstructioner)
{
// 1. Reinitializes the existing RecPoint, TrackSegment, and RecParticles Lists and
// 2. Creates TreeR with a branch for each list
// --- AliRoot header files ---
#include "AliPHOSv0.h"
#include "AliPHOSGeometry.h"
-#include "AliPHOSReconstructioner.h"
+#include "AliPHOSReconstructor.h"
#include "AliPHOSTrackSegmentMaker.h"
#include "AliPHOSPID.h"
#include "AliPHOSCPVDigit.h"
AliPHOSv1(void) ;
AliPHOSv1(const char *name, const char *title="") ;
- AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
+ AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title="") ;
AliPHOSv1(const AliPHOSv1 & phos) {
// cpy ctor: no implementation yet
// requested by the Coding Convention
Int_t Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
virtual void Hits2SDigits() ;
virtual void MakeBranch(Option_t* opt, char *file=0 ) ;
- void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
+ void Reconstruction(AliPHOSReconstructor * Reconstructioner) ;
void ResetClusters(){} ;
virtual void SDigits2Digits() ;
virtual Int_t IsVersion(void) const {
}
virtual void ResetReconstruction() ; // Reset reconstructed objects
- void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {
+ void SetReconstructioner(AliPHOSReconstructor& Reconstructioner) {
// sets the reconstructionner object to be used
fReconstructioner = &Reconstructioner ;
}
Float_t fDigitizeA ; //Parameters of the
Float_t fDigitizeB ; //digitization
Int_t fnSdigits ;
- AliPHOSReconstructioner * fReconstructioner ; // Clusterization and subtracking procedures
+ AliPHOSReconstructor * fReconstructioner ; // Clusterization and subtracking procedures
AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD
#include "TString.h"
-#include "PHOS/AliPHOSReconstructioner.h"
+#include "PHOS/AliPHOSReconstructor.h"
#endif
void Go(TString deb = ""){
- AliPHOSReconstructioner * a ;
+ AliPHOSReconstructor * a ;
cout << "AliPHOS:> Single File default reconstruction started" << endl ;
- a = new AliPHOSReconstructioner("galice.root") ; //first -single file default reconstruction
+ a = new AliPHOSReconstructor("galice.root") ; //first -single file default reconstruction
a->ExecuteTask(deb.Data()) ;
cout << "AliPHOS:> Single File default reconstruction finished" << endl ;
// delete a ;
cout << "AliPHOS:> Single File branch TEST reconstruction started" << endl ;
- a = new AliPHOSReconstructioner("galice.root","test") ; //another branch single file recontruction
+ a = new AliPHOSReconstructor("galice.root","test") ; //another branch single file recontruction
a->ExecuteTask(deb.Data()) ;
cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
//delete a ;
cout << "AliPHOS:> Split File default reconstruction started" << endl ;
- a = new AliPHOSReconstructioner("galice.root","Default",kTRUE) ; //Split file default reconstruction
+ a = new AliPHOSReconstructor("galice.root","Default",kTRUE) ; //Split file default reconstruction
a->ExecuteTask(deb.Data()) ;
cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
//delete a ;
//
// Use case:
//
-// root [0] AliPHOSReconstructioner * r = new AliPHOSReconstructioner("galice.root")
+// root [0] AliPHOSReconstructor * r = new AliPHOSReconstructor("galice.root")
// // Set the header file
// root [1] r->ExecuteTask()
// // Make full chain of reconstruction
// --- AliRoot header files ---
#include "AliESD.h"
#include "AliESDCaloTrack.h"
-#include "AliPHOSReconstructioner.h"
+#include "AliPHOSReconstructor.h"
#include "AliPHOSClusterizerv1.h"
#include "AliPHOSTrackSegmentMakerv1.h"
#include "AliPHOSPIDv1.h"
#include "AliPHOSGetter.h"
-ClassImp(AliPHOSReconstructioner)
+ClassImp(AliPHOSReconstructor)
//____________________________________________________________________________
- AliPHOSReconstructioner::AliPHOSReconstructioner():TTask("AliPHOSReconstructioner","")
+ AliPHOSReconstructor::AliPHOSReconstructor():TTask("AliPHOSReconstructor","")
{
// ctor
fClusterizer = 0 ;
}
//____________________________________________________________________________
-AliPHOSReconstructioner::AliPHOSReconstructioner(const char* evFoldName,const char * branchName,const TString taskName):
-TTask("AliPHOSReconstructioner",evFoldName)
+AliPHOSReconstructor::AliPHOSReconstructor(const char* evFoldName,const char * branchName,const TString taskName):
+TTask("AliPHOSReconstructor",evFoldName)
{
// Create a PHOS reconstructioner for the tasks defined by taskName
// "C" - clusterization
fIsInitialized = kTRUE ;
}
//____________________________________________________________________________
-void AliPHOSReconstructioner::Exec(Option_t *opt)
+void AliPHOSReconstructor::Exec(Option_t *opt)
{
//check, if the names of branches, which should be made coincide with already
//existing
Init() ;
}
//____________________________________________________________________________
-void AliPHOSReconstructioner:: Clusters2Tracks(Int_t ievent, AliESD *event)
+void AliPHOSReconstructor:: Clusters2Tracks(Int_t ievent, AliESD *event)
{
// Convert PHOS reconstructed particles into ESD object for event# ievent.
// ESD object is returned as an argument event
}
//____________________________________________________________________________
- void AliPHOSReconstructioner::Init()
+ void AliPHOSReconstructor::Init()
{
// initiliaze Reconstructioner if necessary: we can not do this in default constructor
}
}
//____________________________________________________________________________
-AliPHOSReconstructioner::~AliPHOSReconstructioner()
+AliPHOSReconstructor::~AliPHOSReconstructor()
{
// Delete data members if any
}
-void AliPHOSReconstructioner::Print()const {
+void AliPHOSReconstructor::Print()const {
// Print reconstructioner data
TString message ;
- message = "-----------------AliPHOSReconstructioner---------------\n" ;
+ message = "-----------------AliPHOSReconstructor---------------\n" ;
message += " Reconstruction of the header file %s\n" ;
message += " with the following modules:\n" ;
}
//____________________________________________________________________________
-void AliPHOSReconstructioner::SetEventRange(Int_t first, Int_t last)
+void AliPHOSReconstructor::SetEventRange(Int_t first, Int_t last)
{
// Set the event range to process
fFirstEvent=first;
-#ifndef ALIPHOSRECONSTRUCTIONER_H
-#define ALIPHOSRECONSTRUCTIONER_H
+#ifndef ALIPHOSRECONSTRUCTOR_H
+#define ALIPHOSRECONSTRUCTOR_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// --- AliRoot header files ---
-class AliPHOSReconstructioner : public TTask {
+class AliPHOSReconstructor : public TTask {
public:
- AliPHOSReconstructioner() ; //ctor
- AliPHOSReconstructioner(const char * headerFile, const char * branchName = "Default",const TString taskName="CTP");
- AliPHOSReconstructioner(const AliPHOSReconstructioner & rec) : TTask(rec) {
+ AliPHOSReconstructor() ; //ctor
+ AliPHOSReconstructor(const char * headerFile, const char * branchName = "Default",const TString taskName="CTP");
+ AliPHOSReconstructor(const AliPHOSReconstructor & rec) : TTask(rec) {
// cpy ctor:
// requested by the Coding Convention
Fatal("cpy ctor", "not implemented") ;
}
- virtual ~AliPHOSReconstructioner() ;
+ virtual ~AliPHOSReconstructor() ;
virtual void Exec(Option_t *) ;
void Clusters2Tracks(Int_t ievent, AliESD *event);
void Print()const ;
- AliPHOSReconstructioner & operator = (const AliPHOSReconstructioner & /*rvalue*/) {
+ AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/) {
// assignement operator requested by coding convention but not needed
Fatal("operator =", "not implemented") ;
return *this ;
Int_t fFirstEvent; // first event to process
Int_t fLastEvent; // last event to process
- ClassDef(AliPHOSReconstructioner,1) // Reconstruction algorithm class (Base Class)
+ ClassDef(AliPHOSReconstructor,1) // Reconstruction algorithm class (Base Class)
};
-#endif // ALIPHOSRECONSTRUCTIONER_H
+#endif // ALIPHOSRECONSTRUCTOR_H
// new TrackSegment.
// If there is no CPV/PPSD RecPoint we make TrackSegment
// consisting from EMC alone. There is no TrackSegments without EMC RecPoint.
-//// In principle this class should be called from AliPHOSReconstructioner, but
+//// In principle this class should be called from AliPHOSReconstructor, but
// one can use it as well in standalone mode.
// Use case:
// root [0] AliPHOSTrackSegmentMakerv1 * t = new AliPHOSTrackSegmentMaker("galice.root", "tracksegmentsname", "recpointsname")
fPID->SetShowerProfileCuts(0.3, 1.8, 0.3, 1.8 ) ;
//========== Creates the Reconstructioner
- AliPHOSReconstructioner * fRec = new AliPHOSReconstructioner(fClu, fTrs, fPID) ;
+ AliPHOSReconstructor * fRec = new AliPHOSReconstructor(fClu, fTrs, fPID) ;
// fRec -> SetDebugReconstruction(kTRUE);
gAlice->GetEvent(0) ;
#include "AliPHOSEmcRecPoint.h"
#include "AliPHOSPpsdRecPoint.h"
#include "AliPHOSClusterizerv1.h"
-#include "AliPHOSReconstructioner.h"
+#include "AliPHOSReconstructor.h"
#include "AliPHOSTrackSegment.h"
#include "AliPHOSTrackSegmentMakerv1.h"
#include "AliPHOSPIDv1.h"
clusterizer->SetCalibrationParameters(0., 0.00000001) ;
//========== Creates the Reconstructioner
- AliPHOSReconstructioner * Reconstructioner = new AliPHOSReconstructioner(clusterizer, tracksegmentmaker, particleidentifier) ;
+ AliPHOSReconstructor * Reconstructioner = new AliPHOSReconstructor(clusterizer, tracksegmentmaker, particleidentifier) ;
Info("PHOSHistos", "Event %d\n", ievent);
#pragma link C++ class AliPHOSvImpacts+;
#pragma link C++ class AliPHOSImpact+;
#pragma link C++ class AliPHOSLink+;
-#pragma link C++ class AliPHOSReconstructioner+;
+#pragma link C++ class AliPHOSReconstructor+;
#pragma link C++ class AliPHOSRecPoint+;
#pragma link C++ class AliPHOSSDigitizer+;
#pragma link C++ class AliPHOSDigitizer+;
AliPHOSCpvRecPoint.cxx \
AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx \
AliPHOSLink.cxx AliPHOSSDigitizer.cxx AliPHOSDigitizer.cxx\
- AliPHOSReconstructioner.cxx AliPHOSTrackSegment.cxx \
+ AliPHOSReconstructor.cxx AliPHOSTrackSegment.cxx \
AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \
AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv0.cxx \
AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \