Commit 2f96c67e authored by Vratislav Chudoba's avatar Vratislav Chudoba

Parametrization of Spectra() solved.

parent a389fc81
This diff is collapsed.
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
//#include <TObject.h> //#include <TObject.h>
#include "TChain.h" #include "TChain.h"
#include "TCut.h" #include "TCut.h"
#include "TCanvas.h"
using std::cout; using std::cout;
using std::endl; using std::endl;
...@@ -23,6 +24,14 @@ public: ...@@ -23,6 +24,14 @@ public:
virtual ~BeAnalysis(); virtual ~BeAnalysis();
ClassDef(BeAnalysis, 1); ClassDef(BeAnalysis, 1);
void SetExpChain(TString files, Int_t minFnumber, Int_t maxFnumber);
void SetSimChains(TString chainAl0name, TString chainNoAl0name,
TString chainAl180name, TString chainNoAl180name,
TString chainAl90name, TString chainNoAl90name);
void SetInputChains(TString inputAl0name, TString inputNoAl0name,
TString inputAl180name, TString inputNoAl180name,
TString inputAl90name, TString inputNoAl90name);
void SetNoSimFiles(Int_t *minFnumber = 0, Int_t *maxFnumber = 0);
void OpenSimChains(); void OpenSimChains();
void OpenExpChain(); void OpenExpChain();
...@@ -34,11 +43,13 @@ public: ...@@ -34,11 +43,13 @@ public:
void SetCuts(); void SetCuts();
void SetCMAngularRange(Int_t minAngle, Int_t maxAngle); void SetCMAngularRange(Int_t minAngle, Int_t maxAngle);
private:
void SetCMAngularCuts(); void SetCMAngularCuts();
public:
void SetRangeProportion(Float_t rangeProportion = 1.1, Bool_t autoRange = 1); void SetRangeProportion(Float_t rangeProportion = 1.1, Bool_t autoRange = 1);
void SetNoExpEvents(); void SetNoExpEvents(Long64_t *noExpEvents = 0);
void SetNoSimEvents(); void SetNoSimEvents(Long64_t *noSimEvents = 0);
void SetRatiosGStoEX(); void SetRatiosGStoEX();
void ExpEventsECuts(); void ExpEventsECuts();
void SimEventsECuts(); void SimEventsECuts();
...@@ -49,15 +60,25 @@ public: ...@@ -49,15 +60,25 @@ public:
void CosThetaTk(); void CosThetaTk();
void EpsilonY(); void EpsilonY();
void CosThetaYk(); void CosThetaYk();
void ThetaP1T();
void ThetaAT(); void ThetaAT();
void SetFigures(TString figPath = "figures/", TString figFormat = ".eps", Bool_t kSave = 1);
// //
private: private:
TChain *che; //chain with experimental trees TChain *che; //chain with experimental trees
TChain *chs[6]; //array of chains with simulation trees TChain *chs[6]; //array of chains with simulation trees
TTree *ti[6]; //array of chains with simulation input TTree *ti[6]; //array of chains with simulation input
Int_t lowExpFile;
Int_t upExpFile;
TString expFiles;
TString simFiles[6];
TString inputFiles[6];
Int_t lowSimFile[6];
Int_t upSimFile[6];
Int_t kMinAngle; Int_t kMinAngle;
Int_t kMaxAngle; Int_t kMaxAngle;
...@@ -71,7 +92,6 @@ private: ...@@ -71,7 +92,6 @@ private:
Bool_t *epsilonY; //! Bool_t *epsilonY; //!
Bool_t *cosThetaY; //! Bool_t *cosThetaY; //!
// Bool_t *thetaP1T; //!
Bool_t *thetaAT; //! Bool_t *thetaAT; //!
Bool_t kAutoRange; Bool_t kAutoRange;
...@@ -80,12 +100,12 @@ private: ...@@ -80,12 +100,12 @@ private:
Float_t kRangeProportionIn; Float_t kRangeProportionIn;
Long64_t eMaxEvents; Long64_t eMaxEvents;
Long64_t eEventsAl0; // Long64_t eEventsAl0;
Long64_t eEventsNoAl0; // Long64_t eEventsNoAl0;
Long64_t eEventsAl180; // Long64_t eEventsAl180;
Long64_t eEventsNoAl180; // Long64_t eEventsNoAl180;
Long64_t eEventsAl90; // Long64_t eEventsAl90;
Long64_t eEventsNoAl90; // Long64_t eEventsNoAl90;
Long64_t eEvents[6]; Long64_t eEvents[6];
Long64_t sMaxEvents; Long64_t sMaxEvents;
...@@ -175,8 +195,17 @@ private: ...@@ -175,8 +195,17 @@ private:
TString hsName; TString hsName;
TString heName; TString heName;
TString hiName; TString hiName;
TString canvasName;
TString canvasTitle; TString canvasTitle;
Bool_t kSaveFigures;
TString figurePath;
TString figureFormat;
private:
void SaveFigures(TCanvas *canvas, TString variable, Int_t interval);
}; };
#endif /* BE_BEANALYSIS_H_ */ #endif /* BE_BEANALYSIS_H_ */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment