correct the SuperX3 strip order
This commit is contained in:
parent
010e70268d
commit
1bd035a7ab
|
@ -11,6 +11,7 @@
|
||||||
#include "TCanvas.h"
|
#include "TCanvas.h"
|
||||||
#include "TPolyMarker3D.h"
|
#include "TPolyMarker3D.h"
|
||||||
#include "TPolyLine3D.h"
|
#include "TPolyLine3D.h"
|
||||||
|
#include "TRandom.h"
|
||||||
|
|
||||||
struct SX3{
|
struct SX3{
|
||||||
short id = -1; // -1 when no hit
|
short id = -1; // -1 when no hit
|
||||||
|
@ -571,13 +572,13 @@ inline TVector3 ANASEN::CalSX3Pos(unsigned short ID, unsigned short chUp, unsign
|
||||||
|
|
||||||
if( ID < nSX3 ){ //down
|
if( ID < nSX3 ){ //down
|
||||||
|
|
||||||
sa = SDn[reducedID].first;
|
sa = SDn[reducedID].second;
|
||||||
sb = SDn[reducedID].second;
|
sb = SDn[reducedID].first;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
sa = SUp[reducedID].first;
|
sa = SUp[reducedID].second;
|
||||||
sb = SUp[reducedID].second;
|
sb = SUp[reducedID].first;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ int main(int argc, char **argv){
|
||||||
|
|
||||||
ANASEN anasen;
|
ANASEN anasen;
|
||||||
|
|
||||||
TString saveFileName = "msAnasen.root";
|
TString saveFileName = "SimAnasen.root";
|
||||||
printf("\e[32m#################################### building Tree in %s\e[0m\n", saveFileName.Data());
|
printf("\e[32m#################################### building Tree in %s\e[0m\n", saveFileName.Data());
|
||||||
TFile * saveFile = new TFile(saveFileName, "recreate");
|
TFile * saveFile = new TFile(saveFileName, "recreate");
|
||||||
TTree * tree = new TTree("tree", "tree");
|
TTree * tree = new TTree("tree", "tree");
|
||||||
|
|
7
script.C
7
script.C
|
@ -271,14 +271,15 @@ void script(TString fileName = "", int maxEvent = -1){
|
||||||
pos.Print();
|
pos.Print();
|
||||||
dir.Print();
|
dir.Print();
|
||||||
|
|
||||||
std::pair<int, int> wireID = haha->FindWireID(pos, dir, true);
|
haha->DrawTrack(pos, dir, true);
|
||||||
SX3 sx3 = haha->FindSX3Pos(pos, dir, true);
|
|
||||||
|
// std::pair<int, int> wireID = haha->FindWireID(pos, dir, true);
|
||||||
|
// SX3 sx3 = haha->FindSX3Pos(pos, dir, true);
|
||||||
|
|
||||||
// haha->CalTrack(sx3.hitPos, wireID.first, wireID.second, true);
|
// haha->CalTrack(sx3.hitPos, wireID.first, wireID.second, true);
|
||||||
|
|
||||||
//haha->DrawDeducedTrack(sx3.hitPos, wireID.first, wireID.second);
|
//haha->DrawDeducedTrack(sx3.hitPos, wireID.first, wireID.second);
|
||||||
|
|
||||||
haha->DrawTrack(pos, dir, true);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user