#include "TSystem.h"
#include "TFile.h"
-// #include "TTree.h"
#include "TROOT.h"
-// #include "TObjString.h"
-// #include "TFolder.h"
-// #include "TParticle.h"
+
// --- Standard library ---
// --- AliRoot header files ---
-// #include "AliRun.h"
-// #include "AliConfig.h"
+
#include "AliEMCALGetter.h"
#include "AliEMCAL.h"
#include "AliRunLoader.h"
//____________________________________________________________________________
AliEMCALClusterizer * AliEMCALGetter::Clusterizer()
{
+ // return pointer to Clusterizer Tree
AliEMCALClusterizer * rv ;
rv = dynamic_cast<AliEMCALClusterizer *>(EmcalLoader()->Reconstructioner()) ;
if (!rv) {
//____________________________________________________________________________
-TClonesArray * AliEMCALGetter::Digits()
+TClonesArray * AliEMCALGetter::Digits() const
{
// asks the Loader to return the Digits container
//____________________________________________________________________________
AliEMCALDigitizer * AliEMCALGetter::Digitizer()
{
+ // return pointer to Digitizer Tree
AliEMCALDigitizer * rv ;
rv = dynamic_cast<AliEMCALDigitizer *>(EmcalLoader()->Digitizer()) ;
if (!rv) {
return rv ;
}
-
-//____________________________________________________________________________
-TObjArray * AliEMCALGetter::PRERecPoints()
-{
- // asks the Loader to return the EMC RecPoints container
-
- TObjArray * rv = 0 ;
-
- rv = EmcalLoader()->PRERecPoints() ;
- if (!rv) {
- EmcalLoader()->MakeRecPointsArray() ;
- rv = EmcalLoader()->PRERecPoints() ;
- }
- return rv ;
-}
-
//____________________________________________________________________________
-TObjArray * AliEMCALGetter::ECARecPoints()
+TObjArray * AliEMCALGetter::ECARecPoints() const
{
// asks the Loader to return the EMC RecPoints container
}
//____________________________________________________________________________
-TObjArray * AliEMCALGetter::HCARecPoints()
-{
- // asks the Loader to return the EMC RecPoints container
-
- TObjArray * rv = 0 ;
-
- rv = EmcalLoader()->HCARecPoints() ;
- if (!rv) {
- EmcalLoader()->MakeRecPointsArray() ;
- rv = EmcalLoader()->HCARecPoints() ;
- }
- return rv ;
-}
-
-//____________________________________________________________________________
-TClonesArray * AliEMCALGetter::TrackSegments()
+TClonesArray * AliEMCALGetter::TrackSegments() const
{
// asks the Loader to return the TrackSegments container
//____________________________________________________________________________
AliEMCALTrackSegmentMaker * AliEMCALGetter::TrackSegmentMaker()
{
+ // return pointer to TrackSegmentMaker Tree
AliEMCALTrackSegmentMaker * rv ;
rv = dynamic_cast<AliEMCALTrackSegmentMaker *>(EmcalLoader()->TrackSegmentMaker()) ;
if (!rv) {
}
//____________________________________________________________________________
-TClonesArray * AliEMCALGetter::RecParticles()
+TClonesArray * AliEMCALGetter::RecParticles() const
{
// asks the Loader to return the TrackSegments container
if( strstr(opt,"P") )
ReadTreeP() ;
-
-// if( strstr(opt,"Q") )
-// ReadTreeQA() ;
}
}
//____________________________________________________________________________
- TClonesArray * AliEMCALGetter::Hits()
+ TClonesArray * AliEMCALGetter::Hits() const
{
// asks the loader to return the Hits container
// Creates and returns the pointer of the unique instance
// Must be called only when the environment has changed
- //::Info("Instance","alirunFileName=%s version=%s openingOption=%s",alirunFileName,version,openingOption);
-
if(!fgObjGetter){ // first time the getter is called
fgObjGetter = new AliEMCALGetter(alirunFileName, version, openingOption) ;
}
//____________________________________________________________________________
AliEMCALPID * AliEMCALGetter::PID()
{
+ // return pointer to PID Tree
AliEMCALPID * rv ;
rv = dynamic_cast<AliEMCALPID *>(EmcalLoader()->PIDTask()) ;
if (!rv) {
// creates the Primaries container if needed
if ( !fPrimaries ) {
if (fgDebug)
- Info("Primaries", "Creating a new TClonesArray for primaries") ;
+ printf("Primaries: Creating a new TClonesArray for primaries") ;
fPrimaries = new TClonesArray("TParticle", 1000) ;
}
return fPrimaries ;
// Print usefull information about the getter
AliRunLoader * rl = AliRunLoader::GetRunLoader(fgEmcalLoader->GetTitle());
- ::Info( "Print", "gAlice file is %s -- version name is %s", (rl->GetFileName()).Data(), rl->GetEventFolder()->GetName() ) ;
+ printf("Print: gAlice file is %s -- version name is %s", (rl->GetFileName()).Data(), rl->GetEventFolder()->GetName() ) ;
}
//____________________________________________________________________________
fNPrimaries = rl->Stack()->GetNtrack() ;
if (fgDebug)
- Info( "ReadTreeK", "Found %d particles in event # %d", fNPrimaries, EventNumber() ) ;
+ printf("ReadTreeK: Found %d particles in event # %d", fNPrimaries, EventNumber() ) ;
// first time creates the container
}
//____________________________________________________________________________
-TClonesArray * AliEMCALGetter::SDigits()
+TClonesArray * AliEMCALGetter::SDigits() const
{
// asks the Loader to return the Digits container
//____________________________________________________________________________
AliEMCALSDigitizer * AliEMCALGetter::SDigitizer()
{
+ // return pointer to SDigitizer Tree
AliEMCALSDigitizer * rv ;
rv = dynamic_cast<AliEMCALSDigitizer *>(EmcalLoader()->SDigitizer()) ;
if (!rv) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeD() const
{
+ // return pointer to Digits Tree
TTree * rv = 0 ;
rv = EmcalLoader()->TreeD() ;
if ( !rv ) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeH() const
{
+ // return pointer to Hits Tree
TTree * rv = 0 ;
rv = EmcalLoader()->TreeH() ;
if ( !rv ) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeR() const
{
+ // return pointer to RecPoints Tree
+
TTree * rv = 0 ;
rv = EmcalLoader()->TreeR() ;
if ( !rv ) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeT() const
-{
+{
+ // return pointer to TrackSegments Tree
TTree * rv = 0 ;
rv = EmcalLoader()->TreeT() ;
if ( !rv ) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeP() const
{
+ // return pointer to RecParticles Tree
TTree * rv = 0 ;
rv = EmcalLoader()->TreeP() ;
if ( !rv ) {
//____________________________________________________________________________
TTree * AliEMCALGetter::TreeS() const
{
+ // return pointer to SDigits Tree
TTree * rv = 0 ;
rv = EmcalLoader()->TreeS() ;
if ( !rv ) {