Initialisation revisited
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerSimulator.cxx
index 0885d1c..bb90290 100644 (file)
 \r
 ClassImp(AliVZEROTriggerSimulator)\r
 \r
-//________________________________________________________________\r
-AliVZEROTriggerSimulator::AliVZEROTriggerSimulator(const AliVZEROTriggerSimulator& triggersim) : \r
-TObject(),fTriggerData(LoadTriggerData()),fDigitsTree(NULL),fDigits(NULL),fTriggerWord(0)\r
-\r
-{\r
-       // copy constructor\r
-       \r
-       AliInfo("Not implemented");\r
-}\r
-\r
 //_____________________________________________________________________________\r
 AliVZEROTriggerSimulator::AliVZEROTriggerSimulator(TTree * digitsTree, TClonesArray* digits) : \r
-TObject(),fTriggerData(LoadTriggerData()),fDigitsTree(digitsTree),fDigits(digits),fTriggerWord(0)\r
+TObject(),fTriggerData(NULL),fDigitsTree(digitsTree),fDigits(digits),fTriggerWord(0)\r
 {\r
+       fTriggerData = LoadTriggerData();\r
+       \r
        for(int i=0;i<64;i++) {\r
                fBBFlags[i] = fBGFlags[i] = kFALSE;\r
                fCharges[i] = 0;\r
@@ -61,8 +53,10 @@ TObject(),fTriggerData(LoadTriggerData()),fDigitsTree(digitsTree),fDigits(digits
 }\r
 //_____________________________________________________________________________\r
 AliVZEROTriggerSimulator::AliVZEROTriggerSimulator() : \r
-TObject(),fTriggerData(LoadTriggerData()),fDigitsTree(NULL),fDigits(NULL),fTriggerWord(0)\r
+TObject(),fTriggerData(NULL),fDigitsTree(NULL),fDigits(NULL),fTriggerWord(0)\r
 {\r
+       fTriggerData = LoadTriggerData();\r
+\r
        for(int i=0;i<64;i++) {\r
                fBBFlags[i] = fBGFlags[i] = kFALSE;\r
                fCharges[i] = 0;\r
@@ -254,3 +248,4 @@ void AliVZEROTriggerSimulator::Run() {
        \r
 }\r
 \r
+\r