TH2F *histStat = dynamic_cast<TH2F*>(inputH->GetStatistics());
TH2F *histBin0 = dynamic_cast<TH2F*>(inputH->GetStatistics("BIN0"));
- if(histStat)fOutputContainer->Add(histStat); else printf("Stat histogram not available\n");
- if(histBin0)fOutputContainer->Add(histBin0); else printf("Bin0 histogram not available\n");
+ if(histStat)fOutputContainer->Add(histStat); else printf("AliAnalysisTaskParticleCorrelation::FinishTaskOutput() - Stat histogram not available check, \n if ESDs, that AliPhysicsSelection was on, \n if AODs, if EventStat_temp.root exists \n");
+ if(histBin0)fOutputContainer->Add(histBin0);
}
//---- ANALYSIS system ----
#include "AliCalorimeterUtils.h"
-#include "AliVEvent.h"
+#include "AliESDEvent.h"
#include "AliMCEvent.h"
#include "AliStack.h"
#include "AliAODPWG4Particle.h"
void AliCalorimeterUtils::SetGeometryTransformationMatrices(AliVEvent* inputEvent)
{
//Set the calorimeters transformation matrices
-
+
//Get the EMCAL transformation geometry matrices from ESD
if(!fEMCALGeoMatrixSet && fEMCALGeo){
if(fLoadEMCALMatrices){
}//Load matrices
else if (!gGeoManager) {
+
if(fDebug > 1)
printf(" AliCalorimeterUtils::SetGeometryTransformationMatrices() - Load EMCAL misalignment matrices. \n");
if(!strcmp(inputEvent->GetName(),"AliESDEvent")) {
for(Int_t mod=0; mod < (fEMCALGeo->GetEMCGeometry())->GetNumberOfSuperModules(); mod++){
- if(inputEvent->GetEMCALMatrix(mod)) {
- //printf("EMCAL: mod %d, matrix %p\n",mod, ((AliESDEvent*)inputEvent)->GetEMCALMatrix(mod));
- fEMCALGeo->SetMisalMatrix(inputEvent->GetEMCALMatrix(mod),mod) ;
+ //printf("Load matrix %d, %p\n",mod,((AliESDEvent*)inputEvent)->GetEMCALMatrix(mod));
+ if(((AliESDEvent*)inputEvent)->GetEMCALMatrix(mod)) {
+ fEMCALGeo->SetMisalMatrix(((AliESDEvent*)inputEvent)->GetEMCALMatrix(mod),mod) ;
}
}// loop over super modules
fEMCALGeoMatrixSet = kTRUE;//At least one, so good
printf(" AliCalorimeterUtils::SetGeometryTransformationMatrices() - Load PHOS misalignment matrices. \n");
if(!strcmp(inputEvent->GetName(),"AliESDEvent")) {
for(Int_t mod=0; mod < 5; mod++){
- if(inputEvent->GetPHOSMatrix(mod)) {
+ if( ((AliESDEvent*)inputEvent)->GetPHOSMatrix(mod)) {
//printf("PHOS: mod %d, matrix %p\n",mod, ((AliESDEvent*)inputEvent)->GetPHOSMatrix(mod));
- fPHOSGeo->SetMisalMatrix(inputEvent->GetPHOSMatrix(mod),mod) ;
+ fPHOSGeo->SetMisalMatrix( ((AliESDEvent*)inputEvent)->GetPHOSMatrix(mod),mod) ;
}
}// loop over modules
fPHOSGeoMatrixSet = kTRUE; //At least one so good
}//nmodules
//Get Eta-Phi position of Cell
- //if(fFillAllPosHisto)
+ if(fFillAllPosHisto)
{
if(fCalorimeter=="EMCAL" && GetCaloUtils()->IsEMCALGeoMatrixSet()){
Float_t celleta = 0.;
Float_t cellphi = 0.;
GetEMCALGeometry()->EtaPhiFromIndex(id, celleta, cellphi);
+
fhEtaPhiAmp->Fill(celleta,cellphi,amp);
Double_t cellpos[] = {0, 0, 0};
GetEMCALGeometry()->GetGlobal(id, cellpos);
fhNCellsPerClusterMIP->Fill(e, nCaloCellsPerCluster,eta);
//Position
- //if(fFillAllPosHisto)
+ if(fFillAllPosHisto)
{
fhXE ->Fill(pos[0],e);
fhYE ->Fill(pos[1],e);
Int_t rbX = 1;
Int_t rbY = 1;
Int_t rbZ = 1;
- //if(fFillAllPosHisto)
+ if(fFillAllPosHisto)
{
snprintf(cname,buffersize,"%s_QA_ClusterXY",fCalorimeter.Data());
TCanvas * cxyz = new TCanvas(cname, "Cluster XY distributions", 1200, 400) ;