41 fileName_(iConfig.getUntrackedParameter<
std::
string>(
"fileName",
"ecalURechHitHists")) {}
55 int numorbiterrors = 0;
56 bool orbiterror =
false;
60 edm::LogError(
"BxOrbitNumber") <<
"can't get the product for EcalRawDataCollection";
66 headerItr->getEventSettings();
67 int myorbit = headerItr->getOrbit();
68 int mybx = headerItr->getBX();
72 }
else if (orbit != myorbit) {
73 edm::LogVerbatim(
"EcalTools") <<
" NOOOO This header has a conflicting orbit OTHER " << orbit <<
" new " 82 }
else if (
bx != mybx) {
83 edm::LogVerbatim(
"EcalTools") <<
" NOOOO This header has a conflicting bx OTHER " <<
bx <<
" new " << mybx;
87 if ((
bx != -100) & (orbit != -100)) {
106 bxnumberPlot_ =
new TH1F(
"bxnumber",
"BX number of interexting events", 3600, 0., 3600.);
107 orbitErrorPlot_ =
new TH1F(
"bxOfOrbitDiffs",
"BX number of interexting events with orbit changes", 3600, 0., 3600.);
109 new TH1F(
"orbitErrorDiffPlot",
"Orbit Difference of those HEADERS that have a difference", 20, -10., 10.);
118 TFile root_file_(
fileName_.c_str(),
"RECREATE");
Log< level::Info, true > LogVerbatim
TH1F * orbitErrorBxDiffPlot_
std::vector< T >::const_iterator const_iterator
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::EDGetTokenT< EcalRawDataCollection > digiProducer_
Log< level::Error, false > LogError
EcalBxOrbitNumberGrapher(const edm::ParameterSet &)
const_iterator begin() const
Namespace of DDCMS conversion namespace.
const_iterator end() const
TH1F * numberofOrbitDiffPlot_
~EcalBxOrbitNumberGrapher() override