AMSDST
Public Types | Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
myEcalShowerPlus Class Reference

#include <myEcalShowerPlus.h>

Inheritance diagram for myEcalShowerPlus:
myEcalShowerBase myObject

Public Types

enum  CellType { EDEP, ADC_HIGHGAIN, ADC_LOWGAIN, ADC_DYNODE }
 
typedef float CellArray [18][72]
 
typedef UInt_t CellStatusArray [18][72]
 
typedef float PMTArray [18][72]
 

Public Member Functions

 myEcalShowerPlus ()
 Constructor.
 
 ~myEcalShowerPlus ()
 Default destructor.
 
short int ComputeIndex (short int Cell, short int Plane)
 
short int GetPlane (short int index)
 
short int GetCell (short int index)
 
float RecomputeBDT ()
 Recomputes the BDT completely off-line from the hit map stored.
 
float GetEcalBDT (unsigned int iBDTVERSION=5, int TMVAClassifier=0, int EnergyFlag=0)
 Pisa version the Boosted Decision Tree Classifier for shower.
 
float GetEcalBDTCHI2 (unsigned int iBDTVERSION=3, int TMVAClassifier=0, int EnergyFlag=0)
 Pisa version classifier, EcalChi2 is used.
 
float EdepUpToLayer (int ilay)
 
float EdepUpToSuperLayer (int islay)
 
float GetEcalHitADC (short int Cell, short int Plane, int component)
 Get ADC value of hit, by cell(0~71), layer(0~17), and component(0:HG, 1:LG, 2:DY), returns -1 in case of no hit.
 
float GetEcalHitEdep (short int Cell, short int Plane)
 Get energy dep of hit, by cell(0~71) and layer(0~17), returns -1e-9 in case of no hit.
 
unsigned int GetEcalHitStatus (short int Cell, short int Plane)
 Get status bits of hit, by cell(0~71) and layer(0~17), returns 0 in case of no hit.
 
void exportCell (float cell_arr[18][72], CellType type=EDEP)
 Export cell information to an array.
 
void exportCellStatus (UInt_t cell_status_arr[18][72])
 Export cell status to an array.
 
void exportPMTADCDynode (float pmt_arr[9][36])
 Export PMT dynode adc value to an array.
 
virtual void Clear (Option_t *option="")
 
 ClassDef (myEcalShowerPlus, 9)
 
 ClassDef (myEcalShowerBase, 1)
 
 ClassDef (myObject, 4)
 
short int iPart ()
 
short int iMySelf ()
 
void SetPart (short int ipart)
 
void SetMySelf (short int imyself)
 

Public Attributes

Float_t Energy3C [3]
 
Float_t Elayer [18]
 Energy deposition in each layer, with leakage correction.
 
Float_t Elayer_corr [18]
 Energy dep in each layer with new calib and correction.
 
Float_t EcalAxis_chi2_2 [18]
 Layer CoG using lateral fitting (CY version)
 
Float_t EcalAxis_chi2_8 [18]
 Layer CoG using neighbor cell ratio (CY version)
 
Float_t BDT
 Pisa bdt with param 5 0 0.
 
Float_t BDTs
 Pisa bdt with param 5 1 0.
 
Float_t BDTE
 Pisa bdt with param 5 0 1.
 
Float_t BDTEs
 Pisa bdt with param 5 1 1.
 
Float_t BDT_v4
 Pisa bdt with param 4 0 0.
 
Float_t BDTChi2
 Pisa bdt with param 3 0 0.
 
Float_t BDTChi2s
 Pisa bdt with param 3 1 0.
 
Float_t BDTChi2E
 Pisa bdt with param 3 0 1.
 
Float_t BDTChi2Es
 Pisa bdt with param 3 1 1.
 
Float_t BDTChi2_v2
 Pisa bdt with param 2 0 0.
 
Float_t ESEV2
 LAPP Ecal Estimator V2 Updated June 2012 - 90% efficiency cut (based on electron-like flight events) is -1.23.
 
Float_t ESEV3
 LAPP Ecal Estimator V3 Updated Jan 2013 Efficiency bin-dependant, matching efficiency / rejection retrieved via ESEv3Efficiency / ESEv3Rejection.
For an Energy-Bin independant cut, you should use ESEV2.
 
Float_t ESEv3Efficiency
 Get the lepton efficiency for the current shower using LAPP Ecal Estimator V3 value and energy bin, given ESEV3 > -1.23 (I guess)
 
Float_t ESEv3Rejection
 Get the proton rejection for the current shower using LAPP Ecal Estimator V3 value and energy bin.
 
Short_t i_part
 id of particle object it belongs
 
Short_t i_myself
 id of the object itself in gbatch
 

Protected Attributes

std::map< short int, ecalhit_ecalhitmap
 

Private Member Functions

virtual void init ()
 

Detailed Description

Definition at line 22 of file myEcalShowerPlus.h.

Member Typedef Documentation

typedef float myEcalShowerPlus::CellArray[18][72]

Definition at line 110 of file myEcalShowerPlus.h.

typedef UInt_t myEcalShowerPlus::CellStatusArray[18][72]

Definition at line 111 of file myEcalShowerPlus.h.

typedef float myEcalShowerPlus::PMTArray[18][72]

Definition at line 112 of file myEcalShowerPlus.h.

Member Enumeration Documentation

Enumerator
EDEP 
ADC_HIGHGAIN 
ADC_LOWGAIN 
ADC_DYNODE 

Definition at line 109 of file myEcalShowerPlus.h.

Constructor & Destructor Documentation

myEcalShowerPlus::myEcalShowerPlus ( )

Constructor.

Definition at line 13 of file myEcalShowerPlus.cxx.

References PRINTDEBUG.

myEcalShowerPlus::~myEcalShowerPlus ( )

Default destructor.

Definition at line 22 of file myEcalShowerPlus.cxx.

References PRINTDEBUG.

Member Function Documentation

myEcalShowerBase::ClassDef ( myEcalShowerBase  ,
 
)
inherited
myObject::ClassDef ( myObject  ,
 
)
inherited
myEcalShowerPlus::ClassDef ( myEcalShowerPlus  ,
 
)
void myEcalShowerPlus::Clear ( Option_t *  option = "")
virtual

Implements myEcalShowerBase.

Definition at line 48 of file myEcalShowerPlus.cxx.

References PRINTDEBUG.

short int myEcalShowerPlus::ComputeIndex ( short int  Cell,
short int  Plane 
)
inline

Definition at line 33 of file myEcalShowerPlus.h.

float myEcalShowerPlus::EdepUpToLayer ( int  ilay)

Definition at line 31 of file myEcalShowerPlus.cxx.

float myEcalShowerPlus::EdepUpToSuperLayer ( int  islay)

Definition at line 44 of file myEcalShowerPlus.cxx.

void myEcalShowerPlus::exportCell ( float  cell_arr[18][72],
CellType  type = EDEP 
)

Export cell information to an array.

Definition at line 184 of file myEcalShowerPlus.cxx.

void myEcalShowerPlus::exportCellStatus ( UInt_t  cell_status_arr[18][72])

Export cell status to an array.

Definition at line 197 of file myEcalShowerPlus.cxx.

void myEcalShowerPlus::exportPMTADCDynode ( float  pmt_arr[9][36])

Export PMT dynode adc value to an array.

Definition at line 193 of file myEcalShowerPlus.cxx.

short int myEcalShowerPlus::GetCell ( short int  index)
inline

Definition at line 36 of file myEcalShowerPlus.h.

float myEcalShowerPlus::GetEcalBDT ( unsigned int  iBDTVERSION = 5,
int  TMVAClassifier = 0,
int  EnergyFlag = 0 
)

Pisa version the Boosted Decision Tree Classifier for shower.

 Version number:
    iBDTVERSION=3 trained with B552
    iBDTVERSION=4 trained with B610
    iBDTVERSION=5 (default) trained with B620
 TMVA Classifier:
    TMVAClassifier=0 (default) standard BDTG
    TMVAClassifier=1 BDT with smoothing
 deposited or reconstructed Energy:
    EnergyFlag=0 (default) classes in EnergyD bins
    EnergyFlag=1 classes in EnergyE bins

Definition at line 93 of file myEcalShowerPlus.cxx.

float myEcalShowerPlus::GetEcalBDTCHI2 ( unsigned int  iBDTVERSION = 3,
int  TMVAClassifier = 0,
int  EnergyFlag = 0 
)

Pisa version classifier, EcalChi2 is used.

See Also
GetEcalBDT

Definition at line 115 of file myEcalShowerPlus.cxx.

float myEcalShowerPlus::GetEcalHitADC ( short int  Cell,
short int  Plane,
int  component 
)

Get ADC value of hit, by cell(0~71), layer(0~17), and component(0:HG, 1:LG, 2:DY), returns -1 in case of no hit.

Definition at line 137 of file myEcalShowerPlus.cxx.

float myEcalShowerPlus::GetEcalHitEdep ( short int  Cell,
short int  Plane 
)

Get energy dep of hit, by cell(0~71) and layer(0~17), returns -1e-9 in case of no hit.

Definition at line 145 of file myEcalShowerPlus.cxx.

unsigned int myEcalShowerPlus::GetEcalHitStatus ( short int  Cell,
short int  Plane 
)

Get status bits of hit, by cell(0~71) and layer(0~17), returns 0 in case of no hit.

See Also
EcalHitR::Status
root.h
amsdbc.C

Definition at line 153 of file myEcalShowerPlus.cxx.

short int myEcalShowerPlus::GetPlane ( short int  index)
inline

Definition at line 35 of file myEcalShowerPlus.h.

short int myObject::iMySelf ( )
inlineinherited

Definition at line 22 of file myObject.h.

References myObject::i_myself.

Referenced by myEvent::pmyTrdKFromTrdTrackByMySelf().

void myEcalShowerPlus::init ( )
privatevirtual

Implements myEcalShowerBase.

Definition at line 84 of file myEcalShowerPlus.cxx.

References PRINTDEBUG.

short int myObject::iPart ( )
inlineinherited

Definition at line 21 of file myObject.h.

References myObject::i_part.

float myEcalShowerPlus::RecomputeBDT ( )

Recomputes the BDT completely off-line from the hit map stored.

This will allow the re-computation, offline of the BDT. For now it just computes the variables without returning the BDT. To be completed.

Since in the class also the Taiwan chi square are stored also the BDTChi2 will be supported.

Definition at line 202 of file myEcalShowerPlus.cxx.

References ecalhit::Edep.

void myObject::SetMySelf ( short int  imyself)
inlineinherited

Definition at line 30 of file myObject.h.

References myObject::i_myself.

void myObject::SetPart ( short int  ipart)
inlineinherited

Definition at line 24 of file myObject.h.

References myObject::i_part.

Member Data Documentation

std::map<short int, ecalhit> myEcalShowerPlus::_ecalhitmap
protected

Definition at line 30 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDT

Pisa bdt with param 5 0 0.

See Also
GetEcalBDT()

Definition at line 46 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDT_v4

Pisa bdt with param 4 0 0.

Definition at line 50 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTChi2

Pisa bdt with param 3 0 0.

Definition at line 51 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTChi2_v2

Pisa bdt with param 2 0 0.

Definition at line 55 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTChi2E

Pisa bdt with param 3 0 1.

Definition at line 53 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTChi2Es

Pisa bdt with param 3 1 1.

Definition at line 54 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTChi2s

Pisa bdt with param 3 1 0.

Definition at line 52 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTE

Pisa bdt with param 5 0 1.

Definition at line 48 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTEs

Pisa bdt with param 5 1 1.

Definition at line 49 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::BDTs

Pisa bdt with param 5 1 0.

Definition at line 47 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::EcalAxis_chi2_2[18]

Layer CoG using lateral fitting (CY version)

Definition at line 43 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::EcalAxis_chi2_8[18]

Layer CoG using neighbor cell ratio (CY version)

Definition at line 44 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::Elayer[18]

Energy deposition in each layer, with leakage correction.

Definition at line 40 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::Elayer_corr[18]

Energy dep in each layer with new calib and correction.

Definition at line 41 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::Energy3C[3]

Definition at line 36 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::ESEV2

LAPP Ecal Estimator V2 Updated June 2012 - 90% efficiency cut (based on electron-like flight events) is -1.23.

Definition at line 57 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::ESEV3

LAPP Ecal Estimator V3 Updated Jan 2013 Efficiency bin-dependant, matching efficiency / rejection retrieved via ESEv3Efficiency / ESEv3Rejection.
For an Energy-Bin independant cut, you should use ESEV2.

Definition at line 58 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::ESEv3Efficiency

Get the lepton efficiency for the current shower using LAPP Ecal Estimator V3 value and energy bin, given ESEV3 > -1.23 (I guess)

Definition at line 61 of file myEcalShowerPlus.h.

Float_t myEcalShowerPlus::ESEv3Rejection

Get the proton rejection for the current shower using LAPP Ecal Estimator V3 value and energy bin.

Definition at line 62 of file myEcalShowerPlus.h.

Short_t myObject::i_myself
inherited

id of the object itself in gbatch

Definition at line 19 of file myObject.h.

Referenced by myObject::iMySelf(), and myObject::SetMySelf().

Short_t myObject::i_part
inherited

id of particle object it belongs

Definition at line 18 of file myObject.h.

Referenced by myObject::iPart(), and myObject::SetPart().


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