Lazily builds a collection of reconstructed photons. More...
#include <PhotonBuilder.h>
Public Member Functions | |
PhotonBuilder (Dataset &dataset, Options const &) | |
std::vector< Photon > const & | Get () const override |
Returns collection of photons. | |
Private Member Functions | |
void | Build () const override |
Constructs photons for the current event. | |
Private Attributes | |
double | minPt_ |
Minimal pt for photons to select, GeV. | |
bool | isSim_ |
Indicates whether running on simulation or data. | |
std::string | idBranchName_ |
Name of the photon ID branch (changes between 2016 and 2017, for NanoAODv6). | |
bool | isIdBitmap_ |
std::vector< Photon > | photons_ |
Collection of photons. | |
std::unique_ptr < TTreeReaderArray< float > > | srcGenPt_ |
std::unique_ptr < TTreeReaderArray< float > > | srcGenEta_ |
std::unique_ptr < TTreeReaderArray< float > > | srcGenPhi_ |
std::unique_ptr < TTreeReaderArray< int > > | srcPhotonGenPartIndex_ |
std::unique_ptr < TTreeReaderArray< UChar_t > > | srcFlavour_ |
TTreeReaderArray< float > | srcPt_ |
TTreeReaderArray< float > | srcEta_ |
TTreeReaderArray< float > | srcPhi_ |
std::unique_ptr < TTreeReaderArray< int > > | srcId_ |
TTreeReaderArray< bool > | srcIsEtaScEb_ |
Lazily builds a collection of reconstructed photons.
The photons are subjected to a tight kinematical selection.