20 #include <TClonesArray.h> 23 #include <TLorentzVector.h> 26 #include "AliVCluster.h" 27 #include "AliVEvent.h" 43 AliEMCalTriggerClusterAnalysisComponent::AliEMCalTriggerClusterAnalysisComponent() :
67 std::map<std::string, std::string> triggerCombinations;
82 const TAxis *clusteraxes[5] = {
91 for(std::map<std::string,std::string>::iterator it = triggerCombinations.begin(); it != triggerCombinations.end(); ++it){
92 const std::string name = it->first, &
title = it->second;
93 fHistos->
CreateTHnSparse(Form(
"hClusterCalibHist%s", name.c_str()), Form(
"Calib. cluster-based histogram for %s events",
title.c_str()), 5, clusteraxes,
"s");
94 fHistos->
CreateTHnSparse(Form(
"hClusterUncalibHist%s", name.c_str()), Form(
"Uncalib. cluster-based histogram for %s events",
title.c_str()), 5, clusteraxes,
"s");
97 for(
int iaxis = 0; iaxis < 5; iaxis++)
delete clusteraxes[iaxis];
107 AliDebug(1, Form(
"Number of calibrated clusters: %d", data->
GetClusterContainer()->GetEntries()));
109 AliVCluster *clust(NULL);
111 std::vector<std::string> triggerNames;
113 for(
int iclust = 0; iclust < recEv->GetNumberOfCaloClusters(); iclust++){
114 clust = recEv->GetCaloCluster(iclust);
115 if(!clust->IsEMCAL())
continue;
117 for(std::vector<std::string>::iterator name = triggerNames.begin(); name != triggerNames.end(); ++name)
123 printf(
"Cluster container not found \n");
125 while((clust = dynamic_cast<AliVCluster *>(clusterIter()))){
126 if(!clust->IsEMCAL())
continue;
128 for(std::vector<std::string>::iterator name = triggerNames.begin(); name != triggerNames.end(); ++name)
143 ev->GetPrimaryVertex()->GetXYZ(xyz);
144 clust->GetMomentum(vec, xyz);
145 double infs[5] = {clust->E(), vec.Eta(), vec.Phi(), xyz[2], inMB ? 1. : 0.};
AliVEvent * GetRecEvent() const
void FillHistogram(const TString &histname, const AliVCluster *clust, AliVEvent *ev, Bool_t inMB)
Class creating a linear binning, used in the histogram manager.
void GetMachingTriggerNames(std::vector< std::string > &triggernames) const
AliCutValueRange< double > fEnergyRange
Allowed energy range for the cluster.
bool HasMinBiasTrigger() const
TBinning * GetBinning(const char *name) const
Interface for binnings used by the histogram handler.
virtual void Process(const AliEMCalTriggerEventData *const data)
void SetLimits(t min, t max)
const TClonesArray * GetClusterContainer() const
Declaration of a management class for trigger classes.
void FillTHnSparse(const char *name, const double *x, double weight=1., Option_t *opt="")
void GetAllTriggerNamesAndTitles(std::map< std::string, std::string > &triggers) const
THistManager * fHistos
Histogram container of the analysis component.
const AliEMCalTriggerAnaClassManager * fTriggerClassManager
Global trigger class manager.
Analysis component for EMCAL clusters.
Base class for analysis components in the analysis of EMCAL-triggered events.
virtual void CreateHistos()
AliEMCalTriggerClusterAnalysisComponent()
Analysis of high- tracks in triggered events.
Simple event container within the high- track analysis.
THnSparse * CreateTHnSparse(const char *name, const char *title, int ndim, const int *nbins, const double *min, const double *max, Option_t *opt="")
Create a new THnSparse within the container.
const AliEMCalTriggerBinningComponent * fBinning
Global binning handler.
virtual void CreateHistos()
Event Data used in exchange to the different analysis components.
Analysis component for EMCAL clusters in events.
TAxis * DefineAxis(const char *name, const TBinning &binning)
bool IsInRange(t value) const