All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
BCalTagEfficiency Class Reference

Marlin processor to calculate BCAL tagging efficiency. More...

#include <BCalTagEfficiency.h>

Inheritance diagram for BCalTagEfficiency:
[legend]

Public Member Functions

virtual ProcessornewProcessor ()
 
 BCalTagEfficiency ()
 
virtual void init ()
 Called at the begin of the job before anything is read. More...
 
virtual void processRunHeader (LCRunHeader *run)
 Called for every run. More...
 
virtual void processEvent (LCEvent *evt)
 Called for every event - the working horse. More...
 
virtual void check (LCEvent *evt)
 
virtual void end ()
 Called after data processing for clean up. More...
 

Protected Types

enum  { MCP = 100 }
 

Protected Attributes

std::string _MCParticleName
 Input collection name. More...
 
std::string _BCALInputTruthLinkName
 
std::string _BCALEffiMCTruthLinkName
 
std::string _BCALClusterName
 
std::string _BCALParticleName
 
int _nRun
 
int _nEvt
 
TFile * rootfile
 
TTree * tree
 
std::string rootFileName
 
int mcp
 
int pdg [MCP]
 
float energy [MCP]
 
float ePrime [MCP]
 
float pxPrime [MCP]
 
float pxIP [MCP]
 
float pyIP [MCP]
 
float pzIP [MCP]
 
float phiIP [MCP]
 
float theIP [MCP]
 
float lposx [MCP]
 
float lposy [MCP]
 
float lposz [MCP]
 
float gposx [MCP]
 
float gposy [MCP]
 
float gposz [MCP]
 
float radius [MCP]
 
float phi [MCP]
 
float ebkg [MCP]
 
float ebkg_err [MCP]
 
float efficiency [MCP]
 
float rand [MCP]
 
int tag [MCP]
 
float scaleP [MCP]
 
std::string backgroundfilename
 
std::string SGVmapfilename
 
float densityScaling
 
float bField
 
float eBeam
 
float zbcal
 
float thresholdMin
 
float thresholdMax
 
float xingangle
 
bool DBDsample
 
bool newMap
 
bool writeTree
 
bool detectAll
 
bool smearEnergy
 
bool writeSGVMap
 
bool useInputClusters
 
BcEnergyDensitybc_en
 
double alpha
 
double gamma
 
double betagamma
 
double PI
 
int nbinx
 
int nbiny
 
float xmin
 
float xmax
 
float ymin
 
float ymax
 
TH2D * SGVmapP
 
TH2D * SGVmapN
 

Detailed Description

Marlin processor to calculate BCAL tagging efficiency.

If compiled with MARLIN_USE_AIDA it creates a histogram (cloud) of the MCParticle energies.

Input - Prerequisites

Needs the collection of MCParticles.

Output

A histogram.

Parameters
CollectionNameName of the MCParticle collection
Author
F. Gaede, DESY
Version
$Id$

Definition at line 45 of file BCalTagEfficiency.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
MCP 

Definition at line 99 of file BCalTagEfficiency.h.

Constructor & Destructor Documentation

BCalTagEfficiency::BCalTagEfficiency ( )

Definition at line 61 of file BCalTagEfficiency.cc.

Member Function Documentation

void BCalTagEfficiency::check ( LCEvent *  evt)
virtual

Definition at line 741 of file BCalTagEfficiency.cc.

void BCalTagEfficiency::end ( )
virtual

Called after data processing for clean up.

Definition at line 746 of file BCalTagEfficiency.cc.

void BCalTagEfficiency::init ( )
virtual

Called at the begin of the job before anything is read.

Use to initialize the processor, e.g. book histograms.

Definition at line 179 of file BCalTagEfficiency.cc.

virtual Processor* BCalTagEfficiency::newProcessor ( )
inlinevirtual

Definition at line 49 of file BCalTagEfficiency.h.

void BCalTagEfficiency::processEvent ( LCEvent *  evt)
virtual

Called for every event - the working horse.

Definition at line 327 of file BCalTagEfficiency.cc.

void BCalTagEfficiency::processRunHeader ( LCRunHeader *  run)
virtual

Called for every run.

Definition at line 322 of file BCalTagEfficiency.cc.

Member Data Documentation

std::string BCalTagEfficiency::_BCALClusterName
protected

Definition at line 83 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::_BCALEffiMCTruthLinkName
protected

Definition at line 82 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::_BCALInputTruthLinkName
protected

Definition at line 81 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::_BCALParticleName
protected

Definition at line 84 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::_MCParticleName
protected

Input collection name.

Definition at line 80 of file BCalTagEfficiency.h.

int BCalTagEfficiency::_nEvt
protected

Definition at line 88 of file BCalTagEfficiency.h.

int BCalTagEfficiency::_nRun
protected

Definition at line 87 of file BCalTagEfficiency.h.

double BCalTagEfficiency::alpha
protected

Definition at line 133 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::backgroundfilename
protected

Definition at line 111 of file BCalTagEfficiency.h.

BcEnergyDensity* BCalTagEfficiency::bc_en
protected

Definition at line 130 of file BCalTagEfficiency.h.

double BCalTagEfficiency::betagamma
protected

Definition at line 135 of file BCalTagEfficiency.h.

float BCalTagEfficiency::bField
protected

Definition at line 114 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::DBDsample
protected

Definition at line 121 of file BCalTagEfficiency.h.

float BCalTagEfficiency::densityScaling
protected

Definition at line 113 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::detectAll
protected

Definition at line 124 of file BCalTagEfficiency.h.

float BCalTagEfficiency::eBeam
protected

Definition at line 115 of file BCalTagEfficiency.h.

float BCalTagEfficiency::ebkg[MCP]
protected

Definition at line 105 of file BCalTagEfficiency.h.

float BCalTagEfficiency::ebkg_err[MCP]
protected

Definition at line 105 of file BCalTagEfficiency.h.

float BCalTagEfficiency::efficiency[MCP]
protected

Definition at line 106 of file BCalTagEfficiency.h.

float BCalTagEfficiency::energy[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

float BCalTagEfficiency::ePrime[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

double BCalTagEfficiency::gamma
protected

Definition at line 134 of file BCalTagEfficiency.h.

float BCalTagEfficiency::gposx[MCP]
protected

Definition at line 104 of file BCalTagEfficiency.h.

float BCalTagEfficiency::gposy[MCP]
protected

Definition at line 104 of file BCalTagEfficiency.h.

float BCalTagEfficiency::gposz[MCP]
protected

Definition at line 104 of file BCalTagEfficiency.h.

float BCalTagEfficiency::lposx[MCP]
protected

Definition at line 103 of file BCalTagEfficiency.h.

float BCalTagEfficiency::lposy[MCP]
protected

Definition at line 103 of file BCalTagEfficiency.h.

float BCalTagEfficiency::lposz[MCP]
protected

Definition at line 103 of file BCalTagEfficiency.h.

int BCalTagEfficiency::mcp
protected

Definition at line 98 of file BCalTagEfficiency.h.

int BCalTagEfficiency::nbinx
protected

Definition at line 140 of file BCalTagEfficiency.h.

int BCalTagEfficiency::nbiny
protected

Definition at line 140 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::newMap
protected

Definition at line 122 of file BCalTagEfficiency.h.

int BCalTagEfficiency::pdg[MCP]
protected

Definition at line 100 of file BCalTagEfficiency.h.

float BCalTagEfficiency::phi[MCP]
protected

Definition at line 105 of file BCalTagEfficiency.h.

float BCalTagEfficiency::phiIP[MCP]
protected

Definition at line 102 of file BCalTagEfficiency.h.

double BCalTagEfficiency::PI
protected

Definition at line 136 of file BCalTagEfficiency.h.

float BCalTagEfficiency::pxIP[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

float BCalTagEfficiency::pxPrime[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

float BCalTagEfficiency::pyIP[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

float BCalTagEfficiency::pzIP[MCP]
protected

Definition at line 101 of file BCalTagEfficiency.h.

float BCalTagEfficiency::radius[MCP]
protected

Definition at line 105 of file BCalTagEfficiency.h.

float BCalTagEfficiency::rand[MCP]
protected

Definition at line 106 of file BCalTagEfficiency.h.

TFile* BCalTagEfficiency::rootfile
protected

Definition at line 93 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::rootFileName
protected

Definition at line 95 of file BCalTagEfficiency.h.

float BCalTagEfficiency::scaleP[MCP]
protected

Definition at line 108 of file BCalTagEfficiency.h.

std::string BCalTagEfficiency::SGVmapfilename
protected

Definition at line 112 of file BCalTagEfficiency.h.

TH2D* BCalTagEfficiency::SGVmapN
protected

Definition at line 143 of file BCalTagEfficiency.h.

TH2D* BCalTagEfficiency::SGVmapP
protected

Definition at line 142 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::smearEnergy
protected

Definition at line 125 of file BCalTagEfficiency.h.

int BCalTagEfficiency::tag[MCP]
protected

Definition at line 107 of file BCalTagEfficiency.h.

float BCalTagEfficiency::theIP[MCP]
protected

Definition at line 102 of file BCalTagEfficiency.h.

float BCalTagEfficiency::thresholdMax
protected

Definition at line 117 of file BCalTagEfficiency.h.

float BCalTagEfficiency::thresholdMin
protected

Definition at line 117 of file BCalTagEfficiency.h.

TTree* BCalTagEfficiency::tree
protected

Definition at line 94 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::useInputClusters
protected

Definition at line 127 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::writeSGVMap
protected

Definition at line 126 of file BCalTagEfficiency.h.

bool BCalTagEfficiency::writeTree
protected

Definition at line 123 of file BCalTagEfficiency.h.

float BCalTagEfficiency::xingangle
protected

Definition at line 118 of file BCalTagEfficiency.h.

float BCalTagEfficiency::xmax
protected

Definition at line 141 of file BCalTagEfficiency.h.

float BCalTagEfficiency::xmin
protected

Definition at line 141 of file BCalTagEfficiency.h.

float BCalTagEfficiency::ymax
protected

Definition at line 141 of file BCalTagEfficiency.h.

float BCalTagEfficiency::ymin
protected

Definition at line 141 of file BCalTagEfficiency.h.

float BCalTagEfficiency::zbcal
protected

Definition at line 116 of file BCalTagEfficiency.h.


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