| 1 |
/* |
| 2 |
* CoordHistoAction.h |
| 3 |
* |
| 4 |
* Created on: 11-giu-2009 |
| 5 |
* Author: mori |
| 6 |
*/ |
| 7 |
|
| 8 |
/*! @file CoordHistoAction.h The CoordHistoAction class declaration file. */ |
| 9 |
|
| 10 |
#ifndef COORDHISTOACTION_H_ |
| 11 |
#define COORDHISTOACTION_H_ |
| 12 |
|
| 13 |
#include "../CollectionAction/CollectionAction.h" |
| 14 |
#include <TH2F.h> |
| 15 |
#include <TH1F.h> |
| 16 |
|
| 17 |
/*! @brief An action that fills a latitude Vs longitude 2D histogram and an altitude 1D histogram. */ |
| 18 |
class CoordHistoAction: public CollectionAction { |
| 19 |
|
| 20 |
public: |
| 21 |
/*! @brief Constructor. |
| 22 |
* |
| 23 |
* @param actionName The action's name. |
| 24 |
* @param outFileName The output file name. |
| 25 |
* @param mode The mode of file creation (see documentation of TFile constructor |
| 26 |
* in ROOT's reference guide) |
| 27 |
*/ |
| 28 |
CoordHistoAction(const char *actionName, TString outFileName, TString mode = "UPDATE"); |
| 29 |
|
| 30 |
/*! @brief Destructor */ |
| 31 |
~CoordHistoAction() { |
| 32 |
} |
| 33 |
|
| 34 |
/*! @brief Fills histogram with the selected event. |
| 35 |
* |
| 36 |
* @param event The selected event. |
| 37 |
*/ |
| 38 |
void OnGood(PamLevel2 *event); |
| 39 |
|
| 40 |
/*! @brief Writes the histogram to the output file. */ |
| 41 |
void Finalize(); |
| 42 |
|
| 43 |
private: |
| 44 |
|
| 45 |
TString _outFileName; |
| 46 |
TH2F _histoLatLong; |
| 47 |
TH2F _histoRateS11; |
| 48 |
TH2F _histoRateS12; |
| 49 |
TH1F _histoAlt; |
| 50 |
TH1F _histoEta; |
| 51 |
TH1F _histoTheta; |
| 52 |
TH1F _histoPhi; |
| 53 |
TH1F _histoPitch; |
| 54 |
TString _mode; |
| 55 |
|
| 56 |
TH1F _rateRate; |
| 57 |
|
| 58 |
}; |
| 59 |
#endif /* COORDHISTOACTION_H_ */ |