.SUFFIXES: .cxx .h
+# IRST coding rule check
+STRIP=$(ALICE)/local/IRST/syntax/strip-cpp.prl
+CODE_CHECK=java syntax.CPPParser
+export CLASSPATH=$(ALICE)/local/IRST
+
$(ALICE_ROOT)/include/%.h : %.h
@[ -d $(dir $@) ] || mkdir $(dir $@)
@cp -p $? $(ALICE_ROOT)/include
@[ -d $(dir $@) ] || mkdir -p $(dir $@)
@$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
+# IRST coding rule check
+check/%.i : %.cxx
+ @[ -d $(dir $@) ] || mkdir -p $(dir $@)
+ @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
+
+# IRST coding rule check
+check/%.ii : check/%.i
+ @$(STRIP) check/$*.i > check/$*.ii
+
+# IRST coding rule check
+check/%.viol : check/%.ii
+ @$(CODE_CHECK) check/$*.ii ./ > check/$*.viol
+
tgt_$(ALICE_TARGET)/%.o : %.c
@[ -d $(dir $@) ] || mkdir -p $(dir $@)
@$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
CLIBS = -lminicern
G3LIBS = -lgeant321
+
+
+
+
+
+
+
+
+
+
//-----------------------------------------------------------------------------
AliTPC *TPC = new AliTPCv1("TPC","Normal TPC");
+AliTPCD *paramd = TPC->GetDigParam();
+AliTPCParam *param = &(paramd->GetParam());
+
+// Set geometrical parameters
+
+param->SetSectorAngles(40.,0.,20.,10.);
+param->SetInnerRadiusLow(83.7);
+param->SetInnerRadiusUp(132.9);
+param->SetOuterRadiusLow(146.9);
+param->SetOuterRadiusUp(249.4);
+param->SetInSecLowEdge(81.6);
+param->SetInSecUpEdge(135.);
+param->SetOuSecLowEdge(144.2);
+param->SetOuSecUpEdge(252.1);
+param->SetEdge(1.5);
+param->SetDeadZone(1.15);
+param->Update();
+
+// set gas mixture
+
+TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
TPC->SetSecAL(1);
TPC->SetSecAU(1);
-TPC->SetSecLows(1, -1, -1, -1, -1, -1);
-TPC->SetSecUps(25, 26, 48, -1, -1, -1, -1, -1, -1, -1, -1, -1);
-TPC->SetSens(1);
+TPC->SetSecLows(0, -1, -1, -1, -1, -1);
+TPC->SetSecUps(18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
+TPC->SetSens(-1);
}
if(iTOF) {