Skip to content

Commit

Permalink
some buildfile related fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Jun 13, 2020
1 parent 3c07dae commit 5a2e1d3
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 183 deletions.
1 change: 0 additions & 1 deletion CondCore/ESSources/bin/BuildFile.xml

This file was deleted.

13 changes: 0 additions & 13 deletions FastSimulation/CTPPSFastTrackingProducer/BuildFile.xml

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,124 @@ Description: [one line class summary]
//
//

// system include files
#include <memory>

// user include files
#include "FastSimulation/CTPPSFastTrackingProducer/interface/CTPPSFastTrackingProducer.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Math/interface/Vector.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DataFormats/Math/interface/Point3D.h"
#include "FastSimDataFormats/CTPPSFastSim/interface/CTPPSFastRecHit.h"
#include "FastSimDataFormats/CTPPSFastSim/interface/CTPPSFastRecHitContainer.h"
#include "FastSimDataFormats/CTPPSFastSim/interface/CTPPSFastTrack.h"
#include "FastSimDataFormats/CTPPSFastSim/interface/CTPPSFastTrackContainer.h"
#include "FastSimulation/CTPPSFastGeometry/interface/CTPPSToFDetector.h"
#include "FastSimulation/CTPPSFastGeometry/interface/CTPPSTrkDetector.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/StreamID.h"
#include "Utilities/PPS/interface/PPSUnitConversion.h"
#include "Utilities/PPS/interface/PPSUtilities.h"

#include "TLorentzVector.h"

// hector includes
#include "H_Parameters.h"
#include "H_BeamLine.h"
#include "H_RecRPObject.h"
#include "H_BeamParticle.h"

class CTPPSFastTrackingProducer : public edm::stream::EDProducer<> {
public:
explicit CTPPSFastTrackingProducer(const edm::ParameterSet&);
~CTPPSFastTrackingProducer() override;

private:
void beginStream(edm::StreamID) override;
void produce(edm::Event&, const edm::EventSetup&) override;
void endStream() override;
//this function will only be called once per event
virtual void beginEvent(edm::Event& event, const edm::EventSetup& eventSetup);
virtual void endEvent(edm::Event& event, const edm::EventSetup& eventSetup);

// ----------member data ---------------------------

typedef std::vector<CTPPSFastRecHit> CTPPSFastRecHitContainer;
edm::EDGetTokenT<CTPPSFastRecHitContainer> _recHitToken;
void ReadRecHits(edm::Handle<CTPPSFastRecHitContainer>&);
void FastReco(int Direction, H_RecRPObject* station);
void Reconstruction();
void ReconstructArm(
H_RecRPObject* pps_station, double x1, double y1, double x2, double y2, double& tx, double& ty, double& eloss);
void MatchCellId(int cellId, std::vector<int> vrecCellId, std::vector<double> vrecTof, bool& match, double& recTof);
bool SearchTrack(int,
int,
int Direction,
double& xi,
double& t,
double& partP,
double& pt,
double& thx,
double& thy,
double& x0,
double& y0,
double& xt,
double& yt,
double& X1d,
double& Y1d,
double& X2d,
double& Y2d);
void TrackerStationClear();
void TrackerStationStarting();
void ProjectToToF(const double x1, const double y1, const double x2, const double y2, double& xt, double& yt) {
xt = ((fz_timing - fz_tracker2) * (x2 - x1) / (fz_tracker2 - fz_tracker1)) + x2;
yt = ((fz_timing - fz_tracker2) * (y2 - y1) / (fz_tracker2 - fz_tracker1)) + y2;
};
// Hector objects
bool SetBeamLine();

std::map<unsigned int, H_BeamParticle*> m_beamPart;
std::unique_ptr<H_BeamLine> m_beamlineCTPPS1;
std::unique_ptr<H_BeamLine> m_beamlineCTPPS2;
std::unique_ptr<H_RecRPObject> pps_stationF;
std::unique_ptr<H_RecRPObject> pps_stationB;

std::string beam1filename;
std::string beam2filename;

// Defaults
double lengthctpps;
bool m_verbosity;
double fBeamEnergy;
double fBeamMomentum;
bool fCrossAngleCorr;
double fCrossingAngleBeam1;
double fCrossingAngleBeam2;
////////////////////////////////////////////////
std::unique_ptr<CTPPSTrkStation> TrkStation_F; // auxiliary object with the tracker geometry
std::unique_ptr<CTPPSTrkStation> TrkStation_B;
std::unique_ptr<CTPPSTrkDetector> det1F;
std::unique_ptr<CTPPSTrkDetector> det1B;
std::unique_ptr<CTPPSTrkDetector> det2F;
std::unique_ptr<CTPPSTrkDetector> det2B;
std::unique_ptr<CTPPSToFDetector> detToF_F;
std::unique_ptr<CTPPSToFDetector> detToF_B;

std::vector<CTPPSFastTrack> theCTPPSFastTrack;

CTPPSFastTrack track;

std::vector<int> recCellId_F, recCellId_B;
std::vector<double> recTof_F, recTof_B;

double fz_tracker1, fz_tracker2, fz_timing;
double fTrackerWidth, fTrackerHeight, fTrackerInsertion, fBeamXRMS_Trk1, fBeamXRMS_Trk2, fTrk1XOffset, fTrk2XOffset;
std::vector<double> fToFCellWidth;
double fToFCellHeight, fToFPitchX, fToFPitchY;
int fToFNCellX, fToFNCellY;
double fToFInsertion, fBeamXRMS_ToF, fToFXOffset, fTimeSigma, fImpParcut;
};
//////////////////////
// constructors and destructor
//
Expand Down
20 changes: 0 additions & 20 deletions FastSimulation/L1CaloTriggerProducer/BuildFile.xml

This file was deleted.

2 changes: 1 addition & 1 deletion Utilities/ReleaseScripts/scripts/git-publish
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ CMSSW_CATEGORIES={"Operations": ["Configuration/Applications",
"FastSimulation/Configuration", "FastSimulation/EgammaElectronAlgos",
"FastSimulation/Event", "FastSimulation/EventProducer",
"FastSimulation/ForwardDetectors", "FastSimulation/HighLevelTrigger",
"FastSimulation/L1CaloTriggerProducer", "FastSimulation/MaterialEffects",
"FastSimulation/MaterialEffects",
"FastSimulation/MuonSimHitProducer", "FastSimulation/Muons",
"FastSimulation/Particle", "FastSimulation/ParticleDecay",
"FastSimulation/ParticleFlow", "FastSimulation/ParticlePropagator",
Expand Down

0 comments on commit 5a2e1d3

Please sign in to comment.