|
Class Reference for E1039 Core & Analysis Software
|
Base class of all analysis modules. More...
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-analysis/TrackMixingNMSU/src/AnaSortMixVertex.h>
Collaboration diagram for AnaSortMixVertex:Public Member Functions | |
| virtual | ~AnaSortMixVertex () |
| virtual void | Init (const int run_id) |
| Function to initialize all variables for the 1st analysis step. More... | |
| virtual void | End () |
| virtual void | Analyze (const int run_id, const std::vector< std::string > list_in) |
| AnaSortMixVertex (const std::string name="ana_mixvertex") | |
| virtual void | SortTree (TTree *tree_to_sort) |
| virtual void | MixTracks (TTree *sorted_tree) |
| Mixing tracks from sorted_tree. More... | |
| virtual void | DoVertex (TTree *inputtree, const int run_id, bool mix) |
| bool | Target_Like (SRecTrack *trk_pos, SRecTrack *trk_neg) |
| bool | Dump_Like (SRecTrack *trk_pos, SRecTrack *trk_neg) |
| bool | UpStream_Like (SRecTrack *trk_pos, SRecTrack *trk_neg) |
| virtual void | EmbedMCSignal (char *file_mixed, char *file_mcsignal) |
| MC preperation for embedding. More... | |
| void | SetTargetPos (const int target_pos) |
| std::string | Name () const |
| Get the name of analysis module. More... | |
| void | SetOutputDir (const std::string dir_out) |
| Set the output directory. More... | |
| void | SetOutputDir (const int dir_out) |
| Set the output directory using the given integer (usually run ID). More... | |
| std::string | GetOutputDir () const |
| Get the output directory. More... | |
| void | SetDataset (const std::string ds) |
| Set the dataset to be analyzed. More... | |
| std::string | GetDataset () const |
| Get the dataset to be analyzed. More... | |
| void | SetRunID (const int run_id) |
| Set the run ID to be analyzed. More... | |
| int | GetRunID () const |
| Get the run ID to be analyzed. More... | |
| void | UseRawEvent (const bool value) |
| Turn on/off the use of SRawEvent. More... | |
| void | UseRecEvent (const bool value) |
| void | SetNumEventsAnalyzed (const unsigned int n_evt) |
| Set the max number of events to be analyzed per run. More... | |
| void | Verbosity (const int verb) |
| Set the verbosity. More... | |
| int | Verbosity () const |
| std::ofstream & | OFS () |
Get the ofstream object for output. Usable in Init(), AnalyzeEvent() and End() of each analysis module. More... | |
| TFile * | OFile () |
Get the TFile object for output. Usable in Init(), AnalyzeEvent() and End() of each analysis module. More... | |
Protected Member Functions | |
| SRawEvent * | GetRawEvent () |
Get a pointer to SRawEvent. Usable in AnalyzeEvent(). More... | |
| SRecEvent * | GetRecEvent () |
Get a pointer to SRecEvent. Usable in AnalyzeEvent(). More... | |
Base class of all analysis modules.
Definition at line 42 of file AnaSortMixVertex.h.
|
virtual |
Definition at line 43 of file AnaSortMixVertex.cc.
| AnaSortMixVertex::AnaSortMixVertex | ( | const std::string | name = "ana_mixvertex" | ) |
Definition at line 26 of file AnaSortMixVertex.cc.
|
virtual |
----— iterating over the rec tree
< RF+00 corrected for the pedestal
proton number corrsponding to RF+00 (pedestal corrected)
Definition at line 86 of file AnaSortMixVertex.cc.
References ana_tree, SQTrackVector::begin(), DoVertex(), SQTrackVector::end(), event_ID, fpga1, fpga2, fpga3, fpga4, SRecTrack::getCharge(), SRawEvent::getEventID(), SRawEvent::getIntensity(), SRawEvent::getNHitsInD0(), SRawEvent::getNHitsInD2(), SRawEvent::getNHitsInD3m(), SRawEvent::getNHitsInD3p(), SRawEvent::getRunID(), SRawEvent::getSpillID(), SRawEvent::getTargetPos(), SRawEvent::isTriggeredBy(), liveP, m_target_pos, SRawEvent::MATRIX1, SRawEvent::MATRIX2, SRawEvent::MATRIX3, SRawEvent::MATRIX4, mixed_tree, MixTracks(), neg_tracks, occuD1, occuD2, occuD3m, occuD3p, pos_tracks, pot_p00, UtilBeam::PoTLive(), UtilBeam::PoTPerQIE(), rfp00c, runID, UtilSRawEvent::SetEvent(), UtilSRawEvent::SetHit(), sorted_tree, SortTree(), spill_ID, and TargetPos.
Here is the call graph for this function:
|
virtual |
Do the vertexing for the pos and neg tracks in input_tree.
Definition at line 475 of file AnaSortMixVertex.cc.
References SRecDimuon::calcVariables(), SRecEvent::clear(), event_ID, fpga1, SRecTrack::getStateVector(), gfield_v2, SQVertexing_v2::InitField(), SQVertexing_v2::InitGeom(), SQVertexing_v2::InitVar(), SRecEvent::insertDimuon(), SRecEvent::insertTrack(), SRecTrack::isKalmanFitted(), liveP, minus_event_ID, minus_fpga1, minus_liveP, minus_occuD1, minus_occuD2, minus_occuD3m, minus_occuD3p, minus_pot_p00, minus_rfp00c, minus_spill_ID, minus_TargetPos, occuD1, occuD2, occuD3m, occuD3p, plus_event_ID, plus_fpga1, plus_liveP, plus_occuD1, plus_occuD2, plus_occuD3m, plus_occuD3p, plus_pot_p00, plus_rfp00c, plus_spill_ID, plus_TargetPos, pot_p00, SQVertexing_v2::processOneDimuon(), recEvent, rfp00c, save_mix, save_sorted, SQVertexing_v2::set_geom_file_name(), SQVertexing_v2::set_legacy_rec_container(), SRecDimuon::set_track_id_neg(), SRecDimuon::set_track_id_pos(), spill_ID, and TargetPos.
Referenced by Analyze().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
MC preperation for embedding.
Creating TTree with mixed with mc signal embedded
Reading MC signal tree to be embedded
Get +ve tracks
Get -ve tracks
embed the mc events===
Definition at line 823 of file AnaSortMixVertex.cc.
References neg_tracks, and pos_tracks.
|
virtual |
Definition at line 267 of file AnaSortMixVertex.cc.
|
inline |
Get the dataset to be analyzed.
Definition at line 93 of file AnaSortMixVertex.h.
|
inline |
Get the output directory.
Definition at line 91 of file AnaSortMixVertex.h.
|
inlineprotected |
Get a pointer to SRawEvent. Usable in AnalyzeEvent().
Definition at line 109 of file AnaSortMixVertex.h.
|
inlineprotected |
Get a pointer to SRecEvent. Usable in AnalyzeEvent().
Definition at line 110 of file AnaSortMixVertex.h.
|
inline |
Get the run ID to be analyzed.
Definition at line 95 of file AnaSortMixVertex.h.
|
virtual |
Function to initialize all variables for the 1st analysis step.
Init() of each analysis module should call this function and then initialize its own variables.
Definition at line 53 of file AnaSortMixVertex.cc.
References recoConsts::instance(), PHFlag::set_BoolFlag(), recoConsts::set_CharFlag(), PHFlag::set_DoubleFlag(), and PHFlag::set_IntFlag().
Here is the call graph for this function:
|
virtual |
Mixing tracks from sorted_tree.
======= Get +ve tracks from ith event
====== Get -ve tracks from (i+1)th event
Definition at line 327 of file AnaSortMixVertex.cc.
References minus_event_ID, minus_fpga1, minus_liveP, minus_occuD1, minus_occuD2, minus_occuD3m, minus_occuD3p, minus_pot_p00, minus_rfp00c, minus_spill_ID, minus_TargetPos, mixed_tree, neg_tracks_mix, plus_event_ID, plus_fpga1, plus_liveP, plus_occuD1, plus_occuD2, plus_occuD3m, plus_occuD3p, plus_pot_p00, plus_rfp00c, plus_spill_ID, plus_TargetPos, and pos_tracks_mix.
Referenced by Analyze().
Here is the caller graph for this function:
|
inline |
Get the name of analysis module.
Definition at line 85 of file AnaSortMixVertex.h.
|
inline |
Get the TFile object for output. Usable in Init(), AnalyzeEvent() and End() of each analysis module.
Definition at line 105 of file AnaSortMixVertex.h.
|
inline |
Get the ofstream object for output. Usable in Init(), AnalyzeEvent() and End() of each analysis module.
Definition at line 103 of file AnaSortMixVertex.h.
|
inline |
Set the dataset to be analyzed.
Definition at line 92 of file AnaSortMixVertex.h.
|
inline |
Set the max number of events to be analyzed per run.
Definition at line 99 of file AnaSortMixVertex.h.
|
inline |
Set the output directory using the given integer (usually run ID).
Definition at line 89 of file AnaSortMixVertex.h.
|
inline |
Set the output directory.
Definition at line 87 of file AnaSortMixVertex.h.
|
inline |
Set the run ID to be analyzed.
Definition at line 94 of file AnaSortMixVertex.h.
|
inline |
Definition at line 82 of file AnaSortMixVertex.h.
References m_target_pos.
|
virtual |
Sort the ana_tree
Definition at line 281 of file AnaSortMixVertex.cc.
References sorted_tree.
Referenced by Analyze().
Here is the caller graph for this function:
|
inline |
Turn on/off the use of SRawEvent.
Definition at line 96 of file AnaSortMixVertex.h.
|
inline |
Turn on/off the use of SRecEvent.
Definition at line 97 of file AnaSortMixVertex.h.
|
inline |
Get the verbosity.
Definition at line 101 of file AnaSortMixVertex.h.
|
inline |
Set the verbosity.
Definition at line 100 of file AnaSortMixVertex.h.
|
protected |
Definition at line 112 of file AnaSortMixVertex.h.
Referenced by Analyze().
|
protected |
Definition at line 128 of file AnaSortMixVertex.h.
|
protected |
Definition at line 121 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 132 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 132 of file AnaSortMixVertex.h.
Referenced by Analyze().
|
protected |
Definition at line 132 of file AnaSortMixVertex.h.
Referenced by Analyze().
|
protected |
Definition at line 132 of file AnaSortMixVertex.h.
Referenced by Analyze().
|
protected |
Definition at line 132 of file AnaSortMixVertex.h.
|
protected |
Definition at line 140 of file AnaSortMixVertex.h.
Referenced by DoVertex().
|
protected |
proton number corrsponding to RF+00 (pedestal corrected)
Definition at line 126 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 119 of file AnaSortMixVertex.h.
Referenced by Analyze(), and SetTargetPos().
|
protected |
Definition at line 121 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 146 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 146 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 146 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 120 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 145 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 114 of file AnaSortMixVertex.h.
Referenced by Analyze(), and MixTracks().
|
protected |
Definition at line 134 of file AnaSortMixVertex.h.
Referenced by Analyze(), and EmbedMCSignal().
|
protected |
Definition at line 135 of file AnaSortMixVertex.h.
Referenced by MixTracks().
|
protected |
Definition at line 130 of file AnaSortMixVertex.h.
|
protected |
Definition at line 129 of file AnaSortMixVertex.h.
|
protected |
Definition at line 129 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 129 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 129 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 129 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 121 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 143 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 143 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 143 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 120 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 142 of file AnaSortMixVertex.h.
Referenced by DoVertex(), and MixTracks().
|
protected |
Definition at line 134 of file AnaSortMixVertex.h.
Referenced by Analyze(), and EmbedMCSignal().
|
protected |
Definition at line 135 of file AnaSortMixVertex.h.
Referenced by MixTracks().
|
protected |
Definition at line 130 of file AnaSortMixVertex.h.
|
protected |
Definition at line 125 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 136 of file AnaSortMixVertex.h.
Referenced by DoVertex().
|
protected |
Definition at line 138 of file AnaSortMixVertex.h.
|
protected |
Definition at line 137 of file AnaSortMixVertex.h.
|
protected |
Definition at line 139 of file AnaSortMixVertex.h.
|
protected |
RF+00 corrected for the pedestal.
Definition at line 124 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 119 of file AnaSortMixVertex.h.
Referenced by Analyze().
|
protected |
Definition at line 116 of file AnaSortMixVertex.h.
Referenced by DoVertex().
|
protected |
Definition at line 115 of file AnaSortMixVertex.h.
Referenced by DoVertex().
|
protected |
Definition at line 113 of file AnaSortMixVertex.h.
Referenced by Analyze(), and SortTree().
|
protected |
Definition at line 120 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 131 of file AnaSortMixVertex.h.
Referenced by Analyze(), and DoVertex().
|
protected |
Definition at line 130 of file AnaSortMixVertex.h.