33 virtual void endJob();
53 std::vector< edm::EDGetTokenT<TauBxCollection> >
tauTokens_;
90 if (egCheck_) {egToken_ = consumes<EGammaBxCollection> (iConfig.
getParameter<
InputTag>(
"egToken"));}
92 const auto& taus = iConfig.
getParameter<std::vector<edm::InputTag>>(
"tauTokens");
93 for (
const auto&
tau: taus) {
94 tauTokens_.push_back(consumes<l1t::TauBxCollection>(
tau));
97 if (jetCheck_) {jetToken_ = consumes<JetBxCollection> (iConfig.
getParameter<
InputTag>(
"jetToken"));}
98 if (sumCheck_) {sumToken_ = consumes<EtSumBxCollection> (iConfig.
getParameter<
InputTag>(
"sumToken"));}
99 if (muonCheck_) {muonToken_ = consumes<MuonBxCollection> (iConfig.
getParameter<
InputTag>(
"muonToken"));}
115 cout <<
"L1TSummary Module output for " << tag_ <<
"\n";
120 cout <<
"INFO: L1T found e-gamma collection.\n";
121 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
122 for (
auto it=XTMP->begin(ibx); it!=XTMP->end(ibx); it++){
123 if (bxZeroOnly_ && (ibx != 0))
continue;
126 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
131 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
136 for (
auto & tautoken: tauTokens_){
140 cout <<
"INFO: L1T found tau collection.\n";
141 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
142 for (
auto it=XTMP->begin(ibx); it!=XTMP->end(ibx); it++){
144 if (bxZeroOnly_ && (ibx != 0))
continue;
146 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
151 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
160 cout <<
"INFO: L1T found jet collection.\n";
161 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
162 for (
auto it=XTMP->begin(ibx); it!=XTMP->end(ibx); it++){
164 if (bxZeroOnly_ && (ibx != 0))
continue;
166 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
171 LogWarning(
"MissingProduct") <<
"L1T upgrade jets not found." << std::endl;
179 cout <<
"INFO: L1T found sum collection.\n";
180 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
181 for (
auto it=XTMP->begin(ibx); it!=XTMP->end(ibx); it++){
183 if (bxZeroOnly_ && (ibx != 0))
continue;
185 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
" type: " << it->getType() <<
"\n";
190 LogWarning(
"MissingProduct") <<
"L1T upgrade sums not found." << std::endl;
199 cout <<
"INFO: L1T found muon collection.\n";
200 for (
int ibx = XTMP->getFirstBX(); ibx <= XTMP->getLastBX(); ++ibx) {
201 for (
auto it=XTMP->begin(ibx); it!=XTMP->end(ibx); it++){
203 if (bxZeroOnly_ && (ibx != 0))
continue;
205 cout <<
"bx: " << ibx <<
" et: " << it->et() <<
" eta: " << it->eta() <<
" phi: " << it->phi() <<
"\n";
210 LogWarning(
"MissingProduct") <<
"L1T upgrade muons not found." << std::endl;
223 cout <<
"INFO: L1TSummary module beginJob called.\n";
228 cout <<
"INFO: L1T Summary for " << tag_ <<
"\n";
229 cout <<
"INFO: count of non-zero candidates for each type follows:\n";
230 if (egCheck_)
cout <<
"eg: " << egCount_ <<
"\n";
231 if (tauCheck_)
cout <<
"tau: " << tauCount_ <<
"\n";
232 if (jetCheck_)
cout <<
"jet: " << jetCount_ <<
"\n";
233 if (sumCheck_)
cout <<
"sum: " << sumCount_ <<
"\n";
234 if (muonCheck_)
cout <<
"muon: " << muonCount_ <<
"\n";
T getParameter(std::string const &) const
edm::EDGetTokenT< MuonBxCollection > muonToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &)
virtual void endRun(Run const &, EventSetup const &)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EtSumBxCollection > sumToken_
virtual void analyze(Event const &, EventSetup const &)
virtual void beginRun(Run const &, EventSetup const &)
void addDefault(ParameterSetDescription const &psetDescription)
L1TSummary(const ParameterSet &)
std::vector< edm::EDGetTokenT< TauBxCollection > > tauTokens_
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EGammaBxCollection > egToken_
edm::EDGetTokenT< JetBxCollection > jetToken_