49 produces<nanoaod::FlatTable>();
57 edm::allowedValues<std::string>(
"BMTF_IN",
"TM_IN"));
64 unsigned int nTrigs{0};
66 std::vector<int16_t>
wheel;
67 std::vector<int16_t>
sector;
70 std::vector<int16_t>
bx;
71 std::vector<uint32_t> hitMap;
75 if (trigColl.isValid()) {
76 const auto trigs = trigColl->getContainer();
77 for (
const auto&
trig : (*trigs)) {
93 bx.push_back(
trig.bxNum());
95 uint32_t hitMapCh = 0;
98 hitMapCh = hitMapCh | (0
x1 <<
pos);
100 hitMap.push_back(hitMapCh);
106 auto table = std::make_unique<nanoaod::FlatTable>(nTrigs,
m_name,
false,
false);
108 table->setDoc(
"Barrel trigger primitive information (theta view)");
115 "<br /> - [1:12] range for TwinMux" 116 "<br /> - [0:11] range for BMTF input" 117 "<br /> - double MB4 stations are part of S4 and S10 in TwinMux" 118 "<br /> - double MB4 stations are part of S3 and S9 in BMTF input");
124 "<br /> - BX = 0 is the one where the event is collected" 125 "<br /> - TwinMux range [X:Y]" 126 "<br /> - BMTF input range [X:Y]");
130 "Map groups of BTIs that fired (unsigned int):" 131 "<br /> there are 7 groups of BTI per chamber, the first one" 132 "<br /> being the less significant bit of the map [CHECK]");
144 <<
" is not a valid tag, defaulting to TM_IN";
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
nano_mu::EDTokenHandle< L1MuDTChambThContainer > m_token
The trigger-primitive token.
static void fillDescriptions(edm::ConfigurationDescriptions &)
Fill descriptors.
auto conditionalGet(const edm::Event &ev) const
Log< level::Error, false > LogError
void addColumn(std::unique_ptr< nanoaod::FlatTable > &table, const std::string name, const std::vector< T > &vec, const std::string descr)
TriggerTag getTag(const edm::ParameterSet &)
Helper function translating config parameter into TriggerTag.
#define DEFINE_FWK_MODULE(type)
void fillTable(edm::Event &) final
Fill tree branches for a given events.
std::string m_name
The label name of the FlatTableProducer.
dictionary config
Read in AllInOne config in JSON format.
MuDTTPGThetaFlatTableProducer(const edm::ParameterSet &)
Constructor.