Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #212 from zieglerv/development
Browse files Browse the repository at this point in the history
Set B-field values to hits resolved from LR ambiguity algo.
  • Loading branch information
raffaelladevita authored Jul 20, 2018
2 parents a15df44 + b488fce commit c96ce0b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public void read_HBHits(DataEvent event, IndexedTable constants0, IndexedTable c
hit.set_QualityFac(0);
//hit.set_Doca(hit.get_TimeToDistance());
//if (hit.get_Doca() > hit.get_CellSize() || hit.get_Time()>CCDBConstants.getTMAXSUPERLAYER()[hit.get_Sector()-1][hit.get_Superlayer()-1] ) {
if (hit.get_Doca() > hit.get_CellSize() || hit.get_Time() > constants1.getDoubleValue("tmax", hit.get_Sector(), hit.get_Superlayer(),0) ) {
if (hit.get_Doca() > hit.get_CellSize() ) {
//this.fix_TimeToDistance(this.get_CellSize());
hit.set_OutOfTimeFlag(true);
hit.set_QualityFac(2);
Expand Down Expand Up @@ -421,7 +421,7 @@ public void read_TBHits(DataEvent event, IndexedTable constants0, IndexedTable c
hit.set_QualityFac(0);
//hit.set_Doca(hit.get_TimeToDistance());
//if (hit.get_Doca() > hit.get_CellSize() || hit.get_Time()>CCDBConstants.getTMAXSUPERLAYER()[hit.get_Sector()-1][hit.get_Superlayer()-1]) {
if (hit.get_Doca() > hit.get_CellSize() || hit.get_Time()>constants1.getDoubleValue("tmax", hit.get_Sector(), hit.get_Superlayer(),0) ) {
if (hit.get_Doca() > hit.get_CellSize() ) {
//this.fix_TimeToDistance(this.get_CellSize());
hit.set_OutOfTimeFlag(true);
hit.set_QualityFac(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ public FittedCluster LRAmbiguityResolver(FittedCluster fClus, ClusterFitter cf,
newhitPos.set_DocaErr(hit.get_DocaErr());
newhitPos.setT0(hit.getT0());
newhitPos.set_Beta(hit.get_Beta());
newhitPos.setB(hit.getB());
newhitPos.set_DeltaTimeBeta(hit.get_DeltaTimeBeta());
newhitPos.setTStart(hit.getTStart());
newhitPos.setTProp(hit.getTProp());
Expand All @@ -390,6 +391,7 @@ public FittedCluster LRAmbiguityResolver(FittedCluster fClus, ClusterFitter cf,
newhitNeg.set_DocaErr(hit.get_DocaErr());
newhitNeg.setT0(hit.getT0());
newhitNeg.set_Beta(hit.get_Beta());
newhitNeg.setB(hit.getB());
newhitNeg.set_DeltaTimeBeta(hit.get_DeltaTimeBeta());
newhitNeg.setTStart(hit.getTStart());
newhitNeg.setTProp(hit.getTProp());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ public List<FittedCluster> FindTimeBasedClusters(List<FittedHit> fhits, ClusterF
newhit.set_Doca(hit.get_Doca());
newhit.set_DocaErr(hit.get_DocaErr());
newhit.setT0(hit.getT0());
newhit.set_Beta(hit.get_Beta());
newhit.set_Beta(hit.get_Beta());
newhit.setB(hit.getB());
newhit.set_DeltaTimeBeta(hit.get_DeltaTimeBeta());
newhit.setTStart(hit.getTStart());
newhit.setTProp(hit.getTProp());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public double interpolateOnGrid(double B, double alpha, double t, int SecIdx, i
if(B>3.0) {
B=3.0;
}

int binlowB = this.getBIdx(B);
int binhighB = binlowB + 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static void main(String[] args) {
//String inputFile="/Users/ziegler/Desktop/Work/Files/Data/DecodedData/clas_003305.hipo";
//String inputFile="/Users/ziegler/Desktop/Work/validation/infiles/out_clas_004013.evio.filt.hipo";
//String inputFile="/Users/ziegler/Desktop/Work/Files/GEMC/BGMERG/gemc_out_mu-_hipo/mu-_30nA_bg_out.ev.hipo";
String inputFile="/Users/ziegler/Desktop/Work/Files/GEMC/straight.hipo";
String inputFile="/Users/ziegler/Desktop/Work/Files/Data/out_clas_002391_extractRawBanksFromCooked.hipo";
//String inputFile="/Users/ziegler/Desktop/Work/Files/FMTDevel/gemc/pion_rec.hipo";
//System.err.println(" \n[PROCESSING FILE] : " + inputFile);

Expand All @@ -323,7 +323,7 @@ public static void main(String[] args) {

//String outputFile="/Users/ziegler/Desktop/Work/Files/Data/DecodedData/clas_003305_recGDSt.hipo";
// String outputFile="/Users/ziegler/Desktop/Work/validation/outfiles/out_clas_004013.evio.filtRecookSinThread.hipo";
String outputFile="/Users/ziegler/Desktop/Work/Files/GEMC/straight_rec.hipo";
String outputFile="/Users/ziegler/Desktop/Work/Files/Data/out_clas_002391_extractRawBanksFromCookedReCook.hipo";
//String outputFile="/Users/ziegler/Desktop/Work/Files/FMTDevel/gemc/pion_recFMTClusNoTrkRefit.hipo";

writer.open(outputFile);
Expand Down

0 comments on commit c96ce0b

Please sign in to comment.