1
1
// -*- C++ -*-
2
2
//
3
- // Package: DemoAnalyzer
4
- // Class: DemoAnalyzer
3
+ // Package: Commissioning
4
+ // Class: Commissioning
5
5
//
6
- /* *\class DemoAnalyzer DemoAnalyzer.cc Demo/DemoAnalyzer /src/DemoAnalyzer.cc
6
+ /* *\class Commissioning DemoAnalyzer.cc Validation/Commissioning /src/DemoAnalyzer.cc
7
7
8
8
Description: [one line class summary]
9
9
64
64
// class declaration
65
65
//
66
66
67
- class DemoAnalyzer : public edm ::EDAnalyzer {
67
+ class Commissioning : public edm ::EDAnalyzer {
68
68
public:
69
- explicit DemoAnalyzer (const edm::ParameterSet&);
70
- ~DemoAnalyzer ();
69
+ explicit Commissioning (const edm::ParameterSet&);
70
+ ~Commissioning ();
71
71
72
72
private:
73
73
virtual void beginJob ();
@@ -117,7 +117,7 @@ TH1D *h203;
117
117
// constructors and destructor
118
118
//
119
119
120
- DemoAnalyzer::DemoAnalyzer (const edm::ParameterSet& iConfig) {
120
+ Commissioning::Commissioning (const edm::ParameterSet& iConfig) {
121
121
122
122
// *****************************************************************
123
123
// This is the main analysis routine
@@ -225,7 +225,7 @@ h203 = fs->make<TH1D>("Lumi section", "Lumi section", 300, 0, 3000);
225
225
}
226
226
227
227
228
- DemoAnalyzer ::~DemoAnalyzer () {
228
+ Commissioning ::~Commissioning () {
229
229
// do anything here that needs to be done at destruction time
230
230
// (e.g. close files, deallocate resources etc.)
231
231
}
@@ -237,7 +237,7 @@ DemoAnalyzer::~DemoAnalyzer() {
237
237
//
238
238
239
239
// ------------ method called for each event ------------
240
- void DemoAnalyzer ::analyze (const edm::Event& iEvent, const edm::EventSetup& iSetup) {
240
+ void Commissioning ::analyze (const edm::Event& iEvent, const edm::EventSetup& iSetup) {
241
241
242
242
// **********************************************
243
243
// here each relevant event will get analyzed
@@ -261,7 +261,7 @@ using namespace std;
261
261
262
262
// --------------Fill basic Event-information histograms---------------------//
263
263
// debug print commented out
264
- // LogInfo("Demo ")<<"Event id: "<<iEvent.id()<<" Run number: "<<iEvent.run();
264
+ // LogInfo("Validation ")<<"Event id: "<<iEvent.id()<<" Run number: "<<iEvent.run();
265
265
266
266
h200->Fill (iEvent.run ()); // Run number which the analyzed Event belongs to
267
267
h202->Fill ((iEvent.id ()).event ()); // Event's EventNumber
@@ -282,12 +282,12 @@ if (!providesGoodLumisection(iEvent)) {
282
282
283
283
// event is not in JSON (see above)
284
284
h201->Fill (iEvent.run ());
285
- LogInfo (" Demo " ) << " not in JSON, Event id (" << iEvent.id () << " ) --> analysing anyway" ;
285
+ LogInfo (" Validation " ) << " not in JSON, Event id (" << iEvent.id () << " ) --> analysing anyway" ;
286
286
}
287
287
// analyze in any case! (use this only for Commissioning!)
288
288
// else { // Event is to be analyzed
289
289
290
- LogInfo (" Demo " )
290
+ LogInfo (" Validation " )
291
291
<< " Starting to analyze \n "
292
292
<< " Event number: " << (iEvent.id ()).event ()
293
293
<< " , Run number: " << iEvent.run ()
@@ -344,8 +344,8 @@ if (!providesGoodLumisection(iEvent)) {
344
344
h55->Fill (it->normalizedChi2 ());
345
345
346
346
// the following can be uncommented if more log information is wished
347
- // LogInfo("Demo ") <<"global muon track pointer "<<it;
348
- // LogInfo("Demo ")<<"global muon track p"<<it->p()<<" global muon track pos"<<it->referencePoint()<<" global muon track vertex"<<it->vertex();
347
+ // LogInfo("Validation ") <<"global muon track pointer "<<it;
348
+ // LogInfo("Validation ")<<"global muon track p"<<it->p()<<" global muon track pos"<<it->referencePoint()<<" global muon track vertex"<<it->vertex();
349
349
350
350
// -----------------prepare variables to determine quality cuts---------------//
351
351
// WHAT: 1) Find out the number of Hits in the current globalMuon-Track
@@ -459,7 +459,7 @@ if (!providesGoodLumisection(iEvent)) {
459
459
460
460
461
461
// ---- method called for each event to check good quality lumi section ---- //
462
- bool DemoAnalyzer ::providesGoodLumisection (const edm::Event& iEvent) {
462
+ bool Commissioning ::providesGoodLumisection (const edm::Event& iEvent) {
463
463
464
464
// check JSON "by hand"
465
465
// This is a 'primitive' check which has the advantage that it also works
@@ -775,15 +775,15 @@ bool DemoAnalyzer::providesGoodLumisection(const edm::Event& iEvent) {
775
775
776
776
777
777
// ------------ method called once each job just before starting event loop ------------
778
- void DemoAnalyzer ::beginJob () {
778
+ void Commissioning ::beginJob () {
779
779
780
780
}
781
781
782
782
// ------------ method called once each job just after ending the event loop ------------
783
- void DemoAnalyzer ::endJob () {
783
+ void Commissioning ::endJob () {
784
784
}
785
785
786
786
// define this as a plug-in
787
- DEFINE_FWK_MODULE (DemoAnalyzer );
787
+ DEFINE_FWK_MODULE (Commissioning );
788
788
789
789
0 commit comments