Skip to content

Commit

Permalink
adding histo to CaloPhotonCuts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuhlhei committed Feb 11, 2016
1 parent 9ba9298 commit ac31ee0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions PWGGA/GammaConv/AliCaloPhotonCuts.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ AliCaloPhotonCuts::AliCaloPhotonCuts(Bool_t isJetJet, const char *name,const cha
fHistClusterIncludedCellsAfterQA(NULL),
fHistClusterEnergyFracCellsBeforeQA(NULL),
fHistClusterEnergyFracCellsAfterQA(NULL),
fHistClusterIncludedCellsTimingAfterQA(NULL),
fHistClusterRBeforeQA(NULL),
fHistClusterRAfterQA(NULL),
fHistClusterdEtadPhiBeforeQA(NULL),
Expand Down Expand Up @@ -329,6 +330,7 @@ AliCaloPhotonCuts::AliCaloPhotonCuts(const AliCaloPhotonCuts &ref) :
fHistClusterIncludedCellsAfterQA(NULL),
fHistClusterEnergyFracCellsBeforeQA(NULL),
fHistClusterEnergyFracCellsAfterQA(NULL),
fHistClusterIncludedCellsTimingAfterQA(NULL),
fHistClusterRBeforeQA(NULL),
fHistClusterRAfterQA(NULL),
fHistClusterdEtadPhiBeforeQA(NULL),
Expand Down Expand Up @@ -607,6 +609,9 @@ void AliCaloPhotonCuts::InitCutHistograms(TString name){
fHistClusterEnergyFracCellsAfterQA = new TH1F(Form("ClusterEnergyFracCells_afterClusterQA %s",GetCutNumber().Data()),"ClusterEnergyFracCells_afterClusterQA",nMaxCellsEMCAL,0,nMaxCellsEMCAL);
fHistClusterEnergyFracCellsAfterQA->Sumw2();
fHistExtQA->Add(fHistClusterEnergyFracCellsAfterQA);
fHistClusterIncludedCellsTimingAfterQA = new TH1F(Form("ClusterIncludedCellsTiming_afterClusterQA %s",GetCutNumber().Data()),"ClusterIncludedCellsTiming_afterClusterQA; t (ns)",200,-500,500);
fHistClusterIncludedCellsTimingAfterQA->Sumw2();
fHistExtQA->Add(fHistClusterIncludedCellsTimingAfterQA);
}
else if( fClusterType == 2 ){ //PHOS
Int_t nMaxCellsPHOS = fNMaxPHOSModules*56*64;
Expand Down Expand Up @@ -634,6 +639,9 @@ void AliCaloPhotonCuts::InitCutHistograms(TString name){
fHistClusterEnergyFracCellsAfterQA = new TH1F(Form("ClusterEnergyFracCells_afterClusterQA %s",GetCutNumber().Data()),"ClusterEnergyFracCells_afterClusterQA",nMaxCellsPHOS,0,nMaxCellsPHOS);
fHistClusterEnergyFracCellsAfterQA->Sumw2();
fHistExtQA->Add(fHistClusterEnergyFracCellsAfterQA);
fHistClusterIncludedCellsTimingAfterQA = new TH1F(Form("ClusterIncludedCellsTiming_afterClusterQA %s",GetCutNumber().Data()),"ClusterIncludedCellsTiming_afterClusterQA; t (ns)",200,-500,500);
fHistClusterIncludedCellsTimingAfterQA->Sumw2();
fHistExtQA->Add(fHistClusterIncludedCellsTimingAfterQA);
}
else{AliError(Form("fExtendedMatchAndQA (%i) not (yet) defined for cluster type (%i)",fExtendedMatchAndQA,fClusterType));}
}
Expand Down Expand Up @@ -1142,6 +1150,8 @@ Bool_t AliCaloPhotonCuts::ClusterQualityCuts(AliVCluster* cluster, AliVEvent *ev
for(Int_t iCell=0;iCell<nCellCluster;iCell++){
fHistClusterIncludedCellsAfterQA->Fill(cluster->GetCellAbsId(iCell));
if(cluster->E()>0.) fHistClusterEnergyFracCellsAfterQA->Fill(cluster->GetCellAbsId(iCell),cells->GetCellAmplitude(cluster->GetCellAbsId(iCell))/cluster->E());
if(isMC==0) fHistClusterIncludedCellsTimingAfterQA->Fill(cells->GetCellTime(cluster->GetCellAbsId(iCell))*1E9);
else fHistClusterIncludedCellsTimingAfterQA->Fill(cells->GetCellTime(cluster->GetCellAbsId(iCell))*1E8);
}
}

Expand Down
3 changes: 2 additions & 1 deletion PWGGA/GammaConv/AliCaloPhotonCuts.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ class AliCaloPhotonCuts : public AliAnalysisCuts {
TH1F* fHistClusterIncludedCellsAfterQA; // CellIDs in Cluster of accepted ones
TH1F* fHistClusterEnergyFracCellsBeforeQA; // Energy fraction of CellIDs in Cluster
TH1F* fHistClusterEnergyFracCellsAfterQA; // Energy fraction of CellIDs in Cluster of accepted ones
TH1F* fHistClusterIncludedCellsTimingAfterQA; // Timing of CellIDs in Cluster of accepted ones

//Track matching histograms
TH1F* fHistClusterRBeforeQA; // cluster position in R=SQRT(x^2+y^2) (before QA)
Expand Down Expand Up @@ -375,7 +376,7 @@ class AliCaloPhotonCuts : public AliAnalysisCuts {

private:

ClassDef(AliCaloPhotonCuts,20)
ClassDef(AliCaloPhotonCuts,21)
};

#endif

0 comments on commit ac31ee0

Please sign in to comment.