StPmdSimulatorMaker Class Reference

#include <StPmdSimulatorMaker.h>

Inheritance diagram for StPmdSimulatorMaker:

StMaker

List of all members.

Public Member Functions

 StPmdSimulatorMaker (const char *name="PmdSimulator")
 A constructor.
virtual Int_t Init ()
 A destructor.
virtual Int_t Make ()
Int_t GetPmd ()
 Getting GEANT tables from input file.
Int_t makePmdHits ()
 Getting Pmdhits from geant.
Int_t Decode_VolId (Int_t &, Int_t &, Int_t &, Int_t &, Int_t &, Int_t &)
 Making Pmd hits after slow simulation.
StPmdHitExist (StPmdHit *, StPmdDetector *, Int_t)
 decoding
void FinalEdep (StPmdDetector *, Int_t)
Float_t keV_ADC (Float_t, Float_t &)
Float_t ADC_Readout (Float_t, Int_t &)
void bookHistograms ()
void FillHistograms (StPmdDetector *, StPmdDetector *, Int_t)
 Booking histograms.
Int_t fillStEvent (StPmdDetector *, StPmdDetector *)
void SetResFlag (Bool_t)
void Browse (TBrowser *b)
 Readout resolution is applied when Flag = 1.

Protected Member Functions

void adcconstants ()
 Cpv super vs col.

Protected Attributes

StPmdCollectionmPmdCollection
StPhmdCollectionmevtPmdCollection
 Pmd and CPV collections.
TH2F * m_pmdEdep2D
 Pmd and CPV collections for Stevent.
TH2F * m_cpvEdep2D
 2D-Edep Display of Pmd
TH1F * mEdepPmd
 2D-Edep Display of Cpv
TH1F * mEdepPmd_part
 cell edep on Pmd
TH1F * mPmdAdc
 total edep on Pmd
TH1F * mHitPmd
 total ADC on PMD
TH1F * mEdepCpv
 total no of hits on Pmd
TH1F * mEdepCpv_part
 cell edep on CPV
TH1F * mCpvAdc
 Total edep on CPV.
TH1F * mHitCpv
 Total ADC on CPV.
TH1F * m_pmdsuper
 total no of hits on Cpv
TH1F * m_cpvsuper
 total no of Supermodules for PMD
TH2F * m_pmdrow
 total no of Supermodules for CPV
TH2F * m_cpvrow
 Pmd super vs row.
TH2F * m_pmdcol
 Cpv super vs row.
TH2F * m_cpvcol
 Pmd super vs col.


Detailed Description

Author:

Definition at line 41 of file StPmdSimulatorMaker.h.


Constructor & Destructor Documentation

StPmdSimulatorMaker::StPmdSimulatorMaker ( const char *  name = "PmdSimulator"  ) 

A constructor.

Default value of parameters for this maker

Definition at line 88 of file StPmdSimulatorMaker.cxx.


Member Function Documentation

void StPmdSimulatorMaker::Browse ( TBrowser *  b  ) 

Readout resolution is applied when Flag = 1.

end of makePmdHit

Definition at line 321 of file StPmdSimulatorMaker.cxx.

Int_t StPmdSimulatorMaker::Decode_VolId ( Int_t &  vol,
Int_t &  sector,
Int_t &  super,
Int_t &  subdet,
Int_t &  row,
Int_t &  col 
)

Making Pmd hits after slow simulation.

decoding volume_id

Definition at line 329 of file StPmdSimulatorMaker.cxx.

References kStOK.

Referenced by makePmdHits().

void StPmdSimulatorMaker::FillHistograms ( StPmdDetector pmd_det,
StPmdDetector cpv_det,
Int_t  id 
)

Booking histograms.

pointer for hits

supermodule 1-12

row of the hit 1-72

column of the hit 1-96

edep in keV

Adc

pointer for hits

supermodule 1-12

row of the hit 1-72

column of the hit 1-96

edep in keV

Definition at line 370 of file StPmdSimulatorMaker.cxx.

References StPmdGeom::DetCell_xy(), m_cpvcol, m_cpvEdep2D, m_cpvrow, m_cpvsuper, m_pmdcol, m_pmdEdep2D, m_pmdrow, m_pmdsuper, mEdepCpv, mEdepCpv_part, mEdepPmd, mEdepPmd_part, mHitCpv, mHitPmd, StPmdDetector::module(), StPmdDetector::module_hit(), and mPmdAdc.

Referenced by makePmdHits().

Int_t StPmdSimulatorMaker::fillStEvent ( StPmdDetector pmd_det,
StPmdDetector cpv_det 
)

DetectorId = 26 for PMD in StEvent

DetectorId = 25 for CPV in StEvent

Filling PmdHit for StEvent

Filling PmdHit for CPV in StEvent

Definition at line 445 of file StPmdSimulatorMaker.cxx.

References kStOK, mevtPmdCollection, StPmdDetector::module(), and StPmdDetector::module_hit().

Referenced by makePmdHits().

Int_t StPmdSimulatorMaker::GetPmd (  ) 

Getting GEANT tables from input file.

Get g2t table

Definition at line 152 of file StPmdSimulatorMaker.cxx.

References kStOK, kStWarn, and makePmdHits().

Referenced by Make().

Int_t StPmdSimulatorMaker::Make (  )  [virtual]

The Make() method is the one responsible for calling the maker's InitRun(). Note that that InitRun() is called for real data and if both of the following are true

  • a header exists
  • the run number changes

This is the ONLY place calling the InitRun() routine.

Find Geant Tables

Input from fzin file

Input from xdf file

Get Pmd Hits from Geant and fill hits.

check privilege to skip event

Reimplemented from StMaker.

Definition at line 135 of file StPmdSimulatorMaker.cxx.

References GetPmd(), and kStWarn.

Int_t StPmdSimulatorMaker::makePmdHits (  ) 

Getting Pmdhits from geant.

Create PmdCollection, and add that to the dataset, so that it is avialable to other makers

Filling detector(1) for 'PMD' Collection

Filling detector(0) for 'CPV' Collection

Decoding volume_id to sector,super,subdet,row,col

converts sector,super to global supermodule number 17

converts super 17 to super 12 (i.e SM no in 12 convention)

Create PmdHits and Fill it in StPmdHit

filling supermodule no 1-12

filling subdetector PMD=1 & CPV =2

filling row 1-72

filling col 1-96

filling energy in keV

Filling Hit Collection for PMD

energy in keV

Filling basic hists for Hits

Filling Hit Collection for CPV

Edep in keV

Fill 2D hist after converting SM,row,col into x,y

Filling basic hists for Hits

Filling StEvent for PMD and CPV

Definition at line 170 of file StPmdSimulatorMaker.cxx.

References StPmdDetector::addHit(), Decode_VolId(), StPmdGeom::DetCell_xy(), StPmdCollection::detector(), StPmdHit::Edep(), Exist(), FillHistograms(), fillStEvent(), kStOK, kStWarn, m_cpvcol, m_cpvEdep2D, m_cpvrow, m_cpvsuper, m_pmdcol, m_pmdEdep2D, m_pmdrow, m_pmdsuper, StPmdDetector::module_hit(), StPmdGeom::NModule(), StPmdHit::setGsuper(), and StPmdGeom::Sim2Detmap().

Referenced by GetPmd().


Member Data Documentation

Pmd and CPV collections for Stevent.

booking PMD histograms

Definition at line 55 of file StPmdSimulatorMaker.h.

Referenced by FillHistograms(), and makePmdHits().


The documentation for this class was generated from the following files:

Generated on Fri Feb 10 04:28:14 2012 for StRoot by  doxygen 1.5.9