22 m_toolparameters->m_presamples_per_event = iConfig.
getUntrackedParameter<
int>(
"presamples_per_event");
30 while (out_dir.find_last_of(
'/') == out_dir.length() - 1)
31 out_dir.erase(out_dir.find_last_of(
'/'));
32 m_toolparameters->m_output_directory = out_dir +
"/" + (m_toolparameters->m_file_tag) +
"/";
59 std::vector<edm::Handle<HBHEDigiCollection> >
hbhe;
60 std::vector<edm::Handle<HODigiCollection> >
ho;
61 std::vector<edm::Handle<HFDigiCollection> >
hf;
62 std::vector<edm::Handle<ZDCDigiCollection> >
zdc;
63 std::vector<edm::Handle<HcalCalibDigiCollection> >
hc;
64 std::vector<edm::Handle<HcalTrigPrimDigiCollection> > htp;
65 std::vector<edm::Handle<HcalHistogramDigiCollection> > hh;
69 cout <<
"No HB/HE Digis." << endl;
71 std::vector<edm::Handle<HBHEDigiCollection> >::iterator
i;
72 for (i = hbhe.begin(); i != hbhe.end(); i++) {
81 cout << *j << std::endl;
83 cout <<
"count: " << count << endl;
87 cout <<
"HB/HE count: " << count << endl;
93 cout <<
"No HF Digis." << endl;
95 std::vector<edm::Handle<HFDigiCollection> >::iterator
i;
96 for (i = hf.begin(); i != hf.end(); i++) {
105 cout << *j << std::endl;
106 cout << HEID << endl;
107 cout <<
"count: " << count << endl;
111 cout <<
"HF count: " << count << endl;
117 cout <<
"No HO Digis." << endl;
119 std::vector<edm::Handle<HODigiCollection> >::iterator
i;
120 for (i = ho.begin(); i != ho.end(); i++) {
129 cout << *j << std::endl;
130 cout << HEID << endl;
131 cout <<
"count: " << count << endl;
135 cout <<
"HO count: " << count << endl;
150 for (
int iTb = 0; iTb < 2; iTb++) {
154 for (
int iChannel = 1; iChannel < 25; iChannel++) {
T getUntrackedParameter(std::string const &, T const &) const
void Fill_by_hand(const HcalElectronicsMap *, int)
HtrXmlPatternToolParameters * m_toolparameters
std::vector< T >::const_iterator const_iterator
~HtrXmlPattern() override
void getManyByType(std::vector< Handle< PROD >> &results) const
HtrXmlPattern(const edm::ParameterSet &)
static const int NUM_CRATES
void analyze(const edm::Event &, const edm::EventSetup &) override
ChannelPattern * getPattern(int chan)
int m_hand_pattern_number
static const int NUM_SLOTS
const_iterator end() const
HalfHtrData * getHalfHtrData(int slot, int one_two_tb)
CrateData * getCrate(int crate)
const HcalElectronicsMap * getHcalMapping() const
virtual void do_hand_fill(const HcalElectronicsMap *)
Readout chain identification for Hcal.
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
const_iterator begin() const
HtrXmlPatternTool * m_tool