star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StiScanHistContainer.h
Go to the documentation of this file.
1 #ifndef StiScanHistContainer_h
2 #define StiScanHistContainer_h
3 
4 #include <set>
5 #include <string>
6 
7 #include "travex/HistContainer.h"
8 
9 #include "StiScan/StiScanEvent.h"
11 #include "StiRootIO/Profile2D.h"
12 #include "StiRootIO/Profile3D.h"
14 #include "GeaRootIO/TGeaEvent.h"
15 
16 
17 class StiScanHistContainer : public tvx::HistContainer
18 {
19 public:
20 
21  StiScanHistContainer(StiScanPrgOptions& prgOpts, const char* name, TDirectory* motherDir = 0, bool doProjection=true, Option_t* option = "");
22 
23  void FillHists(const StiScanEvent &eventT, const std::set<std::string> *volumeList=0);
24  void FillHists(const TGeaEvent &eventG, const std::set<std::string> *volumeList=0);
25  virtual void FillDerivedHists();
26  void SetZRange(double minZ, double maxZ) { mNodeZMin = minZ; mNodeZMax = maxZ; }
27  double GetZMin() const { return mNodeZMin; }
28  double GetZMax() const { return mNodeZMax; }
29  void SetRRange(float minR, float maxR) { mNodeRMin = minR; mNodeRMax = maxR; }
30  float GetRMin() const { return mNodeRMin; }
31  float GetRMax() const { return mNodeRMax; }
32 
33 protected:
34 
35  virtual void FillHists(const TStiKalmanTrack &kalmTrack, const std::set<std::string> *volumeList=0);
36  void FillHists(const TGeaTrack &trackG, const std::set<std::string> *volumeList=0);
37 
40 
41  double mNodeZMin;
42  double mNodeZMax;
43  float mNodeRMin;
44  float mNodeRMax;
45 
49 
55 
56 private:
57 
58  void BookHists();
59  void InitRange();
60 };
61 
62 #endif
Profile3D * hRelRadLengthVsPhiVsRVsZ
void SetZRange(double minZ, double maxZ)
const StiScanPrgOptions & fPrgOptions
Command line arguments and options requested by the user.
Processes and controls user options provided in the command line.
void InitRange()
The default limits will be used if user provided values for min >= max.
void SetRRange(float minR, float maxR)
void FillHists(const StiScanEvent &eventT, const std::set< std::string > *volumeList=0)
bool mDoProjection
If true will create integral projections of 2D profiles instead of creating 1D profiles with bin aver...
StiScanHistContainer(StiScanPrgOptions &prgOpts, const char *name, TDirectory *motherDir=0, bool doProjection=true, Option_t *option="")