Protected Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Member Functions | |
void | accuSort (std::vector< l1t::Jet > *jets) |
void | accuSort (std::vector< l1t::Tau > *taus) |
void | accuSort (std::vector< l1t::EGamma > *egs) |
void | accuSort (std::vector< l1t::L1Candidate > &jets) |
bool | compareEGs (const edm::Handle< l1t::EGammaBxCollection > &dataCol, const edm::Handle< l1t::EGammaBxCollection > &emulCol) |
bool | compareJets (const edm::Handle< l1t::JetBxCollection > &dataCol, const edm::Handle< l1t::JetBxCollection > &emulCol) |
bool | compareSums (const edm::Handle< l1t::EtSumBxCollection > &dataCol, const edm::Handle< l1t::EtSumBxCollection > &emulCol) |
bool | compareTaus (const edm::Handle< l1t::TauBxCollection > &dataCol, const edm::Handle< l1t::TauBxCollection > &emulCol) |
void | dumpEventToEDM (edm::Event &e) |
void | dumpEventToFile () |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Short class description.
Longer class description... ... desc continued.
Definition at line 67 of file L1TStage2CaloLayer2Comp.cc.
L1TStage2CaloLayer2Comp::L1TStage2CaloLayer2Comp | ( | const edm::ParameterSet & | ps | ) |
Class constructor
Receives the set of parameters, specified by the python configuration file used to initialise the module as a part of a sequence. The contents of the set is used to configure the internal state of the objects of this class. Values from the parameter set are extracted and used to initialise bxcollections for jet, e/g, tau and sum objects reconstructed by firmware (data) and emulator. These collections are the basis of the comparisons performed by this module.
edm::ParamterSet | & ps A pointer to the parameter set used |
Definition at line 243 of file L1TStage2CaloLayer2Comp.cc.
References dumpTowers, dumpWholeEvent, and edm::ParameterSet::getParameter().
|
private |
Definition at line 755 of file L1TStage2CaloLayer2Comp.cc.
References down, and AccumulatingSort< T >::Merge().
Referenced by compareEGs(), compareJets(), and compareTaus().
|
private |
Definition at line 872 of file L1TStage2CaloLayer2Comp.cc.
References down, and AccumulatingSort< T >::Merge().
|
private |
Definition at line 813 of file L1TStage2CaloLayer2Comp.cc.
References down, and AccumulatingSort< T >::Merge().
|
private |
|
private |
Encapsulates the code required for performing a comparison of the e/gs contained in a given event.
Method is called once per each event with the e/g collections associated with the event being extracted for bx = 0 as the RAW information required to run the emulator is only available for bx 0. The implementation checks if the size of collections is the same and when so, compares the e/gs in the same positions within the data/emul collections. When a discrepancy is found, the properties (Et, eta, phi) of the problematic data/emul objects are stored in dedicated histograms. In cases of differences, a distinction is made between objects whose energy or position are in disagremeent. Another distinction is made between isolated and non-isolated e/g candidates and problematic objects are handled accordingly. When the length of data/emul collections is different, all of the objects are "stored" in the histograms dedicated to problematic objects.
edm::Handle<l1t::EGammaBXCollection>& | dataCol Reference to e/gamma collection from data |
edm::Handle<l1t::EGammaBXCollection>& | emulCol Reference to e/gamma collection from emulation |
Definition at line 467 of file L1TStage2CaloLayer2Comp.cc.
References accuSort(), BXVector< T >::begin(), currBx, SoftLeptonByDistance_cfi::distance, BXVector< T >::end(), and BXVector< T >::size().
Referenced by produce().
|
private |
Encapsulates the code required for performing a comparison of the jets contained in a given event.
Method is called once per each event with the jet collections associated with the event being extracted for bx = 0 as the RAW information required to run the emulator is only available for bx 0. The implementation checks if the size of collections is the same and when so, compares the jets in the same positions within the data/emul collections. When a discrepancy is found, the properties (Et, eta, phi) of the problematic data/emul objects are stored in dedicated histograms. In cases of differences, a distinction is made between objects whose energy or position are in disagremeent.When the length of data/emul collections is different, all of the objects are "stored" in the histograms dedicated to problematic objects.
edm::Handle<l1t::JetBXCollection>& | dataCol Reference to jet collection from data |
edm::Handle<l1t::JetBXCollection>& | emulCol Reference to jet collection from emulation |
Definition at line 350 of file L1TStage2CaloLayer2Comp.cc.
References accuSort(), BXVector< T >::begin(), currBx, SoftLeptonByDistance_cfi::distance, BXVector< T >::end(), fwrapper::jets, and BXVector< T >::size().
Referenced by produce().
|
private |
Encapsulates the code required for performing a comparison of the taus contained in a given event.
Method is called once per each event with the sum collections associated with the event being extracted for bx = 0 as the RAW information required to run the emulator is only available for bx 0. The implementation loops over the collection and depending of the sum type, each variant is compared independently. If any disagreement is found, the event is marked a bad and the properties of the sum are stored in the data/emulator problematic histograms.
edm::Handle<l1t::TauBXCollection>& | dataCol Reference to tau collection from data |
edm::Handle<l1t::TauBXCollection>& | emulCol Reference to tau collection from emulation |
Definition at line 701 of file L1TStage2CaloLayer2Comp.cc.
References BXVector< T >::at(), currBx, l1t::CaloTools::emul_to_data_sum_index_map, l1t::EtSum::getType(), l1t::L1Candidate::hwPt(), mps_fire::i, BXVector< T >::isEmpty(), and BXVector< T >::size().
Referenced by produce().
|
private |
Encapsulates the code required for performing a comparison of the taus contained in a given event.
Method is called once per each event with the tau collections associated with the event being extracted for bx = 0 as the RAW information required to run the emulator is only available for bx 0. The implementation checks if the size of collections is the same and when so, compares the taus in the same positions within the data/emul collections. When a discrepancy is found, the properties (Et, eta, phi) of the problematic data/emul objects are stored in dedicated histograms. In cases of differences, a distinction is made between objects whose energy or position are in disagremeent. Another distinction is made between isolated and non-isolated tau candidates and problematic objects are handled accordingly. When the length of data/emul collections is different, all of the objects are "stored" in the histograms dedicated to problematic objects.
edm::Handle<l1t::TauBXCollection>& | dataCol Reference to tau collection from data |
edm::Handle<l1t::TauBXCollection>& | emulCol Reference to tau collection from emulation |
Definition at line 584 of file L1TStage2CaloLayer2Comp.cc.
References accuSort(), BXVector< T >::begin(), currBx, SoftLeptonByDistance_cfi::distance, BXVector< T >::end(), BXVector< T >::size(), and nano_cff::taus.
Referenced by produce().
|
private |
Definition at line 1031 of file L1TStage2CaloLayer2Comp.cc.
References BXVector< T >::begin(), caloTowerDataCol, caloTowerEmulCol, currBx, DEFINE_FWK_MODULE, egDataCol, egEmulCol, BXVector< T >::end(), metsig::jet, jetDataCol, jetEmulCol, eostools::move(), edm::Event::put(), sumDataCol, sumEmulCol, metsig::tau, tauDataCol, and tauEmulCol.
Referenced by produce().
|
private |
Definition at line 929 of file L1TStage2CaloLayer2Comp.cc.
References BXVector< T >::begin(), caloTowerDataCol, caloTowerEmulCol, currBx, dumpTowers, egDataCol, egEmulCol, BXVector< T >::end(), metsig::jet, jetDataCol, jetEmulCol, sumDataCol, sumEmulCol, metsig::tau, tauDataCol, and tauEmulCol.
Referenced by produce().
|
overrideprotected |
Main method where the analysis code resides, executed once for each run
The main body of the module code is contained in this method. The different object collections are extracted from the run and are passed to the respective comparison methods for processing of each object type.
edm::Event | const & Reference to event object |
edm::EventSetup | const & Reference to event configuration object |
Definition at line 290 of file L1TStage2CaloLayer2Comp.cc.
References calol2CaloTowerCollectionData, calol2CaloTowerCollectionEmul, calol2EGammaCollectionData, calol2EGammaCollectionEmul, calol2EtSumCollectionData, calol2EtSumCollectionEmul, calol2JetCollectionData, calol2JetCollectionEmul, calol2TauCollectionData, calol2TauCollectionEmul, caloTowerDataCol, caloTowerEmulCol, compareEGs(), compareJets(), compareSums(), compareTaus(), dumpEventToEDM(), dumpEventToFile(), dumpWholeEvent, egDataCol, egEmulCol, edm::Event::getByToken(), edm::EventBase::id(), jetDataCol, jetEmulCol, BXVector< T >::size(), sumDataCol, sumEmulCol, tauDataCol, and tauEmulCol.
|
private |
Definition at line 222 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 223 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 216 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 217 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 220 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 221 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 214 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 215 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 218 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 219 of file L1TStage2CaloLayer2Comp.cc.
Referenced by produce().
|
private |
Definition at line 234 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 235 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 237 of file L1TStage2CaloLayer2Comp.cc.
Referenced by compareEGs(), compareJets(), compareSums(), compareTaus(), dumpEventToEDM(), and dumpEventToFile().
|
private |
Definition at line 239 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToFile(), and L1TStage2CaloLayer2Comp().
|
private |
Definition at line 240 of file L1TStage2CaloLayer2Comp.cc.
Referenced by L1TStage2CaloLayer2Comp(), and produce().
|
private |
Definition at line 228 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 229 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 226 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 227 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 232 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 233 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 230 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().
|
private |
Definition at line 231 of file L1TStage2CaloLayer2Comp.cc.
Referenced by dumpEventToEDM(), dumpEventToFile(), and produce().