Skip to content
Snippets Groups Projects
Analysis.h 2.96 KiB
Newer Older
#ifndef Analysis_h 
#define Analysis_h
/*****************************************************************************
 * Copyright (C) 2009-2016    this file is part of the NPTool Project        *
 *                                                                           *
 * For the licensing terms see $NPTOOL/Licence/NPTool_Licence                *
 * For the list of contributors see $NPTOOL/Licence/Contributors             *
 *****************************************************************************/

/*****************************************************************************
 * Original Author: XAUTHORX  contact address: XMAILX                        *
 *                                                                           *
 * Creation Date  : XMONTHX XYEARX                                           *
 * Last update    :                                                          *
 *---------------------------------------------------------------------------*
 * Decription:                                                               *
 *  This class describe  PISTA analysis project                       *
 *                                                                           *
 *---------------------------------------------------------------------------*
 * Comment:                                                                  *
 *                                                                           *
 *****************************************************************************/

#include "NPVAnalysis.h"
#include "TPISTAPhysics.h"
#include "TFissionConditions.h"
#include "TInitialConditions.h"
#include "TReactionConditions.h"
Morfouace's avatar
Morfouace committed
#include "TInteractionCoordinates.h"
#include "NPEnergyLoss.h"
#include "NPReaction.h"
#include "TRandom3.h"
class Analysis: public NPL::VAnalysis{
  public:
    Analysis();
    ~Analysis();

  public: 
    void Init();
    void TreatEvent();
    void End();
    void InitOutputBranch();
    void InitInputBranch();
    void ReInitValue();
    static NPL::VAnalysis* Construct();
    double BeamEnergy;
Morfouace's avatar
Morfouace committed
    double R;
    double Xpista;
    double Ypista;
    double Zpista;
    double Xcalc;
    double Ycalc;
    double Zcalc;
    double XTarget;
    double YTarget;
    double ZTarget;
    double Elab;
Morfouace's avatar
Morfouace committed
    double DeltaE;
    double Eres;
    double ThetaLab;
Morfouace's avatar
Morfouace committed
    double PhiLab;
    double ThetaCM;
    double Ex;
    int Telescope;
    NPL::Reaction* Transfer;

    double FF_A;
    double FF_Z;
    double FF_Q;
    double FF_Brho;
    vector<double> init_FF_Z;
    vector<double> init_FF_A;

    TRandom3 Rand;
    double ThetaNormalTarget;
    double ThetaDetectorSurface;
    double TargetThickness;

    NPL::EnergyLoss Be10C;
Morfouace's avatar
Morfouace committed
    NPL::EnergyLoss C12C;
    NPL::EnergyLoss U238C;

  private:
    TPISTAPhysics* PISTA;
Morfouace's avatar
Morfouace committed
    TInteractionCoordinates* InteractionCoordinates;
    TInitialConditions* InitialConditions;
    TReactionConditions* ReactionConditions;
    TFissionConditions* FissionConditions;