8 #ifndef ALIEMCALMCTREEWRITER_H_ 9 #define ALIEMCALMCTREEWRITER_H_ 33 void GetCellEnergies(AliVCluster *clust, TVectorD &cells, TVectorF &indices)
const;
34 void FindTracks(
unsigned int label, std::vector<AliVTrack *> &tracks);
35 void FindClusters(
unsigned int label, std::vector<AliVCluster *> &clusters);
52 TrackInfo(): pdg(0), isPhysicalPrimary(false), isUnique(true), Egen(0.), E(0.), fCellIndices(), fCellEnergies() {
53 memset(pgen, 0,
sizeof(
Double_t) * 3);
54 memset(prec, 0,
sizeof(
Double_t) * 3);
55 memset(erec, 0,
sizeof(
Double_t) * 3);
56 memset(showershape, 0,
sizeof(
Double_t) * 2);
60 isPhysicalPrimary =
false;
64 memset(pgen, 0,
sizeof(
Double_t) * 3);
65 memset(prec, 0,
sizeof(
Double_t) * 3);
66 memset(erec, 0,
sizeof(
Double_t) * 3);
67 memset(showershape, 0,
sizeof(
Double_t) * 2);
68 for(
int i = 0; i < fCellIndices.GetNrows(); i++) fCellIndices[i] = 0;
69 for(
int i = 0; i < fCellEnergies.GetNrows(); i++) fCellEnergies[i] = 0;
double GetClusterEnergy(AliVCluster *clust, Double_t *vpos, Double_t *evec) const
bool AcceptParticle(const AliVParticle *const particle) const
Base task in the EMCAL framework.
void FindTracks(unsigned int label, std::vector< AliVTrack * > &tracks)
virtual Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
TrackInfo fOutputInfo
Output tree with tracks.
void GetShowerShape(AliVCluster *clust, Double_t *vector) const
virtual ~AliEmcalMCTreeWriter()
void GetCellEnergies(AliVCluster *clust, TVectorD &cells, TVectorF &indices) const
virtual void UserCreateOutputObjects()
void FindClusters(unsigned int label, std::vector< AliVCluster * > &clusters)