#ifndef RPLOTS_
#define RPLOTS_
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <TFile.h>
#include <TTree.h>
#include <TChain.h>
#include <TClass.h>
#include <TH2F.h>
#include <TObject.h>
#include <../rory_functions/Rtube.cxx>
#include <../rory_functions/RgetPrsSwap.cxx>
#include <LinkDef.h>
using namespace std;
class Rplots : public Rtube {
private:
int relabel(TH2F **);
public:
Rplots(char *mappath="./maps/") : Rtube(mappath){};
~Rplots();
int ntrack_plotsint();
TH2F ** nt_hist;
TH2F ** nt_pmt;
ClassDef(Rplots, 1)
};
#endif
#if !defined(__CINT__)
ClassImp(Rplots);
#endif
int Rplots::ntrack_plotsint(){
nt_hist = new TH2F*[61];
nt_pmt = new TH2F*[0];
ostringstream name;
ostringstream pname;
for( int ih = 1; ih < 61 ; ih++ )
{
name.str("");name << "pmt_adc"<< ih;
pname.str("");pname << "p_pmt_adc"<< (nt_hist+ih);
*(nt_hist+ih) =new TH2F(TString( pname.str() ),TString( name.str() ),80,0.5,80.5,100,0.5,10);
}
pname.str("");pname << "p_pmt_tube"<< (nt_pmt);
*nt_pmt =new TH2F(TString( pname.str() ),"Pmt vs tube",80,0.5,80.5,5,0.5,5);
relabel(nt_hist);
return 0;
}
int Rplots::relabel(TH2F ** plots){
ostringstream name;
for(int softId=1;softId<4800;softId++){
name.str("");
if ( (softId+1)%2==0) {name << softId;}
( *( plots + (getPMT(softId) ) ) )->GetXaxis()->SetBinLabel( (PMTid[softId] ) ,TString( name.str() ) );
}
return 0;
}
Rplots::~Rplots(){
delete []nt_hist;
delete []nt_pmt;
}
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.