Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iss161 #176

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions analysis/include/SvtTimingHistos.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#ifndef SVTTIMING_ANAHISTOS_H
#define SVTTIMING_ANAHISTOS_H

// HPSTR
#include "HistoManager.h"
#include "RawSvtHit.h"
#include "TrackerHit.h"
#include "Track.h"
#include "CalHit.h"
#include "CalCluster.h"
#include "ModuleMapper.h"
#include <string>
#include <vector>
#include <map>

class SvtTimingHistos : public HistoManager {

public:

SvtTimingHistos(const std::string& inputName,ModuleMapper* mmapper) ;

virtual void Define3DHistos(){};
virtual void Define2DHistos(){};
virtual void Define1DHistos();
void DefineHistos();

void FillRawHits(std::vector<RawSvtHit*> *trkrHits,float weight = 1.);
void FillTrackerHits(std::vector<TrackerHit*> *trkrHits, float weight = 1.);
void FillTracks(std::vector<Track*> *tracks, float weight = 1.);
void FillHitsOnTrack(Track* track, std::map<std::string,double> *timingCalib, int phase, CalCluster *cluster, float weight =1. );
void FillEcalHits(std::vector<CalHit*> *ecalHits, float weight = 1.);
void FillEcalClusters(std::vector<CalCluster*> *ecalClusters, float weight = 1.);

private:

ModuleMapper* mmapper_;
bool debug_=false;
};

#endif //SVTTIMING_ANAHISTOS_H
158 changes: 158 additions & 0 deletions analysis/plotconfigs/reco/layersRecoHit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"numTrkrHits_h" : {
"bins" : 30,
"minX" : -0.5,
"maxX" : 29.5,
"xtitle" : "Number of Reco Tracker Hits",
"ytitle" : "Events"
},
"trkrHit_Edep_h" : {
"bins" : 150,
"minX" : 0,
"maxX" : 25,
"xtitle" : "Tracker Hit Energy [arb. units]",
"ytitle" : "Tracker Hits / 2 arb. unit"
},
"trkrHit_Time_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Tracker Hit Time [ns]",
"ytitle" : "Tracker Hits "
},
"svtHit_Edep_h" : {
"bins" : 150,
"minX" : 0,
"maxX" : 25,
"xtitle" : "Tracker Hit Energy [arb. units]",
"ytitle" : "Tracker Hits / 2 arb. unit"
},
"svtHit_Time_h" : {
"bins" : 100,
"minX" : -25,
"maxX" : 25,
"xtitle" : "Tracker Hit Time [ns]",
"ytitle" : "Tracker Hits "
},
"trkrHit_L5AxEle_Minus_LX_TimeWide_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Tracker Hit Time [ns]",
"ytitle" : "Tracker Hits "
},
"trkSiCluster_Time_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Tracker Hit On Track Time [ns]",
"ytitle" : "Tracker Hits "
},
"trkSiCluster_L5AxEle_Minus_LX_Time_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Tracker Hit On Track Time [ns]",
"ytitle" : "Tracker Hits "
},

"trkSiCluster_L5AxEle_Versus_LX_Time_hh" : {
"binsX" : 100,
"minX" : -50,
"maxX" : 50,
"binsY" : 100,
"minY" : -50,
"maxY" : 50,
"xtitle" : "L5AxEle Track Hit Time [ns]",
"ytitle" : "LX Track Time [ns] "
},
"trkSiCluster_L5AxEle_Minus_LX_Time_Versus_Chi2_hh" : {
"binsX" : 100,
"minX" : -50,
"maxX" : 50,
"binsY" : 100,
"minY" : 0,
"maxY" : 250,
"xtitle" : "L5AxEle - LX Track Hit Time [ns]",
"ytitle" : "Track Chi2 "
},
"trkRawHit_Time_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Raw Hit On Track Time [ns]",
"ytitle" : "Raw Hits "
},
"svtHit_TimeWide_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Tracker Hit Time [ns]",
"ytitle" : "Tracker Hits "
},
"numTracks_h" : {
"bins" : 10,
"minX" : -0.5,
"maxX" : 9.5,
"xtitle" : "Number of KF Tracks",
"ytitle" : "Events"
},
"trkChiSq_h" : {
"bins" : 100,
"minX" : 0.0,
"maxX" : 100.0,
"xtitle" : "Track ChiSq",
"ytitle" : "Tracks"
},
"trkP_h" : {
"bins" : 100,
"minX" : 0.0,
"maxX" : 5.0,
"xtitle" : "Track Momentum (GeV)",
"ytitle" : "Tracks"
},

"trkNHits_h" : {
"bins" : 20,
"minX" : -0.5,
"maxX" : 19.5,
"xtitle" : "Number of Hits on Track",
"ytitle" : "Tracks"
},

"trkTime_h" : {
"bins" : 100,
"minX" : -50,
"maxX" : 50,
"xtitle" : "Track Time",
"ytitle" : "Tracks"
},
"numEcalHits_h" : {
"bins" : 20,
"minX" : -0.5,
"maxX" : 19.5,
"xtitle" : "Number of Reco ECal Hits",
"ytitle" : "Events"
},
"ecalHitEnergy_h" : {
"bins" : 200,
"minX" : 0,
"maxX" : 2000,
"xtitle" : "Reco Ecal Hit Energy [MeV]",
"ytitle" : "Ecal Hits / 10 MeV"
},
"numEcalClusters_h" : {
"bins" : 10,
"minX" : -0.5,
"maxX" : 9.5,
"xtitle" : "Number of Reco Ecal Clusters",
"ytitle" : "Events"
},
"ecalClusterEnergy_h" : {
"bins" : 150,
"minX" : 0,
"maxX" : 3000,
"xtitle" : "Reco Ecal Cluster Energy [MeV]",
"ytitle" : "Clusters / 20 MeV"
}
}
Loading