Go to the source code of this file.
|
TFile * | f = new TFile("digi_emc.root") |
|
TTree * | t =(TTree *) f->Get("pndsim") |
|
TClonesArray * | digi_array =new TClonesArray("EmcDigi") |
|
double | digi_energy |
|
double | hit_energy |
|
TH1F * | h1 = new TH1F("h1","Energy ratio",100,0.,10.) |
|
TCanvas * | c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
|
Definition at line 64 of file NHitsPerEvent.C.
73 std::cout <<
"NHits: " <<
gHitPoints->GetN() << std::endl;
void ExtractData(TClonesArray *array, TGraph *g)
TClonesArray * mvdHitArray
TClonesArray * mvdProjectedArray
Definition at line 19 of file digi_analys.C.
References digi, and i.
26 std::vector<CbmEmcHit*> hitList=digi->itsHitList();
27 if (hitList.size()!=0)
TClonesArray * digi_array
Definition at line 57 of file digi_analys.C.
References c2, h2, and i.
59 TClonesArray *wfa=
new TClonesArray(
"EmcWaveform");
60 t->SetBranchAddress(
"EmcWaveform",&wfa);
66 TH1F *
h2=
new TH1F(
"h2",
"Waveform",64,1.,64.);
67 TCanvas*
c2 =
new TCanvas(
"c2",
"", 100, 100, 800, 800);
68 for (Int_t
i=0;
i<wfa->GetEntriesFast();
i++)
71 EmcWaveform *wf=(EmcWaveform*)wfa->At(
i);
72 vector<double> signal = wf->GetSignal();
74 for (Int_t j=0;j<signal.size();j++)
76 h2->SetBinContent(j,signal[j]);
82 gPad->WaitPrimitive();
Definition at line 1 of file outdated/mpiTools/macros/emc/rootlogon.C.
3 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc");
4 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcDigi");
5 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcMC");
6 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcTools");
7 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcReco");
8 gSystem->AddIncludePath(
"-I$VMCWORKDIR/emc/EmcData");
9 gSystem->AddIncludePath(
"-I$VMCWORKDIR/pnddata");
10 gSystem->AddIncludePath(
"-I$VMCWORKDIR/base");
11 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/basiclibs.C");
14 gSystem->Load(
"libDpmEvtGen.so");
15 gSystem->Load(
"libGeoBase");
16 gSystem->Load(
"libParBase");
17 gSystem->Load(
"libBase");
18 gSystem->Load(
"libTrkBase");
19 gSystem->Load(
"libPndData");
20 gSystem->Load(
"libField");
21 gSystem->Load(
"libPassive");
22 gSystem->Load(
"libGen");
23 gSystem->Load(
"libPGen");
24 gSystem->Load(
"libEmc");
27 gRandom=
new TRandom3(0);
t SetBranchAddress |
( |
"EmcDigi" |
, |
|
|
& |
digi_array |
|
) |
| |
TCanvas* c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
TClonesArray* digi_array =new TClonesArray("EmcDigi") |
TFile* f = new TFile("digi_emc.root") |
TH1F* h1 = new TH1F("h1","Energy ratio",100,0.,10.) |
TTree* t =(TTree *) f->Get("pndsim") |