#include <PndMvdDigiAna.h>
Definition at line 25 of file PndMvdDigiAna.h.
PndMvdDigiAna::PndMvdDigiAna |
( |
| ) |
|
Default constructor
Definition at line 21 of file PndMvdDigiAna.cxx.
References fBranchName, fPixelPos, and fStripPos.
22 FairTask(
"PndMvd Digi Ana")
26 fPixelPos =
new TH3F(
"pPos",
"pPos",200,-15,15,200,-15,15,200,-20,20);
27 fStripPos =
new TH3F(
"sPos",
"sPos",128,0,127,16,0,15,200,0,20);
PndMvdDigiAna::PndMvdDigiAna |
( |
TString |
DetName | ) |
|
Definition at line 34 of file PndMvdDigiAna.cxx.
References fBranchName, fDetName, fPixelPos, and fStripPos.
35 FairTask(
"MVD Digi Ana")
40 fPixelPos =
new TH3F(
"pPos",
"pPos",200,-15,15,200,-15,15,200,-20,20);
41 fStripPos =
new TH3F(
"sPos",
"sPos",128,0,127,16,0,15,200,0,20);
PndMvdDigiAna::~PndMvdDigiAna |
( |
| ) |
|
|
virtual |
void PndMvdDigiAna::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 102 of file PndMvdDigiAna.cxx.
References fHitArray, fPixelArray, fStripPos, PndSdsDigiStrip::GetChannel(), PndSdsDigi::GetCharge(), PndSdsDigi::GetFE(), PndStringSeparator::GetStringVector(), hit(), and PrintHistograms().
107 Fatal(
"Exec",
"No HitArray");
115 for (Int_t iPoint = 0; iPoint < nPoints; iPoint++)
121 std::cout<<
"No Hit!" << std::endl;
128 std::string det = hit->GetDetName().Data();
131 std::vector<std::string> sVector = sAna.GetStringVector();
132 if (sVector[sVector.size()-1].find(
"Strip") != string::npos){
134 std::cout <<
"Strip Found" << std::endl;
150 std::cout <<
"-I- PndMvdDigiAna: " << nPoints <<
" PndMvdHits" << std::endl;
Class for digitised strip hits.
Double_t GetCharge() const
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
TClonesArray * fPixelArray
void PrintHistograms(const TString &outpsfile)
InitStatus PndMvdDigiAna::Init |
( |
| ) |
|
|
virtual |
Definition at line 70 of file PndMvdDigiAna.cxx.
References fBranchName, fHitArray, fPixelPos, and fStripPos.
73 FairRootManager* ioman = FairRootManager::Instance();
77 std::cout <<
"-E- PndMvdDigiAna::Init: "
78 <<
"RootManager not instantiated!" << std::endl;
81 std::cout <<
"within init" << std::endl;
88 std::cout <<
"-W- PndMvdDigiAna::Init: "
89 <<
"No MVDHit array!" << std::endl;
94 ioman->Register(
"MVDHist1",
"MVD",
fStripPos, kTRUE);
95 ioman->Register(
"MVDHist2",
"MVD",
fPixelPos, kTRUE);
97 std::cout <<
"-I- PndMvdDigiAna: Intialisation successfull" << std::endl;
void PndMvdDigiAna::PrintHistograms |
( |
const TString & |
outpsfile | ) |
|
|
protected |
Definition at line 175 of file PndMvdDigiAna.cxx.
References a, b, can1, fPixelPos, and fStripPos.
Referenced by Exec().
177 TCanvas*
can1 =
new TCanvas(
"can1",
"MVD digitization analysis",0,0,600,800);
178 Int_t
a = 2,
b = 4, zaehl = 1;
180 can1->Print(outpsfile+
"[");
183 {zaehl=1;can1->Print(outpsfile);can1->Clear(
"D");}
190 {zaehl=1;can1->Print(outpsfile);can1->Clear(
"D");}
197 can1->Print(outpsfile);
198 can1->Print(outpsfile+
"]");
void PndMvdDigiAna::ProduceHits |
( |
| ) |
|
|
protected |
void PndMvdDigiAna::Register |
( |
| ) |
|
|
protected |
InitStatus PndMvdDigiAna::ReInit |
( |
| ) |
|
|
virtual |
void PndMvdDigiAna::Reset |
( |
| ) |
|
|
protected |
void PndMvdDigiAna::SetParContainers |
( |
| ) |
|
|
virtual |
Virtual method Init
Definition at line 54 of file PndMvdDigiAna.cxx.
References fDigiPar, and rtdb.
Referenced by ReInit().
57 FairRun* ana = FairRun::Instance();
58 FairRuntimeDb*
rtdb=ana->GetRuntimeDb();
PndSdsPixelDigiPar * fDigiPar
Digitization Parameter Class for SDS-Pixel part.
void PndMvdDigiAna::WriteHistograms |
( |
const TString & |
filename | ) |
|
|
protected |
TClonesArray* PndMvdDigiAna::fFePixelArray |
|
protected |
TClonesArray* PndMvdDigiAna::fHitArray |
|
protected |
TClonesArray* PndMvdDigiAna::fPixelArray |
|
protected |
TH3F* PndMvdDigiAna::fPixelPos |
|
protected |
TClonesArray* PndMvdDigiAna::fStripArray |
|
protected |
TH3F* PndMvdDigiAna::fStripPos |
|
protected |
The documentation for this class was generated from the following files: