38 digiProducer_(iConfig.getParameter<std::string>(
"RawDigis")),
40 fileName_ (iConfig.getUntrackedParameter<std::string>(
"fileName", std::string(
"ecalURechHitHists")))
65 int numorbiterrors = 0;
66 bool orbiterror =
false;
71 if (!DCCHeaders.isValid()) {
72 edm::LogError(
"BxOrbitNumber") <<
"can't get the product for EcalRawDataCollection";
78 headerItr->getEventSettings();
79 int myorbit = headerItr->getOrbit();
80 int mybx = headerItr->getBX();
86 else if (orbit != myorbit)
88 std::cout <<
" NOOOO This header has a conflicting orbit OTHER " << orbit <<
" new " << myorbit << std::endl;
100 std::cout <<
" NOOOO This header has a conflicting bx OTHER " << bx <<
" new " << mybx << std::endl;
105 if ( (bx != -100) & ( orbit != -100) )
107 std::cout <<
" Interesting event Orbit " << orbit <<
" BX " << bx << std::endl;
135 bxnumberPlot_ =
new TH1F(
"bxnumber",
"BX number of interexting events",3600, 0., 3600.);
136 orbitErrorPlot_ =
new TH1F(
"bxOfOrbitDiffs",
"BX number of interexting events with orbit changes",3600, 0., 3600.);
137 orbitErrorBxDiffPlot_ =
new TH1F(
"orbitErrorDiffPlot",
"Orbit Difference of those HEADERS that have a difference",20,-10.,10.);
148 TFile root_file_(
fileName_.c_str() ,
"RECREATE");
std::string digiProducer_
TH1F * orbitErrorBxDiffPlot_
~EcalBxOrbitNumberGrapher()
std::vector< T >::const_iterator const_iterator
virtual void analyze(const edm::Event &, const edm::EventSetup &)
EcalBxOrbitNumberGrapher(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TH1F * numberofOrbitDiffPlot_