39 digiProducer_(iConfig.getParameter<
std::
string>(
"RawDigis")),
41 fileName_ (iConfig.getUntrackedParameter<
std::
string>(
"fileName",
std::
string(
"ecalURechHitHists")))
66 int numorbiterrors = 0;
67 bool orbiterror =
false;
73 edm::LogError(
"BxOrbitNumber") <<
"can't get the product for EcalRawDataCollection";
79 headerItr->getEventSettings();
80 int myorbit = headerItr->getOrbit();
81 int mybx = headerItr->getBX();
87 else if (orbit != myorbit)
89 std::cout <<
" NOOOO This header has a conflicting orbit OTHER " << orbit <<
" new " << myorbit << std::endl;
101 std::cout <<
" NOOOO This header has a conflicting bx OTHER " << bx <<
" new " << mybx << std::endl;
106 if ( (bx != -100) & ( orbit != -100) )
108 std::cout <<
" Interesting event Orbit " << orbit <<
" BX " << bx << std::endl;
136 bxnumberPlot_ =
new TH1F(
"bxnumber",
"BX number of interexting events",3600, 0., 3600.);
137 orbitErrorPlot_ =
new TH1F(
"bxOfOrbitDiffs",
"BX number of interexting events with orbit changes",3600, 0., 3600.);
138 orbitErrorBxDiffPlot_ =
new TH1F(
"orbitErrorDiffPlot",
"Orbit Difference of those HEADERS that have a difference",20,-10.,10.);
149 TFile root_file_(
fileName_.c_str() ,
"RECREATE");
std::string digiProducer_
TH1F * orbitErrorBxDiffPlot_
std::vector< EcalDCCHeaderBlock >::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
const_iterator end() const
TH1F * numberofOrbitDiffPlot_
~EcalBxOrbitNumberGrapher() override
const_iterator begin() const