PamCut: CollectionActions/ChargeHistosAction/ChargeHistosAction.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# CollectionActions/ChargeHistosAction/ChargeHistosAction.h

Go to the documentation of this file.

    00001 /*
    00002  * ChargeHistosAction.h
    00003  *
    00004  *  Created on: 17-mag-2009
    00005  *      Author: Nicola Mori
    00006  */
    00007
    00010 #ifndef CHARGEHISTOSACTION_H_
    00011 #define CHARGEHISTOSACTION_H_
    00012
    00013 #include "TH1.h"
    00014 #include "TH2.h"
    00015
    00016 #ifndef NO_TOFNUCLEI
    00017 #include <ToFNuclei.h>
    00018 #endif
    00019
    00020 #ifndef NO_CALONUCLEI
    00021 #include <CaloNuclei.h>
    00022 #endif
    00023
    00024 #ifndef NO_TRKNUCLEI
    00025 #include <TrkNuclei.h>
    00026 #endif
    00027
    00028 #include "../CollectionAction/CollectionAction.h"
    00029
    00043 class ChargeHistosAction: public CollectionAction {
    00044
    00045 public:
    00051   ChargeHistosAction(const char *actionName, TString outFileName);
    00052
    00054   ~ChargeHistosAction();
    00055
    00061   void OnGood(PamLevel2 *event);
    00062
    00064   void Finalize();
    00065
    00066 private:
    00067
    00068 #ifndef NO_TOFNUCLEI
    00069   ToFNuclei *_tofNuclei;
    00070
    00071   TH1F _chargeS11;
    00072   TH1F _chargeS12;
    00073   TH1F _chargeS21;
    00074   TH1F _chargeS22;
    00075   TH1F _chargeS31;
    00076   TH1F _chargeS32;
    00077
    00078   TH2F _chCorrS11S12;
    00079   TH2F _chCorrS11S21;
    00080   TH2F _chCorrS11S22;
    00081   TH2F _chCorrS11S31;
    00082   TH2F _chCorrS11S32;
    00083   TH2F _chCorrS12S21;
    00084   TH2F _chCorrS12S22;
    00085   TH2F _chCorrS12S31;
    00086   TH2F _chCorrS12S32;
    00087   TH2F _chCorrS21S22;
    00088   TH2F _chCorrS21S31;
    00089   TH2F _chCorrS21S32;
    00090   TH2F _chCorrS22S31;
    00091   TH2F _chCorrS22S32;
    00092   TH2F _chCorrS31S32;
    00093 #endif
    00094
    00095 #ifndef NO_CALONUCLEI
    00096   CaloNuclei *_caloNuclei;
    00097   TH1F _chargeCalo;
    00098 #endif
    00099
    00100 #ifndef NO_TRKNUCLEI
    00101   TrkNuclei *_trkNuclei;
    00102   TH1F _chargeTrk;
    00103 #endif
    00104
    00105   TString _outFileName;
    00106
    00107 };
    00108
    00109 #endif /* CHARGEHISTOSACTION_H_ */