9 produces<unsigned int>(
"run");
10 produces<unsigned int>(
"event");
11 produces<unsigned int>(
"bx");
12 produces<unsigned int>(
"lumi");
13 produces<float>(
"instLumi");
14 produces<float>(
"PU");
15 #ifdef ExtendedCALIBTree 16 produces<std::vector<bool>>(
"TrigTech");
17 produces<std::vector<bool>>(
"TrigPh");
25 auto run = std::make_unique<unsigned int>(iEvent.
id().
run());
26 auto event = std::make_unique<unsigned int>(iEvent.
id().
event());
33 #ifdef ExtendedCALIBTree 34 std::vector<bool> TrigTech_(64,
false);
35 std::vector<bool> TrigPh_(128,
false);
38 #ifdef ExtendedCALIBTree 43 for (
int i = 0;
i < 64; ++
i) {
44 TrigPh_[
i] = dWord[
i];
51 for (
int i = 0;
i < 64; ++
i) {
56 auto TrigTech = std::make_unique<std::vector<bool>>(TrigTech_);
57 auto TrigPh = std::make_unique<std::vector<bool>>(TrigPh_);
65 if (lumiScalers.isValid()) {
66 if (lumiScalers->begin() != lumiScalers->end()) {
67 instLumi_ = lumiScalers->begin()->instantLumi();
68 PU_ = lumiScalers->begin()->pileup();
72 <<
"LumiScalers collection not found in the event; will write dummy values";
75 auto instLumi = std::make_unique<float>(instLumi_);
76 auto PU = std::make_unique<float>(PU_);
82 #ifdef ExtendedCALIBTree
T getParameter(std::string const &) const
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< bool > DecisionWord
typedefs
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > trig_token_
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
edm::EDGetTokenT< LumiScalersCollection > scalerToken_
void produce(edm::Event &, const edm::EventSetup &) override
ShallowEventDataProducer(const edm::ParameterSet &)