Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/EMCal-commissioning/emcalTreeMaker/src/caloTreeGen.h>
Public Member Functions | |
caloTreeGen (const std::string &name="caloTreeGen") | |
~caloTreeGen () override | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
void | setClusters (int clusters) |
void | setFineClusters (int fineCluster) |
caloTreeGen (const std::string &name="caloTreeGen", const std::string &eventFile="test.json", const int eventNumber=0, const int runid=0, const float tow_cemc_min=0, const float tow_hcalin_min=0, const float tow_hcalout_min=0) | |
~caloTreeGen () override | |
int | Init (PHCompositeNode *topNode) override |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | ResetEvent (PHCompositeNode *topNode) override |
Clean up internals after each event. | |
int | EndRun (const int runnumber) override |
Called at the end of each run. | |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
int | Reset (PHCompositeNode *) override |
Reset. | |
void | Print (const std::string &what="ALL") const override |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Member Functions | |
unsigned int | getCaloTowerPhiBin (const unsigned int key) |
unsigned int | getCaloTowerEtaBin (const unsigned int key) |
float | getMaxTowerE (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< float > | returnClusterTowE (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< int > | returnClusterTowPhi (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< int > | returnClusterTowEta (RawCluster *cluster, TowerInfoContainer *towerContainer) |
unsigned int | getCaloTowerPhiBin (const unsigned int key) |
unsigned int | getCaloTowerEtaBin (const unsigned int key) |
float | getMaxTowerE (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< float > | returnClusterTowE (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< int > | returnClusterTowPhi (RawCluster *cluster, TowerInfoContainer *towerContainer) |
std::vector< int > | returnClusterTowEta (RawCluster *cluster, TowerInfoContainer *towerContainer) |
Private Attributes | |
TTree * | T |
std::vector< float > | m_emcTowPhi |
std::vector< float > | m_emcTowEta |
std::vector< float > | m_emcTowE |
std::vector< float > | m_emcTiming |
std::vector< float > | m_emciEta |
std::vector< float > | m_emciPhi |
std::vector< float > | m_clusterE |
std::vector< float > | m_clusterPhi |
std::vector< float > | m_clusterEta |
std::vector< float > | m_clusterPt |
std::vector< float > | m_clusterChi |
std::vector< float > | m_clusterNtow |
std::vector< float > | m_clusterTowMax |
std::vector< float > | m_clusterECore |
std::vector< std::vector< int > > | m_clusTowEta |
std::vector< std::vector< int > > | m_clusTowPhi |
std::vector< std::vector< float > > | m_clusTowE |
TFile * | out |
std::string | Outfile = "commissioning.root" |
int | doClusters |
float | totalCaloE |
int | doFineCluster |
std::vector< float > | m_ohciTowPhi |
std::vector< float > | m_ohciTowEta |
std::vector< float > | m_ohcTowE |
std::vector< float > | m_ihciTowPhi |
std::vector< float > | m_ihciTowEta |
std::vector< float > | m_ihcTowE |
std::string | eventFile = "test.json" |
int | iEvent |
int | eventNumber |
int | runid |
float | tow_cemc_min |
float | tow_hcalin_min |
float | tow_hcalout_min |
std::ofstream | eventOutput |
const float | eta_map [24] |
const float | phi_map [64] |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 19 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 19 of file caloTreeGen.h
caloTreeGen::caloTreeGen | ( | const std::string & | name = "caloTreeGen" | ) |
Definition at line 39 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 39 of file caloTreeGen.cc
|
override |
Definition at line 51 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 51 of file caloTreeGen.cc
caloTreeGen::caloTreeGen | ( | const std::string & | name = "caloTreeGen" , |
const std::string & | eventFile = "test.json" , |
||
const int | eventNumber = 0 , |
||
const int | runid = 0 , |
||
const float | tow_cemc_min = 0 , |
||
const float | tow_hcalin_min = 0 , |
||
const float | tow_hcalout_min = 0 |
||
) |
Definition at line 40 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 40 of file caloTreeGen.cc
|
override |
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 238 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 238 of file caloTreeGen.cc
References cd(), Close(), Fun4AllReturnCodes::EVENT_OK, out, T, and Write().
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
Definition at line 231 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 231 of file caloTreeGen.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Called at the end of each run.
Reimplemented from SubsysReco.
|
private |
|
private |
Definition at line 274 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 274 of file caloTreeGen.cc
References KF_timing::etabin.
Referenced by process_event().
|
private |
|
private |
Definition at line 265 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 265 of file caloTreeGen.cc
References KF_timing::etabin.
Referenced by process_event().
|
private |
|
private |
Definition at line 280 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 280 of file caloTreeGen.cc
Referenced by process_event().
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 57 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 57 of file caloTreeGen.cc
References Branch(), Fun4AllReturnCodes::EVENT_OK, Fun4AllServer::instance(), m_clusterChi, m_clusterE, m_clusterECore, m_clusterEta, m_clusterNtow, m_clusterPhi, m_clusterPt, m_clusterTowMax, m_clusTowE, m_clusTowEta, m_clusTowPhi, m_emciEta, m_emciPhi, m_emcTiming, m_emcTowE, m_emcTowEta, m_emcTowPhi, out, Outfile, Print(), T, and totalCaloE.
|
overridevirtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
Definition at line 97 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 97 of file caloTreeGen.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number. A place to book histograms which have to know the run number.
Reimplemented from SubsysReco.
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
Definition at line 259 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 259 of file caloTreeGen.cc
Referenced by Init().
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllBase.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 104 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 104 of file caloTreeGen.cc
References Fun4AllReturnCodes::ABORTEVENT, doClusters, doFineCluster, TowerInfoContainer::encode_key(), energy, eta, Fun4AllReturnCodes::EVENT_OK, Fill(), getCaloTowerEtaBin(), getCaloTowerPhiBin(), RawClusterUtility::GetECoreVec(), RawClusterUtility::GetEVec(), getMaxTowerE(), RawCluster::getNTowers(), m_clusterChi, m_clusterE, m_clusterECore, m_clusterEta, m_clusterNtow, m_clusterPhi, m_clusterPt, m_clusterTowMax, m_clusTowE, m_clusTowEta, m_clusTowPhi, m_emciEta, m_emciPhi, m_emcTiming, m_emcTowE, m_emcTowEta, m_emcTowPhi, nTowers, ActsTests::PropagationDatasets::phi, PHWHERE, returnClusterTowE(), returnClusterTowEta(), returnClusterTowPhi(), TowerInfoContainer::size(), T, Acts::Test::time, and totalCaloE.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
Definition at line 252 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 252 of file caloTreeGen.cc
References Fun4AllReturnCodes::EVENT_OK.
|
overridevirtual |
Reset.
Reimplemented from SubsysReco.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 205 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 205 of file caloTreeGen.cc
References Fun4AllReturnCodes::EVENT_OK, m_clusterChi, m_clusterE, m_clusterECore, m_clusterEta, m_clusterNtow, m_clusterPhi, m_clusterPt, m_clusterTowMax, m_clusTowE, m_clusTowEta, m_clusTowPhi, m_emciEta, m_emciPhi, m_emcTiming, m_emcTowE, m_emcTowEta, and m_emcTowPhi.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
|
private |
|
private |
Definition at line 316 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 316 of file caloTreeGen.cc
Referenced by process_event().
|
private |
|
private |
Definition at line 295 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 295 of file caloTreeGen.cc
References RawTowerDefs::decode_index1().
Referenced by process_event().
|
private |
|
private |
Definition at line 306 of file caloTreeGen.cc.
View newest version in sPHENIX GitHub at line 306 of file caloTreeGen.cc
References RawTowerDefs::decode_index2().
Referenced by process_event().
|
inline |
Definition at line 60 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 60 of file caloTreeGen.h
References clusters, and doClusters.
|
inline |
Definition at line 62 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 62 of file caloTreeGen.h
References doFineCluster.
|
private |
Definition at line 100 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 100 of file caloTreeGen.h
Referenced by process_event(), and setClusters().
|
private |
Definition at line 103 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 103 of file caloTreeGen.h
Referenced by process_event(), and setFineClusters().
|
private |
Definition at line 108 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 108 of file caloTreeGen.h
|
private |
Definition at line 89 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 89 of file caloTreeGen.h
|
private |
Definition at line 100 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 100 of file caloTreeGen.h
|
private |
Definition at line 106 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 106 of file caloTreeGen.h
|
private |
Definition at line 99 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 99 of file caloTreeGen.h
|
private |
Definition at line 79 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 79 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 75 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 75 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 82 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 82 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 77 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 77 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 80 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 80 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 76 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 76 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 78 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 78 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 81 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 81 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 86 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 86 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 84 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 84 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 85 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 85 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 72 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 72 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 73 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 73 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 71 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 71 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 70 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 70 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 69 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 69 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 68 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 68 of file caloTreeGen.h
Referenced by Init(), process_event(), and ResetEvent().
|
private |
Definition at line 83 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 83 of file caloTreeGen.h
|
private |
Definition at line 82 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 82 of file caloTreeGen.h
|
private |
Definition at line 84 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 84 of file caloTreeGen.h
|
private |
Definition at line 79 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 79 of file caloTreeGen.h
|
private |
Definition at line 78 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 78 of file caloTreeGen.h
|
private |
Definition at line 80 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 80 of file caloTreeGen.h
|
private |
Definition at line 89 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 89 of file caloTreeGen.h
|
private |
Definition at line 91 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 91 of file caloTreeGen.h
Referenced by Init().
|
private |
Definition at line 111 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 111 of file caloTreeGen.h
|
private |
Definition at line 101 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 101 of file caloTreeGen.h
|
private |
Definition at line 66 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 66 of file caloTreeGen.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 102 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 102 of file caloTreeGen.h
Referenced by Init(), and process_event().
|
private |
Definition at line 102 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 102 of file caloTreeGen.h
|
private |
Definition at line 103 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 103 of file caloTreeGen.h
|
private |
Definition at line 104 of file caloTreeGen.h.
View newest version in sPHENIX GitHub at line 104 of file caloTreeGen.h