39 : digiProducer_(iConfig.getParameter<
std::
string>(
"RawDigis")),
41 fileName_(iConfig.getUntrackedParameter<
std::
string>(
"fileName",
std::
string(
"ecalURechHitHists"))) {}
56 int numorbiterrors = 0;
57 bool orbiterror =
false;
62 edm::LogError(
"BxOrbitNumber") <<
"can't get the product for EcalRawDataCollection";
68 headerItr->getEventSettings();
69 int myorbit = headerItr->getOrbit();
70 int mybx = headerItr->getBX();
74 }
else if (orbit != myorbit) {
75 std::cout <<
" NOOOO This header has a conflicting orbit OTHER " << orbit <<
" new " << myorbit << std::endl;
83 }
else if (bx != mybx) {
84 std::cout <<
" NOOOO This header has a conflicting bx OTHER " << bx <<
" new " << mybx << std::endl;
89 if ((bx != -100) & (orbit != -100)) {
90 std::cout <<
" Interesting event Orbit " << orbit <<
" BX " << bx << std::endl;
108 bxnumberPlot_ =
new TH1F(
"bxnumber",
"BX number of interexting events", 3600, 0., 3600.);
109 orbitErrorPlot_ =
new TH1F(
"bxOfOrbitDiffs",
"BX number of interexting events with orbit changes", 3600, 0., 3600.);
111 new TH1F(
"orbitErrorDiffPlot",
"Orbit Difference of those HEADERS that have a difference", 20, -10., 10.);
120 TFile root_file_(
fileName_.c_str(),
"RECREATE");
std::string digiProducer_
TH1F * orbitErrorBxDiffPlot_
std::vector< T >::const_iterator const_iterator
void analyze(const edm::Event &, const edm::EventSetup &) override
EcalBxOrbitNumberGrapher(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Namespace of DDCMS conversion namespace.
const_iterator end() const
TH1F * numberofOrbitDiffPlot_
~EcalBxOrbitNumberGrapher() override
const_iterator begin() const