@@ -666,6 +666,9 @@ class TICLDumper : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::Sh
666666 std::vector<float > simTICLCandidate_boundaryPx;
667667 std::vector<float > simTICLCandidate_boundaryPy;
668668 std::vector<float > simTICLCandidate_boundaryPz;
669+ std::vector<float > simTICLCandidate_pt;
670+ std::vector<float > simTICLCandidate_phi;
671+ std::vector<float > simTICLCandidate_eta;
669672 std::vector<float > simTICLCandidate_caloParticleMass;
670673 std::vector<float > simTICLCandidate_time;
671674 std::vector<int > simTICLCandidate_pdgId;
@@ -681,6 +684,9 @@ class TICLDumper : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::Sh
681684 std::vector<double > candidate_px;
682685 std::vector<double > candidate_py;
683686 std::vector<double > candidate_pz;
687+ std::vector<float > candidate_pt;
688+ std::vector<float > candidate_phi;
689+ std::vector<float > candidate_eta;
684690 std::vector<float > candidate_time;
685691 std::vector<float > candidate_time_err;
686692 std::vector<std::vector<float >> candidate_id_probabilities;
@@ -715,6 +721,7 @@ class TICLDumper : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::Sh
715721 std::vector<float > track_hgcal_phi;
716722 std::vector<float > track_hgcal_pt;
717723 std::vector<float > track_pt;
724+ std::vector<float > track_p;
718725 std::vector<int > track_quality;
719726 std::vector<int > track_missing_outer_hits;
720727 std::vector<int > track_missing_inner_hits;
@@ -767,6 +774,9 @@ void TICLDumper::clearVariables() {
767774 simTICLCandidate_boundaryPx.clear ();
768775 simTICLCandidate_boundaryPy.clear ();
769776 simTICLCandidate_boundaryPz.clear ();
777+ simTICLCandidate_pt.clear ();
778+ simTICLCandidate_phi.clear ();
779+ simTICLCandidate_eta.clear ();
770780 simTICLCandidate_time.clear ();
771781 simTICLCandidate_caloParticleMass.clear ();
772782 simTICLCandidate_pdgId.clear ();
@@ -781,6 +791,9 @@ void TICLDumper::clearVariables() {
781791 candidate_px.clear ();
782792 candidate_py.clear ();
783793 candidate_pz.clear ();
794+ candidate_pt.clear ();
795+ candidate_phi.clear ();
796+ candidate_eta.clear ();
784797 candidate_time.clear ();
785798 candidate_time_err.clear ();
786799 candidate_id_probabilities.clear ();
@@ -818,6 +831,7 @@ void TICLDumper::clearVariables() {
818831 track_hgcal_pt.clear ();
819832 track_quality.clear ();
820833 track_pt.clear ();
834+ track_p.clear ();
821835 track_missing_outer_hits.clear ();
822836 track_missing_inner_hits.clear ();
823837 track_charge.clear ();
@@ -969,6 +983,9 @@ void TICLDumper::beginJob() {
969983 candidate_tree_->Branch (" candidate_px" , &candidate_px);
970984 candidate_tree_->Branch (" candidate_py" , &candidate_py);
971985 candidate_tree_->Branch (" candidate_pz" , &candidate_pz);
986+ candidate_tree_->Branch (" candidate_pt" , &candidate_pt);
987+ candidate_tree_->Branch (" candidate_phi" , &candidate_phi);
988+ candidate_tree_->Branch (" candidate_eta" , &candidate_eta);
972989 candidate_tree_->Branch (" track_in_candidate" , &track_in_candidate);
973990 candidate_tree_->Branch (" tracksters_in_candidate" , &tracksters_in_candidate);
974991 }
@@ -1013,6 +1030,7 @@ void TICLDumper::beginJob() {
10131030 tracks_tree_->Branch (" track_hgcal_phi" , &track_hgcal_phi);
10141031 tracks_tree_->Branch (" track_hgcal_pt" , &track_hgcal_pt);
10151032 tracks_tree_->Branch (" track_pt" , &track_pt);
1033+ tracks_tree_->Branch (" track_p" , &track_p);
10161034 tracks_tree_->Branch (" track_missing_outer_hits" , &track_missing_outer_hits);
10171035 tracks_tree_->Branch (" track_missing_inner_hits" , &track_missing_inner_hits);
10181036 tracks_tree_->Branch (" track_quality" , &track_quality);
@@ -1041,6 +1059,9 @@ void TICLDumper::beginJob() {
10411059 simTICLCandidate_tree->Branch (" simTICLCandidate_boundaryPx" , &simTICLCandidate_boundaryPx);
10421060 simTICLCandidate_tree->Branch (" simTICLCandidate_boundaryPy" , &simTICLCandidate_boundaryPy);
10431061 simTICLCandidate_tree->Branch (" simTICLCandidate_boundaryPz" , &simTICLCandidate_boundaryPz);
1062+ simTICLCandidate_tree->Branch (" simTICLCandidate_pt" , &simTICLCandidate_pt);
1063+ simTICLCandidate_tree->Branch (" simTICLCandidate_phi" , &simTICLCandidate_phi);
1064+ simTICLCandidate_tree->Branch (" simTICLCandidate_eta" , &simTICLCandidate_eta);
10441065 simTICLCandidate_tree->Branch (" simTICLCandidate_time" , &simTICLCandidate_time);
10451066 simTICLCandidate_tree->Branch (" simTICLCandidate_caloParticleMass" , &simTICLCandidate_caloParticleMass);
10461067 simTICLCandidate_tree->Branch (" simTICLCandidate_pdgId" , &simTICLCandidate_pdgId);
@@ -1185,6 +1206,9 @@ void TICLDumper::analyze(const edm::Event& event, const edm::EventSetup& setup)
11851206 simTICLCandidate_pdgId.push_back (cand.pdgId ());
11861207 simTICLCandidate_charge.push_back (cand.charge ());
11871208 simTICLCandidate_time.push_back (cand.time ());
1209+ simTICLCandidate_pt.push_back (cand.pt ());
1210+ simTICLCandidate_phi.push_back (cand.phi ());
1211+ simTICLCandidate_eta.push_back (cand.eta ());
11881212 std::vector<int > tmpIdxVec;
11891213 for (auto const & simTS : cand.tracksters ()) {
11901214 auto trackster_idx = simTS.get () - (edm::Ptr<ticl::Trackster>(simTrackstersSC_h, 0 )).get ();
@@ -1265,6 +1289,9 @@ void TICLDumper::analyze(const edm::Event& event, const edm::EventSetup& setup)
12651289 candidate_px.push_back (candidate.px ());
12661290 candidate_py.push_back (candidate.py ());
12671291 candidate_pz.push_back (candidate.pz ());
1292+ candidate_pt.push_back (candidate.pt ());
1293+ candidate_phi.push_back (candidate.phi ());
1294+ candidate_eta.push_back (candidate.eta ());
12681295 candidate_time.push_back (candidate.time ());
12691296 candidate_time_err.push_back (candidate.timeError ());
12701297 std::vector<float > id_probs;
@@ -1316,6 +1343,7 @@ void TICLDumper::analyze(const edm::Event& event, const edm::EventSetup& setup)
13161343 track_hgcal_pz.push_back (globalMom.z ());
13171344 track_hgcal_pt.push_back (globalMom.perp ());
13181345 track_pt.push_back (track.pt ());
1346+ track_p.push_back (track.p ());
13191347 track_quality.push_back (track.quality (reco::TrackBase::highPurity));
13201348 track_missing_outer_hits.push_back (track.missingOuterHits ());
13211349 track_missing_inner_hits.push_back (track.missingInnerHits ());
0 commit comments