NAIA
|
#include <NtpSelector.h>
Public Member Functions | |
NtpSelector (bool isMC) | |
void | SetOutputFilename (std::string outFilename) |
virtual void | UBegin () override |
Init output. More... | |
virtual bool | UProcessCut () override |
Cut, select and prescale. More... | |
virtual void | UProcessFill () override |
Fill ntuple. More... | |
virtual void | UTerminate () override |
Save. More... | |
virtual void | Init (TTree *tree) override |
virtual bool | Notify () override |
Called every time a new file is loaded in the chain. More... | |
void | ProcessFileInfo () |
void | SetLoggingLevel (spdlog::level::level_enum logLevel) |
Public Attributes | |
bool | m_isMC = false |
is simulation? More... | |
unsigned long long | firstentry = 0 |
first entry to be processed More... | |
unsigned long long | lastentry = 0 |
last entry to be processed More... | |
Private Member Functions | |
void | DefineStandAlone () |
Select standalone objects. More... | |
Private Attributes | |
TTree * | m_tree |
std::string | m_outputFilename |
std::unique_ptr< TFile > | m_outputFile |
std::unique_ptr< NAIAChain > | m_chain |
BetaHR * | m_betahStPtr |
AMSSetupR::RTI | m_rti |
Benchmark | m_benchmark |
std::shared_ptr< spdlog::logger > | m_logger |
Definition at line 21 of file NtpSelector.h.
|
inline |
Definition at line 23 of file NtpSelector.h.
|
private |
Select standalone objects.
Definition at line 388 of file NtpSelector.cpp.
References NAIA::Tof::BetaH.
Referenced by UProcessCut().
|
inlineoverridevirtual |
Definition at line 40 of file NtpSelector.h.
References m_tree.
|
overridevirtual |
void NAIA::NtpSelector::ProcessFileInfo | ( | ) |
Definition at line 39 of file NtpSelector.cpp.
References NAIA::MCFileInfo::L1, NAIA::MCFileInfo::L19, m_chain, m_isMC, m_logger, m_tree, and NAIA::MCFileInfo::TB.
Referenced by UProcessCut().
|
inline |
Definition at line 48 of file NtpSelector.h.
References m_logger.
|
inline |
|
overridevirtual |
Init output.
Definition at line 9 of file NtpSelector.cpp.
References m_benchmark, m_chain, m_isMC, m_logger, m_outputFile, m_outputFilename, NAIA::Benchmark::MakeStopwatch(), and NAIA::SingleTreeChain::Write.
|
overridevirtual |
Cut, select and prescale.
Definition at line 92 of file NtpSelector.cpp.
References NAIA::Tof::BetaH, NAIA::Charge1_Tof, NAIA::Charge1_Trk, NAIA::Charge2_Tof, NAIA::Charge2_Trk, NAIA::ChargeGT2_Tof, NAIA::ChargeGT2_Trk, NAIA::ContainsKeys(), DefineStandAlone(), NAIA::Ecal::EnergyD, firstentry, NAIA::HasEcal, NAIA::HasRich, NAIA::HasTof, NAIA::HasTofStandalone, NAIA::HasTrack, NAIA::HasTrd, NAIA::HasTrdStandalone, lastentry, m_benchmark, m_betahStPtr, m_chain, m_isMC, m_logger, m_rti, NAIA::Benchmark::MakeStopwatch(), MatchAllBits(), NAIA::Logging::MuteOutput(), ProcessFileInfo(), NAIA::TrTrack::STD, NAIA::Logging::UnmuteOutput(), and NAIA::TrdK::Upper.
|
overridevirtual |
Fill ntuple.
Definition at line 368 of file NtpSelector.cpp.
|
overridevirtual |
Save.
Definition at line 370 of file NtpSelector.cpp.
unsigned long long NAIA::NtpSelector::firstentry = 0 |
first entry to be processed
Definition at line 28 of file NtpSelector.h.
Referenced by main(), and UProcessCut().
unsigned long long NAIA::NtpSelector::lastentry = 0 |
last entry to be processed
Definition at line 30 of file NtpSelector.h.
Referenced by main(), and UProcessCut().
|
private |
Definition at line 68 of file NtpSelector.h.
Referenced by UBegin(), and UProcessCut().
|
private |
Definition at line 64 of file NtpSelector.h.
Referenced by UProcessCut().
|
private |
Definition at line 61 of file NtpSelector.h.
Referenced by Notify(), ProcessFileInfo(), UBegin(), and UProcessCut().
bool NAIA::NtpSelector::m_isMC = false |
is simulation?
Definition at line 26 of file NtpSelector.h.
Referenced by Notify(), ProcessFileInfo(), UBegin(), and UProcessCut().
|
private |
Definition at line 69 of file NtpSelector.h.
Referenced by Notify(), ProcessFileInfo(), SetLoggingLevel(), UBegin(), and UProcessCut().
|
private |
Definition at line 58 of file NtpSelector.h.
Referenced by UBegin().
|
private |
Definition at line 57 of file NtpSelector.h.
Referenced by SetOutputFilename(), and UBegin().
|
private |
Definition at line 65 of file NtpSelector.h.
Referenced by UProcessCut().
|
private |
Definition at line 54 of file NtpSelector.h.
Referenced by Init(), Notify(), and ProcessFileInfo().