//_________________________________________________________________________
// An analysis task to check the EMCAL photon data in simulated data
+// An analysis task to check the EMCAL photon data in simulated data
+// An analysis task to check the EMCAL photon data in simulated data
+// An analysis task to check the EMCAL photon data in simulated data
+// An analysis task to check the EMCAL photon data in simulated data
//
//*-- Yves Schutz
//////////////////////////////////////////////////////////////////////////////
#include <TChain.h>
#include <TFile.h>
#include <TH1.h>
-#include <TH1F.h>
-#include <TH1I.h>
-#include <TLegend.h>
#include <TNtuple.h>
#include <TROOT.h>
#include <TVector3.h>
AliAnalysisTask(name,""),
fChain(0),
fESD(0),
+ fOutputContainer(0),
fhEMCALPos(0),
fhEMCAL(0),
fhEMCALEnergy(0),
DefineOutput(0, TObjArray::Class()) ;
}
+//____________________________________________________________________________
+AliEMCALQATask::AliEMCALQATask(const AliEMCALQATask& ta) :
+ AliAnalysisTask(ta.GetName(),""),
+ fChain(ta.fChain),
+ fESD(ta.fESD),
+ fOutputContainer(ta.fOutputContainer),
+ fhEMCALPos(ta.fhEMCALPos),
+ fhEMCAL(ta.fhEMCAL),
+ fhEMCALEnergy(ta.fhEMCALEnergy),
+ fhEMCALDigits(ta.fhEMCALDigits),
+ fhEMCALRecParticles(ta.fhEMCALRecParticles),
+ fhEMCALPhotons(ta.fhEMCALPhotons),
+ fhEMCALInvariantMass(ta.fhEMCALInvariantMass),
+ fhEMCALDigitsEvent(ta.fhEMCALDigitsEvent)
+{
+ // cpy ctor
+}
+
+//_____________________________________________________________________________
+AliEMCALQATask& AliEMCALQATask::operator = (const AliEMCALQATask& ap)
+{
+// assignment operator
+
+ this->~AliEMCALQATask();
+ new(this) AliEMCALQATask(ap);
+ return *this;
+}
+
//______________________________________________________________________________
AliEMCALQATask::~AliEMCALQATask()
{
//************************ EMCAL *************************************
Int_t firstEmcalCluster = fESD->GetFirstEMCALCluster() ;
- const Int_t mumberOfEmcalClusters = fESD->GetNumberOfEMCALClusters() ;
+ const Int_t kNumberOfEmcalClusters = fESD->GetNumberOfEMCALClusters() ;
- TVector3 ** emcalVector = new TVector3*[mumberOfEmcalClusters] ;
- Float_t * emcalPhotonsEnergy = new Float_t[mumberOfEmcalClusters] ;
+ TVector3 ** emcalVector = new TVector3*[kNumberOfEmcalClusters] ;
+ Float_t * emcalPhotonsEnergy = new Float_t[kNumberOfEmcalClusters] ;
Int_t emcalCluster ;
Int_t numberOfEmcalClustersv1 = 0 ;
Int_t numberOfPhotonsInEmcal = 0 ;
// loop over all the EMCAL Cluster
- for(emcalCluster = firstEmcalCluster ; emcalCluster < firstEmcalCluster + mumberOfEmcalClusters ; emcalCluster++) {
+ for(emcalCluster = firstEmcalCluster ; emcalCluster < firstEmcalCluster + kNumberOfEmcalClusters ; emcalCluster++) {
AliESDCaloCluster * caloCluster = fESD->GetCaloCluster(emcalCluster) ;
if (caloCluster) {
Float_t pos[3] ;