BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Generator/GenAnalysisTools/TruthExamples/TruthExamples-00-00-07/TruthExamples/HistSample.h
Go to the documentation of this file.
1//
2//
3// File: GeneratorModule/Histsample.h
4// Description:
5// This code shows how to make histgrams from a HepMC event
6//
7// AuthorList:
8// Eva Bouhova Feb 2002
9
10///#include <iostream.h>
11#include <math.h>
12#include "GaudiKernel/Algorithm.h"
13
14#include "HepPDT/ParticleDataTable.hh"
15
16class IHistogram1D; //Forward declaration
17class IHistogram2D; //Forward declaration
18class StoreGateSvc;
19class HistSample:public Algorithm {
20public:
21 HistSample(const std::string& name, ISvcLocator* pSvcLocator);
22 StatusCode initialize();
23 StatusCode execute();
24 StatusCode finalize();
25
26private:
27 bool m_produceHistogram;
28
29 //histograms, used if m_produceHistogram is true = 1
30 IHistogram1D* m_hgenerated;
31 IHistogram1D* m_hfinal;
32 IHistogram1D* m_ncharged;
33 IHistogram1D* m_hChargedPt;
34 IHistogram1D* m_hChargedEta;
35 IHistogram1D* m_hZPtall;
36 IHistogram1D* m_hZPt;
37 IHistogram1D* m_hZPte;
38 IHistogram1D* m_hZPtm;
39 IHistogram1D* m_hZPtt;
40 IHistogram1D* m_massZall;
41 IHistogram1D* m_massZ;
42 IHistogram1D* m_massZe;
43 IHistogram1D* m_massZm;
44 IHistogram1D* m_massZt;
45 IHistogram1D* m_hPtPaire;
46 IHistogram1D* m_hPtPairm;
47 IHistogram1D* m_hPtPairt;
48 IHistogram1D* m_massPaire;
49 IHistogram1D* m_massPairm;
50 IHistogram1D* m_massPairt;
51 IHistogram1D* m_rapidity;
52 IHistogram1D* m_pseudorapidity;
53 IHistogram1D* m_hpte;
54
55 StoreGateSvc* m_sgSvc;
56
57 HepPDT::ParticleDataTable* m_particleTable;
58
59};
60
61
StatusCode execute()
Definition: HistSample.cxx:130
StatusCode finalize()
Definition: HistSample.cxx:358
StatusCode initialize()
Definition: HistSample.cxx:62