ROOT logo
/**************************************************************************
 * Author: Andrey Ivanov.                                                 *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/
//-------------------------------------------------------------------------
//    Description: 
//    This class include into LRC library for Long-Range Correlation analysis
//    it is the NN class
//    calculates NN correlations for abs and rel var
//    Origin: Petr Naumenko, SPbSU-CERN, Petr.Naoumenko@cern.ch,
//    Andrey Ivanov (SPbSU-CERN), Igor Altsebeev (SPbSU-CERN) 
//-------------------------------------------------------------------------

/* $Id$ */

#include "AliLRCNN.h"
#include "TFile.h"

class TFile;
class TH2D;
class TList;

ClassImp(AliLRCNN) 


/******************************************************
 * AliLRCNN class
 ******************************************************/
AliLRCNN::AliLRCNN():AliLRCAnalysis(){
 //Empty constructor
}


AliLRCNN::~AliLRCNN() {
//Destructor   
}


AliLRCNN::AliLRCNN(char *name, TH2D* sourceHist):AliLRCAnalysis() {
//Make NN from 2d histogramm
    SetGraphics();
    CreateHist(name, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, name);
}

AliLRCNN::AliLRCNN(char *fileHistname, char *histname, char *profname):AliLRCAnalysis() {
//Make NN from 2d histogramm from root file
    SetGraphics();
    fileHist = new TFile(fileHistname);
    TH2D* sourceHist = (TH2D*) fileHist->Get(histname);
    CreateHist(profname, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, profname);
}

AliLRCNN::AliLRCNN(const TList *  const LHist, char *histname, char *profname):AliLRCAnalysis() {
//Make NN from 2d histogramm from root file
    SetGraphics();
    TH2D* sourceHist = (TH2D*) LHist->FindObject(histname);
    CreateHist(profname, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, profname);
}


void AliLRCNN::MakeHistogramm(char *name, TH2D* sourceHist) {
//Make NN from 2d histogramm
    SetGraphics();
    CreateHist(name, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, name);
}

void AliLRCNN::MakeHistogramm(char *fileHistname, char *histname, char *profname) {
//Make NN from 2d histogramm from root file
    SetGraphics();
    fileHist = new TFile(fileHistname);
    TH2D* sourceHist = (TH2D*) fileHist->Get(histname);
    CreateHist(profname, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, profname);
}

void AliLRCNN::MakeHistogramm(const TList * const LHist, char *histname, char *profname) {
//Make NN from 2d histogramm from root file
    SetGraphics();
    TH2D* sourceHist = (TH2D*) LHist->FindObject(histname);
    CreateHist(profname, (char*)"NN_abs", (char*)"NN_rel", (char*)"n_{F}", (char*)"<n_{B}>_{n_{F}}", (char*)"#frac{n_{F}}{<n_{F}>}", (char*)"#frac{<n_{B}>_{n_{F}}}{<n_{B}>}", sourceHist);
    SetErrors(sourceHist, profname);
}


 AliLRCNN.cxx:1
 AliLRCNN.cxx:2
 AliLRCNN.cxx:3
 AliLRCNN.cxx:4
 AliLRCNN.cxx:5
 AliLRCNN.cxx:6
 AliLRCNN.cxx:7
 AliLRCNN.cxx:8
 AliLRCNN.cxx:9
 AliLRCNN.cxx:10
 AliLRCNN.cxx:11
 AliLRCNN.cxx:12
 AliLRCNN.cxx:13
 AliLRCNN.cxx:14
 AliLRCNN.cxx:15
 AliLRCNN.cxx:16
 AliLRCNN.cxx:17
 AliLRCNN.cxx:18
 AliLRCNN.cxx:19
 AliLRCNN.cxx:20
 AliLRCNN.cxx:21
 AliLRCNN.cxx:22
 AliLRCNN.cxx:23
 AliLRCNN.cxx:24
 AliLRCNN.cxx:25
 AliLRCNN.cxx:26
 AliLRCNN.cxx:27
 AliLRCNN.cxx:28
 AliLRCNN.cxx:29
 AliLRCNN.cxx:30
 AliLRCNN.cxx:31
 AliLRCNN.cxx:32
 AliLRCNN.cxx:33
 AliLRCNN.cxx:34
 AliLRCNN.cxx:35
 AliLRCNN.cxx:36
 AliLRCNN.cxx:37
 AliLRCNN.cxx:38
 AliLRCNN.cxx:39
 AliLRCNN.cxx:40
 AliLRCNN.cxx:41
 AliLRCNN.cxx:42
 AliLRCNN.cxx:43
 AliLRCNN.cxx:44
 AliLRCNN.cxx:45
 AliLRCNN.cxx:46
 AliLRCNN.cxx:47
 AliLRCNN.cxx:48
 AliLRCNN.cxx:49
 AliLRCNN.cxx:50
 AliLRCNN.cxx:51
 AliLRCNN.cxx:52
 AliLRCNN.cxx:53
 AliLRCNN.cxx:54
 AliLRCNN.cxx:55
 AliLRCNN.cxx:56
 AliLRCNN.cxx:57
 AliLRCNN.cxx:58
 AliLRCNN.cxx:59
 AliLRCNN.cxx:60
 AliLRCNN.cxx:61
 AliLRCNN.cxx:62
 AliLRCNN.cxx:63
 AliLRCNN.cxx:64
 AliLRCNN.cxx:65
 AliLRCNN.cxx:66
 AliLRCNN.cxx:67
 AliLRCNN.cxx:68
 AliLRCNN.cxx:69
 AliLRCNN.cxx:70
 AliLRCNN.cxx:71
 AliLRCNN.cxx:72
 AliLRCNN.cxx:73
 AliLRCNN.cxx:74
 AliLRCNN.cxx:75
 AliLRCNN.cxx:76
 AliLRCNN.cxx:77
 AliLRCNN.cxx:78
 AliLRCNN.cxx:79
 AliLRCNN.cxx:80
 AliLRCNN.cxx:81
 AliLRCNN.cxx:82
 AliLRCNN.cxx:83
 AliLRCNN.cxx:84
 AliLRCNN.cxx:85
 AliLRCNN.cxx:86
 AliLRCNN.cxx:87
 AliLRCNN.cxx:88
 AliLRCNN.cxx:89
 AliLRCNN.cxx:90
 AliLRCNN.cxx:91
 AliLRCNN.cxx:92
 AliLRCNN.cxx:93
 AliLRCNN.cxx:94
 AliLRCNN.cxx:95
 AliLRCNN.cxx:96