Initialisation revisited
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Jun 2009 10:08:37 +0000 (10:08 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Jun 2009 10:08:37 +0000 (10:08 +0000)
VZERO/AliVZEROTriggerSimulator.cxx
VZERO/AliVZEROTriggerSimulator.h

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
index 25bf034..c474888 100644 (file)
@@ -19,8 +19,6 @@ public:
        AliVZEROTriggerSimulator();\r
        AliVZEROTriggerSimulator(TTree * digitsTree, TClonesArray* digits);\r
        ~AliVZEROTriggerSimulator();\r
-       AliVZEROTriggerSimulator(const AliVZEROTriggerSimulator &triggerSim);\r
-       AliVZEROTriggerSimulator& operator= (const AliVZEROTriggerSimulator & /*triggerSim*/){AliInfo("Not implemented");return *this;};\r
        \r
        AliVZEROTriggerData * GetTriggerData() const {return fTriggerData;};\r
        \r
@@ -62,6 +60,8 @@ public:
        \r
 private:\r
        // Private methods\r
+       AliVZEROTriggerSimulator(const AliVZEROTriggerSimulator &/*triggerSim*/);\r
+       AliVZEROTriggerSimulator& operator= (const AliVZEROTriggerSimulator & /*triggerSim*/);\r
        AliVZEROTriggerData * LoadTriggerData() const ;\r
        void GenerateBBWindows();\r
        void GenerateBGWindows();\r
@@ -92,3 +92,4 @@ private:
 \r
 \r
 #endif // ALIVZEROTRIGGERSIMULATOR_H\r
+\r