Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
morsch committed Dec 17, 2012
2 parents 56d20f1 + 6fe1f1e commit 0bd96be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
18 changes: 15 additions & 3 deletions ANALYSIS/TenderSupplies/AliPHOSTenderSupply.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ void AliPHOSTenderSupply::InitTender()
if(fTender)
runNumber = fTender->GetRun();
else{
if(!fTask){
AliError("Neither Tender not Taks was not set") ;
return ;
}
AliAODEvent *aod = dynamic_cast<AliAODEvent*>(fTask->InputEvent()) ;
if(aod)
runNumber = aod->GetRunNumber() ;
Expand Down Expand Up @@ -365,6 +369,10 @@ void AliPHOSTenderSupply::FindTrackMatching(Int_t mod,TVector3 *locpos,
aod= dynamic_cast<AliAODEvent*>(fTask->InputEvent());
}

if(!aod && !esd){
AliError("Neither AOD nor ESD is found") ;
return ;
}
Double_t magF = 0;
if(esd) magF = esd->GetMagneticField();
else magF = aod->GetMagneticField();
Expand Down Expand Up @@ -558,9 +566,13 @@ Double_t AliPHOSTenderSupply::TestCPV(Double_t dx, Double_t dz, Double_t pt, Int
AliESDEvent *esd= dynamic_cast<AliESDEvent*>(fTask->InputEvent());
if(esd)
mf = esd->GetMagneticField();
else{
AliAODEvent *aod= dynamic_cast<AliAODEvent*>(fTask->InputEvent());
mf = aod->GetMagneticField();
else{
if(fTask){
AliAODEvent *aod= dynamic_cast<AliAODEvent*>(fTask->InputEvent());
if(aod)
mf = aod->GetMagneticField();
}
AliError("Neither Tender nor Task defined") ;
}
}

Expand Down
17 changes: 9 additions & 8 deletions ANALYSIS/TenderSupplies/AliPHOSTenderSupply.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ class AliPHOSTenderSupply: public AliTenderSupply {
void EvalLambdas(AliVCluster * clu, Double_t &m02, Double_t &m20) ;
private:

TString fOCDBpass ; //! Pass to OCDB recalibration object, local or alien
TString fNonlinearityVersion; //! Version of non-linearity correction to aaply
AliPHOSGeometry *fPHOSGeo; //! PHOS geometry
Double_t fNonlinearityParams[10] ; //! Parameters for non-linearity calculation
TH2I * fPHOSBadMap[5] ; //! Bad channels map
Int_t fRecoPass ; //! Reconstruction pass
TString fOCDBpass ; // Pass to OCDB recalibration object, local or alien
TString fNonlinearityVersion; // Version of non-linearity correction to aaply
AliPHOSGeometry *fPHOSGeo; // PHOS geometry
Double_t fNonlinearityParams[10] ; // Parameters for non-linearity calculation
TH2I * fPHOSBadMap[5] ; // Bad channels map
Int_t fRecoPass ; // Reconstruction pass
Bool_t fUsePrivateBadMap ;
Bool_t fUsePrivateCalib ;

AliPHOSCalibData *fPHOSCalibData; //! PHOS calibration object
AliAnalysisTaskSE *fTask; //! analysis task
AliPHOSCalibData *fPHOSCalibData; // PHOS calibration object
AliAnalysisTaskSE *fTask; // analysis task


ClassDef(AliPHOSTenderSupply, 2); // PHOS tender task
Expand All @@ -75,3 +75,4 @@ class AliPHOSTenderSupply: public AliTenderSupply {

#endif


0 comments on commit 0bd96be

Please sign in to comment.