Skip to content

Commit e9526a5

Browse files
committed
made edits required for new file names Phase2OTHarvestReconstruction.cc and Phase2OTValidateReconstruction.cc
1 parent a9a28d6 commit e9526a5

File tree

5 files changed

+27
-28
lines changed

5 files changed

+27
-28
lines changed

Validation/SiTrackerPhase2V/plugins/Phase2OTHarvestReconstruction.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package: Validation/SiTrackerPhase2V
2-
// Class: Phase2OTHarvestTrackingParticles
2+
// Class: Phase2OTHarvestReconstruction
33

44
/**
55
* This class is part of the Phase 2 Tracker validation framework and performs
@@ -24,10 +24,10 @@
2424
#include "FWCore/ParameterSet/interface/ParameterSet.h"
2525
#include "FWCore/ServiceRegistry/interface/Service.h"
2626

27-
class Phase2OTHarvestTrackingParticles : public DQMEDHarvester {
27+
class Phase2OTHarvestReconstruction : public DQMEDHarvester {
2828
public:
29-
explicit Phase2OTHarvestTrackingParticles(const edm::ParameterSet &);
30-
~Phase2OTHarvestTrackingParticles() override;
29+
explicit Phase2OTHarvestReconstruction(const edm::ParameterSet &);
30+
~Phase2OTHarvestReconstruction() override;
3131
void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override;
3232
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
3333

@@ -37,14 +37,14 @@ class Phase2OTHarvestTrackingParticles : public DQMEDHarvester {
3737
std::string topFolderName_;
3838
};
3939

40-
Phase2OTHarvestTrackingParticles::Phase2OTHarvestTrackingParticles(const edm::ParameterSet &iConfig)
40+
Phase2OTHarvestReconstruction::Phase2OTHarvestReconstruction(const edm::ParameterSet &iConfig)
4141
: topFolderName_(iConfig.getParameter<std::string>("TopFolderName")) {}
4242

43-
Phase2OTHarvestTrackingParticles::~Phase2OTHarvestTrackingParticles() {}
43+
Phase2OTHarvestReconstruction::~Phase2OTHarvestReconstruction() {}
4444

4545
// ------------ method called once each job just after ending the event loop
4646
// ------------
47-
void Phase2OTHarvestTrackingParticles::dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) {
47+
void Phase2OTHarvestReconstruction::dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) {
4848
using namespace edm;
4949

5050
float eta_bins[] = {0.0, 0.7, 1.0, 1.2, 1.6, 2.0, 2.4};
@@ -662,9 +662,9 @@ void Phase2OTHarvestTrackingParticles::dqmEndJob(DQMStore::IBooker &ibooker, DQM
662662

663663
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
664664
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
665-
void Phase2OTHarvestTrackingParticles::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
665+
void Phase2OTHarvestReconstruction::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
666666
edm::ParameterSetDescription desc;
667667
desc.add<std::string>("TopFolderName", "TrackerPhase2OTL1TrackV");
668-
descriptions.add("Phase2OTHarvestTrackingParticles", desc);
668+
descriptions.add("Phase2OTHarvestReconstruction", desc);
669669
}
670-
DEFINE_FWK_MODULE(Phase2OTHarvestTrackingParticles);
670+
DEFINE_FWK_MODULE(Phase2OTHarvestReconstruction);

Validation/SiTrackerPhase2V/plugins/Phase2OTValidateReconstruction.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package: Validation/SiTrackerPhase2V
2-
// Class: Phase2OTValidateTrackingParticles
2+
// Class: Phase2OTValidateReconstruction
33

44
/**
55
* This class is part of the Phase 2 Tracker validation framework. It validates the
@@ -54,10 +54,10 @@
5454
#include "SimDataFormats/Associations/interface/TTStubAssociationMap.h"
5555
#include "SimDataFormats/Associations/interface/TTTrackAssociationMap.h"
5656

57-
class Phase2OTValidateTrackingParticles : public DQMEDAnalyzer {
57+
class Phase2OTValidateReconstruction : public DQMEDAnalyzer {
5858
public:
59-
explicit Phase2OTValidateTrackingParticles(const edm::ParameterSet &);
60-
~Phase2OTValidateTrackingParticles() override;
59+
explicit Phase2OTValidateReconstruction(const edm::ParameterSet &);
60+
~Phase2OTValidateReconstruction() override;
6161
void analyze(const edm::Event &, const edm::EventSetup &) override;
6262
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
6363
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
@@ -164,7 +164,7 @@ class Phase2OTValidateTrackingParticles : public DQMEDAnalyzer {
164164
//
165165
// constructors and destructor
166166
//
167-
Phase2OTValidateTrackingParticles::Phase2OTValidateTrackingParticles(const edm::ParameterSet &iConfig)
167+
Phase2OTValidateReconstruction::Phase2OTValidateReconstruction(const edm::ParameterSet &iConfig)
168168
: m_topoToken(esConsumes()), conf_(iConfig) {
169169
topFolderName_ = conf_.getParameter<std::string>("TopFolderName");
170170
trackingParticleToken_ =
@@ -188,12 +188,12 @@ Phase2OTValidateTrackingParticles::Phase2OTValidateTrackingParticles(const edm::
188188
TP_maxVtxZ = conf_.getParameter<double>("TP_maxVtxZ"); // max vertZ (or z0) to consider matching
189189
}
190190

191-
Phase2OTValidateTrackingParticles::~Phase2OTValidateTrackingParticles() = default;
191+
Phase2OTValidateReconstruction::~Phase2OTValidateReconstruction() = default;
192192

193193
// member functions
194194

195195
// ------------ method called for each event ------------
196-
void Phase2OTValidateTrackingParticles::analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) {
196+
void Phase2OTValidateReconstruction::analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) {
197197
// Tracking Particles
198198
edm::Handle<std::vector<TrackingParticle>> trackingParticleHandle;
199199
iEvent.getByToken(trackingParticleToken_, trackingParticleHandle);
@@ -586,9 +586,9 @@ void Phase2OTValidateTrackingParticles::analyze(const edm::Event &iEvent, const
586586

587587
// ------------ method called once each job just before starting event loop
588588
// ------------
589-
void Phase2OTValidateTrackingParticles::bookHistograms(DQMStore::IBooker &iBooker,
590-
edm::Run const &run,
591-
edm::EventSetup const &es) {
589+
void Phase2OTValidateReconstruction::bookHistograms(DQMStore::IBooker &iBooker,
590+
edm::Run const &run,
591+
edm::EventSetup const &es) {
592592
// Histogram setup and definitions
593593
std::string HistoName;
594594
iBooker.setCurrentFolder(topFolderName_ + "/trackParticles");
@@ -1304,7 +1304,7 @@ void Phase2OTValidateTrackingParticles::bookHistograms(DQMStore::IBooker &iBooke
13041304

13051305
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
13061306
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
1307-
void Phase2OTValidateTrackingParticles::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
1307+
void Phase2OTValidateReconstruction::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
13081308
// OuterTrackerMonitorTrackingParticles
13091309
edm::ParameterSetDescription desc;
13101310
{
@@ -1425,9 +1425,9 @@ void Phase2OTValidateTrackingParticles::fillDescriptions(edm::ConfigurationDescr
14251425
desc.add<double>("TP_minPt", 1.5);
14261426
desc.add<double>("TP_maxEta", 2.4);
14271427
desc.add<double>("TP_maxVtxZ", 15.0);
1428-
descriptions.add("Phase2OTValidateTrackingParticles", desc);
1428+
descriptions.add("Phase2OTValidateReconstruction", desc);
14291429
// or use the following to generate the label from the module's C++ type
14301430
//descriptions.addWithDefaultLabel(desc);
14311431
}
14321432

1433-
DEFINE_FWK_MODULE(Phase2OTValidateTrackingParticles);
1433+
DEFINE_FWK_MODULE(Phase2OTValidateReconstruction);

Validation/SiTrackerPhase2V/plugins/Phase2OTValidateTTStub.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ std::vector<double> Phase2OTValidateTTStub::getTPDerivedCoords(edm::Ptr<Tracking
228228
float tp_z0 = associatedTP->vertex().z();
229229
double tp_t = associatedTP->tanl();
230230
double tp_rinv = (tp_charge * bfield_) / (tp_pt);
231-
std::cout << tp_rinv << std::endl;
232231

233232
if (isBarrel) {
234233
tp_r = stub_r;

Validation/SiTrackerPhase2V/python/Phase2TrackerMCHarvesting_cff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
44

55
from Validation.SiTrackerPhase2V.Phase2ITRechitHarvester_cfi import *
6-
from Validation.SiTrackerPhase2V.Phase2OTHarvestTrackingParticles_cfi import *
6+
from Validation.SiTrackerPhase2V.Phase2OTHarvestReconstruction_cfi import *
77
#ITTracking rechit
88
#clone the rechit harvester for tracking rechit
99
Phase2ITtrackingrechitHarvester=Phase2ITRechitHarvester.clone(
@@ -76,5 +76,5 @@
7676
* Phase2OTRechitHarvester_2S
7777
* Phase2OTTrackingRechitHarvester_PS
7878
* Phase2OTTrackingRechitHarvester_2S
79-
* Phase2OTHarvestTrackingParticles
79+
* Phase2OTHarvestReconstruction
8080
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import FWCore.ParameterSet.Config as cms
22

3-
from Validation.SiTrackerPhase2V.Phase2OTValidateTrackingParticles_cfi import *
3+
from Validation.SiTrackerPhase2V.Phase2OTValidateReconstruction_cfi import *
44
from Validation.SiTrackerPhase2V.Phase2OTValidateTTStub_cfi import *
55

6-
trackingParticleValidOT = Phase2OTValidateTrackingParticles.clone()
6+
trackingParticleValidOT = Phase2OTValidateReconstruction.clone()
77

88
stubValidOT = Phase2OTValidateTTStub.clone()

0 commit comments

Comments
 (0)