Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TemplateCreation.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TemplateCreation.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef TEMPLATECREATION_H
4 #define TEMPLATECREATION_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class TProfile;
12 class TH2D;
14 {
15  public:
16 
17  TemplateCreation(const std::string &name = "TemplateCreation");
18 
19  ~TemplateCreation() override;
20 
21 
22  int Init(PHCompositeNode *topNode) override;
23  int InitRun(PHCompositeNode *topNode) override;
24  int process_event(PHCompositeNode *topNode) override;
25  int ResetEvent(PHCompositeNode *topNode) override;
26  int EndRun(const int runnumber) override;
27  int End(PHCompositeNode *topNode) override;
28  int Reset(PHCompositeNode * /*topNode*/) override;
29 
30  void set_outfile(std::string outfilename)
31  {
32  s_outfilename = outfilename;
33  }
34  void set_nsamples(int samples)
35  {
36  nsamples = samples;
37  }
38 
39  void set_packetrange(int lowpacket, int highpacket)
40  {
41  m_packet_low = lowpacket;
42  m_packet_high = highpacket;
43  }
44 
45 
46 
47  private:
48  double rising_shape(double *x, double *par);
52  int nsamples;
56  double target_hm;
57  int binscale = 8;
58 
59 
60 };
61 
62 #endif // TEMPLATECREATION_H