Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
SpectraAna.h
1/*
2 * SpectraAna.h
3 *
4 * Created on: 21-07-2015
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#ifndef HALSPECTRAANA_H_
11#define HALSPECTRAANA_H_
12
13#include "Array.h"
14#include "HistogramManager.h"
15#include "TrackAna.h"
16#include <TClonesArray.h>
17#include <vector>
21namespace Hal {
22 class SpectraAna : public TrackAna {
27 Int_t fPtBins, fMtBins, fEtaBins, fYBins;
28 Double_t fPtMin, fPtMax;
29 Double_t fMtMin, fMtMax;
30 Double_t fEtaMin, fEtaMax;
31 Double_t fYMin, fYMax;
32 TClonesArray* fEventCollectionsNames;
33 TClonesArray* fTrackCollectionsNames;
34 std::vector<Double_t> fMass;
35 Bool_t fUseMass;
36 void CheckNames();
37
38 protected:
39 virtual void ProcessTrack();
40 virtual Task::EInitFlag Init();
41 Package* Report() const;
42
43 public:
47 SpectraAna();
54 void SetPtAxis(Int_t bins, Double_t min, Double_t max);
61 void SetMtAxis(Int_t bins, Double_t min, Double_t max);
68 void SetYAxis(Int_t bins, Double_t min, Double_t max);
75 void SetEtaAxis(Int_t bins, Double_t min, Double_t max);
81 void SetEventCollectionName(TString name, Int_t event_collection = 0);
87 void SetTrackCollectionName(TString name, Int_t track_collection = 0);
95 void SetMass(Double_t mass, Int_t track_collection);
101 void SetOption(Option_t* opt);
102 virtual ~SpectraAna();
103 ClassDef(SpectraAna, 1)
104 };
105} // namespace Hal
106#endif /* HALSPECTRAANA_H_ */
void SetPtAxis(Int_t bins, Double_t min, Double_t max)
void SetMtAxis(Int_t bins, Double_t min, Double_t max)
virtual void ProcessTrack()
void SetYAxis(Int_t bins, Double_t min, Double_t max)
Package * Report() const
void SetMass(Double_t mass, Int_t track_collection)
void SetOption(Option_t *opt)
void SetEventCollectionName(TString name, Int_t event_collection=0)
virtual Task::EInitFlag Init()
void SetEtaAxis(Int_t bins, Double_t min, Double_t max)
void SetTrackCollectionName(TString name, Int_t track_collection=0)