48 iEvent.
getByLabel (
"simHcalUnsuppressedDigis", digiCollection1);
57 for (digiItr1=digiCollection1->begin();digiItr1!=digiCollection1->end();digiItr1++) {
61 for (digiItr2=digiCollection2->begin();digiItr2!=digiCollection2->end();digiItr2++) {
71 for (digiItr1=digiCollection1->begin();digiItr1!=digiCollection1->end();digiItr1++) {
73 int tsize = (*digiItr1).size();
76 if(HcalGenDetId.isHcalZDCDetId()){
79 int zside = element.
zside();
80 int section = element.section();
81 int channel = element.channel();
82 int gsub = HcalGenDetId.genericSubdet();
95 for (digiItr2=digiCollection2->begin();digiItr2!=digiCollection2->end();digiItr2++) {
109 if(element == element2) {
112 for (
int i=0;
i<tsize;
i++) {
113 double adc = (*digiItr1)[
i].adc();
114 int capid = (*digiItr1)[
i].capid();
118 double adc2 = (*digiItr2)[
i].adc();
119 int capid2 = (*digiItr2)[
i].capid();
122 if( capid != capid2 || adc != adc2) {
123 std::cout <<
"===> PROBLEM !!! gebsubdet=" << gsub
125 <<
" section= "<< section <<
" channel " <<channel
128 <<
" adc1["<<
i <<
"]=" << adc
129 <<
" capid2["<<
i <<
"]=" << capid2
130 <<
" adc2["<<
i <<
"]=" << adc2
145 std::cout <<
"===> PROBLEM !!! gsubdet=" << gsub
147 <<
" section= "<< section <<
" channel " <<channel
148 <<
" HcalZDCId match is not found !!!"
156 int depth = cell.
depth();
157 int iphi = cell.iphi()-1;
158 int ieta = cell.ieta();
159 int sub = cell.subdet();
165 for (digiItr2=digiCollection2->begin();digiItr2!=digiCollection2->end();digiItr2++) {
172 for (
int i=0;
i<tsize;
i++) {
173 double adc = (*digiItr1)[
i].adc();
174 int capid = (*digiItr1)[
i].capid();
178 double adc2 = (*digiItr2)[
i].adc();
179 int capid2 = (*digiItr2)[
i].capid();
182 if( capid != capid2 || adc != adc2) {
183 std::cout <<
"===> PROBLEM !!! subdet=" << sub <<
" ieta="
184 << ieta <<
" inphi=" << iphi <<
" depth=" << depth
187 <<
" adc1["<<
i <<
"]=" << adc
188 <<
" capid2["<<
i <<
"]=" << capid2
189 <<
" adc2["<<
i <<
"]=" << adc2
203 std::cout <<
"===> PROBLEM !!! subdet=" << sub <<
" ieta="
204 << ieta <<
" inphi=" << iphi <<
" depth=" << depth
205 <<
" HcalID match is not found !!!"
211 if (size1 != size2) {
213 std::cout <<
"===> PROBLEM !!! Different size of Digi collections : "
214 << size1 <<
" and " << size2
221 : inputTag1_(iConfig.getParameter<edm::InputTag>(
"digiLabel1")),
222 inputTag2_(iConfig.getParameter<edm::InputTag>(
"digiLabel2")),
223 outputFile_(iConfig.getUntrackedParameter<std::string>(
"outputFile")),
230 <<
" Hcal RecHit Task histograms will be saved to '"
234 <<
" Hcal RecHit Task histograms will NOT be saved";
246 sprintf (histo,
"Digi2Raw2Digi_status") ;
266 compare<HBHEDataFrame>(
iEvent,iSetup);
269 compare<HODataFrame>(
iEvent,iSetup);
272 compare<HFDataFrame>(
iEvent,iSetup);
277 compare<ZDCDataFrame>(
iEvent,iSetup);
int adc(sample_type sample)
get the ADC sample (12 bits)
Digi2Raw2Digi(const edm::ParameterSet &)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
int zside() const
get the z-side of the cell (1/-1)
std::vector< T >::const_iterator const_iterator
void compare(const edm::Event &, const edm::EventSetup &)
int depth() const
get the tower depth
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meStatus