CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HcalTB04Analysis Class Reference

#include <SimG4CMS/HcalTestBeam/interface/HcalTB04Analysis.h>

Inheritance diagram for HcalTB04Analysis:
SimProducer Observer< const BeginOfRun * > Observer< const BeginOfEvent * > Observer< const EndOfEvent * > Observer< const G4Step * > SimWatcher

Public Member Functions

 HcalTB04Analysis (const edm::ParameterSet &p)
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
virtual ~HcalTB04Analysis ()
 
- Public Member Functions inherited from SimProducer
void registerProducts (edm::ProducerBase &iProd)
 
 SimProducer ()
 
- Public Member Functions inherited from SimWatcher
 SimWatcher ()
 
virtual ~SimWatcher ()
 
- Public Member Functions inherited from Observer< const BeginOfRun * >
 Observer ()
 
void slotForUpdate (const BeginOfRun *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfEvent * >
 Observer ()
 
void slotForUpdate (const EndOfEvent *iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const G4Step * >
 Observer ()
 
void slotForUpdate (const G4Step *iT)
 
virtual ~Observer ()
 

Private Member Functions

void clear ()
 
void fillBuffer (const EndOfEvent *evt)
 
void fillEvent (PHcalTB04Info &)
 
void finalAnalysis ()
 
 HcalTB04Analysis (const HcalTB04Analysis &)
 
void init ()
 
const HcalTB04Analysisoperator= (const HcalTB04Analysis &)
 
void qieAnalysis (CLHEP::HepRandomEngine *)
 
double scale (int det, int layer)
 
double timeOfFlight (int det, int layer, double eta)
 
int unitID (uint32_t id)
 
void update (const BeginOfRun *run)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfEvent *evt)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const G4Step *step)
 This routine will be called when the appropriate signal arrives. More...
 
void update (const EndOfEvent *evt)
 This routine will be called when the appropriate signal arrives. More...
 
void xtalAnalysis (CLHEP::HepRandomEngine *)
 

Private Attributes

G4RotationMatrix * beamline_RM
 
double beamOffset
 
int count
 
std::vector< CaloHitecalHitCache
 
double ecalNoise
 
double eecalq
 
double eecals
 
double ehcalq
 
double ehcals
 
std::vector< double > enois
 
std::vector< double > eqeta
 
std::vector< double > eqie
 
std::vector< double > eqlay
 
std::vector< double > eqphi
 
std::vector< double > eseta
 
std::vector< double > esime
 
std::vector< double > esimh
 
std::vector< double > eslay
 
std::vector< double > esphi
 
double etaInit
 
double etotq
 
double etots
 
int evNum
 
std::vector< CaloHithcalHitCache
 
std::vector< CaloHithcalHitLayer
 
bool hcalOnly
 
HcalTB04Histohisto
 
int iceta
 
int icphi
 
std::vector< uint32_t > idEcal
 
std::vector< int > idHcal
 
std::vector< uint32_t > idTower
 
std::vector< int > idXtal
 
int mode
 
HcalQiemyQie
 
std::vector< std::string > names
 
int nCrystal
 
int nPrimary
 
int nTower
 
int particleType
 
double phiInit
 
double pInit
 
bool pvFound
 
G4ThreeVector pvMomentum
 
G4ThreeVector pvPosition
 
int pvType
 
G4ThreeVector pvUVW
 
double scaleHB0
 
double scaleHB16
 
double scaleHE0
 
double scaleHO
 
std::vector< double > secEkin
 
std::vector< G4ThreeVector > secMomentum
 
std::vector< int > secPartID
 
std::vector< int > secTrackID
 
std::vector< int > shortLivedSecondaries
 
int type
 

Additional Inherited Members

- Protected Member Functions inherited from SimProducer
template<class T >
void produces ()
 
template<class T >
void produces (const std::string &instanceName)
 

Detailed Description

Description: Analysis of 2004 Hcal Test beam simulation

Usage: A Simwatcher class and can be activated from Oscarproducer module

Definition at line 51 of file HcalTB04Analysis.h.

Constructor & Destructor Documentation

HcalTB04Analysis::HcalTB04Analysis ( const edm::ParameterSet p)

Definition at line 57 of file HcalTB04Analysis.cc.

HcalTB04Analysis::~HcalTB04Analysis ( )
virtual

Definition at line 106 of file HcalTB04Analysis.cc.

HcalTB04Analysis::HcalTB04Analysis ( const HcalTB04Analysis )
private

Member Function Documentation

void HcalTB04Analysis::clear ( void  )
private

Definition at line 944 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::fillBuffer ( const EndOfEvent evt)
private

Definition at line 399 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::fillEvent ( PHcalTB04Info product)
private

Definition at line 870 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::finalAnalysis ( )
private

Definition at line 768 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::init ( void  )
private

Definition at line 132 of file HcalTB04Analysis.cc.

const HcalTB04Analysis& HcalTB04Analysis::operator= ( const HcalTB04Analysis )
private
void HcalTB04Analysis::produce ( edm::Event e,
const edm::EventSetup  
)
virtual

Implements SimProducer.

Definition at line 125 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::qieAnalysis ( CLHEP::HepRandomEngine *  engine)
private

Definition at line 656 of file HcalTB04Analysis.cc.

double HcalTB04Analysis::scale ( int  det,
int  layer 
)
private

Definition at line 992 of file HcalTB04Analysis.cc.

double HcalTB04Analysis::timeOfFlight ( int  det,
int  layer,
double  eta 
)
private

Definition at line 1005 of file HcalTB04Analysis.cc.

int HcalTB04Analysis::unitID ( uint32_t  id)
private

Definition at line 980 of file HcalTB04Analysis.cc.

void HcalTB04Analysis::update ( const BeginOfRun )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfRun * >.

Definition at line 192 of file HcalTB04Analysis.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void HcalTB04Analysis::update ( const BeginOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 240 of file HcalTB04Analysis.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void HcalTB04Analysis::update ( const G4Step *  )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const G4Step * >.

Definition at line 248 of file HcalTB04Analysis.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void HcalTB04Analysis::update ( const EndOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const EndOfEvent * >.

Definition at line 362 of file HcalTB04Analysis.cc.

Referenced by Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom().

void HcalTB04Analysis::xtalAnalysis ( CLHEP::HepRandomEngine *  engine)
private

Definition at line 716 of file HcalTB04Analysis.cc.

Member Data Documentation

G4RotationMatrix* HcalTB04Analysis::beamline_RM
private

Definition at line 101 of file HcalTB04Analysis.h.

double HcalTB04Analysis::beamOffset
private

Definition at line 97 of file HcalTB04Analysis.h.

int HcalTB04Analysis::count
private

Definition at line 104 of file HcalTB04Analysis.h.

std::vector<CaloHit> HcalTB04Analysis::ecalHitCache
private

Definition at line 112 of file HcalTB04Analysis.h.

double HcalTB04Analysis::ecalNoise
private

Definition at line 97 of file HcalTB04Analysis.h.

double HcalTB04Analysis::eecalq
private

Definition at line 116 of file HcalTB04Analysis.h.

double HcalTB04Analysis::eecals
private

Definition at line 116 of file HcalTB04Analysis.h.

double HcalTB04Analysis::ehcalq
private

Definition at line 116 of file HcalTB04Analysis.h.

double HcalTB04Analysis::ehcals
private

Definition at line 116 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::enois
private

Definition at line 114 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eqeta
private

Definition at line 115 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eqie
private

Definition at line 114 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eqlay
private

Definition at line 115 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eqphi
private

Definition at line 115 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eseta
private

Definition at line 115 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::esime
private

Definition at line 114 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::esimh
private

Definition at line 114 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::eslay
private

Definition at line 115 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::esphi
private

Definition at line 115 of file HcalTB04Analysis.h.

double HcalTB04Analysis::etaInit
private

Definition at line 111 of file HcalTB04Analysis.h.

double HcalTB04Analysis::etotq
private

Definition at line 116 of file HcalTB04Analysis.h.

double HcalTB04Analysis::etots
private

Definition at line 116 of file HcalTB04Analysis.h.

int HcalTB04Analysis::evNum
private

Definition at line 119 of file HcalTB04Analysis.h.

std::vector<CaloHit> HcalTB04Analysis::hcalHitCache
private

Definition at line 113 of file HcalTB04Analysis.h.

std::vector<CaloHit> HcalTB04Analysis::hcalHitLayer
private

Definition at line 113 of file HcalTB04Analysis.h.

bool HcalTB04Analysis::hcalOnly
private

Definition at line 95 of file HcalTB04Analysis.h.

HcalTB04Histo* HcalTB04Analysis::histo
private

Definition at line 92 of file HcalTB04Analysis.h.

int HcalTB04Analysis::iceta
private

Definition at line 98 of file HcalTB04Analysis.h.

int HcalTB04Analysis::icphi
private

Definition at line 98 of file HcalTB04Analysis.h.

std::vector<uint32_t> HcalTB04Analysis::idEcal
private

Definition at line 107 of file HcalTB04Analysis.h.

std::vector<int> HcalTB04Analysis::idHcal
private

Definition at line 106 of file HcalTB04Analysis.h.

std::vector<uint32_t> HcalTB04Analysis::idTower
private

Definition at line 107 of file HcalTB04Analysis.h.

std::vector<int> HcalTB04Analysis::idXtal
private

Definition at line 106 of file HcalTB04Analysis.h.

int HcalTB04Analysis::mode
private

Definition at line 96 of file HcalTB04Analysis.h.

HcalQie* HcalTB04Analysis::myQie
private

Definition at line 91 of file HcalTB04Analysis.h.

std::vector<std::string> HcalTB04Analysis::names
private

Definition at line 100 of file HcalTB04Analysis.h.

int HcalTB04Analysis::nCrystal
private

Definition at line 105 of file HcalTB04Analysis.h.

int HcalTB04Analysis::nPrimary
private

Definition at line 110 of file HcalTB04Analysis.h.

int HcalTB04Analysis::nTower
private

Definition at line 105 of file HcalTB04Analysis.h.

int HcalTB04Analysis::particleType
private

Definition at line 110 of file HcalTB04Analysis.h.

double HcalTB04Analysis::phiInit
private

Definition at line 111 of file HcalTB04Analysis.h.

double HcalTB04Analysis::pInit
private

Definition at line 111 of file HcalTB04Analysis.h.

bool HcalTB04Analysis::pvFound
private

Definition at line 118 of file HcalTB04Analysis.h.

G4ThreeVector HcalTB04Analysis::pvMomentum
private

Definition at line 120 of file HcalTB04Analysis.h.

G4ThreeVector HcalTB04Analysis::pvPosition
private

Definition at line 120 of file HcalTB04Analysis.h.

int HcalTB04Analysis::pvType
private

Definition at line 119 of file HcalTB04Analysis.h.

G4ThreeVector HcalTB04Analysis::pvUVW
private

Definition at line 120 of file HcalTB04Analysis.h.

double HcalTB04Analysis::scaleHB0
private

Definition at line 99 of file HcalTB04Analysis.h.

double HcalTB04Analysis::scaleHB16
private

Definition at line 99 of file HcalTB04Analysis.h.

double HcalTB04Analysis::scaleHE0
private

Definition at line 99 of file HcalTB04Analysis.h.

double HcalTB04Analysis::scaleHO
private

Definition at line 99 of file HcalTB04Analysis.h.

std::vector<double> HcalTB04Analysis::secEkin
private

Definition at line 123 of file HcalTB04Analysis.h.

std::vector<G4ThreeVector> HcalTB04Analysis::secMomentum
private

Definition at line 122 of file HcalTB04Analysis.h.

std::vector<int> HcalTB04Analysis::secPartID
private

Definition at line 121 of file HcalTB04Analysis.h.

std::vector<int> HcalTB04Analysis::secTrackID
private

Definition at line 121 of file HcalTB04Analysis.h.

std::vector<int> HcalTB04Analysis::shortLivedSecondaries
private

Definition at line 124 of file HcalTB04Analysis.h.

int HcalTB04Analysis::type
private

Definition at line 96 of file HcalTB04Analysis.h.