/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/PitchAngleExpositionAction/PitchAngleExpositionAction.h
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo2DActions/PitchAngleExpositionAction/PitchAngleExpositionAction.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 6 09:41:56 2010 UTC (14 years, 8 months ago) by pam-mep
Branch point for: yoyo, MAIN
File MIME type: text/plain
Initial revision

1 /*
2 * PitchAngleExpositionAction.h
3 *
4 * Created on: 04-april-2010
5 * Author: Vitaly Malakhov
6 */
7
8 /*! @file PitchAngleExpositionAction.h The PitchAngleExpositionAction class declaration file. */
9
10 #include "../Histo2DAction/Histo2DAction.h"
11
12 #ifndef PITCHANGLEEXPOSITIONACTION_H_
13 #define PITCHANGLEEXPOSITIONACTION_H_
14
15 /*! @brief An action that fills Zenith vs Azimuth angle of vector of magnetic field B with live-time weight
16 * and optionally can fill Zenith vs Azimuth histogramm with live time weight for every possible
17 * direction of incoming particle for fixed pitch angle
18 */
19
20 class PitchAngleExpositionAction: public Histo2DAction<Float_t> {
21 public:
22
23 /*! @brief Constructor.
24 *
25 * @param actionName The action's name.
26 * @param outFileBase The file base name for the ROOT histogram output (".root" will be appended).
27 * If "", no ROOT output will be produced.
28 * @param mode The mode of ROOT file creation (see documentation of TFile constructor
29 * in ROOT's reference guide).
30 * @param outRoot If true, an output ROOT file named outFileBase + ".root" will be produced.
31 * @param outText If true, an output text file named outFileBase + ".txt" will be produced. It will overwrite an
32 * eventually existing file with the same name.
33 * @param title The ROOT histogram title.
34 * @param calcoPitchExpo if true it will calculate and fill Zenith vs Azimuth histogramm with live time weight for
35 every possible direction of incoming particle for fixed pitch angle. It is recommed to cet it true just
36 for processing of big data sets (several month for example) since this calculation is long process
37 * @param nPitchBins number of pitch-angles for calculation exposition.
38 * @param lowerPitch lower limit of pitch-angle range.
39 * @param upperPitch upper limit of pitch-angle range.
40 */
41 PitchAngleExpositionAction(const char *actionName, TString outFileBase = "", TString mode = "UPDATE", bool outRoot = true, bool outText = true, TString title = "Exposition Zenith Vs. Azimuth of B", bool CalcPitchExpo = false, UInt_t nPitchBins = 36, Float_t lowerPitch = 0., Float_t upperPitch = 180.);
42
43 /*! @brief Destructor. */
44 ~PitchAngleExpositionAction() {
45 }
46
47 /*! @brief Fills histogram with the selected event.
48 *
49 * @param event The selected event.
50 */
51 void OnGood(PamLevel2 *event);
52
53 /*! @brief Write histograms into file. */
54 void Finalize();
55
56 private:
57
58 vector<TH2F> _pitchAngleHisto;
59 bool _calcPitchExpo;
60 UInt_t _nPitchBins;
61 Float_t _lowerPitch;
62 Float_t _upperPitch;
63
64 };
65 #endif /* PITCHANGLEEXPOSITIONACTION_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23